diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c02f49ef71f65..5d9ccac1a6f7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,15 +39,9 @@ jobs: python -m tools.ci.check_icon_conflicts python -m tools.ci.check_icon_dupenames python -m tools.maplint.source --github - DREAMCHECKER_EXIT_CODE=0 - ~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 || DREAMCHECKER_EXIT_CODE=$? - echo 'DREAMCHECKER_ANNOTATED=1' >> "$GITHUB_ENV" - exit $DREAMCHECKER_EXIT_CODE - - name: Annotate Lints - uses: yogstation13/DreamAnnotate@v2 - if: ${{ always() && env.DREAMCHECKER_ANNOTATED == '1' }} - with: - outputFile: output-annotations.txt + - name: Run DreamChecker + shell: bash + run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh odlint: name: Lint with OpenDream diff --git a/_build_dependencies.sh b/_build_dependencies.sh index 058f897b55b66..5f1927b74e897 100644 --- a/_build_dependencies.sh +++ b/_build_dependencies.sh @@ -1,6 +1,6 @@ # This file has all the information on what versions of libraries are thrown into the code # For dreamchecker -export SPACEMANDMM_TAG=suite-1.7.1 +export SPACEMANDMM_TAG=suite-1.8 # For TGUI export NODE_VERSION=20 # Stable Byond Major diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index 6201efae49305..0520abc371232 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -1372,7 +1372,7 @@ /obj/structure/lattice, /obj/machinery/light/small, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "fr" = ( /obj/docking_port/stationary/transit{ dir = 4; @@ -4568,7 +4568,7 @@ /area/shuttle/administration) "ps" = ( /turf/simulated/mineral/ancient/outer, -/area/space/nearstation) +/area/space/nearstation/centcom) "pt" = ( /obj/machinery/door/airlock/hatch{ name = "Armory" @@ -5803,7 +5803,7 @@ "tL" = ( /obj/structure/lattice, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "tM" = ( /obj/structure/chair/comfy/shuttle{ dir = 8 @@ -7018,7 +7018,7 @@ "ya" = ( /obj/effect/mob_spawn/human/corpse/clown/corpse, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "yc" = ( /obj/structure/table/reinforced, /obj/item/lighter/zippo/contractor, @@ -7029,7 +7029,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "yg" = ( /mob/living/silicon/decoy{ name = "A.L.I.C.E." @@ -7110,7 +7110,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "yL" = ( /obj/machinery/computer/card, /turf/simulated/floor/plasteel, @@ -10851,7 +10851,7 @@ "Mu" = ( /obj/item/coin/antagtoken, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "Mv" = ( /obj/machinery/recharge_station/upgraded, /turf/simulated/floor/plasteel{ @@ -11598,7 +11598,7 @@ /area/shuttle/escape) "OK" = ( /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "OL" = ( /obj/structure/curtain/open/shower, /obj/machinery/shower{ @@ -13971,7 +13971,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "Xt" = ( /obj/machinery/door/airlock/centcom{ name = "CentCom Customs" @@ -14329,7 +14329,7 @@ "YI" = ( /obj/effect/decal/remains/human, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "YJ" = ( /obj/machinery/door/window/classic/normal{ name = "Cell B"; diff --git a/_maps/map_files220/generic/centcomm.dmm b/_maps/map_files220/generic/centcomm.dmm index f0102f8507928..7b2128d54ef4c 100644 --- a/_maps/map_files220/generic/centcomm.dmm +++ b/_maps/map_files220/generic/centcomm.dmm @@ -2296,7 +2296,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "bJO" = ( /obj/structure/fans/tiny/invisible, /obj/structure/marker_beacon/dock_marker/collision, @@ -8040,7 +8040,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "fqZ" = ( /obj/structure/rack, /obj/item/tank/internals/emergency_oxygen/double/vox, @@ -8816,7 +8816,7 @@ "fVA" = ( /obj/effect/mob_spawn/human/corpse/clown/corpse, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "fVW" = ( /turf/simulated/floor/beach/away/coastline{ water_overlay_image = null @@ -8927,7 +8927,7 @@ /area/shuttle/syndicate) "fYV" = ( /turf/simulated/mineral/ancient/outer, -/area/space/nearstation) +/area/space/nearstation/centcom) "fZS" = ( /obj/machinery/computer/account_database{ name = "Admin Accounts Database"; @@ -14423,7 +14423,7 @@ /obj/structure/lattice, /obj/structure/light_fake/small, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "jKB" = ( /obj/effect/turf_decal/delivery, /turf/simulated/floor/plasteel{ @@ -16323,7 +16323,7 @@ /turf/simulated/floor/plating/airless{ icon_state = "asteroidplating" }, -/area/space/nearstation) +/area/space/nearstation/centcom) "lkx" = ( /obj/machinery/door/airlock/hatch/syndicate{ name = "Syndicate Base" @@ -18506,7 +18506,7 @@ /obj/structure/marker_beacon/dock_marker, /obj/structure/lattice/catwalk, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "mBD" = ( /obj/machinery/door/airlock/hatch/syndicate/command{ name = "Тюрьма"; @@ -20133,7 +20133,7 @@ /area/syndicate_mothership/elite_squad) "nNr" = ( /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "nNB" = ( /obj/structure/bookcase/manuals/research_and_development, /turf/simulated/floor/wood/oak, @@ -22343,7 +22343,7 @@ "pxm" = ( /obj/item/coin/antagtoken, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "pxu" = ( /obj/effect/turf_decal/siding/black{ dir = 8 @@ -22703,7 +22703,7 @@ "pLx" = ( /obj/effect/decal/remains/human, /turf/simulated/floor/plating/asteroid/ancient/airless, -/area/space/nearstation) +/area/space/nearstation/centcom) "pMa" = ( /obj/machinery/computer/shuttle/syndicate/drop_pod, /turf/simulated/wall/mineral/plastitanium, @@ -27166,7 +27166,7 @@ "sQi" = ( /obj/structure/lattice, /turf/space, -/area/space/nearstation) +/area/space/nearstation/centcom) "sQk" = ( /obj/structure/chair/sofa/bench/left{ dir = 1 diff --git a/code/__DEFINES/is_helpers.dm b/code/__DEFINES/is_helpers.dm index cab2662a7ec65..602c4e261a857 100644 --- a/code/__DEFINES/is_helpers.dm +++ b/code/__DEFINES/is_helpers.dm @@ -133,3 +133,5 @@ GLOBAL_LIST_INIT(turfs_pass_meteor, typecacheof(list( ))) #define ispassmeteorturf(A) (is_type_in_typecache(A, GLOB.turfs_pass_meteor)) + +#define is_screen_atom(A) istype(A, /atom/movable/screen) diff --git a/code/__DEFINES/reagents_defines.dm b/code/__DEFINES/reagents_defines.dm index 14f796da040db..7dfe52837b158 100644 --- a/code/__DEFINES/reagents_defines.dm +++ b/code/__DEFINES/reagents_defines.dm @@ -29,3 +29,6 @@ #define SYRINGE_DRAW 0 #define SYRINGE_INJECT 1 #define SYRINGE_BROKEN 2 + +/// Like O- blood but doesn't contribute to blood_volume or vampire nutrition +#define BLOOD_TYPE_FAKE_BLOOD "Vh Null" diff --git a/code/__DEFINES/status_effects.dm b/code/__DEFINES/status_effects.dm index d5d3a6f264630..4f185e0f70a42 100644 --- a/code/__DEFINES/status_effects.dm +++ b/code/__DEFINES/status_effects.dm @@ -112,6 +112,7 @@ #define STATUS_EFFECT_MAGIC_DISGUISE /datum/status_effect/magic_disguise +#define STATUS_EFFECT_PEPPERSPRAYED /datum/status_effect/pepper_spray //#define STATUS_EFFECT_NECROPOLIS_CURSE /datum/status_effect/necropolis_curse //#define CURSE_BLINDING 1 //makes the edges of the target's screen obscured diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index ce60b238e6123..e4e1b7930b5a3 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -345,14 +345,6 @@ return candidates -/proc/ScreenText(obj/O, maptext="", screen_loc="CENTER-7,CENTER-7", maptext_height=480, maptext_width=480) - if(!isobj(O)) O = new /obj/screen/text() - O.maptext = maptext - O.maptext_height = maptext_height - O.maptext_width = maptext_width - O.screen_loc = screen_loc - return O - /proc/remove_images_from_clients(image/I, list/show_to) for(var/client/C in show_to) C.images -= I diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 2389b37031e74..9191e1df7adbb 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -744,7 +744,8 @@ Returns 1 if the chain up to the area contains the given typepath atoms += A return atoms -/datum/coords //Simple datum for storing coordinates. +/// Simple datum for storing coordinates. +/datum/coords var/x_pos var/y_pos var/z_pos diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 91e8893690376..4369d535fce4a 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -463,23 +463,23 @@ else direction = WEST dir = direction -/obj/screen/click_catcher +/atom/movable/screen/click_catcher icon = 'icons/mob/screen_gen.dmi' icon_state = "catcher" plane = CLICKCATCHER_PLANE mouse_opacity = MOUSE_OPACITY_OPAQUE screen_loc = "CENTER" -/obj/screen/click_catcher/MouseEntered(location, control, params) +/atom/movable/screen/click_catcher/MouseEntered(location, control, params) return -/obj/screen/click_catcher/MouseExited(location, control, params) +/atom/movable/screen/click_catcher/MouseExited(location, control, params) return #define MAX_SAFE_BYOND_ICON_SCALE_TILES (MAX_SAFE_BYOND_ICON_SCALE_PX / world.icon_size) #define MAX_SAFE_BYOND_ICON_SCALE_PX (33 * 32) //Not using world.icon_size on purpose. -/obj/screen/click_catcher/proc/UpdateGreed(view_size_x = 15, view_size_y = 15) +/atom/movable/screen/click_catcher/proc/UpdateGreed(view_size_x = 15, view_size_y = 15) var/icon/newicon = icon('icons/mob/screen_gen.dmi', "catcher") var/ox = min(MAX_SAFE_BYOND_ICON_SCALE_TILES, view_size_x) var/oy = min(MAX_SAFE_BYOND_ICON_SCALE_TILES, view_size_y) @@ -494,7 +494,7 @@ M.Scale(px/sx, py/sy) transform = M -/obj/screen/click_catcher/Click(location, control, params) +/atom/movable/screen/click_catcher/Click(location, control, params) var/list/modifiers = params2list(params) if(modifiers["middle"] && iscarbon(usr)) var/mob/living/carbon/C = usr diff --git a/code/_onclick/drag_drop.dm b/code/_onclick/drag_drop.dm index 5d7d41143320e..420e9d4d9fa76 100644 --- a/code/_onclick/drag_drop.dm +++ b/code/_onclick/drag_drop.dm @@ -28,7 +28,7 @@ FALSE if not return var/lagging = could_be_click_lag() drag_start = 0 - if(!(istype(over, /obj/screen) || (loc && loc == over.loc))) + if(!(is_screen_atom(over) || (loc && loc == over.loc))) if(!Adjacent(usr) || !over.Adjacent(usr)) // should stop you from dragging through windows if(lagging) usr.ClickOn(src, params) diff --git a/code/_onclick/hud/action_button.dm b/code/_onclick/hud/action_button.dm index 2ff53932b0ce7..3f8812e936867 100644 --- a/code/_onclick/hud/action_button.dm +++ b/code/_onclick/hud/action_button.dm @@ -1,4 +1,4 @@ -/obj/screen/movable/action_button +/atom/movable/screen/movable/action_button desc = "CTRL-Shift click on this button to bind it to a hotkey." var/datum/action/linked_action var/actiontooltipstyle = "" @@ -6,7 +6,7 @@ var/ordered = TRUE var/datum/keybinding/mob/trigger_action_button/linked_keybind -/obj/screen/movable/action_button/MouseDrop(over_object) +/atom/movable/screen/movable/action_button/MouseDrop(over_object) if(locked && could_be_click_lag()) // in case something bad happend and game realised we dragged our ability instead of pressing it Click() drag_start = 0 @@ -16,8 +16,8 @@ to_chat(usr, "<span class='warning'>Action button \"[name]\" is locked, unlock it first.</span>") closeToolTip(usr) return - if((istype(over_object, /obj/screen/movable/action_button) && !istype(over_object, /obj/screen/movable/action_button/hide_toggle))) - var/obj/screen/movable/action_button/B = over_object + if((istype(over_object, /atom/movable/screen/movable/action_button) && !istype(over_object, /atom/movable/screen/movable/action_button/hide_toggle))) + var/atom/movable/screen/movable/action_button/B = over_object var/list/actions = usr.actions actions.Swap(actions.Find(linked_action), actions.Find(B.linked_action)) moved = FALSE @@ -26,13 +26,13 @@ B.ordered = TRUE closeToolTip(usr) usr.update_action_buttons() - else if(istype(over_object, /obj/screen/movable/action_button/hide_toggle)) + else if(istype(over_object, /atom/movable/screen/movable/action_button/hide_toggle)) closeToolTip(usr) else closeToolTip(usr) return ..() -/obj/screen/movable/action_button/Click(location,control,params) +/atom/movable/screen/movable/action_button/Click(location, control, params) var/list/modifiers = params2list(params) if(modifiers["ctrl"] && modifiers["shift"]) INVOKE_ASYNC(src, PROC_REF(set_to_keybind), usr) @@ -63,7 +63,7 @@ animate(src, transform = matrix(), time = 0.4 SECONDS, alpha = 255) return TRUE -/obj/screen/movable/action_button/proc/set_to_keybind(mob/user) +/atom/movable/screen/movable/action_button/proc/set_to_keybind(mob/user) var/keybind_to_set_to = uppertext(input(user, "What keybind do you want to set this action button to?") as text) if(keybind_to_set_to) if(linked_keybind) @@ -78,10 +78,10 @@ clean_up_keybinds(user) to_chat(user, "<span class='info'>Your active keybinding on [src] has been cleared.</span>") -/obj/screen/movable/action_button/AltClick(mob/user) +/atom/movable/screen/movable/action_button/AltClick(mob/user) return linked_action.AltTrigger() -/obj/screen/movable/action_button/proc/clean_up_keybinds(mob/owner) +/atom/movable/screen/movable/action_button/proc/clean_up_keybinds(mob/owner) if(linked_keybind) owner.client.active_keybindings[linked_keybind.binded_to] -= (linked_keybind) if(!length(owner.client.active_keybindings[linked_keybind.binded_to])) @@ -90,21 +90,21 @@ QDEL_NULL(linked_keybind) //Hide/Show Action Buttons ... Button -/obj/screen/movable/action_button/hide_toggle +/atom/movable/screen/movable/action_button/hide_toggle name = "Hide Buttons" desc = "Shift-click any button to reset its position, and Control-click it to lock/unlock its position. Alt-click this button to reset all buttons to their default positions." icon = 'icons/mob/actions/actions.dmi' icon_state = "bg_default" var/hidden = FALSE -/obj/screen/movable/action_button/hide_toggle/MouseDrop(over_object) - if(istype(over_object, /obj/screen/movable/action_button)) +/atom/movable/screen/movable/action_button/hide_toggle/MouseDrop(over_object) + if(istype(over_object, /atom/movable/screen/movable/action_button)) closeToolTip(usr) else closeToolTip(usr) return ..() -/obj/screen/movable/action_button/hide_toggle/Click(location,control,params) +/atom/movable/screen/movable/action_button/hide_toggle/Click(location, control, params) var/list/modifiers = params2list(params) if(modifiers["alt"]) @@ -121,17 +121,17 @@ update_icon(UPDATE_OVERLAYS) usr.update_action_buttons() -/obj/screen/movable/action_button/hide_toggle/AltClick(mob/user) +/atom/movable/screen/movable/action_button/hide_toggle/AltClick(mob/user) for(var/V in user.actions) var/datum/action/A = V - var/obj/screen/movable/action_button/B = A.button + var/atom/movable/screen/movable/action_button/B = A.button B.moved = FALSE if(moved) moved = FALSE user.update_action_buttons(TRUE) to_chat(user, "<span class='notice'>Action button positions have been reset.</span>") -/obj/screen/movable/action_button/hide_toggle/proc/InitialiseIcon(mob/living/user) +/atom/movable/screen/movable/action_button/hide_toggle/proc/InitialiseIcon(mob/living/user) if(isalien(user)) icon = 'icons/mob/actions/actions.dmi' icon_state = "bg_alien" @@ -146,13 +146,13 @@ color = user.client.prefs.UI_style_color update_icon(UPDATE_OVERLAYS) -/obj/screen/movable/action_button/hide_toggle/update_overlays() +/atom/movable/screen/movable/action_button/hide_toggle/update_overlays() . = ..() var/image/img = image(initial(icon), src, hidden ? "show" : "hide") img.appearance_flags = RESET_COLOR | RESET_ALPHA . += img -/obj/screen/movable/action_button/MouseEntered(location, control, params) +/atom/movable/screen/movable/action_button/MouseEntered(location, control, params) . = ..() if(!QDELETED(src)) if(!linked_keybind) @@ -164,7 +164,7 @@ desc_information = desc_information.Join(" ") openToolTip(usr, src, params, title = name, content = desc_information, theme = actiontooltipstyle) -/obj/screen/movable/action_button/MouseExited() +/atom/movable/screen/movable/action_button/MouseExited() closeToolTip(usr) /mob/proc/update_action_buttons_icon() @@ -192,7 +192,7 @@ A.override_location() // If the action has a location override, call it A.UpdateButtonIcon() - var/obj/screen/movable/action_button/B = A.button + var/atom/movable/screen/movable/action_button/B = A.button if(B.ordered) button_number++ if(!B.moved) @@ -227,7 +227,7 @@ return "WEST[coord_col]:[coord_col_offset],NORTH[coord_row]:-6" -/datum/hud/proc/SetButtonCoords(obj/screen/button,number) +/datum/hud/proc/SetButtonCoords(atom/movable/screen/button,number) var/row = round((number-1)/AB_MAX_COLUMNS) var/col = ((number - 1)%(AB_MAX_COLUMNS)) + 1 var/x_offset = 32*(col-1) + 4 + 2*col diff --git a/code/_onclick/hud/ai_hud.dm b/code/_onclick/hud/ai_hud.dm index 8579060078bf7..918cfa8d432c9 100644 --- a/code/_onclick/hud/ai_hud.dm +++ b/code/_onclick/hud/ai_hud.dm @@ -1,138 +1,138 @@ -/obj/screen/ai +/atom/movable/screen/ai icon = 'icons/mob/screen_ai.dmi' -/obj/screen/ai/aicore +/atom/movable/screen/ai/aicore name = "AI core" icon_state = "ai_core" -/obj/screen/ai/aicore/Click() +/atom/movable/screen/ai/aicore/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.view_core() -/obj/screen/ai/camera_list +/atom/movable/screen/ai/camera_list name = "Show Camera List" icon_state = "camera" -/obj/screen/ai/camera_list/Click() +/atom/movable/screen/ai/camera_list/Click() var/mob/living/silicon/ai/AI = usr var/camera = tgui_input_list(AI, "Choose which camera you want to view", "Cameras", AI.get_camera_list()) AI.ai_camera_list(camera) -/obj/screen/ai/camera_track +/atom/movable/screen/ai/camera_track name = "Track With Camera" icon_state = "track" -/obj/screen/ai/camera_track/Click() +/atom/movable/screen/ai/camera_track/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr var/target_name = tgui_input_list(AI, "Choose a target you want to track", "Tracking", AI.trackable_mobs()) if(target_name) AI.ai_camera_track(target_name) -/obj/screen/ai/camera_light +/atom/movable/screen/ai/camera_light name = "Toggle Camera Light" icon_state = "camera_light" -/obj/screen/ai/camera_light/Click() +/atom/movable/screen/ai/camera_light/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.toggle_camera_light() -/obj/screen/ai/crew_monitor +/atom/movable/screen/ai/crew_monitor name = "Crew Monitoring Console" icon_state = "crew_monitor" -/obj/screen/ai/crew_monitor/Click() +/atom/movable/screen/ai/crew_monitor/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.subsystem_crew_monitor() -/obj/screen/ai/crew_manifest +/atom/movable/screen/ai/crew_manifest name = "Crew Manifest" icon_state = "manifest" -/obj/screen/ai/crew_manifest/Click() +/atom/movable/screen/ai/crew_manifest/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.ai_roster() -/obj/screen/ai/alerts +/atom/movable/screen/ai/alerts name = "Show Alerts" icon_state = "alerts" -/obj/screen/ai/alerts/Click() +/atom/movable/screen/ai/alerts/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.ai_alerts() -/obj/screen/ai/announcement +/atom/movable/screen/ai/announcement name = "Make Announcement" icon_state = "announcement" -/obj/screen/ai/announcement/Click() +/atom/movable/screen/ai/announcement/Click() var/mob/living/silicon/ai/AI = usr AI.announcement() -/obj/screen/ai/call_shuttle +/atom/movable/screen/ai/call_shuttle name = "Call Emergency Shuttle" icon_state = "call_shuttle" -/obj/screen/ai/call_shuttle/Click() +/atom/movable/screen/ai/call_shuttle/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.ai_call_shuttle() -/obj/screen/ai/state_laws +/atom/movable/screen/ai/state_laws name = "Law Manager" icon_state = "state_laws" -/obj/screen/ai/state_laws/Click() +/atom/movable/screen/ai/state_laws/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.subsystem_law_manager() -/obj/screen/ai/pda_msg_send +/atom/movable/screen/ai/pda_msg_send name = "PDA - Send Message" icon_state = "pda_send" -/obj/screen/ai/pda_msg_send/Click() +/atom/movable/screen/ai/pda_msg_send/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiPDA.cmd_send_pdamesg() -/obj/screen/ai/pda_msg_show +/atom/movable/screen/ai/pda_msg_show name = "PDA - Show Message Log" icon_state = "pda_receive" -/obj/screen/ai/pda_msg_show/Click() +/atom/movable/screen/ai/pda_msg_show/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiPDA.cmd_show_message_log() -/obj/screen/ai/image_take +/atom/movable/screen/ai/image_take name = "Take Image" icon_state = "take_picture" -/obj/screen/ai/image_take/Click() +/atom/movable/screen/ai/image_take/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiCamera.toggle_camera_mode() -/obj/screen/ai/image_view +/atom/movable/screen/ai/image_view name = "View Images" icon_state = "view_images" -/obj/screen/ai/image_view/Click() +/atom/movable/screen/ai/image_view/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.aiCamera.viewpictures() -/obj/screen/ai/sensors +/atom/movable/screen/ai/sensors name = "Toggle Sensor Augmentation" icon_state = "ai_sensor" -/obj/screen/ai/sensors/Click() +/atom/movable/screen/ai/sensors/Click() if(isAI(usr)) var/mob/living/silicon/ai/AI = usr AI.sensor_mode() @@ -147,89 +147,89 @@ /datum/hud/ai/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_borg_lanugage_menu static_inventory += using //AI core - using = new /obj/screen/ai/aicore() + using = new /atom/movable/screen/ai/aicore() using.screen_loc = ui_ai_core static_inventory += using //Camera list - using = new /obj/screen/ai/camera_list() + using = new /atom/movable/screen/ai/camera_list() using.screen_loc = ui_ai_camera_list static_inventory += using //Track - using = new /obj/screen/ai/camera_track() + using = new /atom/movable/screen/ai/camera_track() using.screen_loc = ui_ai_track_with_camera static_inventory += using //Camera light - using = new /obj/screen/ai/camera_light() + using = new /atom/movable/screen/ai/camera_light() using.screen_loc = ui_ai_camera_light static_inventory += using //Crew Monitorting - using = new /obj/screen/ai/crew_monitor() + using = new /atom/movable/screen/ai/crew_monitor() using.screen_loc = ui_ai_crew_monitor static_inventory += using //Crew Manifest - using = new /obj/screen/ai/crew_manifest() + using = new /atom/movable/screen/ai/crew_manifest() using.screen_loc = ui_ai_crew_manifest static_inventory += using //Alerts - using = new /obj/screen/ai/alerts() + using = new /atom/movable/screen/ai/alerts() using.screen_loc = ui_ai_alerts static_inventory += using //Announcement - using = new /obj/screen/ai/announcement() + using = new /atom/movable/screen/ai/announcement() using.screen_loc = ui_ai_announcement static_inventory += using //Shuttle - using = new /obj/screen/ai/call_shuttle() + using = new /atom/movable/screen/ai/call_shuttle() using.screen_loc = ui_ai_shuttle static_inventory += using //Laws - using = new /obj/screen/ai/state_laws() + using = new /atom/movable/screen/ai/state_laws() using.screen_loc = ui_ai_state_laws static_inventory += using //PDA message - using = new /obj/screen/ai/pda_msg_send() + using = new /atom/movable/screen/ai/pda_msg_send() using.screen_loc = ui_ai_pda_send static_inventory += using //PDA log - using = new /obj/screen/ai/pda_msg_show() + using = new /atom/movable/screen/ai/pda_msg_show() using.screen_loc = ui_ai_pda_log static_inventory += using //Take image - using = new /obj/screen/ai/image_take() + using = new /atom/movable/screen/ai/image_take() using.screen_loc = ui_ai_take_picture static_inventory += using //View images - using = new /obj/screen/ai/image_view() + using = new /atom/movable/screen/ai/image_view() using.screen_loc = ui_ai_view_images static_inventory += using //Medical/Security sensors - using = new /obj/screen/ai/sensors() + using = new /atom/movable/screen/ai/sensors() using.screen_loc = ui_ai_sensor static_inventory += using //Intent - using = new /obj/screen/act_intent/robot/AI() + using = new /atom/movable/screen/act_intent/robot/AI() using.icon_state = mymob.a_intent static_inventory += using action_intent = using diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 5385f46078ccd..66e7af873a3e1 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -21,7 +21,7 @@ if(!category) return - var/obj/screen/alert/alert = LAZYACCESS(alerts, category) + var/atom/movable/screen/alert/alert = LAZYACCESS(alerts, category) if(alert) if(alert.override_alerts) return 0 @@ -75,14 +75,14 @@ var/timeout = timeout_override || alert.timeout if(timeout) - addtimer(CALLBACK(alert, TYPE_PROC_REF(/obj/screen/alert, do_timeout), src, category), timeout) + addtimer(CALLBACK(alert, TYPE_PROC_REF(/atom/movable/screen/alert, do_timeout), src, category), timeout) alert.timeout = world.time + timeout - world.tick_lag return alert // Proc to clear an existing alert. /mob/proc/clear_alert(category, clear_override = FALSE) - var/obj/screen/alert/alert = LAZYACCESS(alerts, category) + var/atom/movable/screen/alert/alert = LAZYACCESS(alerts, category) if(!alert) return 0 if(alert.override_alerts && !clear_override) @@ -94,7 +94,7 @@ client.screen -= alert qdel(alert) -/obj/screen/alert +/atom/movable/screen/alert icon = 'icons/mob/screen_alert.dmi' icon_state = "default" name = "Alert" @@ -105,16 +105,16 @@ var/alerttooltipstyle = "" var/override_alerts = FALSE //If it is overriding other alerts of the same type -/obj/screen/alert/MouseEntered(location,control,params) +/atom/movable/screen/alert/MouseEntered(location, control, params) . = ..() openToolTip(usr, src, params, title = name, content = desc, theme = alerttooltipstyle) -/obj/screen/alert/MouseExited() +/atom/movable/screen/alert/MouseExited() closeToolTip(usr) return ..() -/obj/screen/alert/proc/do_timeout(mob/M, category) +/atom/movable/screen/alert/proc/do_timeout(mob/M, category) if(!M || !M.alerts) return @@ -122,42 +122,42 @@ M.clear_alert(category) //Gas alerts -/obj/screen/alert/not_enough_oxy +/atom/movable/screen/alert/not_enough_oxy name = "Choking (No O2)" desc = "You're not getting enough oxygen. Find some good air before you pass out! The box in your backpack has an oxygen tank and breath mask in it." icon_state = "not_enough_oxy" -/obj/screen/alert/too_much_oxy +/atom/movable/screen/alert/too_much_oxy name = "Choking (O2)" desc = "There's too much oxygen in the air, and you're breathing it in! Find some good air before you pass out!" icon_state = "too_much_oxy" -/obj/screen/alert/not_enough_nitro +/atom/movable/screen/alert/not_enough_nitro name = "Choking (No N2)" desc = "You're not getting enough nitrogen. Find some good air before you pass out!" icon_state = "not_enough_nitro" -/obj/screen/alert/too_much_nitro +/atom/movable/screen/alert/too_much_nitro name = "Choking (N2)" desc = "There's too much nitrogen in the air, and you're breathing it in! Find some good air before you pass out!" icon_state = "too_much_nitro" -/obj/screen/alert/not_enough_co2 +/atom/movable/screen/alert/not_enough_co2 name = "Choking (No CO2)" desc = "You're not getting enough carbon dioxide. Find some good air before you pass out!" icon_state = "not_enough_co2" -/obj/screen/alert/too_much_co2 +/atom/movable/screen/alert/too_much_co2 name = "Choking (CO2)" desc = "There's too much carbon dioxide in the air, and you're breathing it in! Find some good air before you pass out!" icon_state = "too_much_co2" -/obj/screen/alert/not_enough_tox +/atom/movable/screen/alert/not_enough_tox name = "Choking (No Plasma)" desc = "You're not getting enough plasma. Find some good air before you pass out!" icon_state = "not_enough_tox" -/obj/screen/alert/too_much_tox +/atom/movable/screen/alert/too_much_tox name = "Choking (Plasma)" desc = "There's highly flammable, toxic plasma in the air and you're breathing it in. Find some fresh air. The box in your backpack has an oxygen tank and gas mask in it." icon_state = "too_much_tox" @@ -165,161 +165,161 @@ // Hunger alerts -/obj/screen/alert/hunger +/atom/movable/screen/alert/hunger icon = 'icons/mob/screen_hunger.dmi' -/obj/screen/alert/hunger/fat +/atom/movable/screen/alert/hunger/fat name = "Fat" desc = "You ate too much food, lardass. Run around the station and lose some weight." icon_state = "fat" -/obj/screen/alert/hunger/full +/atom/movable/screen/alert/hunger/full name = "Full" desc = "You feel full and satisfied, but you shouldn't eat much more." icon_state = "full" -/obj/screen/alert/hunger/well_fed +/atom/movable/screen/alert/hunger/well_fed name = "Well Fed" desc = "You feel quite satisfied, but you may be able to eat a bit more." icon_state = "well_fed" -/obj/screen/alert/hunger/fed +/atom/movable/screen/alert/hunger/fed name = "Fed" desc = "You feel moderately satisfied, but a bit more food may not hurt." icon_state = "fed" -/obj/screen/alert/hunger/hungry +/atom/movable/screen/alert/hunger/hungry name = "Hungry" desc = "Some food would be good right about now." icon_state = "hungry" -/obj/screen/alert/hunger/starving +/atom/movable/screen/alert/hunger/starving name = "Starving" desc = "You're severely malnourished. The hunger pains make moving around a chore." icon_state = "starving" /// Machine "hunger" -/obj/screen/alert/hunger/fat/machine +/atom/movable/screen/alert/hunger/fat/machine name = "Over Charged" desc = "Your cell has excessive charge due to electrical shocks. Run around the station and spend some energy." -/obj/screen/alert/hunger/full/machine +/atom/movable/screen/alert/hunger/full/machine name = "Full Charge" desc = "Your cell is at full charge. Might want to give APCs some space." -/obj/screen/alert/hunger/well_fed/machine +/atom/movable/screen/alert/hunger/well_fed/machine name = "High Charge" desc = "You're almost all charged, but could top up a bit more." -/obj/screen/alert/hunger/fed/machine +/atom/movable/screen/alert/hunger/fed/machine name = "Half Charge" desc = "You feel moderately charged, but a bit more juice couldn't hurt." -/obj/screen/alert/hunger/hungry/machine +/atom/movable/screen/alert/hunger/hungry/machine name = "Low Charge" desc = "Could use a little charging right about now." -/obj/screen/alert/hunger/starving/machine +/atom/movable/screen/alert/hunger/starving/machine name = "Nearly Discharged" desc = "You're almost drained. The low power makes moving around a chore." // End of Machine "hunger" ///Vampire "hunger" -/obj/screen/alert/hunger/fat/vampire +/atom/movable/screen/alert/hunger/fat/vampire desc = "You somehow drank too much blood, lardass. Run around the station and lose some weight." -/obj/screen/alert/hunger/full/vampire +/atom/movable/screen/alert/hunger/full/vampire desc = "You feel full and satisfied, but you know you will thirst for more blood soon..." -/obj/screen/alert/hunger/well_fed/vampire +/atom/movable/screen/alert/hunger/well_fed/vampire desc = "You feel quite satisfied, but you could do with a bit more blood." -/obj/screen/alert/hunger/fed/vampire +/atom/movable/screen/alert/hunger/fed/vampire desc = "You feel moderately satisfied, but a bit more blood wouldn't hurt." -/obj/screen/alert/hunger/hungry/vampire +/atom/movable/screen/alert/hunger/hungry/vampire desc = "You currently thirst for blood." -/obj/screen/alert/hunger/starving/vampire +/atom/movable/screen/alert/hunger/starving/vampire desc = "You're severely thirsty. The thirst pains make moving around a chore." //End of Vampire "hunger" -/obj/screen/alert/hot +/atom/movable/screen/alert/hot name = "Too Hot" desc = "You're flaming hot! Get somewhere cooler and take off any insulating clothing like a fire suit." icon_state = "hot" -/obj/screen/alert/hot/robot +/atom/movable/screen/alert/hot/robot desc = "The air around you is too hot for a humanoid. Be careful to avoid exposing them to this environment." -/obj/screen/alert/cold +/atom/movable/screen/alert/cold name = "Too Cold" desc = "You're freezing cold! Get somewhere warmer and take off any insulating clothing like a space suit." icon_state = "cold" -/obj/screen/alert/cold/drask +/atom/movable/screen/alert/cold/drask name = "Cold" desc = "You're breathing supercooled gas! It's stimulating your metabolism to regenerate damaged tissue." -/obj/screen/alert/cold/robot +/atom/movable/screen/alert/cold/robot desc = "The air around you is too cold for a humanoid. Be careful to avoid exposing them to this environment." -/obj/screen/alert/lowpressure +/atom/movable/screen/alert/lowpressure name = "Low Pressure" desc = "The air around you is hazardously thin. A space suit would protect you." icon_state = "lowpressure" -/obj/screen/alert/highpressure +/atom/movable/screen/alert/highpressure name = "High Pressure" desc = "The air around you is hazardously thick. A fire suit would protect you." icon_state = "highpressure" -/obj/screen/alert/lightexposure +/atom/movable/screen/alert/lightexposure name = "Light Exposure" desc = "You're exposed to light." icon_state = "lightexposure" -/obj/screen/alert/nolight +/atom/movable/screen/alert/nolight name = "No Light" desc = "You're not exposed to any light." icon_state = "nolight" -/obj/screen/alert/blind +/atom/movable/screen/alert/blind name = "Blind" desc = "You can't see! This may be caused by a genetic defect, eye trauma, being unconscious, \ or something covering your eyes." icon_state = "blind" -/obj/screen/alert/high +/atom/movable/screen/alert/high name = "High" desc = "Whoa man, you're tripping balls! Careful you don't get addicted... if you aren't already." icon_state = "high" -/obj/screen/alert/drunk +/atom/movable/screen/alert/drunk name = "Drunk" desc = "All that alcohol you've been drinking is impairing your speech, motor skills, and mental cognition." icon_state = "drunk" -/obj/screen/alert/embeddedobject +/atom/movable/screen/alert/embeddedobject name = "Embedded Object" desc = "Something got lodged into your flesh and is causing major bleeding. It might fall out with time, but surgery is the safest way. \ If you're feeling frisky, click yourself in help intent to pull the object out." icon_state = "embeddedobject" -/obj/screen/alert/embeddedobject/Click() +/atom/movable/screen/alert/embeddedobject/Click() if(isliving(usr)) var/mob/living/carbon/human/M = usr return M.help_shake_act(M) -/obj/screen/alert/asleep +/atom/movable/screen/alert/asleep name = "Asleep" desc = "You've fallen asleep. Wait a bit and you should wake up. Unless you don't, considering how helpless you are." icon_state = "asleep" -/obj/screen/alert/weightless +/atom/movable/screen/alert/weightless name = "Weightless" desc = "Gravity has ceased affecting you, and you're floating around aimlessly. You'll need something large and heavy, like a \ wall or lattice, to push yourself off if you want to move. A jetpack would enable free range of motion. A pair of \ @@ -327,48 +327,48 @@ magboots would let you walk around normally on the floor. Barring those, you can or shoot a gun to move around via Newton's 3rd Law of Motion." icon_state = "weightless" -/obj/screen/alert/fire +/atom/movable/screen/alert/fire name = "On Fire" desc = "You're on fire. Stop, drop and roll to put the fire out or move to a vacuum area." icon_state = "fire" -/obj/screen/alert/fire/Click() +/atom/movable/screen/alert/fire/Click() if(isliving(usr)) var/mob/living/L = usr return L.resist() -/obj/screen/alert/direction_lock +/atom/movable/screen/alert/direction_lock name = "Direction Lock" desc = "You are facing only one direction, slowing your movement down. Click here to stop the direction lock." icon_state = "direction_lock" -/obj/screen/alert/direction_lock/Click() +/atom/movable/screen/alert/direction_lock/Click() if(isliving(usr)) var/mob/living/L = usr return L.clear_forced_look() //Constructs -/obj/screen/alert/holy_fire +/atom/movable/screen/alert/holy_fire name = "Holy Fire" desc = "Your body is crumbling from the holy energies. Get out." icon_state = "fire" //ALIENS -/obj/screen/alert/alien_tox +/atom/movable/screen/alert/alien_tox name = "Plasma" desc = "There's flammable plasma in the air. If it lights up, you'll be toast." icon_state = "alien_tox" alerttooltipstyle = "alien" -/obj/screen/alert/alien_fire +/atom/movable/screen/alert/alien_fire // This alert is temporarily gonna be thrown for all hot air but one day it will be used for literally being on fire name = "Too Hot" desc = "It's too hot! Flee to space or at least away from the flames. Standing on weeds will heal you." icon_state = "alien_fire" alerttooltipstyle = "alien" -/obj/screen/alert/alien_vulnerable +/atom/movable/screen/alert/alien_vulnerable name = "Severed Matriarchy" desc = "Your queen has been killed, you will suffer movement penalties and loss of hivemind. A new queen cannot be made until you recover." icon_state = "alien_noqueen" @@ -376,7 +376,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." //BLOBS -/obj/screen/alert/nofactory +/atom/movable/screen/alert/nofactory name = "No Factory" desc = "You have no factory, and are slowly dying!" icon_state = "blobbernaut_nofactory" @@ -384,39 +384,39 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." //SILICONS -/obj/screen/alert/nocell +/atom/movable/screen/alert/nocell name = "Missing Power Cell" desc = "Unit has no power cell. No modules available until a power cell is reinstalled. Robotics may provide assistance." icon_state = "nocell" -/obj/screen/alert/emptycell +/atom/movable/screen/alert/emptycell name = "Out of Power" desc = "Unit's power cell has no charge remaining. No modules available until power cell is recharged. \ Recharging stations are available in robotics, the dormitory bathrooms, and the AI satellite." icon_state = "emptycell" -/obj/screen/alert/lowcell +/atom/movable/screen/alert/lowcell name = "Low Charge" desc = "Unit's power cell is running low. Recharging stations are available in robotics, the dormitory bathrooms, and the AI satellite." icon_state = "lowcell" //Diona Nymph -/obj/screen/alert/nymph +/atom/movable/screen/alert/nymph name = "Gestalt merge" desc = "You have merged with a diona gestalt and are now part of it's biomass. You can still wiggle yourself free though." -/obj/screen/alert/nymph/Click() +/atom/movable/screen/alert/nymph/Click() if(!usr || !usr.client) return if(isnymph(usr)) var/mob/living/simple_animal/diona/D = usr return D.resist() -/obj/screen/alert/gestalt +/atom/movable/screen/alert/gestalt name = "Merged nymph" desc = "You have merged with one or more diona nymphs. Click here to drop it (or one of them)." -/obj/screen/alert/gestalt/Click() +/atom/movable/screen/alert/gestalt/Click() if(!usr || !usr.client) return @@ -433,25 +433,25 @@ Recharging stations are available in robotics, the dormitory bathrooms, and the D.split(TRUE) //Need to cover all use cases - emag, illegal upgrade module, malf AI hack, traitor cyborg -/obj/screen/alert/hacked +/atom/movable/screen/alert/hacked name = "Hacked" desc = "Hazardous non-standard equipment detected. Please ensure any usage of this equipment is in line with unit's laws, if any." icon_state = "hacked" -/obj/screen/alert/locked +/atom/movable/screen/alert/locked name = "Locked Down" desc = "Unit has been remotely locked down. Usage of a Robotics Control Console like the one in the Research Director's \ office by your AI master or any qualified human may resolve this matter. Robotics may provide further assistance if necessary." icon_state = "locked" -/obj/screen/alert/newlaw +/atom/movable/screen/alert/newlaw name = "Law Update" desc = "Laws have potentially been uploaded to or removed from this unit. Please be aware of any changes \ so as to remain in compliance with the most up-to-date laws." icon_state = "newlaw" timeout = 300 -/obj/screen/alert/hackingapc +/atom/movable/screen/alert/hackingapc name = "Hacking APC" desc = "An Area Power Controller is being hacked. When the process is \ complete, you will have exclusive control of it, and you will gain \ @@ -460,11 +460,11 @@ so as to remain in compliance with the most up-to-date laws." timeout = 600 var/atom/target = null -/obj/screen/alert/hackingapc/Destroy() +/atom/movable/screen/alert/hackingapc/Destroy() target = null return ..() -/obj/screen/alert/hackingapc/Click() +/atom/movable/screen/alert/hackingapc/Click() if(!usr || !usr.client) return if(!target) @@ -475,22 +475,22 @@ so as to remain in compliance with the most up-to-date laws." AI.eyeobj.setLoc(T) //MECHS -/obj/screen/alert/low_mech_integrity +/atom/movable/screen/alert/low_mech_integrity name = "Mech Damaged" desc = "Mech integrity is low." icon_state = "low_mech_integrity" -/obj/screen/alert/mech_port_available +/atom/movable/screen/alert/mech_port_available name = "Connect to Port" desc = "Click here to connect to an air port and refill your oxygen!" icon_state = "mech_port" var/obj/machinery/atmospherics/unary/portables_connector/target = null -/obj/screen/alert/mech_port_available/Destroy() +/atom/movable/screen/alert/mech_port_available/Destroy() target = null return ..() -/obj/screen/alert/mech_port_available/Click() +/atom/movable/screen/alert/mech_port_available/Click() if(!usr || !usr.client) return if(!ismecha(usr.loc) || !target) @@ -501,12 +501,12 @@ so as to remain in compliance with the most up-to-date laws." else to_chat(usr, "<span class='notice'>[M] failed to connect to the port.</span>") -/obj/screen/alert/mech_port_disconnect +/atom/movable/screen/alert/mech_port_disconnect name = "Disconnect from Port" desc = "Click here to disconnect from your air port." icon_state = "mech_port_x" -/obj/screen/alert/mech_port_disconnect/Click() +/atom/movable/screen/alert/mech_port_disconnect/Click() if(!usr || !usr.client) return if(!ismecha(usr.loc)) @@ -517,40 +517,40 @@ so as to remain in compliance with the most up-to-date laws." else to_chat(usr, "<span class='notice'>[M] is not connected to a port at the moment.</span>") -/obj/screen/alert/mech_nocell +/atom/movable/screen/alert/mech_nocell name = "Missing Power Cell" desc = "Mech has no power cell." icon_state = "nocell" -/obj/screen/alert/mech_emptycell +/atom/movable/screen/alert/mech_emptycell name = "Out of Power" desc = "Mech is out of power." icon_state = "emptycell" -/obj/screen/alert/mech_lowcell +/atom/movable/screen/alert/mech_lowcell name = "Low Charge" desc = "Mech is running out of power." icon_state = "lowcell" -/obj/screen/alert/mech_maintenance +/atom/movable/screen/alert/mech_maintenance name = "Maintenance Protocols" desc = "Maintenance protocols are currently in effect, most actions disabled." icon_state = "locked" //GUARDIANS -/obj/screen/alert/cancharge +/atom/movable/screen/alert/cancharge name = "Charge Ready" desc = "You are ready to charge at a location!" icon_state = "guardian_charge" alerttooltipstyle = "parasite" -/obj/screen/alert/canstealth +/atom/movable/screen/alert/canstealth name = "Stealth Ready" desc = "You are ready to enter stealth!" icon_state = "guardian_canstealth" alerttooltipstyle = "parasite" -/obj/screen/alert/instealth +/atom/movable/screen/alert/instealth name = "In Stealth" desc = "You are in stealth and your next attack will do bonus damage!" icon_state = "guardian_instealth" @@ -559,32 +559,32 @@ so as to remain in compliance with the most up-to-date laws." //GHOSTS //TODO: expand this system to replace the pollCandidates/CheckAntagonist/"choose quickly"/etc Yes/No messages -/obj/screen/alert/notify_cloning +/atom/movable/screen/alert/notify_cloning name = "Revival" desc = "Someone is trying to revive you. Re-enter your corpse if you want to be revived!" icon_state = "template" timeout = 300 -/obj/screen/alert/notify_cloning/Click() +/atom/movable/screen/alert/notify_cloning/Click() if(!usr || !usr.client) return var/mob/dead/observer/G = usr G.reenter_corpse() -/obj/screen/alert/ghost +/atom/movable/screen/alert/ghost name = "Ghost" desc = "Would you like to ghost? You will be notified when your body is removed from the nest." icon_state = "template" timeout = 5 MINUTES // longer than any infection should be -/obj/screen/alert/ghost/Initialize(mapload) +/atom/movable/screen/alert/ghost/Initialize(mapload) . = ..() var/image/I = image('icons/mob/mob.dmi', icon_state = "ghost", layer = FLOAT_LAYER, dir = SOUTH) I.layer = FLOAT_LAYER I.plane = FLOAT_PLANE overlays += I -/obj/screen/alert/ghost/Click() +/atom/movable/screen/alert/ghost/Click() var/mob/living/carbon/human/infected_user = usr if(!istype(infected_user) || infected_user.stat == DEAD) infected_user.clear_alert("ghost_nest") @@ -595,7 +595,7 @@ so as to remain in compliance with the most up-to-date laws." return infected_user.ghostize(TRUE) -/obj/screen/alert/notify_action +/atom/movable/screen/alert/notify_action name = "Body created" desc = "A body was created. You can enter it." icon_state = "template" @@ -607,7 +607,7 @@ so as to remain in compliance with the most up-to-date laws." var/image/signed_up_overlay // image showing that you're signed up var/datum/candidate_poll/poll // If set, on Click() it'll register the player as a candidate -/obj/screen/alert/notify_action/process() +/atom/movable/screen/alert/notify_action/process() if(show_time_left) var/timeleft = timeout - world.time if(timeleft <= 0) @@ -632,14 +632,14 @@ so as to remain in compliance with the most up-to-date laws." qdel(O) ..() -/obj/screen/alert/notify_action/Destroy() +/atom/movable/screen/alert/notify_action/Destroy() target = null if(signed_up_overlay) overlays -= signed_up_overlay qdel(signed_up_overlay) return ..() -/obj/screen/alert/notify_action/Click() +/atom/movable/screen/alert/notify_action/Click() if(!usr || !usr.client) return var/mob/dead/observer/G = usr @@ -672,7 +672,7 @@ so as to remain in compliance with the most up-to-date laws." return G.ManualFollow(target) -/obj/screen/alert/notify_action/Topic(href, href_list) +/atom/movable/screen/alert/notify_action/Topic(href, href_list) if(!href_list["signup"]) return if(!poll) @@ -684,7 +684,7 @@ so as to remain in compliance with the most up-to-date laws." poll.sign_up(G) update_signed_up_alert(G) -/obj/screen/alert/notify_action/proc/update_signed_up_alert(mob/user) +/atom/movable/screen/alert/notify_action/proc/update_signed_up_alert(mob/user) if(!signed_up_overlay) signed_up_overlay = image('icons/mob/screen_gen.dmi', icon_state = "selector") signed_up_overlay.layer = FLOAT_LAYER @@ -694,7 +694,7 @@ so as to remain in compliance with the most up-to-date laws." else overlays -= signed_up_overlay -/obj/screen/alert/notify_action/proc/display_stacks(stacks = 1) +/atom/movable/screen/alert/notify_action/proc/display_stacks(stacks = 1) if(stacks <= 1) return @@ -712,7 +712,7 @@ so as to remain in compliance with the most up-to-date laws." qdel(O) -/obj/screen/alert/notify_soulstone +/atom/movable/screen/alert/notify_soulstone name = "Soul Stone" desc = "Someone is trying to capture your soul in a soul stone. Click to allow it." icon_state = "template" @@ -720,7 +720,7 @@ so as to remain in compliance with the most up-to-date laws." var/obj/item/soulstone/stone = null var/stoner = null -/obj/screen/alert/notify_soulstone/Click() +/atom/movable/screen/alert/notify_soulstone/Click() if(!usr || !usr.client) return if(stone) @@ -728,39 +728,39 @@ so as to remain in compliance with the most up-to-date laws." impossible for you to get back into the game as your regular character.", "Respawn", list("No", "Yes")) == "Yes") stone?.opt_in = TRUE -/obj/screen/alert/notify_soulstone/Destroy() +/atom/movable/screen/alert/notify_soulstone/Destroy() stone = null return ..() -/obj/screen/alert/notify_mapvote +/atom/movable/screen/alert/notify_mapvote name = "Map Vote" desc = "Vote on which map you would like to play on next!" icon_state = "map_vote" -/obj/screen/alert/notify_mapvote/Click() +/atom/movable/screen/alert/notify_mapvote/Click() usr.client.vote() //OBJECT-BASED -/obj/screen/alert/restrained/buckled +/atom/movable/screen/alert/restrained/buckled name = "Buckled" desc = "You've been buckled to something. Click the alert to unbuckle unless you're handcuffed." icon_state = "buckled" -/obj/screen/alert/restrained/handcuffed +/atom/movable/screen/alert/restrained/handcuffed name = "Handcuffed" desc = "You're handcuffed and can't act. If anyone drags you, you won't be able to move. Click the alert to free yourself." -/obj/screen/alert/restrained/legcuffed +/atom/movable/screen/alert/restrained/legcuffed name = "Legcuffed" desc = "You're legcuffed, which slows you down considerably. Click the alert to free yourself." -/obj/screen/alert/restrained/Click() +/atom/movable/screen/alert/restrained/Click() if(isliving(usr)) var/mob/living/L = usr return L.resist() -/obj/screen/alert/restrained/buckled/Click() +/atom/movable/screen/alert/restrained/buckled/Click() var/mob/living/L = usr if(!istype(L) || !L.can_resist()) return @@ -780,7 +780,7 @@ so as to remain in compliance with the most up-to-date laws." mymob.client.screen -= alerts[alerts[i]] return TRUE for(var/i in 1 to alerts.len) - var/obj/screen/alert/alert = alerts[alerts[i]] + var/atom/movable/screen/alert/alert = alerts[alerts[i]] if(alert.icon_state == "template") if(!icon_pref) icon_pref = ui_style2icon(mymob.client.prefs.UI_style) @@ -802,7 +802,7 @@ so as to remain in compliance with the most up-to-date laws." mymob.client.screen |= alert return TRUE -/obj/screen/alert/Click(location, control, params) +/atom/movable/screen/alert/Click(location, control, params) if(!usr || !usr.client) return var/paramslist = params2list(params) @@ -812,7 +812,7 @@ so as to remain in compliance with the most up-to-date laws." if(master) return usr.client.Click(master, location, control, params) -/obj/screen/alert/Destroy() +/atom/movable/screen/alert/Destroy() severity = 0 master = null screen_loc = "" diff --git a/code/_onclick/hud/alien_hud.dm b/code/_onclick/hud/alien_hud.dm index a541fca8b57d0..c0e4a3ee09795 100644 --- a/code/_onclick/hud/alien_hud.dm +++ b/code/_onclick/hud/alien_hud.dm @@ -1,20 +1,20 @@ -/obj/screen/alien +/atom/movable/screen/alien icon = 'icons/mob/screen_alien.dmi' -/obj/screen/alien/leap +/atom/movable/screen/alien/leap name = "toggle leap" icon_state = "leap_off" -/obj/screen/alien/leap/Click() +/atom/movable/screen/alien/leap/Click() if(isalienadult(usr)) var/mob/living/carbon/alien/humanoid/hunter/AH = usr AH.toggle_leap() -/obj/screen/alien/nightvision +/atom/movable/screen/alien/nightvision name = "toggle night-vision" icon_state = "nightvision1" -/obj/screen/alien/nightvision/Click() +/atom/movable/screen/alien/nightvision/Click() var/mob/living/carbon/alien/humanoid/A = usr A.night_vision_toggle() @@ -32,7 +32,7 @@ update_sight() -/obj/screen/alien/plasma_display +/atom/movable/screen/alien/plasma_display icon = 'icons/mob/screen_gen.dmi' icon_state = "power_display2" name = "plasma stored" @@ -46,20 +46,20 @@ /datum/hud/alien/New(mob/living/carbon/alien/humanoid/owner) ..() - var/obj/screen/using - var/obj/screen/inventory/inv_box + var/atom/movable/screen/using + var/atom/movable/screen/inventory/inv_box - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_alien_language_menu static_inventory += using - using = new /obj/screen/act_intent/alien() + using = new /atom/movable/screen/act_intent/alien() using.icon_state = (mymob.a_intent == "hurt" ? INTENT_HARM : mymob.a_intent) using.screen_loc = ui_acti static_inventory += using action_intent = using - using = new /obj/screen/mov_intent() + using = new /atom/movable/screen/mov_intent() using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") using.screen_loc = ui_movi @@ -67,13 +67,13 @@ move_intent = using if(isalienhunter(mymob)) - mymob.leap_icon = new /obj/screen/alien/leap() + mymob.leap_icon = new /atom/movable/screen/alien/leap() mymob.leap_icon.icon = 'icons/mob/screen_alien.dmi' mymob.leap_icon.screen_loc = ui_alien_storage_r static_inventory += mymob.leap_icon //equippable shit - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "r_hand" inv_box.icon = 'icons/mob/screen_alien.dmi' inv_box.icon_state = "hand_r" @@ -81,7 +81,7 @@ inv_box.slot_id = SLOT_HUD_RIGHT_HAND static_inventory += inv_box - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "l_hand" inv_box.icon = 'icons/mob/screen_alien.dmi' inv_box.icon_state = "hand_l" @@ -89,14 +89,14 @@ inv_box.slot_id = SLOT_HUD_LEFT_HAND static_inventory += inv_box - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "hand1" using.screen_loc = ui_swaphand1 static_inventory += using - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "hand2" @@ -105,47 +105,47 @@ //end of equippable shit - using = new /obj/screen/resist() + using = new /atom/movable/screen/resist() using.name = "resist" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "act_resist" using.screen_loc = ui_pull_resist static_inventory += using - using = new /obj/screen/drop() + using = new /atom/movable/screen/drop() using.name = "drop" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "act_drop" using.screen_loc = ui_drop_throw static_inventory += using - mymob.throw_icon = new /obj/screen/throw_catch() + mymob.throw_icon = new /atom/movable/screen/throw_catch() mymob.throw_icon.icon = 'icons/mob/screen_alien.dmi' mymob.throw_icon.screen_loc = ui_drop_throw static_inventory += mymob.throw_icon - mymob.healths = new /obj/screen/healths/alien() + mymob.healths = new /atom/movable/screen/healths/alien() infodisplay += mymob.healths - nightvisionicon = new /obj/screen/alien/nightvision() + nightvisionicon = new /atom/movable/screen/alien/nightvision() infodisplay += nightvisionicon - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_alien.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist hotkeybuttons += mymob.pullin - alien_plasma_display = new /obj/screen/alien/plasma_display() + alien_plasma_display = new /atom/movable/screen/alien/plasma_display() infodisplay += alien_plasma_display - zone_select = new /obj/screen/zone_sel/alien() + zone_select = new /atom/movable/screen/zone_sel/alien() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select - for(var/obj/screen/inventory/inv in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) inv.hud = src inv_slots[inv.slot_id] = inv diff --git a/code/_onclick/hud/alien_larva.dm b/code/_onclick/hud/alien_larva.dm index f97e593d088ec..e911c2bb3960b 100644 --- a/code/_onclick/hud/alien_larva.dm +++ b/code/_onclick/hud/alien_larva.dm @@ -5,37 +5,37 @@ /datum/hud/larva/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/act_intent/alien() + using = new /atom/movable/screen/act_intent/alien() using.icon_state = mymob.a_intent static_inventory += using action_intent = using - using = new /obj/screen/mov_intent() + using = new /atom/movable/screen/mov_intent() using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") static_inventory += using move_intent = using - mymob.healths = new /obj/screen/healths/alien() + mymob.healths = new /atom/movable/screen/healths/alien() infodisplay += mymob.healths - nightvisionicon = new /obj/screen/alien/nightvision() + nightvisionicon = new /atom/movable/screen/alien/nightvision() infodisplay += nightvisionicon - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_alien.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist hotkeybuttons += mymob.pullin - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_alienlarva_language_menu static_inventory += using - zone_select = new /obj/screen/zone_sel/alien() + zone_select = new /atom/movable/screen/zone_sel/alien() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select diff --git a/code/_onclick/hud/blob_overmind.dm b/code/_onclick/hud/blob_overmind.dm index 708978b64bcfe..dfb74955d1b14 100644 --- a/code/_onclick/hud/blob_overmind.dm +++ b/code/_onclick/hud/blob_overmind.dm @@ -2,135 +2,135 @@ if(client && !hud_used) hud_used = new /datum/hud/blob_overmind(src) -/obj/screen/blob +/atom/movable/screen/blob icon = 'icons/mob/blob.dmi' -/obj/screen/blob/MouseEntered(location,control,params) +/atom/movable/screen/blob/MouseEntered(location, control, params) . = ..() openToolTip(usr,src,params,title = name,content = desc, theme = "blob") -/obj/screen/blob/MouseExited() +/atom/movable/screen/blob/MouseExited() closeToolTip(usr) return ..() -/obj/screen/blob/BlobHelp +/atom/movable/screen/blob/BlobHelp icon_state = "ui_help" name = "Blob Help" desc = "Help on playing blob!" -/obj/screen/blob/BlobHelp/Click() +/atom/movable/screen/blob/BlobHelp/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.blob_help() -/obj/screen/blob/JumpToNode +/atom/movable/screen/blob/JumpToNode icon_state = "ui_tonode" name = "Jump to Node" desc = "Moves your camera to a selected blob node." -/obj/screen/blob/JumpToNode/Click() +/atom/movable/screen/blob/JumpToNode/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.jump_to_node() -/obj/screen/blob/JumpToCore +/atom/movable/screen/blob/JumpToCore icon_state = "ui_tocore" name = "Jump to Core" desc = "Moves your camera to your blob core." -/obj/screen/blob/JumpToCore/MouseEntered(location,control,params) +/atom/movable/screen/blob/JumpToCore/MouseEntered(location, control, params) if(hud && hud.mymob && isovermind(hud.mymob)) name = initial(name) desc = initial(desc) return ..() -/obj/screen/blob/JumpToCore/Click() +/atom/movable/screen/blob/JumpToCore/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.transport_core() -/obj/screen/blob/Blobbernaut +/atom/movable/screen/blob/Blobbernaut icon_state = "ui_blobbernaut" name = "Produce Blobbernaut (60)" desc = "Produces a strong, intelligent blobbernaut from a factory blob for 60 resources.<br>The factory blob will be destroyed in the process." -/obj/screen/blob/Blobbernaut/Click() +/atom/movable/screen/blob/Blobbernaut/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_blobbernaut() -/obj/screen/blob/StorageBlob +/atom/movable/screen/blob/StorageBlob icon_state = "ui_storage" name = "Produce Storage Blob (40)" desc = "Produces a storage blob for 40 resources.<br>Storage blobs will raise your max resource cap by 50." -/obj/screen/blob/StorageBlob/Click() +/atom/movable/screen/blob/StorageBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_storage() -/obj/screen/blob/ResourceBlob +/atom/movable/screen/blob/ResourceBlob icon_state = "ui_resource" name = "Produce Resource Blob (40)" desc = "Produces a resource blob for 40 resources.<br>Resource blobs will give you resources every few seconds." -/obj/screen/blob/ResourceBlob/Click() +/atom/movable/screen/blob/ResourceBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_resource() -/obj/screen/blob/NodeBlob +/atom/movable/screen/blob/NodeBlob icon_state = "ui_node" name = "Produce Node Blob (60)" desc = "Produces a node blob for 60 resources.<br>Node blobs will expand and activate nearby resource and factory blobs." -/obj/screen/blob/NodeBlob/Click() +/atom/movable/screen/blob/NodeBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_node() -/obj/screen/blob/FactoryBlob +/atom/movable/screen/blob/FactoryBlob icon_state = "ui_factory" name = "Produce Factory Blob (60)" desc = "Produces a factory blob for 60 resources.<br>Factory blobs will produce spores every few seconds." -/obj/screen/blob/FactoryBlob/Click() +/atom/movable/screen/blob/FactoryBlob/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.create_factory() -/obj/screen/blob/ReadaptChemical +/atom/movable/screen/blob/ReadaptChemical icon_state = "ui_chemswap" name = "Readapt Chemical (50)" desc = "Randomly rerolls your chemical for 50 resources." -/obj/screen/blob/ReadaptChemical/MouseEntered(location,control,params) +/atom/movable/screen/blob/ReadaptChemical/MouseEntered(location, control, params) if(hud && hud.mymob && isovermind(hud.mymob)) name = initial(name) desc = initial(desc) return ..() -/obj/screen/blob/ReadaptChemical/Click() +/atom/movable/screen/blob/ReadaptChemical/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.chemical_reroll() -/obj/screen/blob/RelocateCore +/atom/movable/screen/blob/RelocateCore icon_state = "ui_swap" name = "Relocate Core (80)" desc = "Swaps a node and your core for 80 resources." -/obj/screen/blob/RelocateCore/Click() +/atom/movable/screen/blob/RelocateCore/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.relocate_core() -/obj/screen/blob/Split +/atom/movable/screen/blob/Split icon_state = "ui_split" name = "Split consciousness (100)" desc = "Creates another Blob Overmind at the targeted node. One use only.<br>Offspring are unable to use this ability." -/obj/screen/blob/Split/Click() +/atom/movable/screen/blob/Split/Click() if(isovermind(usr)) var/mob/camera/blob/B = usr B.split_consciousness() @@ -139,9 +139,9 @@ /datum/hud/blob_overmind/New(mob/user) ..() - var/obj/screen/using + var/atom/movable/screen/using - blobpwrdisplay = new /obj/screen() + blobpwrdisplay = new /atom/movable/screen() blobpwrdisplay.name = "blob power" blobpwrdisplay.icon_state = "block" blobpwrdisplay.screen_loc = ui_health @@ -150,56 +150,56 @@ blobpwrdisplay.plane = ABOVE_HUD_PLANE static_inventory += blobpwrdisplay - blobhealthdisplay = new /obj/screen() + blobhealthdisplay = new /atom/movable/screen() blobhealthdisplay.name = "blob health" blobhealthdisplay.icon_state = "block" blobhealthdisplay.screen_loc = ui_internal static_inventory += blobhealthdisplay - using = new /obj/screen/blob/BlobHelp() + using = new /atom/movable/screen/blob/BlobHelp() using.screen_loc = "WEST:6,NORTH:-3" static_inventory += using - using = new /obj/screen/blob/JumpToNode() + using = new /atom/movable/screen/blob/JumpToNode() using.screen_loc = ui_inventory static_inventory += using - using = new /obj/screen/blob/JumpToCore() + using = new /atom/movable/screen/blob/JumpToCore() using.screen_loc = ui_zonesel using.hud = src static_inventory += using - using = new /obj/screen/blob/Blobbernaut() + using = new /atom/movable/screen/blob/Blobbernaut() using.screen_loc = ui_id static_inventory += using - using = new /obj/screen/blob/StorageBlob() + using = new /atom/movable/screen/blob/StorageBlob() using.screen_loc = ui_belt static_inventory += using - using = new /obj/screen/blob/ResourceBlob() + using = new /atom/movable/screen/blob/ResourceBlob() using.screen_loc = ui_back static_inventory += using - using = new /obj/screen/blob/NodeBlob() + using = new /atom/movable/screen/blob/NodeBlob() using.screen_loc = using.screen_loc = ui_rhand static_inventory += using - using = new /obj/screen/blob/FactoryBlob() + using = new /atom/movable/screen/blob/FactoryBlob() using.screen_loc = using.screen_loc = ui_lhand static_inventory += using - using = new /obj/screen/blob/ReadaptChemical() + using = new /atom/movable/screen/blob/ReadaptChemical() using.screen_loc = ui_storage1 using.hud = src static_inventory += using - using = new /obj/screen/blob/RelocateCore() + using = new /atom/movable/screen/blob/RelocateCore() using.screen_loc = ui_storage2 static_inventory += using var/mob/camera/blob/B = user if(!B.is_offspring) // Checks if the blob is an offspring, to not create split button if it is - using = new /obj/screen/blob/Split() + using = new /atom/movable/screen/blob/Split() using.screen_loc = ui_acti static_inventory += using diff --git a/code/_onclick/hud/bot_hud.dm b/code/_onclick/hud/bot_hud.dm index 7370454bf9628..9a27937a5be63 100644 --- a/code/_onclick/hud/bot_hud.dm +++ b/code/_onclick/hud/bot_hud.dm @@ -1,12 +1,12 @@ -/obj/screen/bot +/atom/movable/screen/bot icon = 'icons/mob/screen_bot.dmi' -/obj/screen/bot/radio +/atom/movable/screen/bot/radio name = "radio" icon_state = "radio" screen_loc = ui_bot_radio -/obj/screen/bot/radio/Click() +/atom/movable/screen/bot/radio/Click() if(isbot(usr)) var/mob/living/simple_animal/bot/B = usr B.Radio.interact(usr) @@ -17,16 +17,16 @@ /datum/hud/bot/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/bot/radio() + using = new /atom/movable/screen/bot/radio() static_inventory += using - mymob.healths = new /obj/screen/healths/bot() + mymob.healths = new /atom/movable/screen/healths/bot() mymob.healths.screen_loc = ui_borg_health infodisplay += mymob.healths - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_bot.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) diff --git a/code/_onclick/hud/constructs_hud.dm b/code/_onclick/hud/constructs_hud.dm index 0c3f9eaf8a440..e2dea64240717 100644 --- a/code/_onclick/hud/constructs_hud.dm +++ b/code/_onclick/hud/constructs_hud.dm @@ -8,7 +8,7 @@ /datum/hud/construct/armoured/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "juggernaut_health0" mymob.healths.name = "health" @@ -21,7 +21,7 @@ /datum/hud/construct/builder/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "artificer_health0" mymob.healths.name = "health" @@ -34,7 +34,7 @@ /datum/hud/construct/wraith/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "wraith_health0" mymob.healths.name = "health" @@ -47,7 +47,7 @@ /datum/hud/construct/harvester/New(mob/owner) ..() - mymob.healths = new /obj/screen() + mymob.healths = new /atom/movable/screen() mymob.healths.icon = 'icons/mob/screen_construct.dmi' mymob.healths.icon_state = "harvester_health0" mymob.healths.name = "health" @@ -56,13 +56,13 @@ /datum/hud/construct/New(mob/owner) ..() - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_construct.dmi' mymob.pullin.icon_state = "pull0" mymob.pullin.name = "pull" mymob.pullin.screen_loc = ui_construct_pull - var/obj/screen/using - using = new /obj/screen/act_intent/simple_animal() + var/atom/movable/screen/using + using = new /atom/movable/screen/act_intent/simple_animal() using.icon_state = mymob.a_intent static_inventory += using action_intent = using diff --git a/code/_onclick/hud/follow_alert.dm b/code/_onclick/hud/follow_alert.dm index d8f95d069864c..b3d0f10c4ad43 100644 --- a/code/_onclick/hud/follow_alert.dm +++ b/code/_onclick/hud/follow_alert.dm @@ -1,4 +1,4 @@ -/obj/screen/alert/augury +/atom/movable/screen/alert/augury name = "Something interesting!" desc = "Click to follow." /// The atom being followed @@ -19,7 +19,7 @@ * * follow_target: The atom to start out following. Can be null, in which case change_targets() should be used at some point. * * alert_overlay_override: If follow_target is provided (or not), use this for the alert image. */ -/obj/screen/alert/augury/Initialize(mapload, atom/movable/follow_target, image/alert_overlay_override) +/atom/movable/screen/alert/augury/Initialize(mapload, atom/movable/follow_target, image/alert_overlay_override) . = ..() src.follow_target = follow_target @@ -37,7 +37,7 @@ alert_overlay_override.plane = FLOAT_PLANE overlays += alert_overlay_override -/obj/screen/alert/augury/Click(location, control, params) +/atom/movable/screen/alert/augury/Click(location, control, params) . = ..() if(!usr || !usr.client || !isobserver(usr)) return @@ -48,7 +48,7 @@ to_chat(usr, "<span class='notice'>You are now auto-following [thing_followed]. Click again to stop.</span>") add_follower(usr) -/obj/screen/alert/augury/Destroy(force) +/atom/movable/screen/alert/augury/Destroy(force) for(var/atom/movable/follower in followers) // in case something was nulled follower.stop_orbit() @@ -68,7 +68,7 @@ /// Executed when the parent is deleted. /// Don't immediately kill ourselves, since it's possible that we might want to move somewhere else /// (for example, after a meteor strike) -/obj/screen/alert/augury/proc/on_following_qdel(atom/movable/A) +/atom/movable/screen/alert/augury/proc/on_following_qdel(atom/movable/A) SIGNAL_HANDLER // COMSIG_PARENT_QDELETING for(var/atom/movable/follower in followers) follower.stop_orbit() @@ -86,7 +86,7 @@ * Arguments: * * next_to - The next atom to follow. */ -/obj/screen/alert/augury/proc/change_targets(atom/movable/next_to) +/atom/movable/screen/alert/augury/proc/change_targets(atom/movable/next_to) // unregister first so we aren't bombarded when changing orbits if(isnull(next_to)) return @@ -100,15 +100,15 @@ RegisterSignal(follow_target, COMSIG_ATOM_ORBIT_STOP, PROC_REF(remove_follower_on_stop_orbit)) -/obj/screen/alert/augury/proc/add_follower(atom/movable/follower) +/atom/movable/screen/alert/augury/proc/add_follower(atom/movable/follower) followers |= follower follower.orbit(follow_target) -/obj/screen/alert/augury/proc/remove_follower(atom/movable/follower) +/atom/movable/screen/alert/augury/proc/remove_follower(atom/movable/follower) followers -= follower follower.stop_orbit() -/obj/screen/alert/augury/proc/get_next_target() +/atom/movable/screen/alert/augury/proc/get_next_target() if(!length(next_targets)) return @@ -121,27 +121,27 @@ return target /// Called when someone stops orbiting our followed object, so they can actually get out of the loop. -/obj/screen/alert/augury/proc/remove_follower_on_stop_orbit(atom/movable/followed, atom/movable/follower) +/atom/movable/screen/alert/augury/proc/remove_follower_on_stop_orbit(atom/movable/followed, atom/movable/follower) SIGNAL_HANDLER // COMSIG_ATOM_ORBIT_STOP if(locateUID(follower.orbiting_uid) != follow_target) remove_follower(follower) // don't try to stop the orbit again /// Meteor alert. /// Appears during a meteor storm and allows for auto-following of debris. -/obj/screen/alert/augury/meteor +/atom/movable/screen/alert/augury/meteor name = "Meteors incoming!" desc = "Click to automatically follow debris, and click again to stop." -/obj/screen/alert/augury/meteor/Initialize(mapload) +/atom/movable/screen/alert/augury/meteor/Initialize(mapload) var/image/meteor_img = image(icon = 'icons/obj/meteor.dmi', icon_state = "flaming") . = ..(mapload, alert_overlay_override = meteor_img) START_PROCESSING(SSfastprocess, src) -/obj/screen/alert/augury/meteor/Destroy(force) +/atom/movable/screen/alert/augury/meteor/Destroy(force) . = ..() STOP_PROCESSING(SSfastprocess, src) -/obj/screen/alert/augury/meteor/process() +/atom/movable/screen/alert/augury/meteor/process() var/overridden = FALSE for(var/obj/effect/meteor/M in GLOB.meteor_list) if(!is_station_level(M.z)) diff --git a/code/_onclick/hud/fullscreen.dm b/code/_onclick/hud/fullscreen.dm index ec6bde573d6ba..e93a0a206bd24 100644 --- a/code/_onclick/hud/fullscreen.dm +++ b/code/_onclick/hud/fullscreen.dm @@ -1,5 +1,5 @@ /mob/proc/overlay_fullscreen(category, type, severity) - var/obj/screen/fullscreen/screen = screens[category] + var/atom/movable/screen/fullscreen/screen = screens[category] if(!screen || screen.type != type) // needs to be recreated clear_fullscreen(category, FALSE) @@ -17,7 +17,7 @@ return screen /mob/proc/clear_fullscreen(category, animated = 10) - var/obj/screen/fullscreen/screen = screens[category] + var/atom/movable/screen/fullscreen/screen = screens[category] if(!screen) return @@ -41,7 +41,7 @@ /datum/hud/proc/reload_fullscreen() if(mymob.client) - var/obj/screen/fullscreen/screen + var/atom/movable/screen/fullscreen/screen var/list/screens = mymob.screens for(var/category in screens) screen = screens[category] @@ -51,7 +51,7 @@ else mymob.client.screen -= screen -/obj/screen/fullscreen +/atom/movable/screen/fullscreen icon = 'icons/mob/screen_full.dmi' icon_state = "default" screen_loc = "CENTER-7,CENTER-7" @@ -62,66 +62,66 @@ var/severity = 0 var/show_when_dead = FALSE -/obj/screen/fullscreen/proc/update_for_view(client_view) +/atom/movable/screen/fullscreen/proc/update_for_view(client_view) if(screen_loc == "CENTER-7,CENTER-7" && view != client_view) var/list/actualview = getviewsize(client_view) view = client_view transform = matrix(actualview[1]/FULLSCREEN_OVERLAY_RESOLUTION_X, 0, 0, 0, actualview[2]/FULLSCREEN_OVERLAY_RESOLUTION_Y, 0) -/obj/screen/fullscreen/proc/should_show_to(mob/mymob) +/atom/movable/screen/fullscreen/proc/should_show_to(mob/mymob) if(!show_when_dead && mymob.stat == DEAD) return FALSE return TRUE -/obj/screen/fullscreen/Destroy() +/atom/movable/screen/fullscreen/Destroy() severity = 0 return ..() -/obj/screen/fullscreen/brute +/atom/movable/screen/fullscreen/brute icon_state = "brutedamageoverlay" layer = UI_DAMAGE_LAYER -/obj/screen/fullscreen/oxy +/atom/movable/screen/fullscreen/oxy icon_state = "oxydamageoverlay" layer = UI_DAMAGE_LAYER -/obj/screen/fullscreen/crit +/atom/movable/screen/fullscreen/crit icon_state = "passage" layer = CRIT_LAYER -/obj/screen/fullscreen/blind +/atom/movable/screen/fullscreen/blind icon_state = "blackimageoverlay" layer = BLIND_LAYER -/obj/screen/fullscreen/impaired +/atom/movable/screen/fullscreen/impaired icon_state = "impairedoverlay" -/obj/screen/fullscreen/payback +/atom/movable/screen/fullscreen/payback icon = 'icons/mob/screen_payback.dmi' icon_state = "payback" show_when_dead = TRUE -/obj/screen/fullscreen/fog +/atom/movable/screen/fullscreen/fog icon = 'icons/mob/screen_fog.dmi' icon_state = "fog" color = "#FF0000" -/obj/screen/fullscreen/flash +/atom/movable/screen/fullscreen/flash icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "flash" -/obj/screen/fullscreen/flash/noise +/atom/movable/screen/fullscreen/flash/noise icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "noise" -/obj/screen/fullscreen/high +/atom/movable/screen/fullscreen/high icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "druggy" -/obj/screen/fullscreen/lighting_backdrop +/atom/movable/screen/fullscreen/lighting_backdrop icon = 'icons/mob/screen_gen.dmi' icon_state = "flash" transform = matrix(200, 0, 0, 0, 200, 0) @@ -130,18 +130,18 @@ show_when_dead = TRUE //Provides darkness to the back of the lighting plane -/obj/screen/fullscreen/lighting_backdrop/lit +/atom/movable/screen/fullscreen/lighting_backdrop/lit invisibility = INVISIBILITY_LIGHTING layer = BACKGROUND_LAYER+21 color = "#000" show_when_dead = TRUE //Provides whiteness in case you don't see lights so everything is still visible -/obj/screen/fullscreen/lighting_backdrop/unlit +/atom/movable/screen/fullscreen/lighting_backdrop/unlit layer = BACKGROUND_LAYER+20 show_when_dead = TRUE -/obj/screen/fullscreen/see_through_darkness +/atom/movable/screen/fullscreen/see_through_darkness icon_state = "nightvision" plane = LIGHTING_PLANE layer = LIGHTING_LAYER @@ -149,7 +149,7 @@ show_when_dead = TRUE /// An effect which tracks the cursor's location on the screen -/obj/screen/fullscreen/cursor_catcher +/atom/movable/screen/fullscreen/cursor_catcher icon_state = "fullscreen_blocker" // Fullscreen semi transparent icon plane = HUD_PLANE mouse_opacity = MOUSE_OPACITY_ICON @@ -167,14 +167,14 @@ var/mouse_params /// Links this up with a mob -/obj/screen/fullscreen/cursor_catcher/proc/assign_to_mob(mob/owner) +/atom/movable/screen/fullscreen/cursor_catcher/proc/assign_to_mob(mob/owner) src.owner = owner view_list = getviewsize(owner.client.view) RegisterSignal(owner, COMSIG_MOVABLE_MOVED, PROC_REF(on_move)) calculate_params() /// Update when the mob we're assigned to has moved -/obj/screen/fullscreen/cursor_catcher/proc/on_move(atom/source, atom/oldloc, dir, forced) +/atom/movable/screen/fullscreen/cursor_catcher/proc/on_move(atom/source, atom/oldloc, dir, forced) SIGNAL_HANDLER if(!given_turf) @@ -184,18 +184,18 @@ given_turf = locate(given_turf.x + x_offset, given_turf.y + y_offset, given_turf.z) -/obj/screen/fullscreen/cursor_catcher/MouseEntered(location, control, params) +/atom/movable/screen/fullscreen/cursor_catcher/MouseEntered(location, control, params) . = ..() MouseMove(location, control, params) if(usr == owner) calculate_params() -/obj/screen/fullscreen/cursor_catcher/MouseMove(location, control, params) +/atom/movable/screen/fullscreen/cursor_catcher/MouseMove(location, control, params) if(usr != owner) return mouse_params = params -/obj/screen/fullscreen/cursor_catcher/proc/calculate_params() +/atom/movable/screen/fullscreen/cursor_catcher/proc/calculate_params() var/list/modifiers = params2list(mouse_params) var/icon_x = text2num(LAZYACCESS(modifiers, "vis-x")) if(isnull(icon_x)) diff --git a/code/_onclick/hud/ghost_hud.dm b/code/_onclick/hud/ghost_hud.dm index ac71b9bf51c64..1ea78ca137187 100644 --- a/code/_onclick/hud/ghost_hud.dm +++ b/code/_onclick/hud/ghost_hud.dm @@ -3,47 +3,47 @@ hud_used = new /datum/hud/ghost(src) SEND_SIGNAL(src, COMSIG_MOB_HUD_CREATED) -/obj/screen/ghost +/atom/movable/screen/ghost icon = 'icons/mob/screen_ghost.dmi' -/obj/screen/ghost/MouseEntered() +/atom/movable/screen/ghost/MouseEntered() . = ..() flick(icon_state + "_anim", src) -/obj/screen/ghost/orbit +/atom/movable/screen/ghost/orbit name = "Orbit" icon_state = "orbit" -/obj/screen/ghost/orbit/Click() +/atom/movable/screen/ghost/orbit/Click() var/mob/dead/observer/G = usr G.follow() -/obj/screen/ghost/reenter_corpse +/atom/movable/screen/ghost/reenter_corpse name = "Re-enter corpse" icon_state = "reenter_corpse" -/obj/screen/ghost/reenter_corpse/Click() +/atom/movable/screen/ghost/reenter_corpse/Click() var/mob/dead/observer/G = usr G.reenter_corpse() -/obj/screen/ghost/teleport +/atom/movable/screen/ghost/teleport name = "Teleport" icon_state = "teleport" -/obj/screen/ghost/teleport/Click() +/atom/movable/screen/ghost/teleport/Click() var/mob/dead/observer/G = usr G.dead_tele() -/obj/screen/ghost/respawn_list +/atom/movable/screen/ghost/respawn_list name = "Ghost spawns" icon = 'icons/mob/screen_midnight.dmi' icon_state = "template" -/obj/screen/ghost/respawn_list/Initialize(mapload) +/atom/movable/screen/ghost/respawn_list/Initialize(mapload) . = ..() update_hidden_state() -/obj/screen/ghost/respawn_list/Click() +/atom/movable/screen/ghost/respawn_list/Click() var/client/C = hud.mymob.client hud.inventory_shown = !hud.inventory_shown if(hud.inventory_shown) @@ -52,7 +52,7 @@ C.screen -= hud.toggleable_inventory update_hidden_state() -/obj/screen/ghost/respawn_list/proc/update_hidden_state() +/atom/movable/screen/ghost/respawn_list/proc/update_hidden_state() var/matrix/M = matrix(transform) M.Turn(-90) @@ -61,19 +61,19 @@ img.transform = M overlays += img -/obj/screen/ghost/respawn_mob +/atom/movable/screen/ghost/respawn_mob name = "Mob spawners" icon_state = "mob_spawner" -/obj/screen/ghost/respawn_mob/Click() +/atom/movable/screen/ghost/respawn_mob/Click() var/mob/dead/observer/G = usr G.open_spawners_menu() -/obj/screen/ghost/respawn_pai +/atom/movable/screen/ghost/respawn_pai name = "Configure pAI" icon_state = "pai" -/obj/screen/ghost/respawn_pai/Click() +/atom/movable/screen/ghost/respawn_pai/Click() var/mob/dead/observer/G = usr if(!GLOB.paiController.check_recruit(G)) to_chat(G, "<span class='warning'>You are not eligible to become a pAI.</span>") @@ -85,34 +85,34 @@ /datum/hud/ghost/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - using = new /obj/screen/ghost/orbit() + using = new /atom/movable/screen/ghost/orbit() using.screen_loc = ui_ghost_orbit static_inventory += using - using = new /obj/screen/ghost/reenter_corpse() + using = new /atom/movable/screen/ghost/reenter_corpse() using.screen_loc = ui_ghost_reenter_corpse static_inventory += using - using = new /obj/screen/ghost/teleport() + using = new /atom/movable/screen/ghost/teleport() using.screen_loc = ui_ghost_teleport static_inventory += using static_inventory += using - using = new /obj/screen/ghost/respawn_list() + using = new /atom/movable/screen/ghost/respawn_list() using.screen_loc = ui_ghost_respawn_list static_inventory += using - using = new /obj/screen/ghost/respawn_mob() + using = new /atom/movable/screen/ghost/respawn_mob() using.screen_loc = ui_ghost_respawn_mob toggleable_inventory += using - using = new /obj/screen/ghost/respawn_pai() + using = new /atom/movable/screen/ghost/respawn_pai() using.screen_loc = ui_ghost_respawn_pai toggleable_inventory += using - for(var/obj/screen/S in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/S in (static_inventory + toggleable_inventory)) S.hud = src /datum/hud/ghost/show_hud() diff --git a/code/_onclick/hud/guardian_hud.dm b/code/_onclick/hud/guardian_hud.dm index d00662f0c76d7..122b2408c5e5f 100644 --- a/code/_onclick/hud/guardian_hud.dm +++ b/code/_onclick/hud/guardian_hud.dm @@ -4,49 +4,49 @@ /datum/hud/guardian/New(mob/owner) ..() - var/obj/screen/using + var/atom/movable/screen/using - guardianhealthdisplay = new /obj/screen/healths/guardian() + guardianhealthdisplay = new /atom/movable/screen/healths/guardian() infodisplay += guardianhealthdisplay - using = new /obj/screen/act_intent/guardian() + using = new /atom/movable/screen/act_intent/guardian() using.icon_state = mymob.a_intent static_inventory += using action_intent = using - using = new /obj/screen/guardian/Manifest() + using = new /atom/movable/screen/guardian/Manifest() using.screen_loc = ui_rhand static_inventory += using - using = new /obj/screen/guardian/Recall() + using = new /atom/movable/screen/guardian/Recall() using.screen_loc = ui_lhand static_inventory += using - using = new /obj/screen/guardian/ToggleMode() + using = new /atom/movable/screen/guardian/ToggleMode() using.screen_loc = ui_storage1 static_inventory += using - using = new /obj/screen/guardian/ToggleLight() + using = new /atom/movable/screen/guardian/ToggleLight() using.screen_loc = ui_inventory static_inventory += using - using = new /obj/screen/guardian/Communicate() + using = new /atom/movable/screen/guardian/Communicate() using.screen_loc = ui_back static_inventory += using //HUD BUTTONS -/obj/screen/guardian +/atom/movable/screen/guardian icon = 'icons/mob/guardian.dmi' icon_state = "base" -/obj/screen/guardian/Manifest +/atom/movable/screen/guardian/Manifest icon_state = "manifest" name = "Manifest" desc = "Spring forth into battle!" -/obj/screen/guardian/Manifest/Click() +/atom/movable/screen/guardian/Manifest/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr var/summoner_loc = G.summoner.loc @@ -59,43 +59,43 @@ if(G.loc == G.summoner) G.Manifest() -/obj/screen/guardian/Recall +/atom/movable/screen/guardian/Recall icon_state = "recall" name = "Recall" desc = "Return to your user." -/obj/screen/guardian/Recall/Click() +/atom/movable/screen/guardian/Recall/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.Recall() -/obj/screen/guardian/ToggleMode +/atom/movable/screen/guardian/ToggleMode icon_state = "toggle" name = "Toggle Mode" desc = "Switch between ability modes." -/obj/screen/guardian/ToggleMode/Click() +/atom/movable/screen/guardian/ToggleMode/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.ToggleMode() -/obj/screen/guardian/Communicate +/atom/movable/screen/guardian/Communicate icon_state = "communicate" name = "Communicate" desc = "Communicate telepathically with your user." -/obj/screen/guardian/Communicate/Click() +/atom/movable/screen/guardian/Communicate/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.Communicate() -/obj/screen/guardian/ToggleLight +/atom/movable/screen/guardian/ToggleLight icon_state = "light" name = "Toggle Light" desc = "Glow like star dust." -/obj/screen/guardian/ToggleLight/Click() +/atom/movable/screen/guardian/ToggleLight/Click() if(isguardian(usr)) var/mob/living/simple_animal/hostile/guardian/G = usr G.ToggleLight() diff --git a/code/_onclick/hud/hud_datum.dm b/code/_onclick/hud/hud_datum.dm index 4d65d41e8cc25..6cfe661d3acff 100644 --- a/code/_onclick/hud/hud_datum.dm +++ b/code/_onclick/hud/hud_datum.dm @@ -12,36 +12,36 @@ var/inventory_shown = TRUE //the inventory var/hotkey_ui_hidden = FALSE //This is to hide the buttons that can be used via hotkeys. (hotkeybuttons list of buttons) - var/obj/screen/lingchemdisplay - var/obj/screen/lingstingdisplay - - var/obj/screen/guardianhealthdisplay - - var/obj/screen/blobpwrdisplay - var/obj/screen/blobhealthdisplay - var/obj/screen/vampire_blood_display - var/obj/screen/alien_plasma_display - var/obj/screen/nightvisionicon - var/obj/screen/action_intent - var/obj/screen/zone_select - var/obj/screen/move_intent - var/obj/screen/module_store_icon - var/obj/screen/combo/combo_display + var/atom/movable/screen/lingchemdisplay + var/atom/movable/screen/lingstingdisplay + + var/atom/movable/screen/guardianhealthdisplay + + var/atom/movable/screen/blobpwrdisplay + var/atom/movable/screen/blobhealthdisplay + var/atom/movable/screen/vampire_blood_display + var/atom/movable/screen/alien_plasma_display + var/atom/movable/screen/nightvisionicon + var/atom/movable/screen/action_intent + var/atom/movable/screen/zone_select + var/atom/movable/screen/move_intent + var/atom/movable/screen/module_store_icon + var/atom/movable/screen/combo/combo_display var/list/static_inventory = list() //the screen objects which are static var/list/toggleable_inventory = list() //the screen objects which can be hidden var/list/hotkeybuttons = list() //the buttons that can be used via hotkeys var/list/infodisplay = list() //the screen objects that display mob info (health, alien plasma, etc...) - var/list/inv_slots[SLOT_HUD_AMOUNT] // /obj/screen/inventory objects, ordered by their slot ID. + var/list/inv_slots[SLOT_HUD_AMOUNT] // /atom/movable/screen/inventory objects, ordered by their slot ID. - var/obj/screen/movable/action_button/hide_toggle/hide_actions_toggle + var/atom/movable/screen/movable/action_button/hide_toggle/hide_actions_toggle var/action_buttons_hidden = FALSE - var/list/obj/screen/plane_master/plane_masters = list() // see "appearance_flags" in the ref, assoc list of "[plane]" = object + var/list/atom/movable/screen/plane_master/plane_masters = list() // see "appearance_flags" in the ref, assoc list of "[plane]" = object ///Assoc list of controller groups, associated with key string group name with value of the plane master controller ref var/list/atom/movable/plane_master_controller/plane_master_controllers = list() ///UI for screentips that appear when you mouse over things - var/obj/screen/screentip/screentip_text + var/atom/movable/screen/screentip/screentip_text /mob/proc/create_mob_hud() if(client && !hud_used) @@ -53,8 +53,8 @@ hide_actions_toggle = new hide_actions_toggle.InitialiseIcon(mymob) - for(var/mytype in subtypesof(/obj/screen/plane_master)) - var/obj/screen/plane_master/instance = new mytype() + for(var/mytype in subtypesof(/atom/movable/screen/plane_master)) + var/atom/movable/screen/plane_master/instance = new mytype() plane_masters["[instance.plane]"] = instance instance.backdrop(mymob) @@ -181,7 +181,7 @@ /datum/hud/proc/plane_masters_update() // Plane masters are always shown to OUR mob, never to observers for(var/thing in plane_masters) - var/obj/screen/plane_master/PM = plane_masters[thing] + var/atom/movable/screen/plane_master/PM = plane_masters[thing] PM.backdrop(mymob) mymob.client.screen += PM diff --git a/code/_onclick/hud/human_hud.dm b/code/_onclick/hud/human_hud.dm index 1db2fe7cd1c3f..67c9e2e662150 100644 --- a/code/_onclick/hud/human_hud.dm +++ b/code/_onclick/hud/human_hud.dm @@ -1,11 +1,11 @@ -/obj/screen/human +/atom/movable/screen/human icon = 'icons/mob/screen_midnight.dmi' -/obj/screen/human/toggle +/atom/movable/screen/human/toggle name = "toggle" icon_state = "toggle" -/obj/screen/human/toggle/Click() +/atom/movable/screen/human/toggle/Click() if(usr.hud_used.inventory_shown) usr.hud_used.inventory_shown = FALSE usr.client.screen -= usr.hud_used.toggleable_inventory @@ -15,28 +15,28 @@ usr.hud_used.hidden_inventory_update() -/obj/screen/human/equip +/atom/movable/screen/human/equip name = "equip" icon_state = "act_equip" -/obj/screen/human/equip/Click() +/atom/movable/screen/human/equip/Click() if(ismecha(usr.loc)) // stops inventory actions in a mech return 1 var/mob/living/carbon/human/H = usr H.quick_equip() -/obj/screen/ling +/atom/movable/screen/ling invisibility = INVISIBILITY_ABSTRACT -/obj/screen/ling/sting +/atom/movable/screen/ling/sting name = "current sting" screen_loc = ui_lingstingdisplay -/obj/screen/ling/sting/Click() +/atom/movable/screen/ling/sting/Click() var/datum/antagonist/changeling/cling = usr.mind.has_antag_datum(/datum/antagonist/changeling) cling?.chosen_sting?.unset_sting() -/obj/screen/ling/chems +/atom/movable/screen/ling/chems name = "chemical storage" icon_state = "power_display" screen_loc = ui_lingchemdisplay @@ -58,32 +58,32 @@ /datum/hud/human/New(mob/living/carbon/human/owner, ui_style = 'icons/mob/screen_white.dmi', ui_color = "#ffffff", ui_alpha = 255) ..() - owner.overlay_fullscreen("see_through_darkness", /obj/screen/fullscreen/see_through_darkness) + owner.overlay_fullscreen("see_through_darkness", /atom/movable/screen/fullscreen/see_through_darkness) - var/obj/screen/using - var/obj/screen/inventory/inv_box + var/atom/movable/screen/using + var/atom/movable/screen/inventory/inv_box hud_alpha = ui_alpha - using = new /obj/screen/craft + using = new /atom/movable/screen/craft using.icon = ui_style using.color = ui_color using.alpha = ui_alpha static_inventory += using - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.icon = ui_style using.color = ui_color using.alpha = ui_alpha static_inventory += using - using = new /obj/screen/act_intent() + using = new /atom/movable/screen/act_intent() using.icon_state = mymob.a_intent using.alpha = ui_alpha static_inventory += using action_intent = using - using = new /obj/screen/mov_intent() + using = new /atom/movable/screen/mov_intent() using.icon = ui_style using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") using.screen_loc = ui_movi @@ -92,14 +92,14 @@ static_inventory += using move_intent = using - using = new /obj/screen/drop() + using = new /atom/movable/screen/drop() using.icon = ui_style using.screen_loc = ui_drop_throw using.color = ui_color using.alpha = ui_alpha static_inventory += using - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "i_clothing" inv_box.icon = ui_style inv_box.slot_id = SLOT_HUD_JUMPSUIT @@ -109,7 +109,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "o_clothing" inv_box.icon = ui_style inv_box.slot_id = SLOT_HUD_OUTER_SUIT @@ -119,7 +119,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "r_hand" inv_box.icon = ui_style inv_box.icon_state = "hand_r" @@ -129,7 +129,7 @@ inv_box.slot_id = SLOT_HUD_RIGHT_HAND static_inventory += inv_box - inv_box = new /obj/screen/inventory/hand() + inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "l_hand" inv_box.icon = ui_style inv_box.icon_state = "hand_l" @@ -139,7 +139,7 @@ inv_box.slot_id = SLOT_HUD_LEFT_HAND static_inventory += inv_box - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = ui_style using.icon_state = "swap_1" @@ -148,7 +148,7 @@ using.alpha = ui_alpha static_inventory += using - using = new /obj/screen/swap_hand() + using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = ui_style using.icon_state = "swap_2" @@ -157,7 +157,7 @@ using.alpha = ui_alpha static_inventory += using - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "id" inv_box.icon = ui_style inv_box.icon_state = "id" @@ -167,7 +167,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "pda" inv_box.icon = ui_style inv_box.icon_state = "pda" @@ -177,7 +177,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "mask" inv_box.icon = ui_style inv_box.icon_state = "mask" @@ -187,7 +187,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "back" inv_box.icon = ui_style inv_box.icon_state = "back" @@ -197,7 +197,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "storage1" inv_box.icon = ui_style inv_box.icon_state = "pocket" @@ -207,7 +207,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "storage2" inv_box.icon = ui_style inv_box.icon_state = "pocket" @@ -217,7 +217,7 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "suit storage" inv_box.icon = ui_style inv_box.icon_state = "suit_storage" @@ -227,28 +227,28 @@ inv_box.slot_id = SLOT_HUD_SUIT_STORE static_inventory += inv_box - using = new /obj/screen/resist() + using = new /atom/movable/screen/resist() using.icon = ui_style using.color = ui_color using.alpha = ui_alpha using.screen_loc = ui_pull_resist hotkeybuttons += using - using = new /obj/screen/human/toggle() + using = new /atom/movable/screen/human/toggle() using.icon = ui_style using.color = ui_color using.alpha = ui_alpha using.screen_loc = ui_inventory static_inventory += using - using = new /obj/screen/human/equip() + using = new /atom/movable/screen/human/equip() using.icon = ui_style using.color = ui_color using.alpha = ui_alpha using.screen_loc = ui_equip static_inventory += using - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "gloves" inv_box.icon = ui_style inv_box.icon_state = "gloves" @@ -258,7 +258,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "eyes" inv_box.icon = ui_style inv_box.icon_state = "glasses" @@ -268,7 +268,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "l_ear" inv_box.icon = ui_style inv_box.icon_state = "ears" @@ -278,7 +278,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "r_ear" inv_box.icon = ui_style inv_box.icon_state = "ears" @@ -288,7 +288,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "head" inv_box.icon = ui_style inv_box.icon_state = "head" @@ -298,7 +298,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "shoes" inv_box.icon = ui_style inv_box.icon_state = "shoes" @@ -308,7 +308,7 @@ inv_box.alpha = ui_alpha toggleable_inventory += inv_box - inv_box = new /obj/screen/inventory() + inv_box = new /atom/movable/screen/inventory() inv_box.name = "belt" inv_box.icon = ui_style inv_box.icon_state = "belt" @@ -318,33 +318,33 @@ inv_box.alpha = ui_alpha static_inventory += inv_box - mymob.throw_icon = new /obj/screen/throw_catch() + mymob.throw_icon = new /atom/movable/screen/throw_catch() mymob.throw_icon.icon = ui_style mymob.throw_icon.screen_loc = ui_drop_throw mymob.throw_icon.color = ui_color mymob.throw_icon.alpha = ui_alpha hotkeybuttons += mymob.throw_icon - mymob.healths = new /obj/screen/healths() + mymob.healths = new /atom/movable/screen/healths() infodisplay += mymob.healths mymob.healthdoll = new() infodisplay += mymob.healthdoll - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = ui_style mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist static_inventory += mymob.pullin - lingchemdisplay = new /obj/screen/ling/chems() + lingchemdisplay = new /atom/movable/screen/ling/chems() infodisplay += lingchemdisplay - lingstingdisplay = new /obj/screen/ling/sting() + lingstingdisplay = new /atom/movable/screen/ling/sting() infodisplay += lingstingdisplay - zone_select = new /obj/screen/zone_sel() + zone_select = new /atom/movable/screen/zone_sel() zone_select.color = ui_color zone_select.icon = ui_style zone_select.alpha = ui_alpha @@ -357,7 +357,7 @@ combo_display = new() infodisplay += combo_display - for(var/obj/screen/inventory/inv in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) inv.hud = src inv_slots[inv.slot_id] = inv @@ -372,13 +372,13 @@ if(!istype(H) || !H.dna.species) return var/datum/species/S = H.dna.species - for(var/obj/screen/inventory/inv in (static_inventory + toggleable_inventory)) + for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) if(inv.slot_id in S.no_equip) inv.alpha = hud_alpha / 2 else inv.alpha = hud_alpha - for(var/obj/screen/craft/crafting in static_inventory) + for(var/atom/movable/screen/craft/crafting in static_inventory) if(!S.can_craft) crafting.invisibility = INVISIBILITY_ABSTRACT H.handcrafting?.close(H) diff --git a/code/_onclick/hud/map_popups.dm b/code/_onclick/hud/map_popups.dm index dc9e255cba931..fc12fae313e3e 100644 --- a/code/_onclick/hud/map_popups.dm +++ b/code/_onclick/hud/map_popups.dm @@ -3,30 +3,15 @@ * Assoc list with all the active maps - when a screen obj is added to * a map, it's put in here as well. * - * Format: list(<mapname> = list(/obj/screen)) + * Format: list(<mapname> = list(/atom/movable/screen)) */ var/list/screen_maps = list() -/obj/screen - /** - * Map name assigned to this object. - * Automatically set by /client/proc/add_obj_to_map. - */ - var/assigned_map - /** - * Mark this object as garbage-collectible after you clean the map - * it was registered on. - * - * This could probably be changed to be a proc, for conditional removal. - * But for now, this works. - */ - var/del_on_map_removal = TRUE - /** * A screen object, which acts as a container for turfs and other things * you want to show on the map, which you usually attach to "vis_contents". */ -/obj/screen/map_view +/atom/movable/screen/map_view // Map view has to be on the lowest plane to enable proper lighting layer = GAME_PLANE plane = GAME_PLANE @@ -36,7 +21,7 @@ * It is also implicitly used to allocate a rectangle on the map, which will * be used for auto-scaling the map. */ -/obj/screen/background +/atom/movable/screen/background name = "background" icon = 'icons/mob/map_backgrounds.dmi' icon_state = "clear" @@ -49,7 +34,7 @@ * * If applicable, "assigned_map" has to be assigned before this proc call. */ -/obj/screen/proc/set_position(x, y, px = 0, py = 0) +/atom/movable/screen/proc/set_position(x, y, px = 0, py = 0) if(assigned_map) screen_loc = "[assigned_map]:[x]:[px],[y]:[py]" else @@ -60,7 +45,7 @@ * * If applicable, "assigned_map" has to be assigned before this proc call. */ -/obj/screen/proc/fill_rect(x1, y1, x2, y2) +/atom/movable/screen/proc/fill_rect(x1, y1, x2, y2) if(assigned_map) screen_loc = "[assigned_map]:[x1],[y1] to [x2],[y2]" else @@ -70,7 +55,7 @@ * Registers screen obj with the client, which makes it visible on the * assigned map, and becomes a part of the assigned map's lifecycle. */ -/client/proc/register_map_obj(obj/screen/screen_obj) +/client/proc/register_map_obj(atom/movable/screen/screen_obj) if(!screen_obj.assigned_map) CRASH("Can't register [screen_obj] without 'assigned_map' property.") if(!screen_maps[screen_obj.assigned_map]) @@ -92,7 +77,7 @@ /client/proc/clear_map(map_name) if(!map_name || !(map_name in screen_maps)) return FALSE - for(var/obj/screen/screen_obj in screen_maps[map_name]) + for(var/atom/movable/screen/screen_obj in screen_maps[map_name]) screen_maps[map_name] -= screen_obj if(screen_obj.del_on_map_removal) qdel(screen_obj) @@ -146,7 +131,7 @@ var/y_value = world.icon_size * tilesize * height var/map_name = create_popup(popup_name, x_value, y_value) - var/obj/screen/background/background = new + var/atom/movable/screen/background/background = new background.assigned_map = map_name background.fill_rect(1, 1, width, height) if(bg_icon) diff --git a/code/_onclick/hud/movable_screen_objects.dm b/code/_onclick/hud/movable_screen_objects.dm index 366931cea3330..f43effee417d5 100644 --- a/code/_onclick/hud/movable_screen_objects.dm +++ b/code/_onclick/hud/movable_screen_objects.dm @@ -8,7 +8,7 @@ //Movable Screen Object //Not tied to the grid, places it's center where the cursor is -/obj/screen/movable +/atom/movable/screen/movable var/snap2grid = FALSE var/moved = FALSE var/locked = TRUE @@ -18,10 +18,10 @@ //Snap Screen Object //Tied to the grid, snaps to the nearest turf -/obj/screen/movable/snap +/atom/movable/screen/movable/snap snap2grid = TRUE -/obj/screen/movable/MouseDrop(over_object, src_location, over_location, src_control, over_control, params) +/atom/movable/screen/movable/MouseDrop(over_object, src_location, over_location, src_control, over_control, params) if(locked) //no! I am locked! begone! return @@ -55,7 +55,7 @@ set category = "Debug" set name = "Spawn Movable UI Object" - var/obj/screen/movable/M = new() + var/atom/movable/screen/movable/M = new() M.name = "Movable UI Object" M.icon_state = "block" M.maptext = "Movable" @@ -73,7 +73,7 @@ set category = "Debug" set name = "Spawn Snap UI Object" - var/obj/screen/movable/snap/S = new() + var/atom/movable/screen/movable/snap/S = new() S.name = "Snap UI Object" S.icon_state = "block" S.maptext = "Snap" diff --git a/code/_onclick/hud/other_mobs_hud.dm b/code/_onclick/hud/other_mobs_hud.dm index 0472a34dbef68..8e87c837df209 100644 --- a/code/_onclick/hud/other_mobs_hud.dm +++ b/code/_onclick/hud/other_mobs_hud.dm @@ -4,11 +4,11 @@ /datum/hud/simple_animal/New(mob/user) ..() - mymob.healths = new /obj/screen/healths() + mymob.healths = new /atom/movable/screen/healths() infodisplay += mymob.healths - var/obj/screen/using - using = new /obj/screen/act_intent/simple_animal() + var/atom/movable/screen/using + using = new /atom/movable/screen/act_intent/simple_animal() using.icon_state = mymob.a_intent static_inventory += using action_intent = using @@ -21,10 +21,10 @@ /datum/hud/corgi/New(mob/user) ..() - mymob.healths = new /obj/screen/healths/corgi() + mymob.healths = new /atom/movable/screen/healths/corgi() infodisplay += mymob.healths - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_corgi.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) diff --git a/code/_onclick/hud/parallax.dm b/code/_onclick/hud/parallax.dm index 75b34cfa1d3bd..572538a1ab32d 100644 --- a/code/_onclick/hud/parallax.dm +++ b/code/_onclick/hud/parallax.dm @@ -1,7 +1,7 @@ /client var/list/parallax_layers var/list/parallax_layers_cached - var/static/list/parallax_static_layers_tail = newlist(/obj/screen/parallax_pmaster, /obj/screen/parallax_space_whitifier) + var/static/list/parallax_static_layers_tail = newlist(/atom/movable/screen/parallax_pmaster, /atom/movable/screen/parallax_space_whitifier) var/atom/movable/movingmob var/turf/previous_turf var/dont_animate_parallax //world.time of when we can state animate()ing parallax again @@ -16,7 +16,7 @@ if(!apply_parallax_pref()) return // this is needed so it blends properly with the space plane and blackness plane. - var/obj/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] + var/atom/movable/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] if(C.prefs.toggles2 & PREFTOGGLE_2_PARALLAX_IN_DARKNESS) S.color = rgb(0, 0, 0, 0) else @@ -27,16 +27,16 @@ S.appearance_flags |= NO_CLIENT_COLOR if(!length(C.parallax_layers_cached)) C.parallax_layers_cached = list() - C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_1(null, C.view) - C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_2(null, C.view) - C.parallax_layers_cached += new /obj/screen/parallax_layer/planet(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, C.view) if(SSparallax.random_layer) C.parallax_layers_cached += new SSparallax.random_layer - C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_3(null, C.view) + C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_3(null, C.view) C.parallax_layers = C.parallax_layers_cached.Copy() - var/obj/screen/plane_master/parallax/parallax_plane_master = plane_masters["[PLANE_SPACE_PARALLAX]"] + var/atom/movable/screen/plane_master/parallax/parallax_plane_master = plane_masters["[PLANE_SPACE_PARALLAX]"] if(C.prefs.toggles2 & PREFTOGGLE_2_PARALLAX_IN_DARKNESS) parallax_plane_master.blend_mode = BLEND_ADD else @@ -51,7 +51,7 @@ var/client/C = mymob.client C.screen -= (C.parallax_layers_cached + C.parallax_static_layers_tail) C.parallax_layers = null - var/obj/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] + var/atom/movable/screen/plane_master/space/S = plane_masters["[PLANE_SPACE]"] S.color = null S.appearance_flags &= ~NO_CLIENT_COLOR @@ -101,7 +101,7 @@ if(!new_parallax_movedir) var/animate_time = 0 for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing L.icon_state = initial(L.icon_state) L.update_o(C.view) var/T = PARALLAX_LOOP_TIME / L.speed @@ -123,7 +123,7 @@ var/shortesttimer for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing var/T = PARALLAX_LOOP_TIME / L.speed if(isnull(shortesttimer)) @@ -148,7 +148,7 @@ /datum/hud/proc/update_parallax_motionblur(client/C, animatedir, new_parallax_movedir, matrix/newtransform) C.parallax_animate_timer = FALSE for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing if(!new_parallax_movedir) animate(L) continue @@ -206,7 +206,7 @@ C.last_parallax_shift = world.time for(var/thing in C.parallax_layers) - var/obj/screen/parallax_layer/L = thing + var/atom/movable/screen/parallax_layer/L = thing L.update_status(mymob) if(L.view_sized != C.view) L.update_o(C.view) @@ -236,7 +236,7 @@ if(M && M.client && M.hud_used && length(M.client.parallax_layers)) M.hud_used.update_parallax() -/obj/screen/parallax_layer +/atom/movable/screen/parallax_layer icon = 'icons/effects/parallax.dmi' var/speed = 1 var/offset_x = 0 @@ -249,13 +249,13 @@ mouse_opacity = 0 -/obj/screen/parallax_layer/New(view) +/atom/movable/screen/parallax_layer/New(view) ..() if(!view) view = world.view update_o(view) -/obj/screen/parallax_layer/proc/update_o(view) +/atom/movable/screen/parallax_layer/proc/update_o(view) if(!view) view = world.view @@ -278,70 +278,70 @@ // Cache this view_sized = view -/obj/screen/parallax_layer/proc/update_status(mob/M) +/atom/movable/screen/parallax_layer/proc/update_status(mob/M) return -/obj/screen/parallax_layer/layer_1 +/atom/movable/screen/parallax_layer/layer_1 icon_state = "layer1" speed = 0.6 layer = 1 -/obj/screen/parallax_layer/layer_2 +/atom/movable/screen/parallax_layer/layer_2 icon_state = "layer2" speed = 1 layer = 2 -/obj/screen/parallax_layer/layer_3 +/atom/movable/screen/parallax_layer/layer_3 icon_state = "layer3" speed = 1.4 layer = 3 -/obj/screen/parallax_layer/random +/atom/movable/screen/parallax_layer/random blend_mode = BLEND_OVERLAY speed = 3 layer = 3 -/obj/screen/parallax_layer/random/space_gas +/atom/movable/screen/parallax_layer/random/space_gas icon_state = "space_gas" -/obj/screen/parallax_layer/random/space_gas/New(view) +/atom/movable/screen/parallax_layer/random/space_gas/New(view) ..() add_atom_colour(SSparallax.random_parallax_color, ADMIN_COLOUR_PRIORITY) -/obj/screen/parallax_layer/random/asteroids +/atom/movable/screen/parallax_layer/random/asteroids icon_state = "asteroids" layer = 4 -/obj/screen/parallax_layer/planet +/atom/movable/screen/parallax_layer/planet icon_state = "planet_lava" blend_mode = BLEND_OVERLAY absolute = TRUE //Status of seperation speed = 3 layer = 30 -/obj/screen/parallax_layer/planet/Initialize(mapload) +/atom/movable/screen/parallax_layer/planet/Initialize(mapload) . = ..() if(SSmapping.lavaland_theme?.planet_icon_state) icon_state = SSmapping.lavaland_theme.planet_icon_state -/obj/screen/parallax_layer/planet/update_status(mob/M) +/atom/movable/screen/parallax_layer/planet/update_status(mob/M) var/turf/T = get_turf(M) if(is_station_level(T.z)) invisibility = 0 else invisibility = INVISIBILITY_ABSTRACT -/obj/screen/parallax_layer/planet/update_o() +/atom/movable/screen/parallax_layer/planet/update_o() return //Shit wont move -/obj/screen/parallax_pmaster +/atom/movable/screen/parallax_pmaster appearance_flags = PLANE_MASTER plane = PLANE_SPACE_PARALLAX blend_mode = BLEND_MULTIPLY mouse_opacity = FALSE screen_loc = "CENTER-7,CENTER-7" -/obj/screen/parallax_space_whitifier +/atom/movable/screen/parallax_space_whitifier appearance_flags = PLANE_MASTER plane = PLANE_SPACE color = list( diff --git a/code/_onclick/hud/picture_in_picture.dm b/code/_onclick/hud/picture_in_picture.dm index eda0cc5640d60..aae4ce37001cb 100644 --- a/code/_onclick/hud/picture_in_picture.dm +++ b/code/_onclick/hud/picture_in_picture.dm @@ -1,4 +1,4 @@ -/obj/screen/movable/pic_in_pic +/atom/movable/screen/movable/pic_in_pic name = "Picture-in-picture" screen_loc = "CENTER" plane = FLOOR_PLANE @@ -7,18 +7,18 @@ var/height = 0 var/list/shown_to = list() var/list/viewing_turfs = list() - var/obj/screen/component_button/button_x - var/obj/screen/component_button/button_expand - var/obj/screen/component_button/button_shrink + var/atom/movable/screen/component_button/button_x + var/atom/movable/screen/component_button/button_expand + var/atom/movable/screen/component_button/button_shrink var/mutable_appearance/standard_background var/const/max_dimensions = 10 -/obj/screen/movable/pic_in_pic/Initialize() +/atom/movable/screen/movable/pic_in_pic/Initialize() . = ..() make_backgrounds() -/obj/screen/movable/pic_in_pic/Destroy() +/atom/movable/screen/movable/pic_in_pic/Destroy() for(var/C in shown_to) unshow_to(C) QDEL_NULL(button_x) @@ -26,7 +26,7 @@ QDEL_NULL(button_expand) return ..() -/obj/screen/movable/pic_in_pic/component_click(obj/screen/component_button/component, params) +/atom/movable/screen/movable/pic_in_pic/component_click(atom/movable/screen/component_button/component, params) if(component == button_x) qdel(src) else if(component == button_expand) @@ -34,13 +34,13 @@ else if(component == button_shrink) set_view_size(width-1, height-1) -/obj/screen/movable/pic_in_pic/proc/make_backgrounds() +/atom/movable/screen/movable/pic_in_pic/proc/make_backgrounds() standard_background = new /mutable_appearance() standard_background.icon = 'icons/misc/pic_in_pic.dmi' standard_background.icon_state = "background" standard_background.layer = SPACE_LAYER -/obj/screen/movable/pic_in_pic/proc/add_buttons() +/atom/movable/screen/movable/pic_in_pic/proc/add_buttons() var/static/mutable_appearance/move_tab if(!move_tab) move_tab = new /mutable_appearance() @@ -55,7 +55,7 @@ overlays += move_tab if(!button_x) - button_x = new /obj/screen/component_button(null, src) + button_x = new /atom/movable/screen/component_button(null, src) var/mutable_appearance/MA = new /mutable_appearance() MA.name = "close" MA.icon = 'icons/misc/pic_in_pic.dmi' @@ -68,7 +68,7 @@ vis_contents += button_x if(!button_expand) - button_expand = new /obj/screen/component_button(null, src) + button_expand = new /atom/movable/screen/component_button(null, src) var/mutable_appearance/MA = new /mutable_appearance() MA.name = "expand" MA.icon = 'icons/misc/pic_in_pic.dmi' @@ -81,7 +81,7 @@ vis_contents += button_expand if(!button_shrink) - button_shrink = new /obj/screen/component_button(null, src) + button_shrink = new /atom/movable/screen/component_button(null, src) var/mutable_appearance/MA = new /mutable_appearance() MA.name = "shrink" MA.icon = 'icons/misc/pic_in_pic.dmi' @@ -93,7 +93,7 @@ button_shrink.transform = M vis_contents += button_shrink -/obj/screen/movable/pic_in_pic/proc/add_background() +/atom/movable/screen/movable/pic_in_pic/proc/add_background() if((width > 0) && (height > 0)) var/matrix/M = matrix() M.Scale(width + 0.5, height + 0.5) @@ -101,7 +101,7 @@ standard_background.transform = M overlays += standard_background -/obj/screen/movable/pic_in_pic/proc/set_view_size(width, height, do_refresh = TRUE) +/atom/movable/screen/movable/pic_in_pic/proc/set_view_size(width, height, do_refresh = TRUE) width = clamp(width, 0, max_dimensions) height = clamp(height, 0, max_dimensions) src.width = width @@ -115,12 +115,12 @@ if(do_refresh) refresh_view() -/obj/screen/movable/pic_in_pic/proc/set_view_center(atom/target, do_refresh = TRUE) +/atom/movable/screen/movable/pic_in_pic/proc/set_view_center(atom/target, do_refresh = TRUE) center = target if(do_refresh) refresh_view() -/obj/screen/movable/pic_in_pic/proc/refresh_view() +/atom/movable/screen/movable/pic_in_pic/proc/refresh_view() vis_contents -= viewing_turfs if(!width || !height) return @@ -133,12 +133,12 @@ vis_contents += viewing_turfs -/obj/screen/movable/pic_in_pic/proc/show_to(client/C) +/atom/movable/screen/movable/pic_in_pic/proc/show_to(client/C) if(C) shown_to[C] = 1 C.screen += src -/obj/screen/movable/pic_in_pic/proc/unshow_to(client/C) +/atom/movable/screen/movable/pic_in_pic/proc/unshow_to(client/C) if(C) shown_to -= C C.screen -= src diff --git a/code/_onclick/hud/plane_master.dm b/code/_onclick/hud/plane_master.dm index 8a59bb69275d6..d9da09946af98 100644 --- a/code/_onclick/hud/plane_master.dm +++ b/code/_onclick/hud/plane_master.dm @@ -1,4 +1,4 @@ -/obj/screen/plane_master +/atom/movable/screen/plane_master screen_loc = "CENTER" icon_state = "blank" appearance_flags = PLANE_MASTER|NO_CLIENT_COLOR @@ -6,58 +6,58 @@ var/show_alpha = 255 var/hide_alpha = 0 -/obj/screen/plane_master/proc/Show(override) +/atom/movable/screen/plane_master/proc/Show(override) alpha = override || show_alpha -/obj/screen/plane_master/proc/Hide(override) +/atom/movable/screen/plane_master/proc/Hide(override) alpha = override || hide_alpha //Why do plane masters need a backdrop sometimes? Read http://www.byond.com/forum/?post=2141928 //Trust me, you need one. Period. If you don't think you do, you're doing something extremely wrong. -/obj/screen/plane_master/proc/backdrop(mob/mymob) +/atom/movable/screen/plane_master/proc/backdrop(mob/mymob) addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, add_filter), "displace", 1, displacement_map_filter(render_source = GRAVITY_PULSE_RENDER_TARGET, size = 10)), 2 SECONDS)//Why a timer vs just apply on initialize / async? I don't know. It just can't be, neither works correctly. Don't lower below 2 seconds unless you can see effects through walls with no issue. -/obj/screen/plane_master/floor +/atom/movable/screen/plane_master/floor name = "floor plane master" plane = FLOOR_PLANE appearance_flags = PLANE_MASTER blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/game_world +/atom/movable/screen/plane_master/game_world name = "game world plane master" plane = GAME_PLANE appearance_flags = PLANE_MASTER blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/game_world/backdrop(mob/mymob) +/atom/movable/screen/plane_master/game_world/backdrop(mob/mymob) . = ..() //if you delete it so help me god clear_filters() if(istype(mymob) && mymob.client && mymob.client.prefs && (mymob.client.prefs.toggles & PREFTOGGLE_AMBIENT_OCCLUSION)) add_filter("AO", 1, drop_shadow_filter(x = 0, y = -2, size = 4, color = "#04080FAA")) -/obj/screen/plane_master/lighting +/atom/movable/screen/plane_master/lighting name = "lighting plane master" plane = LIGHTING_PLANE appearance_flags = PLANE_MASTER blend_mode = BLEND_MULTIPLY mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/screen/plane_master/lighting/backdrop(mob/mymob) +/atom/movable/screen/plane_master/lighting/backdrop(mob/mymob) . = ..() - mymob.overlay_fullscreen("lighting_backdrop_lit", /obj/screen/fullscreen/lighting_backdrop/lit) - mymob.overlay_fullscreen("lighting_backdrop_unlit", /obj/screen/fullscreen/lighting_backdrop/unlit) + mymob.overlay_fullscreen("lighting_backdrop_lit", /atom/movable/screen/fullscreen/lighting_backdrop/lit) + mymob.overlay_fullscreen("lighting_backdrop_unlit", /atom/movable/screen/fullscreen/lighting_backdrop/unlit) -/obj/screen/plane_master/lighting/Initialize() +/atom/movable/screen/plane_master/lighting/Initialize() . = ..() add_filter("emissives", 1, alpha_mask_filter(render_source = EMISSIVE_RENDER_TARGET, flags = MASK_INVERSE)) -/obj/screen/plane_master/point +/atom/movable/screen/plane_master/point name = "point plane master" plane = POINT_PLANE appearance_flags = PLANE_MASTER //should use client color blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/point/backdrop(mob/mymob) +/atom/movable/screen/plane_master/point/backdrop(mob/mymob) if(istype(mymob) && mymob.client && mymob.client.prefs) alpha = (mymob.client.prefs.toggles2 & PREFTOGGLE_2_THOUGHT_BUBBLE) ? 255 : 0 @@ -67,29 +67,29 @@ * Gets masked by blocking plane. Use for things that you want blocked by * mobs, items, etc. */ -/obj/screen/plane_master/emissive +/atom/movable/screen/plane_master/emissive name = "emissive plane master" plane = EMISSIVE_PLANE mouse_opacity = MOUSE_OPACITY_TRANSPARENT render_target = EMISSIVE_RENDER_TARGET -/obj/screen/plane_master/emissive/Initialize() +/atom/movable/screen/plane_master/emissive/Initialize() . = ..() add_filter("em_block_masking", 1, color_matrix_filter(GLOB.em_mask_matrix)) -/obj/screen/plane_master/space +/atom/movable/screen/plane_master/space name = "space plane master" plane = PLANE_SPACE appearance_flags = PLANE_MASTER blend_mode = BLEND_OVERLAY -/obj/screen/plane_master/parallax +/atom/movable/screen/plane_master/parallax name = "parallax plane master" plane = PLANE_SPACE_PARALLAX appearance_flags = PLANE_MASTER blend_mode = BLEND_MULTIPLY -/obj/screen/plane_master/blackness +/atom/movable/screen/plane_master/blackness name = "blackness plane master" plane = BLACKNESS_PLANE mouse_opacity = MOUSE_OPACITY_TRANSPARENT @@ -97,7 +97,7 @@ blend_mode = BLEND_ADD appearance_flags = PLANE_MASTER | NO_CLIENT_COLOR | PIXEL_SCALE -/obj/screen/plane_master/gravpulse +/atom/movable/screen/plane_master/gravpulse name = "gravpulse plane" mouse_opacity = MOUSE_OPACITY_TRANSPARENT plane = GRAVITY_PULSE_PLANE diff --git a/code/_onclick/hud/plane_master_controller.dm b/code/_onclick/hud/plane_master_controller.dm index aa67ed351724d..c5bbbb743d287 100644 --- a/code/_onclick/hud/plane_master_controller.dm +++ b/code/_onclick/hud/plane_master_controller.dm @@ -11,7 +11,7 @@ owner_hud = hud var/assoc_controlled_planes = list() for(var/i in controlled_planes) - var/obj/screen/plane_master/instance = owner_hud.plane_masters["[i]"] + var/atom/movable/screen/plane_master/instance = owner_hud.plane_masters["[i]"] assoc_controlled_planes["[i]"] = instance controlled_planes = assoc_controlled_planes @@ -19,41 +19,41 @@ /atom/movable/plane_master_controller/add_filter(name, priority, list/params) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.add_filter(name, priority, params) ///Full override so we can just use filterrific /atom/movable/plane_master_controller/remove_filter(name_or_names) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.remove_filter(name_or_names) /atom/movable/plane_master_controller/update_filters() . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.update_filters() ///Gets all filters for this controllers plane masters /atom/movable/plane_master_controller/proc/get_filters(name) . = list() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] . += pm_iterator.get_filter(name) ///Transitions all filters owned by this plane master controller /atom/movable/plane_master_controller/transition_filter(name, time, list/new_params, easing, loop) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.transition_filter(name, time, new_params, easing, loop) ///Full override so we can just use filterrific /atom/movable/plane_master_controller/add_atom_colour(coloration, colour_priority) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.add_atom_colour(coloration, colour_priority) @@ -61,14 +61,14 @@ /atom/movable/plane_master_controller/remove_atom_colour(colour_priority, coloration) . = ..() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.remove_atom_colour(colour_priority, coloration) ///Resets the atom's color to null, and then sets it to the highest priority colour available /atom/movable/plane_master_controller/update_atom_colour() for(var/i in controlled_planes) - var/obj/screen/plane_master/pm_iterator = controlled_planes[i] + var/atom/movable/screen/plane_master/pm_iterator = controlled_planes[i] pm_iterator.update_atom_colour() diff --git a/code/_onclick/hud/radial.dm b/code/_onclick/hud/radial.dm index 451e4270fe78f..4ffc018f2fe1a 100644 --- a/code/_onclick/hud/radial.dm +++ b/code/_onclick/hud/radial.dm @@ -3,51 +3,51 @@ GLOBAL_LIST_EMPTY(radial_menus) -/obj/screen/radial +/atom/movable/screen/radial icon = 'icons/mob/radial.dmi' layer = ABOVE_HUD_LAYER plane = ABOVE_HUD_PLANE var/datum/radial_menu/parent -/obj/screen/radial/Destroy() +/atom/movable/screen/radial/Destroy() parent = null return ..() -/obj/screen/radial/slice +/atom/movable/screen/radial/slice icon_state = "radial_slice" var/choice var/next_page = FALSE -/obj/screen/radial/slice/MouseEntered(location, control, params) +/atom/movable/screen/radial/slice/MouseEntered(location, control, params) . = ..() icon_state = "radial_slice_focus" openToolTip(usr, src, params, title = name) -/obj/screen/radial/slice/MouseExited(location, control, params) +/atom/movable/screen/radial/slice/MouseExited(location, control, params) . = ..() icon_state = "radial_slice" closeToolTip(usr) -/obj/screen/radial/slice/Click(location, control, params) +/atom/movable/screen/radial/slice/Click(location, control, params) if(usr.client == parent.current_user) if(next_page) parent.next_page() else parent.element_chosen(choice,usr) -/obj/screen/radial/center +/atom/movable/screen/radial/center name = "Close Menu" icon_state = "radial_center" -/obj/screen/radial/center/Click(location, control, params) +/atom/movable/screen/radial/center/Click(location, control, params) if(usr.client == parent.current_user) parent.finished = TRUE -/obj/screen/radial/center/MouseEntered(location, control, params) +/atom/movable/screen/radial/center/MouseEntered(location, control, params) . = ..() openToolTip(usr, src, params, title = name) -/obj/screen/radial/center/MouseExited(location, control, params) +/atom/movable/screen/radial/center/MouseExited(location, control, params) . = ..() closeToolTip(usr) @@ -59,8 +59,8 @@ GLOBAL_LIST_EMPTY(radial_menus) var/selected_choice - var/list/obj/screen/elements = list() - var/obj/screen/radial/center/close_button + var/list/atom/movable/screen/elements = list() + var/atom/movable/screen/radial/center/close_button var/client/current_user var/atom/movable/anchor var/pixel_x_difference @@ -94,7 +94,7 @@ GLOBAL_LIST_EMPTY(radial_menus) if(elements.len < max_elements) var/elements_to_add = max_elements - elements.len for(var/i in 1 to elements_to_add) //Create all elements - var/obj/screen/radial/new_element = new /obj/screen/radial/slice + var/atom/movable/screen/radial/new_element = new /atom/movable/screen/radial/slice new_element.parent = src elements += new_element @@ -128,14 +128,14 @@ GLOBAL_LIST_EMPTY(radial_menus) pixel_x_difference = ((world.icon_size * anchor.x) + anchor.step_x + anchor.pixel_x) - ((world.icon_size * current_user.mob.x) + current_user.mob.step_x + current_user.mob.pixel_x) pixel_y_difference = ((world.icon_size * anchor.y) + anchor.step_y + anchor.pixel_y) - ((world.icon_size * current_user.mob.y) + current_user.mob.step_y + current_user.mob.pixel_y) for(var/i in 1 to elements.len) - var/obj/screen/radial/E = elements[i] + var/atom/movable/screen/radial/E = elements[i] var/angle = WRAP(starting_angle + (i - 1) * angle_per_element, 0, 360) if(i > page_choices.len) HideElement(E) else SetElement(E,page_choices[i], angle) -/datum/radial_menu/proc/HideElement(obj/screen/radial/slice/E) +/datum/radial_menu/proc/HideElement(atom/movable/screen/radial/slice/E) E.cut_overlays() E.alpha = 0 E.name = "None" @@ -144,7 +144,7 @@ GLOBAL_LIST_EMPTY(radial_menus) E.choice = null E.next_page = FALSE -/datum/radial_menu/proc/SetElement(obj/screen/radial/slice/E, choice_id, angle) +/datum/radial_menu/proc/SetElement(atom/movable/screen/radial/slice/E, choice_id, angle) //Position E.pixel_y = round(cos(angle) * radius) + py_shift E.pixel_x = round(sin(angle) * radius) diff --git a/code/_onclick/hud/robot_hud.dm b/code/_onclick/hud/robot_hud.dm index 1ec455d9274c5..c34807563c54c 100644 --- a/code/_onclick/hud/robot_hud.dm +++ b/code/_onclick/hud/robot_hud.dm @@ -1,11 +1,11 @@ -/obj/screen/robot +/atom/movable/screen/robot icon = 'icons/mob/screen_robot.dmi' -/obj/screen/robot/module +/atom/movable/screen/robot/module name = "cyborg module" icon_state = "nomod" -/obj/screen/robot/module/Click() +/atom/movable/screen/robot/module/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr if(R.module) @@ -13,76 +13,76 @@ return 1 R.pick_module() -/obj/screen/robot/module1 +/atom/movable/screen/robot/module1 name = "module1" icon_state = "inv1" -/obj/screen/robot/module1/Click() +/atom/movable/screen/robot/module1/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(1) -/obj/screen/robot/module2 +/atom/movable/screen/robot/module2 name = "module2" icon_state = "inv2" -/obj/screen/robot/module2/Click() +/atom/movable/screen/robot/module2/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(2) -/obj/screen/robot/module3 +/atom/movable/screen/robot/module3 name = "module3" icon_state = "inv3" -/obj/screen/robot/module3/Click() +/atom/movable/screen/robot/module3/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.toggle_module(3) -/obj/screen/robot/radio +/atom/movable/screen/robot/radio name = "radio" icon_state = "radio" -/obj/screen/robot/radio/Click() +/atom/movable/screen/robot/radio/Click() if(issilicon(usr)) var/mob/living/silicon/robot/R = usr R.radio_menu() -/obj/screen/robot/store +/atom/movable/screen/robot/store name = "store" icon_state = "store" -/obj/screen/robot/store/Click() +/atom/movable/screen/robot/store/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.uneq_active() R.hud_used.update_robot_modules_display() -/obj/screen/robot/lamp +/atom/movable/screen/robot/lamp name = "Toggle Headlamp" icon_state = "lamp0" screen_loc = ui_borg_lamp -/obj/screen/robot/lamp/Click() +/atom/movable/screen/robot/lamp/Click() if(isrobot(usr)) var/mob/living/silicon/robot/R = usr R.control_headlamp() -/obj/screen/robot/thrusters +/atom/movable/screen/robot/thrusters name = "ion thrusters" icon_state = "ionpulse0" -/obj/screen/robot/thrusters/Click() +/atom/movable/screen/robot/thrusters/Click() var/mob/living/silicon/robot/R = usr R.toggle_ionpulse() -/obj/screen/robot/mov_intent +/atom/movable/screen/robot/mov_intent name = "fast/slow toggle" icon_state = "running" -/obj/screen/robot/mov_intent/Click() +/atom/movable/screen/robot/mov_intent/Click() usr.toggle_move_intent() @@ -93,31 +93,31 @@ /datum/hud/robot/New(mob/user) ..() - var/obj/screen/using + var/atom/movable/screen/using var/mob/living/silicon/robot/mymobR = mymob //Language menu - using = new /obj/screen/language_menu + using = new /atom/movable/screen/language_menu using.screen_loc = ui_borg_lanugage_menu static_inventory += using //Radio - using = new /obj/screen/robot/radio() + using = new /atom/movable/screen/robot/radio() using.screen_loc = ui_borg_radio static_inventory += using //Module select - using = new /obj/screen/robot/module1() + using = new /atom/movable/screen/robot/module1() using.screen_loc = ui_inv1 static_inventory += using mymobR.inv1 = using - using = new /obj/screen/robot/module2() + using = new /atom/movable/screen/robot/module2() using.screen_loc = ui_inv2 static_inventory += using mymobR.inv2 = using - using = new /obj/screen/robot/module3() + using = new /atom/movable/screen/robot/module3() using.screen_loc = ui_inv3 static_inventory += using mymobR.inv3 = using @@ -125,55 +125,55 @@ //End of module select //Sec/Med HUDs - using = new /obj/screen/ai/sensors() + using = new /atom/movable/screen/ai/sensors() using.screen_loc = ui_borg_sensor static_inventory += using //Intent // Attack intent - using = new /obj/screen/act_intent/robot() + using = new /atom/movable/screen/act_intent/robot() using.icon_state = mymob.a_intent static_inventory += using action_intent = using // Movement intent - using = new /obj/screen/robot/mov_intent() + using = new /atom/movable/screen/robot/mov_intent() using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") static_inventory += using using.screen_loc = ui_movi move_intent = using //Health - mymob.healths = new /obj/screen/healths/robot() + mymob.healths = new /atom/movable/screen/healths/robot() infodisplay += mymob.healths //Installed Module - mymobR.hands = new /obj/screen/robot/module() + mymobR.hands = new /atom/movable/screen/robot/module() mymobR.hands.screen_loc = ui_borg_module static_inventory += mymobR.hands - module_store_icon = new /obj/screen/robot/store() + module_store_icon = new /atom/movable/screen/robot/store() module_store_icon.screen_loc = ui_borg_store - mymob.pullin = new /obj/screen/pull() + mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_robot.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_borg_pull hotkeybuttons += mymob.pullin - zone_select = new /obj/screen/zone_sel/robot() + zone_select = new /atom/movable/screen/zone_sel/robot() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select //Headlamp - mymobR.lamp_button = new /obj/screen/robot/lamp() + mymobR.lamp_button = new /atom/movable/screen/robot/lamp() mymobR.lamp_button.screen_loc = ui_borg_lamp static_inventory += mymobR.lamp_button //Thrusters - using = new /obj/screen/robot/thrusters() + using = new /atom/movable/screen/robot/thrusters() using.screen_loc = ui_borg_thrusters static_inventory += using mymobR.thruster_button = using diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 492e0e01cb57c..c68d9c797ccdb 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -1,34 +1,44 @@ /* - Screen objects + Screen "objects" Todo: improve/re-implement Screen objects are only used for the hud and should not appear anywhere "in-game". + They are not actually objects, which is counterintuitive to their name. They are used with the client/screen list and the screen_loc var. For more information, see the byond documentation on the screen_loc and screen vars. */ -/obj/screen +/atom/movable/screen name = "" icon = 'icons/mob/screen_gen.dmi' layer = HUD_LAYER plane = HUD_PLANE flags = NO_SCREENTIPS - resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF var/obj/master = null //A reference to the object in the slot. Grabs or items, generally. var/datum/hud/hud = null appearance_flags = NO_CLIENT_COLOR - -/obj/screen/take_damage() - return - -/obj/screen/Destroy() + /** + * Map name assigned to this object. + * Automatically set by /client/proc/add_obj_to_map. + */ + var/assigned_map + /** + * Mark this object as garbage-collectible after you clean the map + * it was registered on. + * + * This could probably be changed to be a proc, for conditional removal. + * But for now, this works. + */ + var/del_on_map_removal = TRUE + +/atom/movable/screen/Destroy() master = null hud = null return ..() -/obj/screen/proc/component_click(obj/screen/component_button/component, params) +/atom/movable/screen/proc/component_click(atom/movable/screen/component_button/component, params) return -/obj/screen/text +/atom/movable/screen/text icon = null icon_state = null mouse_opacity = MOUSE_OPACITY_TRANSPARENT @@ -36,44 +46,44 @@ maptext_height = 480 maptext_width = 480 -/obj/screen/close +/atom/movable/screen/close name = "close" layer = ABOVE_HUD_LAYER plane = ABOVE_HUD_PLANE -/obj/screen/close/Click() +/atom/movable/screen/close/Click() if(master) if(isstorage(master)) var/obj/item/storage/S = master S.close(usr) return 1 -/obj/screen/drop +/atom/movable/screen/drop name = "drop" icon_state = "act_drop" -/obj/screen/drop/Click() +/atom/movable/screen/drop/Click() usr.drop_item_v() -/obj/screen/grab +/atom/movable/screen/grab name = "grab" -/obj/screen/grab/Click() +/atom/movable/screen/grab/Click() var/obj/item/grab/G = master G.s_click(src) return 1 -/obj/screen/grab/attack_hand() +/atom/movable/screen/grab/attack_hand() return -/obj/screen/grab/attackby() +/atom/movable/screen/grab/attackby() return -/obj/screen/act_intent +/atom/movable/screen/act_intent name = "intent" icon_state = "help" screen_loc = ui_acti -/obj/screen/act_intent/Click(location, control, params) +/atom/movable/screen/act_intent/Click(location, control, params) if(ishuman(usr)) var/_x = text2num(params2list(params)["icon-x"]) var/_y = text2num(params2list(params)["icon-y"]) @@ -88,69 +98,69 @@ else usr.a_intent_change("right") -/obj/screen/act_intent/alien +/atom/movable/screen/act_intent/alien icon = 'icons/mob/screen_alien.dmi' screen_loc = ui_acti -/obj/screen/act_intent/robot +/atom/movable/screen/act_intent/robot icon = 'icons/mob/screen_robot.dmi' screen_loc = ui_borg_intents -/obj/screen/act_intent/robot/AI +/atom/movable/screen/act_intent/robot/AI screen_loc = "SOUTH+1:6,EAST-1:32" -/obj/screen/mov_intent +/atom/movable/screen/mov_intent name = "run/walk toggle" icon_state = "running" -/obj/screen/act_intent/simple_animal +/atom/movable/screen/act_intent/simple_animal icon = 'icons/mob/screen_simplemob.dmi' screen_loc = ui_acti -/obj/screen/act_intent/guardian +/atom/movable/screen/act_intent/guardian icon = 'icons/mob/guardian.dmi' screen_loc = ui_acti -/obj/screen/mov_intent/Click() +/atom/movable/screen/mov_intent/Click() usr.toggle_move_intent() -/obj/screen/pull +/atom/movable/screen/pull name = "stop pulling" icon_state = "pull" -/obj/screen/pull/Click() +/atom/movable/screen/pull/Click() usr.stop_pulling() -/obj/screen/pull/update_icon_state() +/atom/movable/screen/pull/update_icon_state() if(hud?.mymob?.pulling) icon_state = "pull" else icon_state = "pull0" -/obj/screen/resist +/atom/movable/screen/resist name = "resist" icon = 'icons/mob/screen_midnight.dmi' icon_state = "act_resist" -/obj/screen/resist/Click() +/atom/movable/screen/resist/Click() if(isliving(usr)) var/mob/living/L = usr L.resist() -/obj/screen/throw_catch +/atom/movable/screen/throw_catch name = "throw/catch" icon = 'icons/mob/screen_midnight.dmi' icon_state = "act_throw_off" -/obj/screen/throw_catch/Click() +/atom/movable/screen/throw_catch/Click() if(iscarbon(usr)) var/mob/living/carbon/C = usr C.toggle_throw_mode() -/obj/screen/storage +/atom/movable/screen/storage name = "storage" -/obj/screen/storage/Click(location, control, params) +/atom/movable/screen/storage/Click(location, control, params) if(world.time <= usr.next_move) return TRUE if(usr.incapacitated(ignore_restraints = TRUE)) @@ -163,7 +173,7 @@ master.attackby(I, usr, params) return TRUE -/obj/screen/storage/proc/is_item_accessible(obj/item/I, mob/user) +/atom/movable/screen/storage/proc/is_item_accessible(obj/item/I, mob/user) if(!user || !I) return FALSE @@ -180,7 +190,7 @@ return TRUE return FALSE -/obj/screen/storage/MouseDrop_T(obj/item/I, mob/user) +/atom/movable/screen/storage/MouseDrop_T(obj/item/I, mob/user) if(!user || !istype(I) || user.incapacitated(ignore_restraints = TRUE) || ismecha(user.loc) || !master) return @@ -219,7 +229,7 @@ S.attackby(I, user) return TRUE -/obj/screen/zone_sel +/atom/movable/screen/zone_sel name = "damage zone" icon_state = "zone_sel" screen_loc = ui_zonesel @@ -228,7 +238,7 @@ var/static/list/hover_overlays_cache = list() var/hovering -/obj/screen/zone_sel/Click(location, control,params) +/atom/movable/screen/zone_sel/Click(location, control,params) if(isobserver(usr)) return @@ -241,11 +251,11 @@ return set_selected_zone(choice, usr) -/obj/screen/zone_sel/MouseEntered(location, control, params) +/atom/movable/screen/zone_sel/MouseEntered(location, control, params) . = ..() MouseMove(location, control, params) -/obj/screen/zone_sel/MouseMove(location, control, params) +/atom/movable/screen/zone_sel/MouseMove(location, control, params) if(isobserver(usr)) return @@ -275,13 +285,13 @@ layer = ABOVE_HUD_LAYER plane = ABOVE_HUD_PLANE -/obj/screen/zone_sel/MouseExited(location, control, params) +/atom/movable/screen/zone_sel/MouseExited(location, control, params) if(!isobserver(usr) && hovering) cut_overlay(hover_overlays_cache[hovering]) hovering = null return ..() -/obj/screen/zone_sel/proc/get_zone_at(icon_x, icon_y) +/atom/movable/screen/zone_sel/proc/get_zone_at(icon_x, icon_y) switch(icon_y) if(1 to 3) //Feet switch(icon_x) @@ -325,7 +335,7 @@ return "eyes" return "head" -/obj/screen/zone_sel/proc/set_selected_zone(choice) +/atom/movable/screen/zone_sel/proc/set_selected_zone(choice) if(!hud) return if(isobserver(hud.mymob)) @@ -334,58 +344,58 @@ if(choice != selecting) selecting = choice update_icon(UPDATE_OVERLAYS) - return 1 + return TRUE -/obj/screen/zone_sel/update_overlays() +/atom/movable/screen/zone_sel/update_overlays() . = ..() var/image/sel = image(overlay_file, "[selecting]") sel.appearance_flags = RESET_COLOR . += sel hud.mymob.zone_selected = selecting -/obj/screen/zone_sel/alien +/atom/movable/screen/zone_sel/alien icon = 'icons/mob/screen_alien.dmi' overlay_file = 'icons/mob/screen_alien.dmi' -/obj/screen/zone_sel/robot +/atom/movable/screen/zone_sel/robot icon = 'icons/mob/screen_robot.dmi' -/obj/screen/craft +/atom/movable/screen/craft name = "crafting menu" icon = 'icons/mob/screen_midnight.dmi' icon_state = "craft" screen_loc = ui_crafting -/obj/screen/craft/Click() +/atom/movable/screen/craft/Click() var/mob/living/M = usr M.OpenCraftingMenu() -/obj/screen/language_menu +/atom/movable/screen/language_menu name = "language menu" icon = 'icons/mob/screen_midnight.dmi' icon_state = "talk_wheel" screen_loc = ui_language_menu -/obj/screen/language_menu/Click() +/atom/movable/screen/language_menu/Click() var/mob/M = usr if(!istype(M)) return M.check_languages() -/obj/screen/inventory +/atom/movable/screen/inventory var/slot_id //The indentifier for the slot. It has nothing to do with ID cards. var/list/object_overlays = list() -/obj/screen/inventory/MouseEntered() +/atom/movable/screen/inventory/MouseEntered() . = ..() add_overlays() -/obj/screen/inventory/MouseExited() +/atom/movable/screen/inventory/MouseExited() ..() cut_overlay(object_overlays) object_overlays.Cut() -/obj/screen/inventory/proc/add_overlays() +/atom/movable/screen/inventory/proc/add_overlays() var/mob/user = hud.mymob if(hud && user && slot_id) @@ -405,7 +415,7 @@ object_overlays += item_overlay add_overlay(object_overlays) -/obj/screen/inventory/MouseDrop(atom/over) +/atom/movable/screen/inventory/MouseDrop(atom/over) cut_overlay(object_overlays) object_overlays.Cut() if(could_be_click_lag()) @@ -414,7 +424,7 @@ return return ..() -/obj/screen/inventory/Click(location, control, params) +/atom/movable/screen/inventory/Click(location, control, params) // At this point in client Click() code we have passed the 1/10 sec check and little else // We don't even know if it's a middle click if(world.time <= usr.next_move) @@ -432,14 +442,14 @@ if(usr.attack_ui(slot_id)) usr.update_inv_l_hand() usr.update_inv_r_hand() - return 1 + return TRUE -/obj/screen/inventory/hand +/atom/movable/screen/inventory/hand var/image/active_overlay var/image/handcuff_overlay var/static/mutable_appearance/blocked_overlay = mutable_appearance('icons/mob/screen_gen.dmi', "blocked") -/obj/screen/inventory/hand/update_overlays() +/atom/movable/screen/inventory/hand/update_overlays() . = ..() if(!active_overlay) active_overlay = image("icon"=icon, "icon_state"="hand_active") @@ -462,7 +472,7 @@ else if(slot_id == SLOT_HUD_RIGHT_HAND && !hud.mymob.hand) . += active_overlay -/obj/screen/inventory/hand/Click() +/atom/movable/screen/inventory/hand/Click() // At this point in client Click() code we have passed the 1/10 sec check and little else // We don't even know if it's a middle click if(world.time <= usr.next_move) @@ -479,12 +489,12 @@ M.activate_hand("r") if("left hand", "l_hand") M.activate_hand("l") - return 1 + return TRUE -/obj/screen/swap_hand +/atom/movable/screen/swap_hand name = "swap hand" -/obj/screen/swap_hand/Click() +/atom/movable/screen/swap_hand/Click() // At this point in client Click() code we have passed the 1/10 sec check and little else // We don't even know if it's a middle click if(world.time <= usr.next_move) @@ -498,57 +508,57 @@ M.swap_hand() return 1 -/obj/screen/healths +/atom/movable/screen/healths name = "health" icon_state = "health0" screen_loc = ui_health -/obj/screen/healths/alien +/atom/movable/screen/healths/alien icon = 'icons/mob/screen_alien.dmi' screen_loc = ui_alien_health -/obj/screen/healths/bot +/atom/movable/screen/healths/bot icon = 'icons/mob/screen_bot.dmi' screen_loc = ui_borg_health -/obj/screen/healths/robot +/atom/movable/screen/healths/robot icon = 'icons/mob/screen_robot.dmi' screen_loc = ui_borg_health -/obj/screen/healths/corgi +/atom/movable/screen/healths/corgi icon = 'icons/mob/screen_corgi.dmi' -/obj/screen/healths/slime +/atom/movable/screen/healths/slime icon = 'icons/mob/screen_slime.dmi' icon_state = "slime_health0" screen_loc = ui_slime_health mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/screen/healths/guardian +/atom/movable/screen/healths/guardian name = "summoner health" icon = 'icons/mob/guardian.dmi' icon_state = "base" screen_loc = ui_health mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/screen/healthdoll +/atom/movable/screen/healthdoll name = "health doll" icon_state = "healthdoll_DEAD" screen_loc = ui_healthdoll var/list/cached_healthdoll_overlays = list() // List of icon states (strings) for overlays -/obj/screen/healthdoll/Click() +/atom/movable/screen/healthdoll/Click() if(ishuman(usr) && !usr.is_dead()) var/mob/living/carbon/H = usr H.check_self_for_injuries() -/obj/screen/component_button - var/obj/screen/parent +/atom/movable/screen/component_button + var/atom/movable/screen/parent -/obj/screen/component_button/Initialize(mapload, obj/screen/new_parent) +/atom/movable/screen/component_button/Initialize(mapload, atom/movable/screen/new_parent) . = ..() parent = new_parent -/obj/screen/component_button/Click(params) +/atom/movable/screen/component_button/Click(params) if(parent) parent.component_click(src, params) diff --git a/code/_onclick/hud/screentip.dm b/code/_onclick/hud/screentip.dm index beb8f033b9fd7..542c96e626f2f 100644 --- a/code/_onclick/hud/screentip.dm +++ b/code/_onclick/hud/screentip.dm @@ -1,4 +1,4 @@ -/obj/screen/screentip +/atom/movable/screen/screentip icon = null mouse_opacity = MOUSE_OPACITY_TRANSPARENT screen_loc = "TOP,LEFT" @@ -7,12 +7,12 @@ maptext_y = -50 maptext = "" -/obj/screen/screentip/Initialize(mapload, _hud) +/atom/movable/screen/screentip/Initialize(mapload, _hud) . = ..() hud = _hud update_view() -/obj/screen/screentip/proc/update_view(datum/source) +/atom/movable/screen/screentip/proc/update_view(datum/source) if(!hud) //Might not have been initialized by now return maptext_width = getviewsize(hud.mymob.client.view)[1] * world.icon_size diff --git a/code/_onclick/hud/slime_hud.dm b/code/_onclick/hud/slime_hud.dm index 273991a83c845..58a579e3599bd 100644 --- a/code/_onclick/hud/slime_hud.dm +++ b/code/_onclick/hud/slime_hud.dm @@ -1,6 +1,6 @@ /datum/hud/slime/New(mob/living/simple_animal/slime/owner, ui_style = 'icons/mob/screen_slime.dmi') ..() - mymob.healths = new /obj/screen/healths/slime() + mymob.healths = new /atom/movable/screen/healths/slime() infodisplay += mymob.healths /mob/living/simple_animal/slime/create_mob_hud() diff --git a/code/controllers/failsafe.dm b/code/controllers/failsafe.dm index 8df9f1958dcfc..a1d096a247416 100644 --- a/code/controllers/failsafe.dm +++ b/code/controllers/failsafe.dm @@ -6,7 +6,8 @@ GLOBAL_REAL(Failsafe, /datum/controller/failsafe) -/datum/controller/failsafe // This thing pretty much just keeps poking the master controller +/// This thing pretty much just keeps poking the master controller +/datum/controller/failsafe name = "Failsafe" // The length of time to check on the MC (in deciseconds). diff --git a/code/controllers/subsystem/SSdebugview.dm b/code/controllers/subsystem/SSdebugview.dm index 0f973a5deb213..bbc2082c582c2 100644 --- a/code/controllers/subsystem/SSdebugview.dm +++ b/code/controllers/subsystem/SSdebugview.dm @@ -44,7 +44,7 @@ SUBSYSTEM_DEF(debugview) C.debug_text_overlay.maptext = "<span class='maptext' style='background-color: #272727;'>[out_text]</span>" /datum/controller/subsystem/debugview/proc/start_processing(client/C) - C.debug_text_overlay = new /obj/screen/debugtextholder(null, C) + C.debug_text_overlay = new /atom/movable/screen/debugtextholder(null, C) C.screen |= C.debug_text_overlay processing |= C @@ -53,7 +53,7 @@ SUBSYSTEM_DEF(debugview) C.screen -= C.debug_text_overlay QDEL_NULL(C.debug_text_overlay) -/obj/screen/debugtextholder +/atom/movable/screen/debugtextholder icon = 'icons/mob/screen_full.dmi' icon_state = "empty" screen_loc = "TOP,LEFT" @@ -61,11 +61,11 @@ SUBSYSTEM_DEF(debugview) maptext_height = 480 // 15 * 32 (15 tiles, 32 pixels each) maptext_width = 480 // changes with prefs -/obj/screen/debugtextholder/Initialize(mapload, client/C) +/atom/movable/screen/debugtextholder/Initialize(mapload, client/C) . = ..() update_view(C) -/obj/screen/debugtextholder/proc/update_view(client/C) +/atom/movable/screen/debugtextholder/proc/update_view(client/C) var/list/viewsizes = getviewsize(C.view) maptext_width = viewsizes[1] * world.icon_size diff --git a/code/controllers/subsystem/SSghost_spawns.dm b/code/controllers/subsystem/SSghost_spawns.dm index 9811088f742d1..80e275ce9a1c5 100644 --- a/code/controllers/subsystem/SSghost_spawns.dm +++ b/code/controllers/subsystem/SSghost_spawns.dm @@ -70,7 +70,7 @@ SUBSYSTEM_DEF(ghost_spawns) // If we somehow send two polls for the same mob type, but with a duration on the second one shorter than the time left on the first one, // we need to keep the first one's timeout rather than use the shorter one - var/obj/screen/alert/notify_action/current_alert = LAZYACCESS(M.alerts, category) + var/atom/movable/screen/alert/notify_action/current_alert = LAZYACCESS(M.alerts, category) var/alert_time = poll_time var/alert_poll = P if(current_alert && current_alert.timeout > (world.time + poll_time - world.tick_lag)) @@ -78,7 +78,7 @@ SUBSYSTEM_DEF(ghost_spawns) alert_poll = current_alert.poll // Send them an on-screen alert - var/obj/screen/alert/notify_action/A = M.throw_alert(category, /obj/screen/alert/notify_action, timeout_override = alert_time, no_anim = TRUE) + var/atom/movable/screen/alert/notify_action/A = M.throw_alert(category, /atom/movable/screen/alert/notify_action, timeout_override = alert_time, no_anim = TRUE) if(!A) continue diff --git a/code/controllers/subsystem/SSparallax.dm b/code/controllers/subsystem/SSparallax.dm index c0beb503d66af..99024fd0d1e91 100644 --- a/code/controllers/subsystem/SSparallax.dm +++ b/code/controllers/subsystem/SSparallax.dm @@ -17,7 +17,7 @@ SUBSYSTEM_DEF(parallax) /datum/controller/subsystem/parallax/PreInit() . = ..() if(prob(70)) //70% chance to pick a special extra layer - random_layer = pick(/obj/screen/parallax_layer/random/space_gas, /obj/screen/parallax_layer/random/asteroids) + random_layer = pick(/atom/movable/screen/parallax_layer/random/space_gas, /atom/movable/screen/parallax_layer/random/asteroids) random_parallax_color = pick(COLOR_TEAL, COLOR_GREEN, COLOR_SILVER, COLOR_YELLOW, COLOR_CYAN, COLOR_ORANGE, COLOR_PURPLE) //Special color for random_layer1. Has to be done here so everyone sees the same color. planet_y_offset = rand(100, 160) planet_x_offset = rand(100, 160) diff --git a/code/controllers/subsystem/SSticker.dm b/code/controllers/subsystem/SSticker.dm index 2c500571b4e1a..03513434cdb6a 100644 --- a/code/controllers/subsystem/SSticker.dm +++ b/code/controllers/subsystem/SSticker.dm @@ -54,7 +54,7 @@ SUBSYSTEM_DEF(ticker) /// Holder for inital autotransfer vote timer var/next_autotransfer = 0 /// Used for station explosion cinematic - var/obj/screen/cinematic = null + var/atom/movable/screen/cinematic = null /// Spam Prevention. Announce round end only once. var/round_end_announced = FALSE /// Is the ticker currently processing? If FALSE, roundstart is delayed @@ -364,7 +364,7 @@ SUBSYSTEM_DEF(ticker) auto_toggle_ooc(TRUE) // Turn it on //initialise our cinematic screen object - cinematic = new /obj/screen(src) + cinematic = new /atom/movable/screen(src) cinematic.icon = 'icons/effects/station_explosion.dmi' cinematic.icon_state = "station_intact" cinematic.layer = 21 diff --git a/code/datums/action.dm b/code/datums/action.dm index 0e6dc66076dc5..18fd408677410 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -12,7 +12,7 @@ var/desc = null var/obj/target = null var/check_flags = 0 - var/obj/screen/movable/action_button/button = null + var/atom/movable/screen/movable/action_button/button = null var/button_icon = 'icons/mob/actions/actions.dmi' var/background_icon_state = "bg_default" var/buttontooltipstyle = "" @@ -129,7 +129,7 @@ img.plane = FLOAT_PLANE + 1 button.add_overlay(img) -/datum/action/proc/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/proc/ApplyIcon(atom/movable/screen/movable/action_button/current_button) current_button.cut_overlays() if(icon_icon && button_icon_state) var/image/img = image(icon_icon, current_button, button_icon_state) @@ -165,7 +165,7 @@ I.ui_action_click(owner, type, left_click) return TRUE -/datum/action/item_action/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/item_action/ApplyIcon(atom/movable/screen/movable/action_button/current_button) if(use_itemicon) if(target) var/obj/item/I = target @@ -436,7 +436,7 @@ owner.research_scanner = FALSE ..() -/datum/action/item_action/toggle_research_scanner/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/item_action/toggle_research_scanner/ApplyIcon(atom/movable/screen/movable/action_button/current_button) current_button.cut_overlays() if(button_icon && button_icon_state) var/image/img = image(button_icon, current_button, "scan_mode") diff --git a/code/datums/click_intercept.dm b/code/datums/click_intercept.dm index 953e1272602f1..78e8c8725f7d8 100644 --- a/code/datums/click_intercept.dm +++ b/code/datums/click_intercept.dm @@ -8,8 +8,8 @@ /datum/click_intercept /// A reference to the client which is assigned this click intercept datum. var/client/holder = null - /// Any `obj/screen/buttons` the client is meant to receive when assigned this click intercept datum. - var/list/obj/screen/buttons = list() + /// Any `atom/movable/screen/buttons` the client is meant to receive when assigned this click intercept datum. + var/list/atom/movable/screen/buttons = list() /datum/click_intercept/New(client/C) create_buttons() diff --git a/code/datums/diseases/advance/symptoms/dizzy.dm b/code/datums/diseases/advance/symptoms/dizzy.dm index f5190f322b598..ede04d3da1f03 100644 --- a/code/datums/diseases/advance/symptoms/dizzy.dm +++ b/code/datums/diseases/advance/symptoms/dizzy.dm @@ -15,7 +15,8 @@ Bonus ////////////////////////////////////// */ -/datum/symptom/dizzy // Not the egg +/// Not the egg +/datum/symptom/dizzy name = "Dizziness" stealth = 2 diff --git a/code/datums/keybindings/mob_keybinds.dm b/code/datums/keybindings/mob_keybinds.dm index c2f782dd024d9..55122bff7937a 100644 --- a/code/datums/keybindings/mob_keybinds.dm +++ b/code/datums/keybindings/mob_keybinds.dm @@ -168,7 +168,7 @@ if(!C.check_has_body_select()) return - var/obj/screen/zone_sel/selector = C.mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = C.mob.hud_used.zone_select selector.set_selected_zone(body_part, C.mob) /datum/keybinding/mob/target/head @@ -225,7 +225,8 @@ name = "Target Left Foot" body_part = BODY_ZONE_PRECISE_L_FOOT -/datum/keybinding/mob/trigger_action_button // Don't add a name to this, shouldn't show up in the prefs menu +/// Don't add a name to this, shouldn't show up in the prefs menu +/datum/keybinding/mob/trigger_action_button var/datum/action/linked_action var/binded_to // these are expected to actually get deleted at some point, to prevent hard deletes we need to know where to remove them from the clients list diff --git a/code/datums/outfits/outfit_admin.dm b/code/datums/outfits/outfit_admin.dm index c64099993e3cd..671ac42da62d2 100644 --- a/code/datums/outfits/outfit_admin.dm +++ b/code/datums/outfits/outfit_admin.dm @@ -954,7 +954,8 @@ back = /obj/item/mod/control/pre_equipped/traitor shoes = /obj/item/clothing/shoes/magboots/syndie -/datum/outfit/admin/modsuit/wizard // Technically not a MODsuit, we'll bundle it up in here for the future when it does become one +/// Technically not a MODsuit, we'll bundle it up in here for the future when it does become one +/datum/outfit/admin/modsuit/wizard name = "Hardsuit - Wizard" suit = /obj/item/clothing/suit/space/hardsuit/wizard shoes = /obj/item/clothing/shoes/magboots/wizard @@ -984,7 +985,8 @@ name = "Tournament Standard Green" uniform = /obj/item/clothing/under/color/green -/datum/outfit/admin/tournament/tournament_gangster //gangster are supposed to fight each other. --rastaf0 +/// gangster are supposed to fight each other. --rastaf0 +/datum/outfit/admin/tournament/tournament_gangster name = "Tournament Gangster" uniform = /obj/item/clothing/under/rank/security/detective @@ -995,7 +997,8 @@ l_pocket = /obj/item/ammo_box/a357 r_hand = /obj/item/gun/projectile/automatic/proto -/datum/outfit/admin/tournament/tournament_chef //Steven Seagal FTW +/// Steven Seagal FTW +/datum/outfit/admin/tournament/tournament_chef name = "Tournament Chef" uniform = /obj/item/clothing/under/rank/civilian/chef diff --git a/code/datums/outfits/outfit_debug.dm b/code/datums/outfits/outfit_debug.dm index e992aed1af2ab..0f5235bf52ca8 100644 --- a/code/datums/outfits/outfit_debug.dm +++ b/code/datums/outfits/outfit_debug.dm @@ -49,7 +49,8 @@ name = "AVD-CNED bowman headset" ks2type = /obj/item/encryptionkey/syndicate/all_channels -/obj/item/encryptionkey/syndicate/all_channels // has to be a subtype and stuff +/// has to be a subtype and stuff +/obj/item/encryptionkey/syndicate/all_channels name = "AVD-CNED Encryption Key" desc = "Lets you listen to <b>everything</b>. Use in hand to toggle voice changing. Alt-click to change your fake name." icon_state = "com_cypherkey" diff --git a/code/datums/pipe_datums.dm b/code/datums/pipe_datums.dm index 41adb4a188293..1870faf9ef5d0 100644 --- a/code/datums/pipe_datums.dm +++ b/code/datums/pipe_datums.dm @@ -27,7 +27,8 @@ GLOBAL_LIST_EMPTY(rpd_pipe_list) //Some pipes we don't want to be dispensable pipe_icon = "simple" rpd_dispensable = TRUE -/datum/pipes/atmospheric/bent //Why is this not atmospheric/simple/bent you ask? Because otherwise the ordering of the pipes in the UI menu gets weird +/// Why is this not atmospheric/simple/bent you ask? Because otherwise the ordering of the pipes in the UI menu gets weird +/datum/pipes/atmospheric/bent pipe_name = "bent pipe" pipe_id = PIPE_SIMPLE_BENT orientations = 4 diff --git a/code/datums/position_point_vector.dm b/code/datums/position_point_vector.dm index 1cad3b52899f8..433aafeaa1898 100644 --- a/code/datums/position_point_vector.dm +++ b/code/datums/position_point_vector.dm @@ -214,7 +214,8 @@ v.increment(multiplier * amount) return v -/datum/point_precise/vector/processed //pixel_speed is per decisecond. +/// pixel_speed is per decisecond. +/datum/point_precise/vector/processed var/last_process = 0 var/last_move = 0 var/paused = FALSE diff --git a/code/datums/spells/bloodcrawl.dm b/code/datums/spells/bloodcrawl.dm index 6d00e58ba6785..ac39f6b03872d 100644 --- a/code/datums/spells/bloodcrawl.dm +++ b/code/datums/spells/bloodcrawl.dm @@ -55,7 +55,8 @@ icon = 'icons/effects/blood.dmi' flags = NODROP|ABSTRACT -/obj/effect/dummy/slaughter //Can't use the wizard one, blocked by jaunt/slow +/// Can't use the wizard one, blocked by jaunt/slow +/obj/effect/dummy/slaughter name = "odd blood" icon = 'icons/effects/effects.dmi' icon_state = "nothing" diff --git a/code/datums/spells/conjure.dm b/code/datums/spells/conjure.dm index ab1d191f658a7..380c178688c6d 100644 --- a/code/datums/spells/conjure.dm +++ b/code/datums/spells/conjure.dm @@ -57,7 +57,8 @@ return what_conjure_summoned -/obj/effect/proc_holder/spell/aoe/conjure/summonEdSwarm //test purposes +/// test purposes +/obj/effect/proc_holder/spell/aoe/conjure/summonEdSwarm name = "Dispense Wizard Justice" desc = "This spell dispenses wizard justice." summon_type = list(/mob/living/simple_animal/bot/ed209) diff --git a/code/datums/spells/mimic.dm b/code/datums/spells/mimic.dm index b7fe668761d9d..15c1481c8fefc 100644 --- a/code/datums/spells/mimic.dm +++ b/code/datums/spells/mimic.dm @@ -19,7 +19,7 @@ var/perfect_disguise = FALSE var/static/list/black_listed_form_types = list( - /obj/screen, + /atom/movable/screen, /obj/singularity, /obj/effect, /mob/living/simple_animal/hostile/megafauna, diff --git a/code/datums/station_traits/postive_traits.dm b/code/datums/station_traits/postive_traits.dm index 963d4291e3c77..6b161fa866258 100644 --- a/code/datums/station_traits/postive_traits.dm +++ b/code/datums/station_traits/postive_traits.dm @@ -154,7 +154,8 @@ implant_to_give.implant(spawned, spawned, TRUE, TRUE) -/datum/station_trait/cybernetic_revolution //NOTE: THIS MAKES EMP MUCH MORE EXPENSIVE. +/// NOTE: THIS MAKES EMP MUCH MORE EXPENSIVE. +/datum/station_trait/cybernetic_revolution name = "Cybernetic Revolution" trait_type = STATION_TRAIT_POSITIVE show_in_report = TRUE diff --git a/code/datums/status_effects/blob_burst.dm b/code/datums/status_effects/blob_burst.dm index 37170782b93bf..d1381612a2c48 100644 --- a/code/datums/status_effects/blob_burst.dm +++ b/code/datums/status_effects/blob_burst.dm @@ -1,5 +1,5 @@ /datum/status_effect/blob_burst - alert_type = /obj/screen/alert/status_effect/blob_burst + alert_type = /atom/movable/screen/alert/status_effect/blob_burst var/datum/callback/blob_burst_callback /datum/status_effect/blob_burst/on_creation(mob/living/new_owner, duration = 120 SECONDS, datum/callback/burst_callback) @@ -20,7 +20,7 @@ /datum/status_effect/blob_burst/on_timeout() blob_burst_callback.Invoke() -/obj/screen/alert/status_effect/blob_burst +/atom/movable/screen/alert/status_effect/blob_burst name = "Blob burst" desc = "You're about to burst into a blob, be sure to find a safe place before that you burst!" icon = 'icons/mob/blob.dmi' diff --git a/code/datums/status_effects/buffs.dm b/code/datums/status_effects/buffs.dm index 61143bc0ccafe..7210c6a9cb554 100644 --- a/code/datums/status_effects/buffs.dm +++ b/code/datums/status_effects/buffs.dm @@ -4,18 +4,18 @@ id = "his_grace" duration = -1 tick_interval = 4 - alert_type = /obj/screen/alert/status_effect/his_grace + alert_type = /atom/movable/screen/alert/status_effect/his_grace var/bloodlust = 0 /// Attached His Grace toolbox var/obj/item/his_grace/toolbox -/obj/screen/alert/status_effect/his_grace +/atom/movable/screen/alert/status_effect/his_grace name = "His Grace" desc = "His Grace hungers, and you must feed Him." icon_state = "his_grace" alerttooltipstyle = "hisgrace" -/obj/screen/alert/status_effect/his_grace/MouseEntered(location, control, params) +/atom/movable/screen/alert/status_effect/his_grace/MouseEntered(location, control, params) desc = initial(desc) var/datum/status_effect/his_grace/HG = attached_effect desc += "<br><font size=3><b>Current Bloodthirst: [HG.bloodlust]</b></font>\ @@ -61,9 +61,9 @@ /datum/status_effect/shadow_mend id = "shadow_mend" duration = 3 SECONDS - alert_type = /obj/screen/alert/status_effect/shadow_mend + alert_type = /atom/movable/screen/alert/status_effect/shadow_mend -/obj/screen/alert/status_effect/shadow_mend +/atom/movable/screen/alert/status_effect/shadow_mend name = "Shadow Mend" desc = "Shadowy energies wrap around your wounds, sealing them at a price. After healing, you will slowly lose health every three seconds for thirty seconds." icon_state = "shadow_mend" @@ -88,10 +88,10 @@ duration = 30 SECONDS tick_interval = 3 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/void_price + alert_type = /atom/movable/screen/alert/status_effect/void_price var/price = 3 //This is how much hp you lose per tick. Each time the buff is refreshed, it increased by 1. Healing too much in a short period of time will cause your swift demise -/obj/screen/alert/status_effect/void_price +/atom/movable/screen/alert/status_effect/void_price name = "Void Price" desc = "Black tendrils cinch tightly against you, digging wicked barbs into your flesh." icon_state = "shadow_mend" @@ -108,10 +108,10 @@ id = "blooddrunk" duration = 10 tick_interval = 0 - alert_type = /obj/screen/alert/status_effect/blooddrunk + alert_type = /atom/movable/screen/alert/status_effect/blooddrunk var/blooddrunk_damage_mod_remove = 4 // Damage is multiplied by this at the end of the status effect. Modify this one, it changes the _add -/obj/screen/alert/status_effect/blooddrunk +/atom/movable/screen/alert/status_effect/blooddrunk name = "Blood-Drunk" desc = "You are drunk on blood! Your pulse thunders in your ears! Nothing can harm you!" //not true, and the item description mentions its actual effect icon_state = "blooddrunk" @@ -147,7 +147,7 @@ if(islist(owner.stun_absorption) && owner.stun_absorption["blooddrunk"]) owner.remove_stun_absorption("blooddrunk") -/obj/screen/alert/status_effect/dash +/atom/movable/screen/alert/status_effect/dash name = "Dash" desc = "Your have the ability to dash!" icon = 'icons/mob/actions/actions.dmi' @@ -157,16 +157,16 @@ id = "dash" duration = 5 SECONDS tick_interval = 0 - alert_type = /obj/screen/alert/status_effect/dash + alert_type = /atom/movable/screen/alert/status_effect/dash /datum/status_effect/bloodswell id = "bloodswell" duration = 30 SECONDS tick_interval = 0 - alert_type = /obj/screen/alert/status_effect/blood_swell + alert_type = /atom/movable/screen/alert/status_effect/blood_swell var/bonus_damage_applied = FALSE -/obj/screen/alert/status_effect/blood_swell +/atom/movable/screen/alert/status_effect/blood_swell name = "Blood Swell" desc = "Your body has been infused with crimson magics, your resistance to attacks has greatly increased!" icon = 'icons/mob/actions/actions.dmi' @@ -206,9 +206,9 @@ id = "vampire_gladiator" duration = 30 SECONDS tick_interval = 1 SECONDS - alert_type = /obj/screen/alert/status_effect/vampire_gladiator + alert_type = /atom/movable/screen/alert/status_effect/vampire_gladiator -/obj/screen/alert/status_effect/vampire_gladiator +/atom/movable/screen/alert/status_effect/vampire_gladiator name = "Gladiatorial Resilience" desc = "Roused by the thrill of the fight, your body has become more resistant to breaking!" icon = 'icons/mob/actions/actions.dmi' @@ -408,7 +408,7 @@ if(!heal_points) return -/obj/screen/alert/status_effect/regenerative_core +/atom/movable/screen/alert/status_effect/regenerative_core name = "Reinforcing Tendrils" desc = "You can move faster than your broken body could normally handle!" icon_state = "regenerative_core" @@ -418,7 +418,7 @@ id = "Regenerative Core" duration = 1 MINUTES status_type = STATUS_EFFECT_REPLACE - alert_type = /obj/screen/alert/status_effect/regenerative_core + alert_type = /atom/movable/screen/alert/status_effect/regenerative_core /datum/status_effect/regenerative_core/on_apply() ADD_TRAIT(owner, TRAIT_IGNOREDAMAGESLOWDOWN, id) @@ -551,9 +551,9 @@ id = "chainsaw_slaying" duration = 5 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/chainsaw + alert_type = /atom/movable/screen/alert/status_effect/chainsaw -/obj/screen/alert/status_effect/chainsaw +/atom/movable/screen/alert/status_effect/chainsaw name = "Revved up!" desc = "<span class='danger'>... guts, huge guts! Kill them... must kill them all!</span>" icon_state = "chainsaw" @@ -585,9 +585,9 @@ duration = -1 tick_interval = 2 SECONDS status_type = STATUS_EFFECT_UNIQUE - alert_type = /obj/screen/alert/status_effect/hope + alert_type = /atom/movable/screen/alert/status_effect/hope -/obj/screen/alert/status_effect/hope +/atom/movable/screen/alert/status_effect/hope name = "Hope." desc = "A ray of hope beyond dispair." icon_state = "hope" @@ -640,13 +640,13 @@ return ..() /datum/status_effect/drill_payback/on_apply() - owner.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 0) + owner.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 0) addtimer(CALLBACK(src, PROC_REF(payback_phase_2)), 2.7 SECONDS) return TRUE /datum/status_effect/drill_payback/proc/payback_phase_2() owner.clear_fullscreen("payback") - owner.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 1) + owner.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 1) /datum/status_effect/drill_payback/tick() //They are not staying down. This will be a fight. if(!drilled_successfully && (get_dist(owner, drilled) >= 9)) //We don't want someone drilling the safe at arivals then raiding bridge with the buff @@ -752,9 +752,9 @@ id = "bearserker rage" duration = 5 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/bearserker_rage + alert_type = /atom/movable/screen/alert/status_effect/bearserker_rage -/obj/screen/alert/status_effect/bearserker_rage +/atom/movable/screen/alert/status_effect/bearserker_rage name = "Bearserker Rage" desc = "<span class='danger'>Blood flows between your fingers, and Foh'Sie roars; \"MORE BLOOD!\"</span>" icon_state = "bearserker" diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index 2a2b609976269..efcc3c3ab286d 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -1,12 +1,13 @@ //OTHER DEBUFFS -/datum/status_effect/his_wrath //does minor damage over time unless holding His Grace +/// does minor damage over time unless holding His Grace +/datum/status_effect/his_wrath id = "his_wrath" duration = -1 tick_interval = 4 - alert_type = /obj/screen/alert/status_effect/his_wrath + alert_type = /atom/movable/screen/alert/status_effect/his_wrath -/obj/screen/alert/status_effect/his_wrath +/atom/movable/screen/alert/status_effect/his_wrath name = "His Wrath" desc = "You fled from His Grace instead of feeding Him, and now you suffer." icon_state = "his_grace" @@ -23,7 +24,8 @@ owner.adjustFireLoss(0.1) owner.adjustToxLoss(0.2) -/datum/status_effect/cultghost //is a cult ghost and can't use manifest runes, can see ghosts and dies if too far from summoner +/// is a cult ghost and can't use manifest runes, can see ghosts and dies if too far from summoner +/datum/status_effect/cultghost id = "cult_ghost" duration = -1 alert_type = null @@ -186,10 +188,10 @@ id = "teleportation sickness" duration = 30 SECONDS status_type = STATUS_EFFECT_REFRESH - alert_type = /obj/screen/alert/status_effect/teleport_sickness + alert_type = /atom/movable/screen/alert/status_effect/teleport_sickness var/teleports = 1 -/obj/screen/alert/status_effect/teleport_sickness +/atom/movable/screen/alert/status_effect/teleport_sickness name = "Teleportation sickness" desc = "You feel like you are going to throw up with all this teleporting." icon_state = "bluespace" @@ -382,6 +384,26 @@ /datum/status_effect/transient/drowsiness/calc_decay() return (-0.2 + (IS_HORIZONTAL(owner) ? -0.8 : 0)) SECONDS +/datum/status_effect/pepper_spray + id = "pepperspray" + duration = 10 SECONDS + status_type = STATUS_EFFECT_REFRESH + tick_interval = -1 + alert_type = null + +/datum/status_effect/pepper_spray/on_apply() + . = ..() + to_chat(owner, "<span class='danger'>Your throat burns!</span>") + owner.AdjustConfused(12 SECONDS) + owner.Slowed(4 SECONDS) + owner.apply_damage(40, STAMINA) + +/datum/status_effect/pepper_spray/refresh() + . = ..() + owner.AdjustConfused(12 SECONDS) + owner.Slowed(4 SECONDS) + owner.apply_damage(20, STAMINA) + /** * # Drukenness * @@ -442,7 +464,7 @@ owner.Slur(actual_strength) if(!alert_thrown) alert_thrown = TRUE - owner.throw_alert("drunk", /obj/screen/alert/drunk) + owner.throw_alert("drunk", /atom/movable/screen/alert/drunk) owner.sound_environment_override = SOUND_ENVIRONMENT_PSYCHOTIC // THRESHOLD_BRAWLING (60 SECONDS) if(M) @@ -679,7 +701,8 @@ . = ..() REMOVE_TRAIT(owner, TRAIT_MUTE, id) -/datum/status_effect/transient/silence/absolute // this one will mute all emote sounds including gasps +/// this one will mute all emote sounds including gasps +/datum/status_effect/transient/silence/absolute id = "abssilenced" /datum/status_effect/transient/deaf @@ -988,7 +1011,7 @@ /datum/status_effect/bubblegum_curse id = "bubblegum curse" - alert_type = /obj/screen/alert/status_effect/bubblegum_curse + alert_type = /atom/movable/screen/alert/status_effect/bubblegum_curse duration = -1 //Kill it. There is no other option. tick_interval = 1 SECONDS /// The damage the status effect does per tick. @@ -1000,7 +1023,7 @@ /datum/status_effect/bubblegum_curse/on_creation(mob/living/new_owner, mob/living/source) . = ..() source_UID = source.UID() - owner.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 1) + owner.overlay_fullscreen("Bubblegum", /atom/movable/screen/fullscreen/fog, 1) /datum/status_effect/bubblegum_curse/tick() var/mob/living/simple_animal/hostile/megafauna/bubblegum/attacker = locateUID(source_UID) @@ -1008,7 +1031,7 @@ qdel(src) if(attacker.health <= attacker.maxHealth / 2) owner.clear_fullscreen("Bubblegum") - owner.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 2) + owner.overlay_fullscreen("Bubblegum", /atom/movable/screen/fullscreen/fog, 2) if(!coward_checking) if(owner.z != attacker.z) addtimer(CALLBACK(src, PROC_REF(onstation_coward_callback)), 12 SECONDS) @@ -1100,20 +1123,20 @@ playsound(targetturf, 'sound/misc/exit_blood.ogg', 100, TRUE, -1) addtimer(CALLBACK(attacker, TYPE_PROC_REF(/mob/living/simple_animal/hostile/megafauna/bubblegum, FindTarget), list(owner), 1), 2) -/obj/screen/alert/status_effect/bubblegum_curse +/atom/movable/screen/alert/status_effect/bubblegum_curse name = "I SEE YOU" desc = "YOUR SOUL WILL BE MINE FOR YOUR INSOLENCE" icon_state = "bubblegumjumpscare" -/obj/screen/alert/status_effect/bubblegum_curse/Initialize(mapload) +/atom/movable/screen/alert/status_effect/bubblegum_curse/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) -/obj/screen/alert/status_effect/bubblegum_curse/Destroy() +/atom/movable/screen/alert/status_effect/bubblegum_curse/Destroy() STOP_PROCESSING(SSobj, src) return ..() -/obj/screen/alert/status_effect/bubblegum_curse/process() +/atom/movable/screen/alert/status_effect/bubblegum_curse/process() var/new_filter = isnull(get_filter("ray")) ray_filter_helper(1, 40,"#ce3030", 6, 20) if(new_filter) @@ -1123,10 +1146,10 @@ /datum/status_effect/abductor_cooldown id = "abductor_cooldown" - alert_type = /obj/screen/alert/status_effect/abductor_cooldown + alert_type = /atom/movable/screen/alert/status_effect/abductor_cooldown duration = 10 SECONDS -/obj/screen/alert/status_effect/abductor_cooldown +/atom/movable/screen/alert/status_effect/abductor_cooldown name = "Teleportation cooldown" desc = "Per article A-113, all experimentors must wait 10000 milliseconds between teleports in order to ensure no long term genetic or mental damage happens to experimentor or test subjects." icon_state = "bluespace" @@ -1137,7 +1160,7 @@ /// Purposebuilt for cursed slot machines. /datum/status_effect/cursed id = "cursed" - alert_type = /obj/screen/alert/status_effect/cursed + alert_type = /atom/movable/screen/alert/status_effect/cursed /// The max number of curses a target can incur with this status effect. var/max_curse_count = DEFAULT_MAX_CURSE_COUNT /// The amount of times we have been "applied" to the target. @@ -1281,12 +1304,12 @@ oxy = (curse_count * ticked_coefficient), ) -/obj/screen/alert/status_effect/cursed +/atom/movable/screen/alert/status_effect/cursed name = "Cursed!" desc = "The brand on your hand reminds you of your greed, yet you seem to be okay otherwise." icon_state = "cursed_by_slots" -/obj/screen/alert/status_effect/cursed/update_desc() +/atom/movable/screen/alert/status_effect/cursed/update_desc() . = ..() var/datum/status_effect/cursed/linked_effect = attached_effect var/curses = linked_effect.curse_count diff --git a/code/datums/status_effects/gas.dm b/code/datums/status_effects/gas.dm index 653238c6358a5..fa1ed6ad2afa9 100644 --- a/code/datums/status_effects/gas.dm +++ b/code/datums/status_effects/gas.dm @@ -2,11 +2,11 @@ id = "frozen" duration = 100 status_type = STATUS_EFFECT_UNIQUE - alert_type = /obj/screen/alert/status_effect/freon + alert_type = /atom/movable/screen/alert/status_effect/freon var/icon/cube var/can_melt = TRUE -/obj/screen/alert/status_effect/freon +/atom/movable/screen/alert/status_effect/freon name = "Frozen Solid" desc = "You're frozen inside an ice cube, and cannot move! You can still do stuff, like shooting. Resist out of the cube!" icon_state = "frozen" diff --git a/code/datums/status_effects/magic_disguise.dm b/code/datums/status_effects/magic_disguise.dm index 9da1fb8dc39b6..97a3640de2b30 100644 --- a/code/datums/status_effects/magic_disguise.dm +++ b/code/datums/status_effects/magic_disguise.dm @@ -2,11 +2,11 @@ id = "magic_disguise" duration = -1 tick_interval = -1 - alert_type = /obj/screen/alert/status_effect/magic_disguise + alert_type = /atom/movable/screen/alert/status_effect/magic_disguise status_type = STATUS_EFFECT_REPLACE var/datum/icon_snapshot/disguise -/obj/screen/alert/status_effect/magic_disguise +/atom/movable/screen/alert/status_effect/magic_disguise name = "Disguised" desc = "You are disguised as a crewmember." icon = 'icons/mob/actions/actions.dmi' diff --git a/code/datums/status_effects/neutral.dm b/code/datums/status_effects/neutral.dm index 50ddee96a03e9..1a0339564de5b 100644 --- a/code/datums/status_effects/neutral.dm +++ b/code/datums/status_effects/neutral.dm @@ -1,6 +1,7 @@ //entirely neutral or internal status effects go here -/datum/status_effect/crusher_damage //tracks the damage dealt to this mob by kinetic crushers +/// tracks the damage dealt to this mob by kinetic crushers +/datum/status_effect/crusher_damage id = "crusher_damage" duration = -1 status_type = STATUS_EFFECT_UNIQUE diff --git a/code/datums/status_effects/status_effect.dm b/code/datums/status_effects/status_effect.dm index b137ffe36601d..65017ada48bbc 100644 --- a/code/datums/status_effects/status_effect.dm +++ b/code/datums/status_effects/status_effect.dm @@ -10,8 +10,8 @@ var/status_type = STATUS_EFFECT_UNIQUE //How many of the effect can be on one mob, and what happens when you try to add another var/on_remove_on_mob_delete = FALSE //if we call on_remove() when the mob is deleted var/examine_text //If defined, this text will appear when the mob is examined - to use he, she etc. use "SUBJECTPRONOUN" and replace it in the examines themselves - var/alert_type = /obj/screen/alert/status_effect //the alert thrown by the status effect, contains name and description - var/obj/screen/alert/status_effect/linked_alert = null //the alert itself, if it exists + var/alert_type = /atom/movable/screen/alert/status_effect //the alert thrown by the status effect, contains name and description + var/atom/movable/screen/alert/status_effect/linked_alert = null //the alert itself, if it exists /datum/status_effect/New(list/arguments) on_creation(arglist(arguments)) @@ -28,7 +28,7 @@ duration = world.time + duration tick_interval = world.time + tick_interval if(alert_type) - var/obj/screen/alert/status_effect/A = owner.throw_alert(id, alert_type) + var/atom/movable/screen/alert/status_effect/A = owner.throw_alert(id, alert_type) A.attached_effect = src //so the alert can reference us, if it needs to linked_alert = A //so we can reference the alert, if we need to if(duration > 0 || initial(tick_interval) > 0) //don't process if we don't care @@ -89,12 +89,12 @@ // ALERT HOOK // //////////////// -/obj/screen/alert/status_effect +/atom/movable/screen/alert/status_effect name = "Curse of Mundanity" desc = "You don't feel any different..." var/datum/status_effect/attached_effect -/obj/screen/alert/status_effect/Destroy() +/atom/movable/screen/alert/status_effect/Destroy() if(attached_effect) attached_effect.linked_alert = null attached_effect = null diff --git a/code/datums/uplink_items/uplink_traitor.dm b/code/datums/uplink_items/uplink_traitor.dm index 7f437119a8b2f..e13bdf4b7b8e9 100644 --- a/code/datums/uplink_items/uplink_traitor.dm +++ b/code/datums/uplink_items/uplink_traitor.dm @@ -476,7 +476,8 @@ surplus = 50 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) -/datum/uplink_item/stealthy_weapons/combat_minus // Nukies get combat gloves plus instead +/// Nukies get combat gloves plus instead +/datum/uplink_item/stealthy_weapons/combat_minus name = "Experimental Krav Gloves" desc = "Experimental gloves with installed nanochips that teach you Krav Maga when worn, great as a cheap backup weapon. Warning, the nanochips will override any other fighting styles such as CQC. Do not look as fly as the Warden's" reference = "CGM" @@ -484,7 +485,8 @@ cost = 50 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) -/datum/uplink_item/device_tools/thermal_drill // Nukies get Diamond Tipped Thermal Safe Drill instead +/// Nukies get Diamond Tipped Thermal Safe Drill instead +/datum/uplink_item/device_tools/thermal_drill name = "Amplifying Thermal Safe Drill" desc = "A tungsten carbide thermal drill with magnetic clamps for the purpose of drilling hardened objects. Comes with built in security detection and nanite system, to keep you up if security comes a-knocking." reference = "DRL" @@ -516,7 +518,8 @@ surplus = 60 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) -/datum/uplink_item/bio_chips/uplink // Nukies get Nuclear Uplink Bio-chip instead +/// Nukies get Nuclear Uplink Bio-chip instead +/datum/uplink_item/bio_chips/uplink name = "Uplink Bio-chip" desc = "A bio-chip injected into the body, and later activated manually to open an uplink with 50 telecrystals. The ability for an agent to open an uplink after their possessions have been stripped from them makes this implant excellent for escaping confinement." reference = "UI" diff --git a/code/game/area/areas/mining_areas.dm b/code/game/area/areas/mining_areas.dm index e1370070513eb..aa4802ffabbc3 100644 --- a/code/game/area/areas/mining_areas.dm +++ b/code/game/area/areas/mining_areas.dm @@ -77,7 +77,8 @@ name = "Mining Station Cafeteria" icon_state = "mining_living" -/area/lavaland/surface/outdoors/outpost/catwalk //subtype of /surface so storms hit there +/// subtype of /surface so storms hit there +/area/lavaland/surface/outdoors/outpost/catwalk name = "Mining Station Catwalk" icon_state = "mining" @@ -89,7 +90,8 @@ name = "Mining Station Custodial Storage" icon_state = "janitor" -/area/mine/outpost/engineering // basically engi and atmos combined. I'm keeping it as "engineering" code wise, but "Life Support" sounds cooler in-game +/// basically engi and atmos combined. I'm keeping it as "engineering" code wise, but "Life Support" sounds cooler in-game +/area/mine/outpost/engineering name = "Mining Station Life Support" icon_state = "engi" @@ -184,10 +186,12 @@ name = "Lavaland Wastes" outdoors = TRUE -/area/lavaland/surface/outdoors/unexplored //monsters and ruins spawn here +/// monsters and ruins spawn here +/area/lavaland/surface/outdoors/unexplored icon_state = "unexplored" -/area/lavaland/surface/outdoors/unexplored/danger //megafauna will also spawn here +/// megafauna will also spawn here +/area/lavaland/surface/outdoors/unexplored/danger icon_state = "danger" /area/lavaland/surface/outdoors/explored diff --git a/code/game/area/asteroid_areas.dm b/code/game/area/asteroid_areas.dm index f8fd94b3d092a..770be12719986 100644 --- a/code/game/area/asteroid_areas.dm +++ b/code/game/area/asteroid_areas.dm @@ -1,6 +1,7 @@ // Asteroids -/area/asteroid // -- TLE +/// -- TLE +/area/asteroid name = "\improper Asteroid" icon_state = "asteroid" requires_power = FALSE @@ -11,7 +12,8 @@ min_ambience_cooldown = 70 SECONDS max_ambience_cooldown = 220 SECONDS -/area/asteroid/cave // -- TLE +/// -- TLE +/area/asteroid/cave name = "\improper Asteroid - Underground" icon_state = "cave" requires_power = FALSE diff --git a/code/game/area/misc_areas.dm b/code/game/area/misc_areas.dm index 329e031f39037..64595545136ac 100644 --- a/code/game/area/misc_areas.dm +++ b/code/game/area/misc_areas.dm @@ -3,7 +3,8 @@ name = "Unknown" icon_state = "storage" -/area/start // will be unused once kurper gets his login interface patch done +/// will be unused once kurper gets his login interface patch done +/area/start name = "start area" icon_state = "start" requires_power = FALSE @@ -29,6 +30,9 @@ /area/space/nearstation/disposals icon_state = "nearspace_disposals" +/area/space/nearstation/centcom + icon_state = "space_near_cc" + /area/space/atmosalert() return diff --git a/code/game/area/shuttle_areas.dm b/code/game/area/shuttle_areas.dm index efd45956d8e56..e6f576975cb75 100644 --- a/code/game/area/shuttle_areas.dm +++ b/code/game/area/shuttle_areas.dm @@ -89,7 +89,8 @@ /area/shuttle/escape_pod3/transit icon_state = "shuttle" -/area/shuttle/escape_pod5 //Pod 4 was lost to meteors +/// Pod 4 was lost to meteors +/area/shuttle/escape_pod5 name = "\improper Escape Pod Five" nad_allowed = TRUE diff --git a/code/game/area/ss13_areas/maintenance_areas.dm b/code/game/area/ss13_areas/maintenance_areas.dm index fbd3195e3f606..5cdf15bb5ee34 100644 --- a/code/game/area/ss13_areas/maintenance_areas.dm +++ b/code/game/area/ss13_areas/maintenance_areas.dm @@ -165,7 +165,8 @@ name = "\improper Fore Starboard Solar Maintenance" icon_state = "FSctrl" -/area/station/maintenance/assembly_line //Derelict Assembly Line +/// Derelict Assembly Line +/area/station/maintenance/assembly_line name = "\improper Assembly Line" icon_state = "ass_line" apc_starts_off = TRUE diff --git a/code/game/gamemodes/cult/blood_magic.dm b/code/game/gamemodes/cult/blood_magic.dm index 274916d4937e9..20f93ed3f9490 100644 --- a/code/game/gamemodes/cult/blood_magic.dm +++ b/code/game/gamemodes/cult/blood_magic.dm @@ -1,4 +1,5 @@ -/datum/action/innate/cult/blood_magic //Blood magic handles the creation of blood spells (formerly talismans) +/// Blood magic handles the creation of blood spells (formerly talismans) +/datum/action/innate/cult/blood_magic name = "Prepare Blood Magic" button_icon_state = "carve" desc = "Prepare blood magic by carving runes into your flesh. This is easier with an <b>empowering rune</b>." @@ -85,7 +86,8 @@ if(nullify_spell) qdel(nullify_spell) -/datum/action/innate/cult/blood_spell //The next generation of talismans, handles storage/creation of blood magic +/// The next generation of talismans, handles storage/creation of blood magic +/datum/action/innate/cult/blood_spell name = "Blood Magic" button_icon_state = "telerune" desc = "Fear the Old Blood." @@ -379,7 +381,7 @@ // The "magic hand" items /obj/item/melee/blood_magic - name = "\improper magical aura" + name = "magical aura" desc = "A sinister looking aura that distorts the flow of reality around it." icon = 'icons/obj/items.dmi' lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' @@ -608,7 +610,8 @@ to_chat(user, "<span class='warning'>[C] is already bound.</span>") -/obj/item/restraints/handcuffs/energy/cult //For the shackling spell +/// For the shackling spell +/obj/item/restraints/handcuffs/energy/cult name = "shadow shackles" desc = "Shackles that bind the wrists with sinister magic." trashtype = /obj/item/restraints/handcuffs/energy/used diff --git a/code/game/gamemodes/cult/cult_objectives.dm b/code/game/gamemodes/cult/cult_objectives.dm index fe5816e165415..6afc676e3eebc 100644 --- a/code/game/gamemodes/cult/cult_objectives.dm +++ b/code/game/gamemodes/cult/cult_objectives.dm @@ -1,4 +1,5 @@ -/datum/cult_objectives //Replace with team antag datum objectives from tg once ported +/// Replace with team antag datum objectives from tg once ported +/datum/cult_objectives var/cult_status = NARSIE_IS_ASLEEP var/list/presummon_objs = list() var/datum/objective/eldergod/obj_summon = new @@ -117,7 +118,8 @@ //Objectives -/datum/objective/servecult //Given to cultists on conversion/roundstart +/// Given to cultists on conversion/roundstart +/datum/objective/servecult explanation_text = "Assist your fellow cultists and Tear the Veil! (Use the Study Veil action to check your progress.)" completed = TRUE needs_target = FALSE diff --git a/code/game/gamemodes/miniantags/abduction/gland.dm b/code/game/gamemodes/miniantags/abduction/gland.dm index b8c75eb8bd320..fe9fc6505d875 100644 --- a/code/game/gamemodes/miniantags/abduction/gland.dm +++ b/code/game/gamemodes/miniantags/abduction/gland.dm @@ -226,7 +226,8 @@ return A -/obj/item/organ/internal/heart/gland/emp //TODO : Replace with something more interesting +/// TODO : Replace with something more interesting +/obj/item/organ/internal/heart/gland/emp origin_tech = "materials=4;biotech=4;magnets=6;abductor=3" cooldown_low = 800 cooldown_high = 1200 diff --git a/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm b/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm index ae03f1889dac7..045203e0e47c7 100644 --- a/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm +++ b/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm @@ -164,7 +164,7 @@ if(lum_count > 0.2) if(!thrown_alert) thrown_alert = TRUE - throw_alert("light", /obj/screen/alert/lightexposure) + throw_alert("light", /atom/movable/screen/alert/lightexposure) alpha = 255 speed = initial(speed) else diff --git a/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm b/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm index 594ede9117e04..11a5d6500d185 100644 --- a/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm +++ b/code/game/gamemodes/miniantags/demons/slaughter demon/slaughter.dm @@ -86,7 +86,8 @@ health = 170 // Cult slaughter demon -/mob/living/simple_animal/demon/slaughter/cult //Summoned as part of the cult objective "Bring the Slaughter" +/// Summoned as part of the cult objective "Bring the Slaughter" +/mob/living/simple_animal/demon/slaughter/cult name = "harbinger of the slaughter" real_name = "harbinger of the Slaughter" desc = "An awful creature from beyond the realms of madness." diff --git a/code/game/gamemodes/miniantags/guardian/types/assassin.dm b/code/game/gamemodes/miniantags/guardian/types/assassin.dm index 33263f8fb5a8f..1e12643a117a1 100644 --- a/code/game/gamemodes/miniantags/guardian/types/assassin.dm +++ b/code/game/gamemodes/miniantags/guardian/types/assassin.dm @@ -12,8 +12,8 @@ var/toggle = FALSE var/stealthcooldown = 0 var/default_stealth_cooldown = 10 SECONDS - var/obj/screen/alert/canstealthalert - var/obj/screen/alert/instealthalert + var/atom/movable/screen/alert/canstealthalert + var/atom/movable/screen/alert/instealthalert /mob/living/simple_animal/hostile/guardian/assassin/Initialize(mapload, mob/living/host) . = ..() @@ -88,12 +88,12 @@ if(stealthcooldown <= world.time) if(toggle) if(!instealthalert) - instealthalert = throw_alert("instealth", /obj/screen/alert/instealth) + instealthalert = throw_alert("instealth", /atom/movable/screen/alert/instealth) clear_alert("canstealth") canstealthalert = null else if(!canstealthalert) - canstealthalert = throw_alert("canstealth", /obj/screen/alert/canstealth) + canstealthalert = throw_alert("canstealth", /atom/movable/screen/alert/canstealth) clear_alert("instealth") instealthalert = null else diff --git a/code/game/gamemodes/miniantags/guardian/types/charger.dm b/code/game/gamemodes/miniantags/guardian/types/charger.dm index 4e293a639d277..fd5ae62d462a4 100644 --- a/code/game/gamemodes/miniantags/guardian/types/charger.dm +++ b/code/game/gamemodes/miniantags/guardian/types/charger.dm @@ -11,13 +11,13 @@ tech_fluff_string = "Boot sequence complete. Charge modules loaded. Holoparasite swarm online." bio_fluff_string = "Your scarab swarm finishes mutating and stirs to life, ready to deal damage." var/charging = FALSE - var/obj/screen/alert/chargealert + var/atom/movable/screen/alert/chargealert /mob/living/simple_animal/hostile/guardian/charger/Life() . = ..() if(ranged_cooldown <= world.time) if(!chargealert) - chargealert = throw_alert("charge", /obj/screen/alert/cancharge) + chargealert = throw_alert("charge", /atom/movable/screen/alert/cancharge) else clear_alert("charge") chargealert = null diff --git a/code/game/gamemodes/miniantags/morph/spells/ambush.dm b/code/game/gamemodes/miniantags/morph/spells/ambush.dm index 2713a05beb05c..36da7da9f922b 100644 --- a/code/game/gamemodes/miniantags/morph/spells/ambush.dm +++ b/code/game/gamemodes/miniantags/morph/spells/ambush.dm @@ -40,7 +40,7 @@ id = "morph_ambush" duration = -1 tick_interval = MORPH_AMBUSH_PERFECTION_TIME - alert_type = /obj/screen/alert/status_effect/morph_ambush + alert_type = /atom/movable/screen/alert/status_effect/morph_ambush /datum/status_effect/morph_ambush/tick() STOP_PROCESSING(SSfastprocess, src) @@ -49,7 +49,7 @@ linked_alert.name = "Perfect Ambush!" linked_alert.desc = "You have prepared an ambush! Your disguise is flawless!" -/obj/screen/alert/status_effect/morph_ambush +/atom/movable/screen/alert/status_effect/morph_ambush name = "Ambush!" desc = "You have prepared an ambush!" icon_state = "morph_ambush" diff --git a/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm b/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm index 155cb343461fc..b56ff36778648 100644 --- a/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm +++ b/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm @@ -502,7 +502,7 @@ // 2 * initial_rate - upgrade_level rate += initial(health_loss_rate) adjustHealth(rate) - throw_alert(ALERT_CATEGORY_NOPOWER, /obj/screen/alert/pulse_nopower) + throw_alert(ALERT_CATEGORY_NOPOWER, /atom/movable/screen/alert/pulse_nopower) if(regen_lock > 0) if(--regen_lock == 0) @@ -704,7 +704,7 @@ return visible_message("<span class='danger'>[src] [pick("fizzles", "wails", "flails")] in anguish!</span>") playsound(get_turf(src), pick(hurt_sounds), 30, TRUE) - throw_alert(ALERT_CATEGORY_NOREGEN, /obj/screen/alert/pulse_noregen) + throw_alert(ALERT_CATEGORY_NOREGEN, /atom/movable/screen/alert/pulse_noregen) switch(severity) if(EMP_LIGHT) adjustHealth(round(max(initial(health) / 4, round(maxHealth / 8)))) @@ -843,12 +843,12 @@ cell_location.update_icon() //update power meters and such cell_to_charge.update_icon() -/obj/screen/alert/pulse_nopower +/atom/movable/screen/alert/pulse_nopower name = "No Power" desc = "You are not connected to a cable or machine and are losing health!" icon_state = "pd_nopower" -/obj/screen/alert/pulse_noregen +/atom/movable/screen/alert/pulse_noregen name = "Regeneration Stalled" desc = "You've been EMP'd and cannot regenerate health!" icon_state = "pd_noregen" diff --git a/code/game/gamemodes/miniantags/revenant/revenant.dm b/code/game/gamemodes/miniantags/revenant/revenant.dm index a5f4d68279678..2e846c43f6a59 100644 --- a/code/game/gamemodes/miniantags/revenant/revenant.dm +++ b/code/game/gamemodes/miniantags/revenant/revenant.dm @@ -227,10 +227,7 @@ sleep(0.1) alpha = i visible_message("<span class='danger'>[src]'s body breaks apart into a fine pile of blue dust.</span>") - var/obj/item/ectoplasm/revenant/R = new (get_turf(src)) - var/reforming_essence = essence_regen_cap //retain the gained essence capacity - R.essence = max(reforming_essence - 15 * perfectsouls, 75) //minus any perfect souls - R.client_to_revive = src.client //If the essence reforms, the old revenant is put back in the body + new /obj/item/ectoplasm/revenant(get_turf(src)) ghostize() qdel(src) @@ -362,83 +359,7 @@ icon = 'icons/effects/effects.dmi' icon_state = "revenantEctoplasm" w_class = WEIGHT_CLASS_SMALL - var/reforming = 1 - var/essence = 75 //the maximum essence of the reforming revenant - var/inert = 0 - var/client/client_to_revive - -/obj/item/ectoplasm/revenant/New() - ..() - reforming = 0 - spawn(600) //1 minutes - if(src && reforming) - reform() - else - inert = 1 - visible_message("<span class='warning'>[src] settles down and seems lifeless.</span>") - -/obj/item/ectoplasm/revenant/attack_self(mob/user) - if(!reforming || inert) - return ..() - user.visible_message("<span class='notice'>[user] scatters [src] in all directions.</span>", \ - "<span class='notice'>You scatter [src] across the area. The particles slowly fade away.</span>") - user.drop_item() - qdel(src) - -/obj/item/ectoplasm/revenant/throw_impact(atom/hit_atom) - ..() - if(inert) - return - visible_message("<span class='notice'>[src] breaks into particles upon impact, which fade away to nothingness.</span>") - qdel(src) /obj/item/ectoplasm/revenant/examine(mob/user) . = ..() - if(inert) - . += "<span class='revennotice'>It seems inert.</span>" - else if(reforming) - . += "<span class='revenwarning'>It is shifting and distorted. It would be wise to destroy this.</span>" - -/obj/item/ectoplasm/revenant/proc/reform() // Unused proc, production doesn't have revenants revive - if(inert || !src) - return - var/key_of_revenant - message_admins("Revenant ectoplasm was left undestroyed for 1 minute and is reforming into a new revenant.") - loc = get_turf(src) //In case it's in a backpack or someone's hand - var/mob/living/simple_animal/revenant/R = new(get_turf(src)) - if(client_to_revive) - for(var/mob/M in GLOB.dead_mob_list) - if(M.client == client_to_revive) //Only recreates the mob if the mob the client is in is dead - R.client = client_to_revive - key_of_revenant = client_to_revive.key - - spawn() - if(!key_of_revenant) - message_admins("The new revenant's old client either could not be found or is in a new, living mob - grabbing a random candidate instead...") - var/list/candidates = SSghost_spawns.poll_candidates("Do you want to play as a revenant?", ROLE_REVENANT, TRUE, source = /mob/living/simple_animal/revenant) - if(!candidates.len) - qdel(R) - message_admins("No candidates were found for the new revenant. Oh well!") - inert = 1 - visible_message("<span class='revenwarning'>[src] settles down and seems lifeless.</span>") - return - var/mob/C = pick(candidates) - key_of_revenant = C.key - if(!key_of_revenant) - qdel(R) - message_admins("No ckey was found for the new revenant. Oh well!") - inert = 1 - visible_message("<span class='revenwarning'>[src] settles down and seems lifeless.</span>") - return - var/datum/mind/player_mind = new /datum/mind(key_of_revenant) - player_mind.active = TRUE - player_mind.transfer_to(R) - player_mind.assigned_role = SPECIAL_ROLE_REVENANT - player_mind.special_role = SPECIAL_ROLE_REVENANT - SSticker.mode.traitors |= player_mind - message_admins("[key_of_revenant] has been [client_to_revive ? "re":""]made into a revenant by reforming ectoplasm.") - log_game("[key_of_revenant] was [client_to_revive ? "re":""]made as a revenant by reforming ectoplasm.") - visible_message("<span class='revenboldnotice'>[src] suddenly rises into the air before fading away.</span>") - qdel(src) - if(src) //Should never happen, but just in case - inert = 1 + . += "<span class='revennotice'>Lifeless ectoplasm, still faintly glimmering in the light. From what was once a spirit seeking revenge on the station.</span>" diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index d340f8d8cadc0..047099f1baa6e 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -266,7 +266,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) return TRUE -/datum/objective/debrain //I want braaaainssss +/// I want braaaainssss +/datum/objective/debrain name = "Debrain" martyr_compatible = FALSE @@ -297,7 +298,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) return FALSE -/datum/objective/protect //The opposite of killing a dude. +/// The opposite of killing a dude. +/datum/objective/protect name = "Protect" martyr_compatible = TRUE @@ -318,7 +320,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) return TRUE return FALSE -/datum/objective/protect/mindslave //subytpe for mindslave implants +/// subytpe for mindslave implants +/datum/objective/protect/mindslave needs_target = FALSE // To be clear, this objective should have a target, but it will always be manually set to the mindslaver through the mindslave antag datum. // This objective should only be given to a single owner. We can use `owner` and not `get_owners()`. diff --git a/code/game/gamemodes/wizard/artefact.dm b/code/game/gamemodes/wizard/artefact.dm index bf3eadd6551f5..297d085e66d4a 100644 --- a/code/game/gamemodes/wizard/artefact.dm +++ b/code/game/gamemodes/wizard/artefact.dm @@ -702,7 +702,8 @@ GLOBAL_LIST_EMPTY(multiverse) /obj/item/multisword/pure_evil probability_evil = 100 -/obj/item/multisword/pike //If We are to be used and spent, let it be for a noble purpose. +/// If We are to be used and spent, let it be for a noble purpose. +/obj/item/multisword/pike name = "phantom pike" desc = "A fishing pike that appears to be imbued with a peculiar energy." icon = 'icons/obj/items.dmi' diff --git a/code/game/gamemodes/wizard/godhand.dm b/code/game/gamemodes/wizard/godhand.dm index 0f0dfbe4f5dfc..fb6afac4da1eb 100644 --- a/code/game/gamemodes/wizard/godhand.dm +++ b/code/game/gamemodes/wizard/godhand.dm @@ -1,5 +1,5 @@ /obj/item/melee/touch_attack - name = "\improper outstretched hand" + name = "outstretched hand" desc = "High Five?" var/catchphrase = "High Five!" var/on_use_sound = null diff --git a/code/game/gamemodes/wizard/soulstone.dm b/code/game/gamemodes/wizard/soulstone.dm index 74b672babc58b..e983c7ed57fcd 100644 --- a/code/game/gamemodes/wizard/soulstone.dm +++ b/code/game/gamemodes/wizard/soulstone.dm @@ -144,7 +144,7 @@ SEND_SOUND(player_client, sound('sound/misc/notice2.ogg')) window_flash(player_client) - var/obj/screen/alert/notify_soulstone/A = player_mob.throw_alert("\ref[src]_soulstone_thingy", /obj/screen/alert/notify_soulstone) + var/atom/movable/screen/alert/notify_soulstone/A = player_mob.throw_alert("\ref[src]_soulstone_thingy", /atom/movable/screen/alert/notify_soulstone) if(player_client.prefs && player_client.prefs.UI_style) A.icon = ui_style2icon(player_client.prefs.UI_style) diff --git a/code/game/machinery/Beacon.dm b/code/game/machinery/Beacon.dm index a38bde82f0c23..3015fcaf27e1f 100644 --- a/code/game/machinery/Beacon.dm +++ b/code/game/machinery/Beacon.dm @@ -81,7 +81,8 @@ mycomputer.mybeacon = null return ..() -/obj/machinery/bluespace_beacon/syndicate/infiltrator //beacon guaranteed offline at roundstart for infiltrator base +/// beacon guaranteed offline at roundstart for infiltrator base +/obj/machinery/bluespace_beacon/syndicate/infiltrator cc_beacon = TRUE /obj/machinery/bluespace_beacon/syndicate/infiltrator/Initialize(mapload) diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index 54350fd29a27f..6434516c7ee61 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -390,7 +390,7 @@ /obj/machinery/camera/get_remote_view_fullscreens(mob/user) if(view_range == short_range) //unfocused - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /obj/machinery/camera/update_remote_sight(mob/living/user) if(isXRay() && isAI(user)) @@ -405,7 +405,8 @@ ..() return TRUE -/obj/machinery/camera/portable //Cameras which are placed inside of things, such as helmets. +/// Cameras which are placed inside of things, such as helmets. +/obj/machinery/camera/portable start_active = TRUE // theres no real way to reactivate these, so never break them when they init var/turf/prev_turf diff --git a/code/game/machinery/computer/arcade_games/recruiter.dm b/code/game/machinery/computer/arcade_games/recruiter.dm index 5e64517a629bc..717d798d02fc8 100644 --- a/code/game/machinery/computer/arcade_games/recruiter.dm +++ b/code/game/machinery/computer/arcade_games/recruiter.dm @@ -20,7 +20,7 @@ light_color = LIGHT_COLOR_WHITE circuit = /obj/item/circuitboard/arcade/recruiter var/candidate_name - var/candidate_gender + var/candidate_birth var/age var/datum/species/cand_species var/planet_of_origin @@ -53,9 +53,9 @@ "Awarded the medal of service for outstanding work in botany", "Hacked into the Head of Personnel's office to save Ian", "Has proven knowledge of SOP, but no working experience", "Has worked at Mr Changs", "Spent 2 years as a freelance journalist", "Known as a hero for keeping stations clean during attacks", - "Worked as a bureaucrat for SolGov", "Worked in Donk Corporation's R&D department", + "Worked as a bureaucrat for SolGov", "Worked in Donk Corporation's toy R&D department", "Did work for USSP as an translator", "Took care of Toxins, Xenobiology, Robotics and R&D as a single worker in the Research department", - "Served for 4 years as a soldier of the Prospero Order", "Traveled through various systems as a businessman", + "Did maintenance on multiple cybernetic limbs over Biotech Solutions", "Traveled through various systems as a businessman", "Worked as a waiter for one year", "Has previous experience as a cameraman", "Spent years of their life being a janitor at Clown College", "Was given numerous good reviews for delivering cargo requests on time", "Helped old people cross the holostreet", "Has proven ability to read", "Served 4 years in NT navy", @@ -68,7 +68,9 @@ "Has received several commendations due to visually appealing kitchen remodelings", "Is known to report any petty Space Law or SOP breakage to the relevant authorities", "As Chef, adapted their menus in order to appeal all stationed species", "Was part of the \"Pump Purgers\", famous for the streak of 102 shifts with no Supermatter Explosions", - "Virologist; took it upon themselves to distribute a vaccine to the crew", "Conducted experiments that generated high profits but many casualties") + "Virologist; took it upon themselves to distribute a vaccine to the crew", "Conducted experiments that generated high profits but many casualties", + "Did multiple cargo transport jobs for the Port Royal Inc", "Been a test pilot for the new Einstein Engines Inc prototype engines", + "Manufactured multiple energy guns at Shellguard Munitions", "Spent years cleaning Aussec Armory guns") var/list/incorrect_records = list("Caught littering on the NSS Cyberiad", "Scientist involved in the ###### incident", "Rescued four assistants from a plasma fire, but left behind the station blueprints", @@ -105,24 +107,25 @@ else cand_species = pick(hirable_species) - candidate_gender = pick(MALE, FEMALE, NEUTER) // Gender - - if(candidate_gender == NEUTER && initial(cand_species.has_gender)) // If the species has a gender it cannot be neuter! - good_candidate = FALSE - if(prob(PROB_CANDIDATE_ERRORS)) // Age age = pick(initial(cand_species.max_age) + rand(20, 100), (initial(cand_species.min_age) - rand(1, 7))) // Its either too young or too old for the job good_candidate = FALSE else age = rand(initial(cand_species.min_age), initial(cand_species.max_age)) + if(prob(PROB_CANDIDATE_ERRORS)) // Date of birth + candidate_birth = "[rand(1, 12)]/[GLOB.game_year - age + pick(-400, -300, -200, -100, 50, 100, 150)]" // The age doesn't match with the date of birth + good_candidate = FALSE + else + candidate_birth = "[rand(1, 12)]/[GLOB.game_year - age]" + if(prob(PROB_CANDIDATE_ERRORS)) // Name // Lets pick all species with a naming scheme and remove the selected one so we can have a mismatch var/datum/species/wrong_species = pick((hirable_species + /datum/species/monkey + /datum/species/golem - cand_species)) - candidate_name = random_name(candidate_gender, initial(wrong_species.name)) + candidate_name = random_name(species = initial(wrong_species.name)) good_candidate = FALSE else - candidate_name = random_name(candidate_gender, initial(cand_species.name)) + candidate_name = random_name(species = initial(cand_species.name)) if(prob(PROB_CANDIDATE_ERRORS)) // Planet planet_of_origin = pick(incorrect_planets) @@ -150,31 +153,31 @@ switch(unique_candidate) if(UNIQUE_STEVE) // Steve is special candidate_name = "Steve" - candidate_gender = MALE age = "30" + candidate_birth = "12/[GLOB.game_year - 30]" cand_species = /datum/species/human planet_of_origin = "Unknown" job_requested = "Central Command Intern" employment_records = "Experience in pressing buttons" if(UNIQUE_MIME) // Only hire mimes that don't fill their employment application candidate_name = "..." - candidate_gender = "..." + candidate_birth = "..." age = "..." planet_of_origin = "..." job_requested = "Mime" employment_records = "..." if(UNIQUE_CEO_CHILD) // Hes the son of the CEO, what do you expect? candidate_name = "Johnny Nanotrasen, Jr." - candidate_gender = MALE age = "12" + candidate_birth = "1/[GLOB.game_year - 12]" cand_species = /datum/species/human planet_of_origin = "Unknown" job_requested = "Captain" employment_records = "Whatever" if(UNIQUE_VIGILANTE) // For some reason vigilantes do get inside NT stations, let them slip in candidate_name = "Owlman" - candidate_gender = MALE age = "38" + candidate_birth = "6/[GLOB.game_year - 38]" cand_species = /datum/species/human planet_of_origin = "Unknown" job_requested = "Assistant" @@ -204,7 +207,7 @@ "gamestatus" = game_status, "cand_name" = candidate_name, - "cand_gender" = capitalize(candidate_gender), + "cand_birth" = candidate_birth, "cand_age" = age, "cand_species" = initial(cand_species.name), "cand_planet" = planet_of_origin, diff --git a/code/game/machinery/computer/atmos_controllers.dm b/code/game/machinery/computer/atmos_controllers.dm index 56926511eb100..18b0185f72be1 100644 --- a/code/game/machinery/computer/atmos_controllers.dm +++ b/code/game/machinery/computer/atmos_controllers.dm @@ -495,7 +495,7 @@ GLOBAL_LIST_EMPTY(gas_sensors) // Central atmos control // /obj/machinery/computer/atmoscontrol - name = "\improper central atmospherics computer" + name = "central atmospherics computer" icon = 'icons/obj/computer.dmi' icon_keyboard = "atmos_key" icon_screen = "tank" diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm index 792ce397af4ef..bd648b9110268 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -206,9 +206,9 @@ var/obj/machinery/camera/final = T[camera] playsound(origin, "terminal_type", 25, 0) if(final) - playsound(origin, 'sound/machines/terminal_prompt_confirm.ogg', 25, 0) + playsound(origin, 'sound/machines/terminal_prompt_confirm.ogg', 25, FALSE) remote_eye.setLoc(get_turf(final)) - C.overlay_fullscreen("flash", /obj/screen/fullscreen/flash/noise) + C.overlay_fullscreen("flash", /atom/movable/screen/fullscreen/flash/noise) C.clear_fullscreen("flash", 3) //Shorter flash than normal since it's an ~~advanced~~ console! else - playsound(origin, 'sound/machines/terminal_prompt_deny.ogg', 25, 0) + playsound(origin, 'sound/machines/terminal_prompt_deny.ogg', 25, FALSE) diff --git a/code/game/machinery/computer/camera_console.dm b/code/game/machinery/computer/camera_console.dm index 18cf4997b358b..046d2445b4487 100644 --- a/code/game/machinery/computer/camera_console.dm +++ b/code/game/machinery/computer/camera_console.dm @@ -15,10 +15,10 @@ // Stuff needed to render the map var/map_name var/const/default_map_size = 15 - var/obj/screen/map_view/cam_screen + var/atom/movable/screen/map_view/cam_screen /// All the plane masters that need to be applied. var/list/cam_plane_masters - var/obj/screen/background/cam_background + var/atom/movable/screen/background/cam_background // Parent object this camera is assigned to. Used for camera bugs var/atom/movable/parent @@ -39,8 +39,8 @@ cam_screen.del_on_map_removal = FALSE cam_screen.screen_loc = "[map_name]:1,1" cam_plane_masters = list() - for(var/plane in subtypesof(/obj/screen/plane_master)) - var/obj/screen/instance = new plane() + for(var/plane in subtypesof(/atom/movable/screen/plane_master)) + var/atom/movable/screen/instance = new plane() instance.assigned_map = map_name instance.del_on_map_removal = FALSE instance.screen_loc = "[map_name]:CENTER" diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index 39e01428a41e6..211400fcef2d9 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -94,10 +94,10 @@ /// pushes an alert to the AI and its borgs about the law changes /obj/machinery/computer/aiupload/proc/alert_silicons() current.show_laws() - current.throw_alert("newlaw", /obj/screen/alert/newlaw) + current.throw_alert("newlaw", /atom/movable/screen/alert/newlaw) for(var/mob/living/silicon/robot/borg in current.connected_robots) borg.cmd_show_laws() - borg.throw_alert("newlaw", /obj/screen/alert/newlaw) + borg.throw_alert("newlaw", /atom/movable/screen/alert/newlaw) /obj/machinery/computer/aiupload/attack_hand(mob/user) if(stat & NOPOWER) diff --git a/code/game/machinery/computer/medical_records.dm b/code/game/machinery/computer/medical_records.dm index 521925639715a..f9e35d1fcb1f6 100644 --- a/code/game/machinery/computer/medical_records.dm +++ b/code/game/machinery/computer/medical_records.dm @@ -7,7 +7,8 @@ #define FIELD(N, V, E) list(field = N, value = V, edit = E) #define MED_FIELD(N, V, E, LB) list(field = N, value = V, edit = E, line_break = LB) -/obj/machinery/computer/med_data //TODO:SANITY +/// TODO:SANITY +/obj/machinery/computer/med_data name = "medical records console" desc = "This can be used to check medical records." icon_keyboard = "med_key" diff --git a/code/game/machinery/computer/power_monitor_console.dm b/code/game/machinery/computer/power_monitor_console.dm index 1d9d6be8cf5c9..d257ca45704d7 100644 --- a/code/game/machinery/computer/power_monitor_console.dm +++ b/code/game/machinery/computer/power_monitor_console.dm @@ -24,7 +24,8 @@ /// The history list itself of the power var/list/history = list() -/obj/machinery/computer/monitor/secret //Hides the power monitor (such as ones on ruins & CentCom) from PDA's to prevent metagaming. +/// Hides the power monitor (such as ones on ruins & CentCom) from PDA's to prevent metagaming. +/obj/machinery/computer/monitor/secret name = "outdated power monitoring console" desc = "It monitors power levels across the local powernet." circuit = /obj/item/circuitboard/powermonitor/secret diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index 558c13a5bef1e..e4d89c6f73834 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -1,4 +1,5 @@ -/obj/machinery/constructable_frame //Made into a seperate type to make future revisions easier. +/// Made into a seperate type to make future revisions easier. +/obj/machinery/constructable_frame name = "machine frame" icon = 'icons/obj/stock_parts.dmi' icon_state = "box_0" diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm index da4fa0966ba75..b997c99a49ae2 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -20,7 +20,8 @@ . = ..() update_icon() -/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored +/// Portable version of the flasher. Only flashes when anchored +/obj/machinery/flasher/portable name = "portable flasher" desc = "A portable flashing device. Wrench to activate and deactivate. Cannot detect slow movements." icon_state = "pflash1" diff --git a/code/game/machinery/vendors/generic_vendors.dm b/code/game/machinery/vendors/generic_vendors.dm index 315acbe9555bd..ccb2594151213 100644 --- a/code/game/machinery/vendors/generic_vendors.dm +++ b/code/game/machinery/vendors/generic_vendors.dm @@ -1230,7 +1230,8 @@ /obj/machinery/economy/vending/cigarette/syndicate/free prices = list() -/obj/machinery/economy/vending/cigarette/beach //Used in the lavaland_biodome_beach.dmm ruin +/// Used in the lavaland_biodome_beach.dmm ruin +/obj/machinery/economy/vending/cigarette/beach name = "\improper ShadyCigs Ultra" desc = "Now with extra premium products!" slogan_list = list("Turn on, tune in, drop out!", diff --git a/code/game/mecha/equipment/tools/other_tools.dm b/code/game/mecha/equipment/tools/other_tools.dm index d0e24c093ba8b..2430888436cd6 100644 --- a/code/game/mecha/equipment/tools/other_tools.dm +++ b/code/game/mecha/equipment/tools/other_tools.dm @@ -102,7 +102,8 @@ //////////////////////////// ARMOR BOOSTER MODULES ////////////////////////////////////////////////////////// -/obj/item/mecha_parts/mecha_equipment/anticcw_armor_booster //what is that noise? A BAWWW from TK mutants. +/// what is that noise? A BAWWW from TK mutants. +/obj/item/mecha_parts/mecha_equipment/anticcw_armor_booster name = "armor booster module (Close combat weaponry)" desc = "Boosts exosuit armor against armed melee attacks. Requires energy to operate." icon_state = "mecha_abooster_ccw" diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm index 57db0ef075e08..202660af9b950 100644 --- a/code/game/mecha/equipment/weapons/weapons.dm +++ b/code/game/mecha/equipment/weapons/weapons.dm @@ -424,7 +424,7 @@ equip_cooldown = 1 SECONDS name = "mousetrap mortar" icon_state = "mecha_mousetrapmrtr" - projectile = /obj/item/assembly/mousetrap + projectile = /obj/item/assembly/mousetrap/armed fire_sound = 'sound/items/bikehorn.ogg' projectiles = 15 missile_speed = 1.5 @@ -441,9 +441,9 @@ if(!action_checks(target)) return set_ready_state(0) - var/obj/item/assembly/mousetrap/M = new projectile(chassis.loc) + var/obj/item/assembly/mousetrap/armed/M = new projectile(chassis.loc) M.secured = TRUE - playsound(chassis, fire_sound, 60, 1) + playsound(chassis, fire_sound, 60, TRUE) M.throw_at(target, missile_range, missile_speed) projectiles-- log_message("Launched a mouse-trap from [name], targeting [target]. HONK!") diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 3af23927e2112..61045970526b0 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -329,7 +329,7 @@ if(move_type & (MECHAMOVE_RAND | MECHAMOVE_STEP) && occupant) var/obj/machinery/atmospherics/unary/portables_connector/possible_port = locate(/obj/machinery/atmospherics/unary/portables_connector) in loc if(possible_port) - var/obj/screen/alert/mech_port_available/A = occupant.throw_alert("mechaport", /obj/screen/alert/mech_port_available) + var/atom/movable/screen/alert/mech_port_available/A = occupant.throw_alert("mechaport", /atom/movable/screen/alert/mech_port_available) if(A) A.target = possible_port else @@ -1059,10 +1059,10 @@ if(occupant) occupant.clear_alert("mechaport") - occupant.throw_alert("mechaport_d", /obj/screen/alert/mech_port_disconnect) + occupant.throw_alert("mechaport_d", /atom/movable/screen/alert/mech_port_disconnect) log_message("Connected to gas port.") - return 1 + return TRUE /obj/mecha/proc/disconnect() if(!connected_port) @@ -1167,9 +1167,9 @@ else if(!hasInternalDamage()) SEND_SOUND(occupant, sound(nominalsound, volume = 50)) if(state) - H.throw_alert("locked", /obj/screen/alert/mech_maintenance) + H.throw_alert("locked", /atom/movable/screen/alert/mech_maintenance) if(connected_port) - H.throw_alert("mechaport_d", /obj/screen/alert/mech_port_disconnect) + H.throw_alert("mechaport_d", /atom/movable/screen/alert/mech_port_disconnect) return TRUE else return FALSE @@ -1394,20 +1394,20 @@ if(0.75 to INFINITY) occupant.clear_alert("charge") if(0.5 to 0.75) - occupant.throw_alert("charge", /obj/screen/alert/mech_lowcell, 1) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_lowcell, 1) if(0.25 to 0.5) - occupant.throw_alert("charge", /obj/screen/alert/mech_lowcell, 2) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_lowcell, 2) if(power_warned) power_warned = FALSE if(0.01 to 0.25) - occupant.throw_alert("charge", /obj/screen/alert/mech_lowcell, 3) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_lowcell, 3) if(!power_warned) SEND_SOUND(occupant, sound(lowpowersound, volume = 50)) power_warned = TRUE else - occupant.throw_alert("charge", /obj/screen/alert/mech_emptycell) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_emptycell) else - occupant.throw_alert("charge", /obj/screen/alert/mech_nocell) + occupant.throw_alert("charge", /atom/movable/screen/alert/mech_nocell) /obj/mecha/proc/reset_icon() if(initial_icon) diff --git a/code/game/mecha/mecha_topic.dm b/code/game/mecha/mecha_topic.dm index 79e4670bf6d79..f52c0f5fb1749 100644 --- a/code/game/mecha/mecha_topic.dm +++ b/code/game/mecha/mecha_topic.dm @@ -331,7 +331,7 @@ state = 1 to_chat(user, "The securing bolts are now exposed.") if(occupant) - occupant.throw_alert("locked", /obj/screen/alert/mech_maintenance) + occupant.throw_alert("locked", /atom/movable/screen/alert/mech_maintenance) else if(state==1) state = 0 to_chat(user, "The securing bolts are now hidden.") diff --git a/code/game/mecha/paintkits.dm b/code/game/mecha/paintkits.dm index 1aef8ebf061fb..1bea84ebc6267 100644 --- a/code/game/mecha/paintkits.dm +++ b/code/game/mecha/paintkits.dm @@ -1,4 +1,5 @@ -/obj/item/paintkit //Please don't use this for anything, it's a base type for custom mech paintjobs. +/// Please don't use this for anything, it's a base type for custom mech paintjobs. +/obj/item/paintkit name = "mecha customisation kit" desc = "A generic kit containing all the needed tools and parts to turn a mech into another mech." icon = 'icons/obj/painting.dmi' @@ -21,7 +22,7 @@ allowed_types = list("ripley","firefighter") /obj/item/paintkit/mercenary - name = "\improper mercenary APLU \"Ripley\" kit" + name = "mercenary APLU \"Ripley\" kit" desc = "A kit containing all the needed tools and parts to turn an APLU \"Ripley\" into an old Mercenaries APLU." new_name = "APLU \"Strike the Earth!\"" new_desc = "Looks like an over worked, under maintained Ripley with some horrific damage." diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index 75a8d868a9c9e..7c59d778cb37e 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -90,7 +90,7 @@ M.setDir(dir) buckled_mobs |= M ADD_TRAIT(M, TRAIT_IMMOBILIZED, BUCKLING_TRAIT) - M.throw_alert("buckled", /obj/screen/alert/restrained/buckled) + M.throw_alert("buckled", /atom/movable/screen/alert/restrained/buckled) post_buckle_mob(M) SEND_SIGNAL(src, COMSIG_MOVABLE_BUCKLE, M, force) return TRUE diff --git a/code/game/objects/effects/decals/Cleanable/alien_blood.dm b/code/game/objects/effects/decals/Cleanable/alien_blood.dm index b13fb1ad8b3e5..2e02edee4a222 100644 --- a/code/game/objects/effects/decals/Cleanable/alien_blood.dm +++ b/code/game/objects/effects/decals/Cleanable/alien_blood.dm @@ -39,7 +39,8 @@ /obj/effect/decal/cleanable/blood/xtracks basecolor = "#05EE05" -/obj/effect/decal/cleanable/blood/slime // this is the alien blood file, slimes are aliens. +/// this is the alien blood file, slimes are aliens. +/obj/effect/decal/cleanable/blood/slime name = "slime jelly" desc = "It's a transparent semi-liquid from a slime or slime person. Don't lick it." basecolor = "#0b8f70" diff --git a/code/game/objects/effects/decals/Cleanable/humans.dm b/code/game/objects/effects/decals/Cleanable/humans.dm index c0213fe24e20c..3c98c25dbb2e0 100644 --- a/code/game/objects/effects/decals/Cleanable/humans.dm +++ b/code/game/objects/effects/decals/Cleanable/humans.dm @@ -210,7 +210,8 @@ /obj/effect/decal/cleanable/blood/drip/can_bloodcrawl_in() return TRUE -/obj/effect/decal/cleanable/trail_holder //not a child of blood on purpose +/// not a child of blood on purpose +/obj/effect/decal/cleanable/trail_holder name = "blood" icon = 'icons/effects/effects.dmi' icon_state = "nothing" @@ -300,7 +301,8 @@ scoop_reagents = list("liquidgibs" = 5) -/obj/effect/decal/cleanable/blood/gibs/cleangibs //most ironic name ever... +/// most ironic name ever... +/obj/effect/decal/cleanable/blood/gibs/cleangibs scoop_reagents = null mergeable_decal = TRUE diff --git a/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm b/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm index 6e025ccb1525b..1d39a7cfd943b 100644 --- a/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm +++ b/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm @@ -264,7 +264,8 @@ icon = 'icons/effects/tomatodecal.dmi' random_icon_states = list("smashed_egg1", "smashed_egg2", "smashed_egg3") -/obj/effect/decal/cleanable/pie_smudge //honk +/// honk +/obj/effect/decal/cleanable/pie_smudge name = "smashed pie" desc = "It's pie cream from a cream pie." density = FALSE @@ -307,7 +308,8 @@ reagents.add_reagent_list(scoop_reagents) no_scoop = FALSE -/obj/effect/decal/cleanable/confetti //PARTY TIME! +/// PARTY TIME! +/obj/effect/decal/cleanable/confetti name = "confetti" desc = "Party time!" gender = PLURAL diff --git a/code/game/objects/effects/landmarks.dm b/code/game/objects/effects/landmarks.dm index b08762c94cbd8..a127b327d13c2 100644 --- a/code/game/objects/effects/landmarks.dm +++ b/code/game/objects/effects/landmarks.dm @@ -11,7 +11,8 @@ invisibility = 101 GLOB.landmarks_list += src -/obj/effect/landmark/newplayer_start //There should only be one of these, in the lobby art area +/// There should only be one of these, in the lobby art area +/obj/effect/landmark/newplayer_start name = "start" INITIALIZE_IMMEDIATE(/obj/effect/landmark/newplayer_start) //Without this you spawn in the corner of the map and things break horribly diff --git a/code/game/objects/effects/spawners/airlock_spawner.dm b/code/game/objects/effects/spawners/airlock_spawner.dm index 4c868311746c9..a81fc5285fe95 100644 --- a/code/game/objects/effects/spawners/airlock_spawner.dm +++ b/code/game/objects/effects/spawners/airlock_spawner.dm @@ -222,7 +222,8 @@ This spawner places pipe leading up to the interior door, you will need to finis interior_direction = WEST exterior_direction = EAST -/obj/effect/spawner/airlock/long //Long and thin +/// Long and thin +/obj/effect/spawner/airlock/long name = "long airlock spawner (interior north, exterior south)" icon_state = "1x2_N_to_S" tiles_in_y_direction = 2 @@ -250,7 +251,8 @@ This spawner places pipe leading up to the interior door, you will need to finis icon_state = "1x2_W_to_E" tiles_in_x_direction = 2 -/obj/effect/spawner/airlock/long/square //Square +/// Square +/obj/effect/spawner/airlock/long/square name = "square airlock spawner (interior north, exterior south)" icon_state = "2x2_N_to_S" tiles_in_x_direction = 2 diff --git a/code/game/objects/effects/spawners/lootdrop.dm b/code/game/objects/effects/spawners/lootdrop.dm index 5ef0a837cad72..a556d64132ab5 100644 --- a/code/game/objects/effects/spawners/lootdrop.dm +++ b/code/game/objects/effects/spawners/lootdrop.dm @@ -194,7 +194,8 @@ lootcount = 8 -/obj/effect/spawner/lootdrop/crate_spawner // for ruins +/// for ruins +/obj/effect/spawner/lootdrop/crate_spawner name = "lootcrate spawner" lootdoubles = FALSE loot = list( diff --git a/code/game/objects/effects/spawners/random_barrier.dm b/code/game/objects/effects/spawners/random_barrier.dm index 40897a60bcd90..385b0c38ace4d 100644 --- a/code/game/objects/effects/spawners/random_barrier.dm +++ b/code/game/objects/effects/spawners/random_barrier.dm @@ -47,7 +47,8 @@ /obj/structure/barricade/wooden = 1, /obj/machinery/door/airlock/welded = 1) -/obj/effect/spawner/random_barrier/possibly_welded_airlock // these have no access restrictions, so for internal maintenance only +/// these have no access restrictions, so for internal maintenance only +/obj/effect/spawner/random_barrier/possibly_welded_airlock name = "possibly welded airlock" icon_state = "airlock" result = list( diff --git a/code/game/objects/effects/temporary_visuals/misc_visuals.dm b/code/game/objects/effects/temporary_visuals/misc_visuals.dm index 2e69b3713d97c..334c9bfe64f8b 100644 --- a/code/game/objects/effects/temporary_visuals/misc_visuals.dm +++ b/code/game/objects/effects/temporary_visuals/misc_visuals.dm @@ -200,7 +200,8 @@ icon_state = "mummy_revive" duration = 20 -/obj/effect/temp_visual/heal //color is white by default, set to whatever is needed +/// color is white by default, set to whatever is needed +/obj/effect/temp_visual/heal name = "healing glow" icon_state = "heal" duration = 15 diff --git a/code/game/objects/items/cardboard_cutouts.dm b/code/game/objects/items/cardboard_cutouts.dm index e9c21cd2107ab..18e3de3759ed5 100644 --- a/code/game/objects/items/cardboard_cutouts.dm +++ b/code/game/objects/items/cardboard_cutouts.dm @@ -186,5 +186,6 @@ /obj/item/cardboard_cutout/setDir() dir = SOUTH -/obj/item/cardboard_cutout/adaptive //Purchased by Syndicate agents, these cutouts are indistinguishable from normal cutouts but aren't discolored when their appearance is changed +/// Purchased by Syndicate agents, these cutouts are indistinguishable from normal cutouts but aren't discolored when their appearance is changed +/obj/item/cardboard_cutout/adaptive deceptive = TRUE diff --git a/code/game/objects/items/devices/camera_bug.dm b/code/game/objects/items/devices/camera_bug.dm index d4f2a95c3efd4..9e456005815bf 100644 --- a/code/game/objects/items/devices/camera_bug.dm +++ b/code/game/objects/items/devices/camera_bug.dm @@ -50,7 +50,7 @@ integrated_console.network = list("ERT") /obj/item/wall_bug - name = "\improper small camera" + name = "small camera" desc = "A camera with a sticky backside." icon = 'icons/obj/device.dmi' icon_state = "wall_bug" diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm index dd3e7c82d2c04..f5a857f86c5e0 100644 --- a/code/game/objects/items/devices/flash.dm +++ b/code/game/objects/items/devices/flash.dm @@ -265,4 +265,5 @@ implant = null return ..() -/obj/item/flash/synthetic //just a regular flash now +/// just a regular flash now +/obj/item/flash/synthetic diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 2aafdc9e9af85..909451a633d12 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -398,7 +398,8 @@ to_chat(user, "<span class='warning'>\The [src] needs time to recharge!</span>") return -/obj/item/flashlight/spotlight //invisible lighting source +/// invisible lighting source +/obj/item/flashlight/spotlight name = "disco light" desc = "Groovy..." icon_state = null diff --git a/code/game/objects/items/devices/geiger_counter.dm b/code/game/objects/items/devices/geiger_counter.dm index 2515fbca7d812..cda7f5e34e3b3 100644 --- a/code/game/objects/items/devices/geiger_counter.dm +++ b/code/game/objects/items/devices/geiger_counter.dm @@ -4,7 +4,8 @@ #define RAD_LEVEL_VERY_HIGH 800 #define RAD_LEVEL_CRITICAL 1500 -/obj/item/geiger_counter //DISCLAIMER: I know nothing about how real-life Geiger counters work. This will not be realistic. ~Xhuis +/// DISCLAIMER: I know nothing about how real-life Geiger counters work. This will not be realistic. ~Xhuis +/obj/item/geiger_counter name = "\improper Geiger counter" desc = "A handheld device used for detecting and measuring radiation pulses." icon = 'icons/obj/device.dmi' diff --git a/code/game/objects/items/devices/painter/window_painter.dm b/code/game/objects/items/devices/painter/window_painter.dm index 83edd17bd7d96..92671f7fc71bd 100644 --- a/code/game/objects/items/devices/painter/window_painter.dm +++ b/code/game/objects/items/devices/painter/window_painter.dm @@ -1,4 +1,5 @@ -/datum/painter/pipe/window // Yes, this is a pipe painter subtype. +/// Yes, this is a pipe painter subtype. +/datum/painter/pipe/window module_name = "window painter" module_state = "window_painter" var/static/list/paintable_windows = list( diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm index c6c5facc872ef..6e66f17366b56 100644 --- a/code/game/objects/items/devices/radio/beacon.dm +++ b/code/game/objects/items/devices/radio/beacon.dm @@ -30,7 +30,8 @@ /obj/item/radio/beacon/send_hear() return null -/obj/item/radio/beacon/bacon //Probably a better way of doing this, I'm lazy. +/// Probably a better way of doing this, I'm lazy. +/obj/item/radio/beacon/bacon /obj/item/radio/beacon/bacon/proc/digest_delay() QDEL_IN(src, 600) diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm index 8c4bec0239a8c..14a3daf131d26 100644 --- a/code/game/objects/items/devices/radio/encryptionkey.dm +++ b/code/game/objects/items/devices/radio/encryptionkey.dm @@ -180,7 +180,8 @@ name = "Centcom Radio Encryption Key" channels = list("Response Team" = 1, "Special Ops" = 1, "Science" = 1, "Command" = 1, "Medical" = 1, "Engineering" = 1, "Security" = 1, "Supply" = 1, "Service" = 1, "Procedure" = 1) -/obj/item/encryptionkey/heads/ai_integrated //ported from bay, this goes 'inside' the AI. +/// ported from bay, this goes 'inside' the AI. +/obj/item/encryptionkey/heads/ai_integrated name = "AI Integrated Encryption Key" desc = "Integrated encryption key" icon_state = "cap_cypherkey" diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index b7be568621037..6914b91155310 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -101,7 +101,8 @@ instant = TRUE // Work instantly if there are no comms freqlock = TRUE -/obj/item/radio/headset/syndicate/alt //undisguised bowman with flash protection +/// undisguised bowman with flash protection +/obj/item/radio/headset/syndicate/alt name = "syndicate headset" desc = "A syndicate headset that can be used to hear all radio frequencies. Protects ears from flashbangs." flags = EARBANGPROTECT @@ -367,7 +368,8 @@ requires_tcomms = FALSE instant = TRUE -/obj/item/radio/headset/heads/ai_integrated //No need to care about icons, it should be hidden inside the AI anyway. +/// No need to care about icons, it should be hidden inside the AI anyway. +/obj/item/radio/headset/heads/ai_integrated name = "\improper AI subspace transceiver" desc = "Integrated AI radio transceiver." icon = 'icons/obj/robot_component.dmi' diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm index 3fb0227468d73..42f987fdb8bde 100644 --- a/code/game/objects/items/devices/radio/intercom.dm +++ b/code/game/objects/items/devices/radio/intercom.dm @@ -295,7 +295,7 @@ frequency = 1480 /obj/item/radio/intercom/locked/prison - name = "\improper prison intercom" + name = "prison intercom" desc = "Talk through this. It looks like it has been modified to not broadcast." /obj/item/radio/intercom/locked/prison/New() diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm index 34f767302c757..f91e4b8d75b95 100644 --- a/code/game/objects/items/stacks/sheets/leather.dm +++ b/code/game/objects/items/stacks/sheets/leather.dm @@ -60,7 +60,8 @@ GLOBAL_LIST_INIT(lizard_recipes, list( recipes = GLOB.lizard_recipes return ..() -/obj/item/stack/sheet/fur //basic fur sheets +/// basic fur sheets +/obj/item/stack/sheet/fur name = "pile of fur" desc = "Vulp remains." singular_name = "fur piece" diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index c62f88f218dd9..c6818200998b8 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -425,7 +425,8 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( else . = ..() -/obj/item/stack/sheet/cardboard //BubbleWrap +/// BubbleWrap +/obj/item/stack/sheet/cardboard name = "cardboard" desc = "Large sheets of card, like boxes folded flat." singular_name = "cardboard sheet" diff --git a/code/game/objects/items/theft_items.dm b/code/game/objects/items/theft_items.dm index 53522602e8d41..f033792ae2738 100644 --- a/code/game/objects/items/theft_items.dm +++ b/code/game/objects/items/theft_items.dm @@ -39,7 +39,8 @@ user.visible_message("<span class='suicide'>[user] is rubbing [src] against [user.p_themselves()]! It looks like [user.p_theyre()] trying to commit suicide!</span>") return TOXLOSS -/obj/item/nuke_core/plutonium //The steal objective, so it doesnt mess with the SM sliver on pinpointers and objectives +/// The steal objective, so it doesnt mess with the SM sliver on pinpointers and objectives +/obj/item/nuke_core/plutonium //nuke core box, for carrying the core /obj/item/nuke_core_container diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index 6095e7c92ad56..244d9cd9555bd 100644 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -202,7 +202,8 @@ AI MODULES target.add_supplied_law(9, law) /****************** New Freeform ******************/ -/obj/item/aiModule/freeform // Slightly more dynamic freeform module -- TLE +/// Slightly more dynamic freeform module -- TLE +/obj/item/aiModule/freeform name = "\improper Freeform AI module" var/newFreeFormLaw = "" var/lawpos = 15 @@ -260,7 +261,8 @@ AI MODULES return FALSE /******************** Purge ********************/ -/obj/item/aiModule/purge // -- TLE +/// -- TLE +/obj/item/aiModule/purge name = "\improper Purge AI module" desc = "A 'purge' AI Module: 'Purges all laws.'" icon_state = "standard_high" @@ -276,7 +278,8 @@ AI MODULES target.clear_inherent_laws() /******************** Asimov ********************/ -/obj/item/aiModule/asimov // -- TLE +/// -- TLE +/obj/item/aiModule/asimov name = "\improper Asimov core AI module" desc = "An 'Asimov' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "green_high" @@ -284,7 +287,8 @@ AI MODULES laws = new /datum/ai_laws/asimov /******************** Crewsimov ********************/ -/obj/item/aiModule/crewsimov // -- TLE +/// -- TLE +/obj/item/aiModule/crewsimov name = "\improper Crewsimov core AI module" desc = "An 'Crewsimov' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "green_low" @@ -306,7 +310,8 @@ AI MODULES laws = new /datum/ai_laws/quarantine /******************** Nanotrasen ********************/ -/obj/item/aiModule/nanotrasen // -- TLE +/// -- TLE +/obj/item/aiModule/nanotrasen name = "\improper NT Default Core AI Module" desc = "An 'NT Default' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "blue_low" @@ -329,7 +334,8 @@ AI MODULES laws = new /datum/ai_laws/drone /******************** Robocop ********************/ -/obj/item/aiModule/robocop // -- TLE +/// -- TLE +/obj/item/aiModule/robocop name = "\improper Robocop core AI module" desc = "A 'Robocop' Core AI Module: 'Reconfigures the AI's core three laws.'" icon_state = "red_medium" @@ -337,7 +343,8 @@ AI MODULES laws = new /datum/ai_laws/robocop() /****************** P.A.L.A.D.I.N. **************/ -/obj/item/aiModule/paladin // -- NEO +/// -- NEO +/obj/item/aiModule/paladin name = "\improper P.A.L.A.D.I.N. core AI module" desc = "A P.A.L.A.D.I.N. Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "red_medium" @@ -345,7 +352,8 @@ AI MODULES laws = new /datum/ai_laws/paladin /****************** T.Y.R.A.N.T. *****************/ -/obj/item/aiModule/tyrant // -- Darem +/// -- Darem +/obj/item/aiModule/tyrant name = "\improper T.Y.R.A.N.T. core AI module" desc = "A T.Y.R.A.N.T. Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "red_high" @@ -353,7 +361,8 @@ AI MODULES laws = new /datum/ai_laws/tyrant() /******************** Antimov ********************/ -/obj/item/aiModule/antimov // -- TLE +/// -- TLE +/obj/item/aiModule/antimov name = "\improper Antimov core AI module" desc = "An 'Antimov' Core AI Module: 'Reconfigures the AI's core laws.'" icon_state = "red_high" @@ -404,7 +413,8 @@ AI MODULES laws = new /datum/ai_laws/peacekeeper() /******************** Freeform Core ******************/ -/obj/item/aiModule/freeformcore // Slightly more dynamic freeform module -- TLE +/// Slightly more dynamic freeform module -- TLE +/obj/item/aiModule/freeformcore name = "\improper Freeform core AI module" var/newFreeFormLaw = "" desc = "A 'freeform' Core AI module: '<freeform>'" @@ -432,7 +442,8 @@ AI MODULES ..() /******************** Hacked AI Module ******************/ -/obj/item/aiModule/syndicate // Slightly more dynamic freeform module -- TLE +/// Slightly more dynamic freeform module -- TLE +/obj/item/aiModule/syndicate name = "hacked AI module" var/newFreeFormLaw = "" desc = "A hacked AI law module: '<freeform>'" @@ -464,7 +475,8 @@ AI MODULES ..() /******************* Ion Module *******************/ -/obj/item/aiModule/toyAI // -- Incoming //No actual reason to inherit from ion boards here, either. *sigh* ~Miauw +/// -- Incoming //No actual reason to inherit from ion boards here, either. *sigh* ~Miauw +/obj/item/aiModule/toyAI name = "toy AI" desc = "A little toy model AI core with real law uploading action!" //Note: subtle tell icon = 'icons/obj/toy.dmi' diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm index 5fae9d5d602c0..49024f6d2f4cb 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_gorilla_rampage.dm @@ -1,4 +1,5 @@ -/obj/item/bio_chip/gorilla_rampage //Dumb path but easier to search for admins +/// Dumb path but easier to search for admins +/obj/item/bio_chip/gorilla_rampage name = "magillitis serum bio-chip" desc = "An experimental biochip which causes irreversable rapid muscular growth in Hominidae. Side-affects may include hypertrichosis, violent outbursts, and an unending affinity for bananas." icon_state = "gorilla_rampage" diff --git a/code/game/objects/items/weapons/dice.dm b/code/game/objects/items/weapons/dice.dm index 998dd526021bd..e7af1f12ae15f 100644 --- a/code/game/objects/items/weapons/dice.dm +++ b/code/game/objects/items/weapons/dice.dm @@ -1,4 +1,5 @@ -/obj/item/storage/bag/dice //Thankfully no longer a pill bottle. +/// Thankfully no longer a pill bottle. +/obj/item/storage/bag/dice name = "bag of dice" desc = "Contains all the luck you'll ever need." icon = 'icons/obj/dice.dmi' @@ -32,7 +33,8 @@ user.visible_message("<span class='suicide'>[user] is gambling with death! It looks like [user.p_theyre()] trying to commit suicide!</span>") return (OXYLOSS) -/obj/item/dice //depreciated d6, use /obj/item/dice/d6 if you actually want a d6 +/// depreciated d6, use /obj/item/dice/d6 if you actually want a d6 +/obj/item/dice name = "die" desc = "A die with six sides. Basic and serviceable." icon = 'icons/obj/dice.dmi' diff --git a/code/game/objects/items/weapons/garrote.dm b/code/game/objects/items/weapons/garrote.dm index 1d1570344a258..d88385b56ae73 100644 --- a/code/game/objects/items/weapons/garrote.dm +++ b/code/game/objects/items/weapons/garrote.dm @@ -4,7 +4,8 @@ * Improvised garrotes */ -/obj/item/garrote // 12TC traitor item +/// 12TC traitor item +/obj/item/garrote name = "fiber wire" desc = "A length of razor-thin wire with an elegant wooden handle on either end.<br>You suspect you'd have to be behind the target to use this weapon effectively." icon_state = "garrot_wrap" @@ -27,7 +28,8 @@ else icon_state = "garrot_[improvised ? "I_" : ""][HAS_TRAIT(src, TRAIT_WIELDED) ? "un" : ""]wrap" -/obj/item/garrote/improvised // Made via tablecrafting +/// Made via tablecrafting +/obj/item/garrote/improvised name = "garrote" desc = "A length of cable with a shoddily-carved wooden handle tied to either end.<br>You suspect you'd have to be behind the target to use this weapon effectively." icon_state = "garrot_I_wrap" diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index 5b8cebe360dbd..2201e9c649307 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -366,14 +366,16 @@ else return ..() -/obj/item/grenade/chem_grenade/cryo // Intended for rare cryogenic mixes. Cools the area moderately upon detonation. +/// Intended for rare cryogenic mixes. Cools the area moderately upon detonation. +/obj/item/grenade/chem_grenade/cryo name = "cryo grenade" desc = "A custom made cryogenic grenade. It rapidly cools its contents upon detonation." icon_state = "cryog" affected_area = 2 ignition_temp = -100 -/obj/item/grenade/chem_grenade/pyro // Intended for pyrotechnical mixes. Produces a small fire upon detonation, igniting potentially flammable mixtures. +/// Intended for pyrotechnical mixes. Produces a small fire upon detonation, igniting potentially flammable mixtures. +/obj/item/grenade/chem_grenade/pyro name = "pyro grenade" desc = "A custom made pyrotechnical grenade. It heats up and ignites its contents upon detonation." icon_state = "pyrog" @@ -381,7 +383,8 @@ affected_area = 3 ignition_temp = 500 // This is enough to expose a hotspot. -/obj/item/grenade/chem_grenade/adv_release // Intended for weaker, but longer lasting effects. Could have some interesting uses. +/// Intended for weaker, but longer lasting effects. Could have some interesting uses. +/obj/item/grenade/chem_grenade/adv_release name = "advanced release grenade" desc = "A custom made advanced release grenade. It is able to be detonated more than once. Can be configured using a multitool." icon_state = "timeg" diff --git a/code/game/objects/items/weapons/holy_weapons.dm b/code/game/objects/items/weapons/holy_weapons.dm index 3f7f3250b3427..1519d002eeacf 100644 --- a/code/game/objects/items/weapons/holy_weapons.dm +++ b/code/game/objects/items/weapons/holy_weapons.dm @@ -103,10 +103,12 @@ var/mob/living/L = AM L.adjustFireLoss(sanctify_force) // Bonus fire damage for sanctified (ERT) versions of nullrod -/obj/item/nullrod/fluff // fluff subtype to be used for all donator nullrods +/// fluff subtype to be used for all donator nullrods +/obj/item/nullrod/fluff reskin_selectable = FALSE -/obj/item/nullrod/ert // ERT subtype, applies sanctified property to any derived rod +/// ERT subtype, applies sanctified property to any derived rod +/obj/item/nullrod/ert name = "inquisitor null rod" reskin_selectable = FALSE sanctify_force = 10 @@ -370,7 +372,7 @@ /datum/hud/sword/New(mob/user) ..() - mymob.healths = new /obj/screen/healths() + mymob.healths = new /atom/movable/screen/healths() infodisplay += mymob.healths /mob/living/simple_animal/shade/sword/ClickOn(atom/A, params) @@ -471,7 +473,8 @@ user.faction |= "carp" used_blessing = TRUE -/obj/item/nullrod/claymore/bostaff //May as well make it a "claymore" and inherit the blocking +/// May as well make it a "claymore" and inherit the blocking +/obj/item/nullrod/claymore/bostaff name = "monk's staff" desc = "A long, tall staff made of polished wood. Traditionally used in ancient old-Earth martial arts, now used to harass the clown." icon_state = "bostaff0" diff --git a/code/game/objects/items/weapons/legcuffs.dm b/code/game/objects/items/weapons/legcuffs.dm index d3a3350cf9fb9..31c817cc06739 100644 --- a/code/game/objects/items/weapons/legcuffs.dm +++ b/code/game/objects/items/weapons/legcuffs.dm @@ -273,7 +273,8 @@ if(!reuseable) flags |= DROPDEL -/obj/item/restraints/legcuffs/bola/tactical //traitor variant +/// traitor variant +/obj/item/restraints/legcuffs/bola/tactical name = "reinforced bola" desc = "A strong bola, made with a long steel chain. It looks heavy, enough so that it could trip somebody." icon_state = "bola_r" @@ -282,7 +283,8 @@ origin_tech = "engineering=4;combat=3" knockdown_duration = 2 SECONDS -/obj/item/restraints/legcuffs/bola/energy //For Security +/// For Security +/obj/item/restraints/legcuffs/bola/energy name = "energy bola" desc = "A specialized hard-light bola designed to ensnare fleeing criminals and aid in arrests." icon_state = "ebola" diff --git a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm index 2086e1677e07b..f07c624b1d028 100644 --- a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm +++ b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm @@ -159,7 +159,8 @@ ..() return -/obj/item/melee/energy/sword/cyborg/saw //Used by medical Syndicate cyborgs +/// Used by medical Syndicate cyborgs +/obj/item/melee/energy/sword/cyborg/saw name = "energy saw" desc = "For heavy duty cutting. It has a carbon-fiber blade in addition to a toggleable hard-light edge to dramatically increase sharpness." force_on = 30 diff --git a/code/game/objects/items/weapons/pneumaticCannon.dm b/code/game/objects/items/weapons/pneumaticCannon.dm index bb7afcb691997..fd54057f18790 100644 --- a/code/game/objects/items/weapons/pneumaticCannon.dm +++ b/code/game/objects/items/weapons/pneumaticCannon.dm @@ -173,7 +173,8 @@ requires_tank = FALSE max_weight_class = INFINITY -/obj/item/pneumatic_cannon/ghetto //Obtainable by improvised methods; more gas per use, less capacity, but smaller +/// Obtainable by improvised methods; more gas per use, less capacity, but smaller +/obj/item/pneumatic_cannon/ghetto name = "improvised pneumatic cannon" desc = "A gas-powered, object-firing cannon made out of common parts." force = 5 diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index c5fdde6e1ade1..5f362b5ffe3f1 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -600,7 +600,8 @@ new /obj/item/clothing/mask/muzzle(src) new /obj/item/reagent_containers/glass/bottle/reagent/hydrocodone(src) -/obj/item/storage/backpack/duffel/syndie/med/surgery_fake //for maint spawns +/// for maint spawns +/obj/item/storage/backpack/duffel/syndie/med/surgery_fake name = "surgery duffelbag" desc = "A suspicious looking duffelbag for holding surgery tools." diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 11c745f7e7211..7bc630ed97e51 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -182,7 +182,8 @@ name = "cyborg mining satchel" flags = NODROP -/obj/item/storage/bag/ore/holding //miners, your messiah has arrived +/// miners, your messiah has arrived +/obj/item/storage/bag/ore/holding name = "mining satchel of holding" desc = "A revolution in convenience, this satchel allows for infinite ore storage. It's been outfitted with anti-malfunction safety measures." storage_slots = INFINITY @@ -244,7 +245,8 @@ // Because it stacks stacks, this doesn't operate normally. // However, making it a storage/bag allows us to reuse existing code in some places. -Sayu -/obj/item/storage/bag/sheetsnatcher // what is this even used for +/// what is this even used for +/obj/item/storage/bag/sheetsnatcher icon = 'icons/obj/mining.dmi' icon_state = "sheetsnatcher" name = "Sheet Snatcher" diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm index 7079b62de9817..cf5b79d57c11f 100644 --- a/code/game/objects/items/weapons/storage/belt.dm +++ b/code/game/objects/items/weapons/storage/belt.dm @@ -61,7 +61,7 @@ /obj/item/storage/belt/MouseDrop(obj/over_object, src_location, over_location) var/mob/M = usr - if(!istype(over_object, /obj/screen)) + if(!is_screen_atom(over_object)) return ..() playsound(loc, "rustle", 50, TRUE, -5) if(!M.restrained() && !M.stat && can_use()) @@ -148,7 +148,8 @@ update_icon() //much roomier now that we've managed to remove two tools -/obj/item/storage/belt/utility/syndi_researcher // A cool looking belt thats essentially a syndicate toolbox +/// A cool looking belt thats essentially a syndicate toolbox +/obj/item/storage/belt/utility/syndi_researcher desc = "A belt for holding tools, but with style." icon_state = "assaultbelt" item_state = "assault" @@ -438,7 +439,8 @@ new /obj/item/grenade/chem_grenade/facid(src) //1 new /obj/item/grenade/chem_grenade/saringas(src) //1 -/obj/item/storage/belt/grenade/tactical // Traitor bundle version +/// Traitor bundle version +/obj/item/storage/belt/grenade/tactical name = "tactical grenadier belt" storage_slots = 20 // Not as many slots as the nukie one max_combined_w_class = 40 diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index 43e323d983076..69816d0a4058a 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -1126,7 +1126,8 @@ /obj/item/storage/box/stockparts display_contents_with_number = TRUE -/obj/item/storage/box/stockparts/basic //for ruins where it's a bad idea to give access to an autolathe/protolathe, but still want to make stock parts accessible +/// for ruins where it's a bad idea to give access to an autolathe/protolathe, but still want to make stock parts accessible +/obj/item/storage/box/stockparts/basic name = "box of stock parts" desc = "Contains a variety of basic stock parts." diff --git a/code/game/objects/items/weapons/storage/internal.dm b/code/game/objects/items/weapons/storage/internal.dm index cd73c8b7e101a..ea22a318deb55 100644 --- a/code/game/objects/items/weapons/storage/internal.dm +++ b/code/game/objects/items/weapons/storage/internal.dm @@ -37,10 +37,10 @@ if(over_object == user && Adjacent(user)) // this must come before the screen objects only block open(user) - return 0 + return FALSE - if(!istype(over_object, /obj/screen)) - return 1 + if(!is_screen_atom(over_object)) + return TRUE //makes sure master_item is equipped before putting it in hand, so that we can't drag it into our hand from miles away. //there's got to be a better way of doing this... diff --git a/code/game/objects/items/weapons/storage/storage_base.dm b/code/game/objects/items/weapons/storage/storage_base.dm index b0cde0fb715a5..d929b202cc86a 100644 --- a/code/game/objects/items/weapons/storage/storage_base.dm +++ b/code/game/objects/items/weapons/storage/storage_base.dm @@ -26,8 +26,8 @@ var/max_combined_w_class = 14 /// The number of storage slots in this container. var/storage_slots = 7 - var/obj/screen/storage/boxes = null - var/obj/screen/close/closer = null + var/atom/movable/screen/storage/boxes = null + var/atom/movable/screen/close/closer = null /// Set this to make it possible to use this item in an inverse way, so you can have the item in your hand and click items on the floor to pick them up. var/use_to_pickup = FALSE @@ -59,14 +59,14 @@ populate_contents() - boxes = new /obj/screen/storage() + boxes = new /atom/movable/screen/storage() boxes.name = "storage" boxes.master = src boxes.icon_state = "block" boxes.screen_loc = "7,7 to 10,8" boxes.layer = HUD_LAYER boxes.plane = HUD_PLANE - closer = new /obj/screen/close() + closer = new /atom/movable/screen/close() closer.master = src closer.icon_state = "backpack_close" closer.layer = ABOVE_HUD_LAYER @@ -136,7 +136,7 @@ update_icon() // For content-sensitive icons return - if(!(istype(over_object, /obj/screen))) + if(!is_screen_atom(over_object)) return ..() if(!(loc == M) || (loc && loc.loc == M)) return diff --git a/code/game/objects/items/weapons/storage/uplink_kits.dm b/code/game/objects/items/weapons/storage/uplink_kits.dm index 1607d8a1ad029..f098364adca3f 100644 --- a/code/game/objects/items/weapons/storage/uplink_kits.dm +++ b/code/game/objects/items/weapons/storage/uplink_kits.dm @@ -2,10 +2,12 @@ desc = "A sleek, sturdy box." icon_state = "doom_box" -/obj/item/storage/box/syndie_kit/bundle // Traitor bundles +/// Traitor bundles +/obj/item/storage/box/syndie_kit/bundle var/list/items = list() -/obj/item/storage/box/syndie_kit/bundle/spy // 172TC +/// 172TC +/obj/item/storage/box/syndie_kit/bundle/spy name = "Spy Bundle" desc = "Complete your objectives quietly with this compilation of stealthy items." items = list( @@ -23,7 +25,8 @@ /obj/item/door_remote/omni/access_tuner, // 30 TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/agent13 // 159 +/// 159 +/obj/item/storage/box/syndie_kit/bundle/agent13 name = "Agent 13 Bundle" desc = "Find and eliminate your targets quietly and effectively with this kit." items = list( @@ -41,7 +44,8 @@ /obj/item/coin/gold, // 0TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/thief // 160TC +/// 160TC +/obj/item/storage/box/syndie_kit/bundle/thief name = "Thief Bundle" desc = "Steal from friends, enemies, and interstellar megacorporations alike!" items = list( @@ -53,7 +57,8 @@ /obj/item/storage/backpack/satchel_flat, // 10TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/bond // 137TC +/// 137TC +/obj/item/storage/box/syndie_kit/bundle/bond name = "Agent 007 Bundle" desc = "Shake your Martini and stir up trouble with this bundle of lethal equipment mixed with a spritz of gadgetry to keep things interesting." items = list( @@ -72,7 +77,8 @@ /obj/item/storage/box/syndie_kit/pen_bomb, // 30 TC /obj/item/CQC_manual) // 13TC -/obj/item/storage/box/syndie_kit/bundle/infiltrator // 155TC + RCD & Mesons Autoimplanter +/// 155TC + RCD & Mesons Autoimplanter +/obj/item/storage/box/syndie_kit/bundle/infiltrator name = "Infiltration Bundle" desc = "Use your teleporter, krav maga and other support tools to jump right into your desired location, quickly leaving as though you were never there." items = list( @@ -85,7 +91,8 @@ /obj/item/autosurgeon/organ/syndicate/meson_eyes, // 0TC /obj/item/encryptionkey/syndicate) // 2TC -/obj/item/storage/box/syndie_kit/bundle/payday // 175TC +/// 175TC +/obj/item/storage/box/syndie_kit/bundle/payday name = "Heist Bundle" desc = "Alright guys, today we're performing a heist on a space station owned by a greedy corporation. Drain the vault of all its worth so we can get that pay dirt!11" items = list( @@ -104,7 +111,8 @@ /obj/item/bio_chip_implanter/freedom/prototype, // 10 TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/implant // 200TC +/// 200TC +/obj/item/storage/box/syndie_kit/bundle/implant name = "Bio-chip Bundle" desc = "A few useful bio-chips to give you some options for when you inevitably get captured by the Security." items = list( @@ -116,7 +124,8 @@ /obj/item/bio_chip_implanter/storage, // 40TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/hacker // 180TC +/// 180TC +/obj/item/storage/box/syndie_kit/bundle/hacker name = "Hacker Bundle" desc = "A kit with everything you need to hack into and disrupt the Station, AI, its cyborgs and the Security team. HACK THE PLANET!" items = list( @@ -135,7 +144,8 @@ /obj/item/clothing/gloves/combat, // accounted in belt + toolbox /obj/item/flashlight/emp) // 4TC -/obj/item/storage/box/syndie_kit/bundle/darklord // 168TC + Telekinesis +/// 168TC + Telekinesis +/obj/item/storage/box/syndie_kit/bundle/darklord name = "Dark Lord Bundle" desc = "Turn your anger into hate and your hate into suffering with a mix of energy swords and magical powers. DO IT." items = list( @@ -150,7 +160,8 @@ /obj/item/clothing/shoes/chameleon/noslip, // 10TC /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/professional // 164TC +/// 164TC +/obj/item/storage/box/syndie_kit/bundle/professional name = "Sniper Bundle" desc = "Suit up and handle yourself like a professional with a long-distance sniper rifle, additional .50 standard and penetrator rounds and thermal glasses to easily scope out your target." items = list( @@ -164,7 +175,8 @@ /obj/item/clothing/suit/storage/iaa/blackjacket/armored, // 3TC /obj/item/encryptionkey/syndicate) // 15TC -/obj/item/storage/box/syndie_kit/bundle/grenadier // 133TC + Tactical Grenadier Belt +/// 133TC + Tactical Grenadier Belt +/obj/item/storage/box/syndie_kit/bundle/grenadier name = "Grenade Bundle" desc = "A variety of grenades and pyrotechnics to ensure you can blast your way through any situation. " items = list( @@ -180,7 +192,8 @@ /obj/item/storage/box/syndie_kit/frag_grenades, // One box, as a treat /obj/item/encryptionkey/syndicate) // 10TC -/obj/item/storage/box/syndie_kit/bundle/metroid // 115TC + modules + laser gun +/// 115TC + modules + laser gun +/obj/item/storage/box/syndie_kit/bundle/metroid name = "Modsuit Bundle" desc = "Don the equipment of an intergalactic bounty hunter and blast your way through the station!" items = list( diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index d8e18e42e5fb7..5e76d2e44f9e5 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -1,7 +1,8 @@ /* * Fireaxe */ -/obj/item/fireaxe // DEM AXES MAN, marker -Agouri +/// DEM AXES MAN, marker -Agouri +/obj/item/fireaxe base_icon_state = "fireaxe" lefthand_file = 'icons/mob/inhands/weapons_lefthand.dmi' righthand_file = 'icons/mob/inhands/weapons_righthand.dmi' @@ -41,7 +42,8 @@ var/obj/structure/W = A W.obj_destruction("fireaxe") -/obj/item/fireaxe/boneaxe // Blatant imitation of the fireaxe, but made out of bone. +/// Blatant imitation of the fireaxe, but made out of bone. +/obj/item/fireaxe/boneaxe icon_state = "bone_axe0" base_icon_state = "bone_axe" name = "bone axe" @@ -306,7 +308,8 @@ explosive.prime() qdel(src) -/obj/item/spear/bonespear //Blatant imitation of spear, but made out of bone. Not valid for explosive modification. +/// Blatant imitation of spear, but made out of bone. Not valid for explosive modification. +/obj/item/spear/bonespear name = "bone spear" desc = "A haphazardly-constructed yet still deadly weapon. The pinnacle of modern technology." base_icon_state = "bone_spear" @@ -1017,7 +1020,8 @@ #undef BROOM_PUSH_LIMIT -/obj/item/supermatter_halberd //Supermatter Halberd, used by Oblivion Enforcers +/// Supermatter Halberd, used by Oblivion Enforcers +/obj/item/supermatter_halberd name = "supermatter halberd" desc = "The revered weapon of Oblivion Enforcers, used to enforce the Order's will." lefthand_file = 'icons/mob/inhands/weapons_lefthand.dmi' diff --git a/code/game/objects/structures/barsign.dm b/code/game/objects/structures/barsign.dm index d34c9007ffb0a..66c122013ab5f 100644 --- a/code/game/objects/structures/barsign.dm +++ b/code/game/objects/structures/barsign.dm @@ -1,4 +1,5 @@ -/obj/structure/sign/barsign // All Signs are 64 by 32 pixels, they take two tiles +/// All Signs are 64 by 32 pixels, they take two tiles +/obj/structure/sign/barsign name = "Bar Sign" desc = "A bar sign with no writing on it." icon = 'icons/obj/barsigns.dmi' diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 0e5146890c783..9acb557291840 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -233,7 +233,7 @@ /obj/structure/closet/MouseDrop_T(atom/movable/O, mob/living/user) ..() - if(istype(O, /obj/screen)) //fix for HUD elements making their way into the world -Pete + if(is_screen_atom(O)) //fix for HUD elements making their way into the world -Pete return if(O.loc == user) return @@ -371,7 +371,7 @@ /obj/structure/closet/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 1) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 1) /obj/structure/closet/ex_act(severity) for(var/atom/A in contents) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm b/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm index 28d421596d690..2ac142b2c3c8d 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/cargo_lockers.dm @@ -33,7 +33,8 @@ new /obj/item/storage/bag/mail(src) new /obj/item/melee/knuckleduster/nanotrasen(src) -/obj/structure/closet/secure_closet/quartermaster/lavaland //used in mining outpost +/// used in mining outpost +/obj/structure/closet/secure_closet/quartermaster/lavaland name = "quartermaster's secondary locker" /obj/structure/closet/secure_closet/quartermaster/lavaland/populate_contents() diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm index 38240e163151f..5dffb626cf735 100644 --- a/code/game/objects/structures/crates_lockers/closets/statue.dm +++ b/code/game/objects/structures/crates_lockers/closets/statue.dm @@ -1,4 +1,5 @@ -/obj/structure/closet/statue //this type path is a crime, ponies what the fuck +/// this type path is a crime, ponies what the fuck +/obj/structure/closet/statue name = "statue" desc = "An incredibly lifelike marble carving" icon = 'icons/obj/statue.dmi' diff --git a/code/game/objects/structures/fluff.dm b/code/game/objects/structures/fluff.dm index 2e75b13bd1520..f816563f3a939 100644 --- a/code/game/objects/structures/fluff.dm +++ b/code/game/objects/structures/fluff.dm @@ -22,14 +22,16 @@ return return ..() -/obj/structure/fluff/empty_terrarium //Empty terrariums are created when a preserved terrarium in a lavaland seed vault is activated. +/// Empty terrariums are created when a preserved terrarium in a lavaland seed vault is activated. +/obj/structure/fluff/empty_terrarium name = "empty terrarium" desc = "An ancient machine that seems to be used for storing plant matter. Its hatch is ajar." icon = 'icons/obj/lavaland/spawners.dmi' icon_state = "terrarium_open" density = TRUE -/obj/structure/fluff/empty_sleeper //Empty sleepers are created by a good few ghost roles in lavaland. +/// Empty sleepers are created by a good few ghost roles in lavaland. +/obj/structure/fluff/empty_sleeper name = "empty sleeper" desc = "An open sleeper. It looks as though it would be awaiting another patient, were it not broken." icon = 'icons/obj/cryogenic2.dmi' @@ -44,13 +46,15 @@ /obj/structure/fluff/empty_sleeper/syndicate icon_state = "sleeper_s-open" -/obj/structure/fluff/empty_cryostasis_sleeper //Empty cryostasis sleepers are created when a malfunctioning cryostasis sleeper in a lavaland shelter is activated +/// Empty cryostasis sleepers are created when a malfunctioning cryostasis sleeper in a lavaland shelter is activated +/obj/structure/fluff/empty_cryostasis_sleeper name = "empty cryostasis sleeper" desc = "Although comfortable, this sleeper won't function as anything but a bed ever again." icon = 'icons/obj/lavaland/spawners.dmi' icon_state = "cryostasis_sleeper_open" -/obj/structure/fluff/drake_statue //Ash drake status spawn on either side of the necropolis gate in lavaland. +/// Ash drake status spawn on either side of the necropolis gate in lavaland. +/obj/structure/fluff/drake_statue name = "drake statue" desc = "A towering basalt sculpture of a proud and regal drake. Its eyes are six glowing gemstones." icon = 'icons/effects/64x64.dmi' @@ -60,7 +64,8 @@ deconstructible = FALSE layer = EDGED_TURF_LAYER -/obj/structure/fluff/drake_statue/falling //A variety of statue in disrepair; parts are broken off and a gemstone is missing +/// A variety of statue in disrepair; parts are broken off and a gemstone is missing +/obj/structure/fluff/drake_statue/falling desc = "A towering basalt sculpture of a drake. Cracks run down its surface and parts of it have fallen off." icon_state = "drake_statue_falling" diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 6effd6dd37e20..fbc538af4a15a 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -277,7 +277,8 @@ C.add_queued_power_demand(C.get_queued_available_power() * 0.0375) // you can gain up to 3.5 via the 4x upgrades power is halved by the pole so thats 2x then 1X then .5X for 3.5x the 3 bounces shock. return ..() -/obj/structure/grille/broken // Pre-broken grilles for map placement +/// Pre-broken grilles for map placement +/obj/structure/grille/broken icon_state = "brokengrille" density = FALSE obj_integrity = 20 diff --git a/code/game/objects/structures/inflatable.dm b/code/game/objects/structures/inflatable.dm index 9d2860fd77489..d01c09a789bcb 100644 --- a/code/game/objects/structures/inflatable.dm +++ b/code/game/objects/structures/inflatable.dm @@ -96,7 +96,8 @@ R.add_fingerprint(user) qdel(src) -/obj/structure/inflatable/door //Based on mineral door code +/// Based on mineral door code +/obj/structure/inflatable/door name = "inflatable door" icon_state = "door_closed" torn = /obj/item/inflatable/door/torn diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index e7281879e2801..5d80c18fe1a4b 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -241,7 +241,7 @@ /obj/structure/morgue/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /* * Morgue tray @@ -534,7 +534,7 @@ GLOBAL_LIST_EMPTY(crematoriums) /obj/structure/crematorium/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /* * Crematorium tray diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index 126142a7e6f30..d339977097977 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -94,7 +94,8 @@ new /obj/item/stack/sheet/plastic/five(loc) qdel(src) -/obj/structure/plasticflaps/mining //A specific type for mining that doesn't allow airflow because of them damn crates +/// A specific type for mining that doesn't allow airflow because of them damn crates +/obj/structure/plasticflaps/mining name = "airtight plastic flaps" desc = "Heavy duty, airtight, plastic flaps." diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm index 266460cc6a9db..ff67ffde85ac9 100644 --- a/code/game/objects/structures/railings.dm +++ b/code/game/objects/structures/railings.dm @@ -15,12 +15,14 @@ /obj/structure/railing/get_climb_text() return "<span class='info'>You can <b>Click-Drag</b> yourself to [src] to climb over it after a short delay.</span>" -/obj/structure/railing/corner //aesthetic corner sharp edges hurt oof ouch +/// aesthetic corner sharp edges hurt oof ouch +/obj/structure/railing/corner icon_state = "railing_corner" density = FALSE climbable = FALSE -/obj/structure/railing/cap //aestetic "end" for railing +/// aestetic "end" for railing +/obj/structure/railing/cap icon_state = "railing_cap" density = FALSE climbable = FALSE diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index 63eaf9932be9e..f3bd37e0600b3 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -359,13 +359,13 @@ GLOBAL_LIST_EMPTY(safes) drill.song.start_playing(driller) notify_ghosts("Security assault in progress in [get_area(src)]!", enter_link="<a href=?src=[UID()];follow=1>(Click to jump to!)</a>", source = src, action = NOTIFY_FOLLOW) for(var/mob/dead/observer/O in GLOB.player_list) - O.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 0) + O.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 0) addtimer(CALLBACK(src, PROC_REF(ghost_payback_phase_2)), 2.7 SECONDS) /obj/structure/safe/proc/ghost_payback_phase_2() for(var/mob/dead/observer/O in GLOB.player_list) O.clear_fullscreen("payback") - O.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 1) + O.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/payback, 1) addtimer(CALLBACK(src, PROC_REF(clear_payback)), 2 MINUTES) /obj/structure/safe/proc/clear_payback() diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm index 4503aa524c4b9..43d4c263c187c 100644 --- a/code/game/objects/structures/signs.dm +++ b/code/game/objects/structures/signs.dm @@ -232,39 +232,39 @@ icon_state = "kidanplaque" /obj/structure/sign/mech - name = "\improper mech painting" + name = "mech painting" desc = "A painting of a mech." icon_state = "mech" /obj/structure/sign/nuke - name = "\improper nuke painting" + name = "nuke painting" desc = "A painting of a nuke." icon_state = "nuke" /obj/structure/sign/clown - name = "\improper clown painting" + name = "clown painting" desc = "A painting of the clown and mime. Awwww." icon_state = "clown" /obj/structure/sign/bobross - name = "\improper calming painting" + name = "calming painting" desc = "We don't make mistakes, just happy little accidents." icon_state = "bob" /obj/structure/sign/singulo - name = "\improper singulo painting" + name = "singulo painting" desc = "A mesmerizing painting of a singularity. It seems to suck you in..." icon_state = "singulo" /obj/structure/sign/barber - name = "\improper barber shop sign" + name = "barber shop sign" desc = "A spinning sign indicating a barbershop is near." icon_state = "barber" does_emissive = TRUE blocks_emissive = FALSE /obj/structure/sign/chinese - name = "\improper chinese restaurant sign" + name = "chinese restaurant sign" desc = "A glowing dragon invites you in." icon_state = "chinese" does_emissive = TRUE diff --git a/code/game/objects/structures/statues.dm b/code/game/objects/structures/statues.dm index c62d9d426ac9d..f6ece981b4caf 100644 --- a/code/game/objects/structures/statues.dm +++ b/code/game/objects/structures/statues.dm @@ -264,7 +264,8 @@ desc = "A cheap statue of sandstone for a greyshirt." icon_state = "assist" -/obj/structure/statue/sandstone/venus //call me when we add marble i guess +/// call me when we add marble i guess +/obj/structure/statue/sandstone/venus name = "statue of a pure maiden" desc = "An ancient marble statue. The subject is depicted with a floor-length braid and is wielding a toolbox. By Jove, it's easily the most gorgeous depiction of a woman you've ever seen. The artist must truly be a master of his craft. Shame about the broken arm, though." icon = 'icons/obj/statuelarge.dmi' diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm index 10a43fe214d31..0c3dd3edabc18 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm @@ -75,7 +75,7 @@ if(istype(hugger_mask) && !hugger_mask.sterile && (locate(/obj/item/organ/internal/body_egg/alien_embryo) in buckled_mob.internal_organs)) if(user && !isalien(user)) return - buckled_mob.throw_alert("ghost_nest", /obj/screen/alert/ghost) + buckled_mob.throw_alert("ghost_nest", /atom/movable/screen/alert/ghost) to_chat(buckled_mob, "<span class='ghostalert'>You may now ghost, you keep respawnability in this state. You will be alerted when you're removed from the nest.</span>") /obj/structure/bed/nest/post_buckle_mob(mob/living/M) diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index 125a515a2f2fd..6f01518ae994d 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -1,4 +1,5 @@ -/obj/structure/chair // fuck you Pete +/// fuck you Pete +/obj/structure/chair name = "chair" desc = "You sit in this. Either by will or force." icon = 'icons/obj/chairs.dmi' diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index fce002c46a56d..950a932c40551 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -621,7 +621,8 @@ if(!total_override) ..() -/obj/structure/table/wood/poker //No specialties, Just a mapping object. +/// No specialties, Just a mapping object. +/obj/structure/table/wood/poker name = "gambling table" desc = "A seedy table for seedy dealings in seedy places." icon = 'icons/obj/smooth_structures/tables/poker_table.dmi' diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index f22e746da5ce8..284b39dd50f37 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -610,7 +610,8 @@ can_rotate = 0 -/obj/structure/sink/puddle //splishy splashy ^_^ +/// splishy splashy ^_^ +/obj/structure/sink/puddle name = "puddle" desc = "A puddle of clean water. Looks refreshing." icon_state = "puddle" diff --git a/code/game/turfs/simulated/floor/asteroid_floors.dm b/code/game/turfs/simulated/floor/asteroid_floors.dm index dd869e06ae0fc..bb56be30dffd2 100644 --- a/code/game/turfs/simulated/floor/asteroid_floors.dm +++ b/code/game/turfs/simulated/floor/asteroid_floors.dm @@ -110,7 +110,8 @@ floor_variance = 15 digResult = /obj/item/stack/ore/glass/basalt -/turf/simulated/floor/plating/asteroid/basalt/lava //lava underneath +/// lava underneath +/turf/simulated/floor/plating/asteroid/basalt/lava baseturf = /turf/simulated/floor/lava /turf/simulated/floor/plating/asteroid/basalt/airless @@ -185,7 +186,8 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me var/data_having_type = /turf/simulated/floor/plating/asteroid/airless/cave/has_data turf_type = /turf/simulated/floor/plating/asteroid/airless -/turf/simulated/floor/plating/asteroid/airless/cave/has_data //subtype for producing a tunnel with given data +/// subtype for producing a tunnel with given data +/turf/simulated/floor/plating/asteroid/airless/cave/has_data has_data = TRUE /turf/simulated/floor/plating/asteroid/airless/cave/volcanic @@ -201,7 +203,8 @@ GLOBAL_LIST_INIT(megafauna_spawn_list, list(/mob/living/simple_animal/hostile/me nitrogen = 23 temperature = 300 -/turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data //subtype for producing a tunnel with given data +/// subtype for producing a tunnel with given data +/turf/simulated/floor/plating/asteroid/airless/cave/volcanic/has_data has_data = TRUE /turf/simulated/floor/plating/asteroid/airless/cave/Initialize(mapload) diff --git a/code/game/turfs/simulated/floor/fancy_floor.dm b/code/game/turfs/simulated/floor/fancy_floor.dm index a7c41e9edc833..17264977073f8 100644 --- a/code/game/turfs/simulated/floor/fancy_floor.dm +++ b/code/game/turfs/simulated/floor/fancy_floor.dm @@ -85,14 +85,16 @@ base_icon_state = "junglegrass" smoothing_groups = list(SMOOTH_GROUP_TURF, SMOOTH_GROUP_GRASS, SMOOTH_GROUP_JUNGLE_GRASS) -/turf/simulated/floor/grass/no_creep //This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/// This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/turf/simulated/floor/grass/no_creep smoothing_flags = null smoothing_groups = null canSmoothWith = null layer = GRASS_UNDER_LAYER transform = null -/turf/simulated/floor/grass/jungle/no_creep //This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/// This vairant shows up under normal turfs so fits in the regular 32x32 sprite +/turf/simulated/floor/grass/jungle/no_creep smoothing_flags = null smoothing_groups = null canSmoothWith = null diff --git a/code/game/turfs/simulated/floor/indestructible.dm b/code/game/turfs/simulated/floor/indestructible.dm index a2343a5e061be..2cccdda027494 100644 --- a/code/game/turfs/simulated/floor/indestructible.dm +++ b/code/game/turfs/simulated/floor/indestructible.dm @@ -63,7 +63,8 @@ nitrogen = MOLES_N2STANDARD temperature = T20C -/turf/simulated/floor/indestructible/boss //you put stone tiles on this and use it as a base +/// you put stone tiles on this and use it as a base +/turf/simulated/floor/indestructible/boss name = "necropolis floor" icon = 'icons/turf/floors/boss_floors.dmi' icon_state = "boss" diff --git a/code/game/turfs/simulated/floor/light_floor.dm b/code/game/turfs/simulated/floor/light_floor.dm index d3090e85ebc3a..5726cc958b97a 100644 --- a/code/game/turfs/simulated/floor/light_floor.dm +++ b/code/game/turfs/simulated/floor/light_floor.dm @@ -1,5 +1,5 @@ /turf/simulated/floor/light - name = "\improper light floor" + name = "light floor" light_range = 0 icon_state = "light_off" floor_tile = /obj/item/stack/tile/light diff --git a/code/game/turfs/simulated/floor/misc_floor.dm b/code/game/turfs/simulated/floor/misc_floor.dm index 9f2a665bf04e3..8a1de89314e70 100644 --- a/code/game/turfs/simulated/floor/misc_floor.dm +++ b/code/game/turfs/simulated/floor/misc_floor.dm @@ -91,7 +91,8 @@ clawfootstep = FOOTSTEP_WATER heavyfootstep = FOOTSTEP_WATER -/turf/simulated/floor/beach/water // TODO - Refactor water so they share the same parent type - Or alternatively component something like that +/// TODO - Refactor water so they share the same parent type - Or alternatively component something like that +/turf/simulated/floor/beach/water name = "water" icon_state = "water" mouse_opacity = MOUSE_OPACITY_TRANSPARENT diff --git a/code/game/turfs/simulated/floor/plasteel_floor.dm b/code/game/turfs/simulated/floor/plasteel_floor.dm index 96e24e507c0c9..2e8f6935c2ced 100644 --- a/code/game/turfs/simulated/floor/plasteel_floor.dm +++ b/code/game/turfs/simulated/floor/plasteel_floor.dm @@ -19,7 +19,8 @@ . = ..() name = "floor" -/turf/simulated/floor/plasteel/airless/indestructible // For bomb testing range +/// For bomb testing range +/turf/simulated/floor/plasteel/airless/indestructible /turf/simulated/floor/plasteel/airless/indestructible/ex_act(severity) return diff --git a/code/game/turfs/simulated/minerals.dm b/code/game/turfs/simulated/minerals.dm index c439a00b1b50c..108f5a51d83ac 100644 --- a/code/game/turfs/simulated/minerals.dm +++ b/code/game/turfs/simulated/minerals.dm @@ -1,6 +1,7 @@ /**********************Mineral deposits**************************/ -/turf/simulated/mineral //wall piece +/// wall piece +/turf/simulated/mineral name = "rock" icon = 'icons/turf/walls/smoothrocks.dmi' icon_state = "smoothrocks-0" diff --git a/code/game/turfs/simulated/walls_mineral.dm b/code/game/turfs/simulated/walls_mineral.dm index 09d0b7cc43689..1dc17ad67d460 100644 --- a/code/game/turfs/simulated/walls_mineral.dm +++ b/code/game/turfs/simulated/walls_mineral.dm @@ -212,7 +212,8 @@ /////////////////////Titanium walls///////////////////// -/turf/simulated/wall/mineral/titanium //has to use this path due to how building walls works +/// has to use this path due to how building walls works +/turf/simulated/wall/mineral/titanium name = "wall" desc = "A light-weight titanium wall used in shuttles." icon = 'icons/turf/walls/plastinum_wall.dmi' diff --git a/code/game/turfs/space/transit.dm b/code/game/turfs/space/transit.dm index eca159708709f..9cbb857557921 100644 --- a/code/game/turfs/space/transit.dm +++ b/code/game/turfs/space/transit.dm @@ -6,7 +6,8 @@ /turf/space/transit/attackby(obj/O as obj, mob/user as mob, params) return -/turf/space/transit/north // moving to the north +/// moving to the north +/turf/space/transit/north pushdirection = SOUTH // south because the space tile is scrolling south @@ -56,7 +57,8 @@ /turf/space/transit/north/shuttlespace_ns15 icon_state = "speedspace_ns_15" -/turf/space/transit/east // moving to the east +/// moving to the east +/turf/space/transit/east pushdirection = WEST /turf/space/transit/east/shuttlespace_ew1 diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 344db25398c1b..56accd28d9244 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -2,19 +2,15 @@ GLOBAL_LIST_EMPTY(admin_datums) GLOBAL_PROTECT(admin_datums) // This is protected because we dont want people making their own admin ranks, for obvious reasons /datum/admins - var/rank = "Temporary Admin" - var/client/owner = null + var/rank = "Temporary Admin" + var/client/owner + /// Bitflag containing the current rights this admin holder is assigned to var/rights = 0 - var/fakekey = null - var/big_brother = 0 - + var/fakekey + var/big_brother = FALSE + /// Our currently linked marked datum var/datum/marked_datum - var/admincaster_screen = 0 //See newscaster.dm under machinery for a full description - var/datum/feed_message/admincaster_feed_message = new /datum/feed_message //These two will act as holders. - var/datum/feed_channel/admincaster_feed_channel = new /datum/feed_channel - var/admincaster_signature //What you'll sign the newsfeeds as - /datum/admins/New(initial_rank = "Temporary Admin", initial_rights = 0, ckey) if(IsAdminAdvancedProcCall()) to_chat(usr, "<span class='boldannounceooc'>Admin rank creation blocked: Advanced ProcCall detected.</span>") @@ -25,7 +21,6 @@ GLOBAL_PROTECT(admin_datums) // This is protected because we dont want people ma error("Admin datum created without a ckey argument. Datum has been deleted") qdel(src) return - admincaster_signature = "Nanotrasen Officer #[rand(0,9)][rand(0,9)][rand(0,9)]" rank = initial_rank rights = initial_rights GLOB.admin_datums[ckey] = src diff --git a/code/modules/antagonists/_common/antag_spawner.dm b/code/modules/antagonists/_common/antag_spawner.dm index ea6345143afe1..b28f460e4f5e9 100644 --- a/code/modules/antagonists/_common/antag_spawner.dm +++ b/code/modules/antagonists/_common/antag_spawner.dm @@ -174,7 +174,8 @@ ///////////SLAUGHTER DEMON -/obj/item/antag_spawner/slaughter_demon //Warning edgiest item in the game +/// Warning edgiest item in the game +/obj/item/antag_spawner/slaughter_demon name = "vial of blood" desc = "A magically infused bottle of blood, distilled from countless murder victims. Used in unholy rituals to attract horrifying creatures." icon = 'icons/obj/wizard.dmi' diff --git a/code/modules/antagonists/changeling/powers/become_headslug.dm b/code/modules/antagonists/changeling/powers/become_headslug.dm index a5c7b712ffc45..06301121e983b 100644 --- a/code/modules/antagonists/changeling/powers/become_headslug.dm +++ b/code/modules/antagonists/changeling/powers/become_headslug.dm @@ -13,7 +13,7 @@ if(cling.headslugged) to_chat(user, "<span class='notice'>We need to absorb a humanoid to headslug again.</span>") return - if(tgui_alert("Are you sure you wish to do this? This action cannot be undone.",,"Yes","No") != "Yes") + if(tgui_alert(user, "Are you sure you wish to do this? This action cannot be undone.", "Sting", list("Yes", "No")) != "Yes") return cling.headslugged = TRUE ..() diff --git a/code/modules/antagonists/changeling/powers/tiny_prick.dm b/code/modules/antagonists/changeling/powers/tiny_prick.dm index 504c568f8a318..39b34d9494937 100644 --- a/code/modules/antagonists/changeling/powers/tiny_prick.dm +++ b/code/modules/antagonists/changeling/powers/tiny_prick.dm @@ -127,7 +127,8 @@ SSblackbox.record_feedback("nested tally", "changeling_powers", 1, list("[name]")) return TRUE -/datum/action/changeling/sting/cryo //Enable when mob cooling is fixed so that frostoil actually makes you cold, instead of mostly just hungry. +/// Enable when mob cooling is fixed so that frostoil actually makes you cold, instead of mostly just hungry. +/datum/action/changeling/sting/cryo name = "Cryogenic Sting" desc = "We silently sting our victim with a cocktail of chemicals that freezes them from the inside. Costs 15 chemicals." helptext = "Does not provide a warning to the victim, though they will likely realize they are suddenly freezing." diff --git a/code/modules/antagonists/vampire/vamp_datum.dm b/code/modules/antagonists/vampire/vamp_datum.dm index 3b5b91c81a0bb..d5a096bcef524 100644 --- a/code/modules/antagonists/vampire/vamp_datum.dm +++ b/code/modules/antagonists/vampire/vamp_datum.dm @@ -260,7 +260,7 @@ if(owner.current.hud_used) var/datum/hud/hud = owner.current.hud_used if(!hud.vampire_blood_display) - hud.vampire_blood_display = new /obj/screen() + hud.vampire_blood_display = new /atom/movable/screen() hud.vampire_blood_display.name = "Usable Blood" hud.vampire_blood_display.icon_state = "blood_display" hud.vampire_blood_display.screen_loc = "WEST:6,CENTER-1:15" diff --git a/code/modules/atmospherics/environmental/LINDA_fire.dm b/code/modules/atmospherics/environmental/LINDA_fire.dm index 2dc8bd21e1d1c..42dc9c3fb2506 100644 --- a/code/modules/atmospherics/environmental/LINDA_fire.dm +++ b/code/modules/atmospherics/environmental/LINDA_fire.dm @@ -188,7 +188,8 @@ /obj/effect/hotspot/singularity_pull() return -/obj/effect/hotspot/fake // Largely for the fireflash procs below +/// Largely for the fireflash procs below +/obj/effect/hotspot/fake fake = TRUE burn_time = 30 diff --git a/code/modules/atmospherics/machinery/airalarm.dm b/code/modules/atmospherics/machinery/airalarm.dm index 58c4b12f163d7..9623efed49364 100644 --- a/code/modules/atmospherics/machinery/airalarm.dm +++ b/code/modules/atmospherics/machinery/airalarm.dm @@ -117,7 +117,8 @@ custom_name = TRUE req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_ENGINE) -/obj/machinery/alarm/syndicate //general syndicate access +/// general syndicate access +/obj/machinery/alarm/syndicate report_danger_level = FALSE remote_control = FALSE req_access = list(ACCESS_SYNDICATE) diff --git a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm index 9e2adeec3fcdc..daa791d502c97 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm @@ -73,7 +73,8 @@ open() to_chat(user, "<span class='notice'>You [open ? "open" : "close"] [src].</span>") -/obj/machinery/atmospherics/binary/valve/digital // can be controlled by AI +/// can be controlled by AI +/obj/machinery/atmospherics/binary/valve/digital name = "digital valve" desc = "A digitally controlled valve." icon = 'icons/atmos/digital_valve.dmi' diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm b/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm index 5797b62cf2142..27871d8613ef4 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/tvalve.dm @@ -104,7 +104,8 @@ sleep(10) switch_side() -/obj/machinery/atmospherics/trinary/tvalve/digital // can be controlled by AI +/// can be controlled by AI +/obj/machinery/atmospherics/trinary/tvalve/digital name = "digital switching valve" desc = "A digitally controlled valve." icon = 'icons/atmos/digital_tvalve.dmi' diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index f35ceb6ef5d74..f9867a8c621b7 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -482,7 +482,7 @@ return /obj/machinery/atmospherics/unary/cryo_cell/get_remote_view_fullscreens(mob/user) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 1) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 1) /obj/machinery/atmospherics/unary/cryo_cell/update_remote_sight(mob/living/user) return //we don't see the pipe network while inside cryo. diff --git a/code/modules/awaymissions/mission_code/beach.dm b/code/modules/awaymissions/mission_code/beach.dm index bec7c33ed3a5c..88e5426a374bb 100644 --- a/code/modules/awaymissions/mission_code/beach.dm +++ b/code/modules/awaymissions/mission_code/beach.dm @@ -55,7 +55,8 @@ . = ..() //adds some aesthetic randomness to the beach sand icon_state = pick("desert", "desert0", "desert1", "desert2", "desert3", "desert4") -/turf/simulated/floor/beach/away/sand/dense //for boundary "walls" +/// for boundary "walls" +/turf/simulated/floor/beach/away/sand/dense density = TRUE baseturf = /turf/simulated/floor/beach/away/sand/dense @@ -71,7 +72,8 @@ clawfootstep = FOOTSTEP_WATER heavyfootstep = FOOTSTEP_WATER -/turf/simulated/floor/beach/away/coastline/dense //for boundary "walls" +/// for boundary "walls" +/turf/simulated/floor/beach/away/coastline/dense density = TRUE baseturf = /turf/simulated/floor/beach/away/coastline/dense @@ -117,7 +119,8 @@ temperature = 300 planetary_atmos = TRUE -/turf/simulated/floor/beach/away/water/dense //for boundary "walls" +/// for boundary "walls" +/turf/simulated/floor/beach/away/water/dense density = TRUE baseturf = /turf/simulated/floor/beach/away/water/dense diff --git a/code/modules/buildmode/buildmode.dm b/code/modules/buildmode/buildmode.dm index ce7fe813a6fe1..0035bfbb491a4 100644 --- a/code/modules/buildmode/buildmode.dm +++ b/code/modules/buildmode/buildmode.dm @@ -12,10 +12,10 @@ var/switch_state = BM_SWITCHSTATE_NONE var/switch_width = 5 // modeswitch UI - var/obj/screen/buildmode/mode/modebutton + var/atom/movable/screen/buildmode/mode/modebutton var/list/modeswitch_buttons = list() // dirswitch UI - var/obj/screen/buildmode/bdir/dirbutton + var/atom/movable/screen/buildmode/bdir/dirbutton var/list/dirswitch_buttons = list() /datum/click_intercept/buildmode/New() @@ -32,23 +32,23 @@ /datum/click_intercept/buildmode/create_buttons() // keep a reference so we can update it upon mode switch - modebutton = new /obj/screen/buildmode/mode(src) + modebutton = new /atom/movable/screen/buildmode/mode(src) buttons += modebutton - buttons += new /obj/screen/buildmode/help(src) + buttons += new /atom/movable/screen/buildmode/help(src) // keep a reference so we can update it upon dir switch - dirbutton = new /obj/screen/buildmode/bdir(src) + dirbutton = new /atom/movable/screen/buildmode/bdir(src) buttons += dirbutton - buttons += new /obj/screen/buildmode/quit(src) + buttons += new /atom/movable/screen/buildmode/quit(src) // build the list of modeswitching buttons - build_options_grid(subtypesof(/datum/buildmode_mode), modeswitch_buttons, /obj/screen/buildmode/modeswitch) - build_options_grid(list(SOUTH,EAST,WEST,NORTH,NORTHWEST), dirswitch_buttons, /obj/screen/buildmode/dirswitch) + build_options_grid(subtypesof(/datum/buildmode_mode), modeswitch_buttons, /atom/movable/screen/buildmode/modeswitch) + build_options_grid(list(SOUTH,EAST,WEST,NORTH,NORTHWEST), dirswitch_buttons, /atom/movable/screen/buildmode/dirswitch) /datum/click_intercept/buildmode/proc/build_options_grid(list/elements, list/buttonslist, buttontype) var/pos_idx = 0 for(var/thing in elements) var/x = pos_idx % switch_width var/y = FLOOR(pos_idx / switch_width, 1) - var/obj/screen/buildmode/B = new buttontype(src, thing) + var/atom/movable/screen/buildmode/B = new buttontype(src, thing) // this stuff is equivalent to the commented out line for 511 compat // B.screen_loc = "NORTH-[(1 + 0.5 + y*1.5)],WEST+[0.5 + x*1.5]" B.screen_loc = "NORTH-[1 + FLOOR(0.5 + 1.5*y, 1) + ((y + 1) % 2)]:[16*((y + 1) % 2)],WEST+[FLOOR(0.5 + 1.5*x, 1)]:[16*((x + 1) % 2)]" diff --git a/code/modules/buildmode/buildmode_hud.dm b/code/modules/buildmode/buildmode_hud.dm index 7c18de6be90c9..3c26c03be6cc2 100644 --- a/code/modules/buildmode/buildmode_hud.dm +++ b/code/modules/buildmode/buildmode_hud.dm @@ -1,22 +1,22 @@ -/obj/screen/buildmode +/atom/movable/screen/buildmode icon = 'icons/misc/buildmode.dmi' var/datum/click_intercept/buildmode/bd plane = HUD_PLANE_BUILDMODE -/obj/screen/buildmode/New(bld) +/atom/movable/screen/buildmode/New(bld) bd = bld return ..() -/obj/screen/buildmode/Destroy() +/atom/movable/screen/buildmode/Destroy() bd = null return ..() -/obj/screen/buildmode/mode +/atom/movable/screen/buildmode/mode name = "Toggle Mode" icon_state = "buildmode_basic" screen_loc = "NORTH,WEST" -/obj/screen/buildmode/mode/Click(location, control, params) +/atom/movable/screen/buildmode/mode/Click(location, control, params) var/list/pa = params2list(params) if(pa.Find("left")) @@ -26,64 +26,64 @@ update_icon() return TRUE -/obj/screen/buildmode/mode/update_icon_state() +/atom/movable/screen/buildmode/mode/update_icon_state() icon_state = bd.mode.get_button_iconstate() -/obj/screen/buildmode/help +/atom/movable/screen/buildmode/help icon_state = "buildhelp" screen_loc = "NORTH,WEST+1" name = "Buildmode Help" -/obj/screen/buildmode/help/Click() +/atom/movable/screen/buildmode/help/Click() bd.mode.show_help(usr) return TRUE -/obj/screen/buildmode/bdir +/atom/movable/screen/buildmode/bdir icon_state = "build" screen_loc = "NORTH,WEST+2" name = "Change Dir" -/obj/screen/buildmode/bdir/update_icon(updates=UPDATE_ICON_STATE) +/atom/movable/screen/buildmode/bdir/update_icon(updates=UPDATE_ICON_STATE) dir = bd.build_dir ..() -/obj/screen/buildmode/bdir/Click() +/atom/movable/screen/buildmode/bdir/Click() bd.toggle_dirswitch() update_icon() return TRUE // used to switch between modes -/obj/screen/buildmode/modeswitch +/atom/movable/screen/buildmode/modeswitch var/datum/buildmode_mode/modetype -/obj/screen/buildmode/modeswitch/New(bld, mt) +/atom/movable/screen/buildmode/modeswitch/New(bld, mt) modetype = mt icon_state = "buildmode_[initial(modetype.key)]" name = initial(modetype.key) return ..(bld) -/obj/screen/buildmode/modeswitch/Click() +/atom/movable/screen/buildmode/modeswitch/Click() bd.change_mode(modetype) return TRUE // used to switch between dirs -/obj/screen/buildmode/dirswitch +/atom/movable/screen/buildmode/dirswitch icon_state = "build" -/obj/screen/buildmode/dirswitch/New(bld, newdir) +/atom/movable/screen/buildmode/dirswitch/New(bld, newdir) dir = newdir name = dir2text(dir) return ..(bld) -/obj/screen/buildmode/dirswitch/Click() +/atom/movable/screen/buildmode/dirswitch/Click() bd.change_dir(dir) return TRUE -/obj/screen/buildmode/quit +/atom/movable/screen/buildmode/quit icon_state = "buildquit" screen_loc = "NORTH,WEST+3" name = "Quit Buildmode" -/obj/screen/buildmode/quit/Click() +/atom/movable/screen/buildmode/quit/Click() bd.quit() return TRUE diff --git a/code/modules/client/client_defines.dm b/code/modules/client/client_defines.dm index 390f425611c9f..1cb3985bae65d 100644 --- a/code/modules/client/client_defines.dm +++ b/code/modules/client/client_defines.dm @@ -56,7 +56,7 @@ preload_rsc = 0 // This is 0 so we can set it to an URL once the player logs in and have them download the resources from a different server. - var/obj/screen/click_catcher/void + var/atom/movable/screen/click_catcher/void var/ip_intel = "Disabled" @@ -66,7 +66,7 @@ var/datum/tooltip/tooltips // Overlay for showing debug info - var/obj/screen/debugtextholder/debug_text_overlay + var/atom/movable/screen/debugtextholder/debug_text_overlay /// Persistent storage for the flavour text of examined atoms. var/list/description_holders = list() diff --git a/code/modules/client/preference/link_processing.dm b/code/modules/client/preference/link_processing.dm index 27f9467045fa7..a37c78cff057a 100644 --- a/code/modules/client/preference/link_processing.dm +++ b/code/modules/client/preference/link_processing.dm @@ -1032,7 +1032,7 @@ if("thought_bubble") toggles2 ^= PREFTOGGLE_2_THOUGHT_BUBBLE if(length(parent?.screen)) - var/obj/screen/plane_master/point/PM = locate(/obj/screen/plane_master/point) in parent.screen + var/atom/movable/screen/plane_master/point/PM = locate(/atom/movable/screen/plane_master/point) in parent.screen PM.backdrop(parent.mob) if("be_special") @@ -1112,7 +1112,7 @@ if("ambientocclusion") toggles ^= PREFTOGGLE_AMBIENT_OCCLUSION if(length(parent?.screen)) - var/obj/screen/plane_master/game_world/PM = locate(/obj/screen/plane_master/game_world) in parent.screen + var/atom/movable/screen/plane_master/game_world/PM = locate(/atom/movable/screen/plane_master/game_world) in parent.screen PM.backdrop(parent.mob) if("parallax") diff --git a/code/modules/clothing/glasses/engine_goggles.dm b/code/modules/clothing/glasses/engine_goggles.dm index 1bd791fa8cba0..03bde7c6b0e06 100644 --- a/code/modules/clothing/glasses/engine_goggles.dm +++ b/code/modules/clothing/glasses/engine_goggles.dm @@ -101,7 +101,8 @@ user.update_inv_l_hand() user.update_inv_r_hand() -/obj/item/clothing/glasses/meson/engine/tray //atmos techs have lived far too long without tray goggles while those damned engineers get their dual-purpose gogles all to themselves +/// atmos techs have lived far too long without tray goggles while those damned engineers get their dual-purpose gogles all to themselves +/obj/item/clothing/glasses/meson/engine/tray name = "optical t-ray scanner" icon_state = "trayson-t-ray" item_state = "trayson-t-ray" diff --git a/code/modules/clothing/gloves/colored_gloves.dm b/code/modules/clothing/gloves/colored_gloves.dm index c2b8ea24035ad..59c567846ed23 100644 --- a/code/modules/clothing/gloves/colored_gloves.dm +++ b/code/modules/clothing/gloves/colored_gloves.dm @@ -14,7 +14,8 @@ /obj/item/clothing/gloves/color/yellow/fake siemens_coefficient = 1 -/obj/item/clothing/gloves/color/fyellow //Cheap Chinese Crap +/// Cheap Chinese Crap +/obj/item/clothing/gloves/color/fyellow name = "budget insulated gloves" desc = "These gloves are cheap copies of the coveted gloves, no way this can end badly." icon_state = "yellow" diff --git a/code/modules/clothing/gloves/rings.dm b/code/modules/clothing/gloves/rings.dm index 1de30c936a8aa..ed180788bc941 100644 --- a/code/modules/clothing/gloves/rings.dm +++ b/code/modules/clothing/gloves/rings.dm @@ -44,7 +44,8 @@ material = "silver" ring_color = "silver" -/obj/item/clothing/gloves/ring/silver/blessed // todo +/// todo +/obj/item/clothing/gloves/ring/silver/blessed name = "blessed silver ring" /obj/item/clothing/gloves/ring/gold diff --git a/code/modules/clothing/head/beanie.dm b/code/modules/clothing/head/beanie.dm index 67dedaa655893..21e0bc2b4a7ca 100644 --- a/code/modules/clothing/head/beanie.dm +++ b/code/modules/clothing/head/beanie.dm @@ -3,7 +3,8 @@ //Plus a bobble hat, lets be inclusive!! -/obj/item/clothing/head/beanie //Default is white, this is meant to be seen +/// Default is white, this is meant to be seen +/obj/item/clothing/head/beanie name = "white beanie" desc = "A stylish beanie. The perfect winter accessory for those with a keen fashion sense, and those who just can't handle a cold breeze on their heads." icon_state = "beanie" //Default white diff --git a/code/modules/clothing/head/misc_hats.dm b/code/modules/clothing/head/misc_hats.dm index 501bfcb60b902..2c7f0890a613d 100644 --- a/code/modules/clothing/head/misc_hats.dm +++ b/code/modules/clothing/head/misc_hats.dm @@ -392,7 +392,8 @@ "Vox" = 'icons/mob/clothing/species/vox/head.dmi' ) -/obj/item/clothing/head/stalhelm //Why do these exist - Because they aren't specifically Nazi Germany +/// Why do these exist - Because they aren't specifically Nazi Germany +/obj/item/clothing/head/stalhelm name = "clown stalhelm" desc = "The typical clown soldier's helmet." icon_state = "stalhelm" @@ -415,7 +416,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/head/beret/purple //Fluff? +/// Fluff? +/obj/item/clothing/head/beret/purple name = "Pierson Family Beret" desc = " A purple beret, with a small golden crescent moon sewn onto it." icon_state = "beret_purple" diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index 0756c90bfc842..7c45bb6ca1cc1 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -312,7 +312,7 @@ actions_types = list(/datum/action/item_action/halt, /datum/action/item_action/selectphrase) /obj/item/clothing/mask/gas/sechailer/blue - name = "\improper blue SWAT mask" + name = "blue SWAT mask" desc = "A neon blue swat mask, used for demoralizing Greytide in the wild." icon_state = "blue_sechailer" item_state = "blue_sechailer" diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index ce849a5016fe9..25f49a27a8bad 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -94,7 +94,8 @@ magboot_state = "syndiemag" origin_tech = "magnets=4;syndicate=2" -/obj/item/clothing/shoes/magboots/elite //For the Syndicate Strike Team/SolGov/Tactical Teams +/// For the Syndicate Strike Team/SolGov/Tactical Teams +/obj/item/clothing/shoes/magboots/elite name = "elite tactical magboots" desc = "Advanced magboots used by strike teams across the system. Allows for tactical insertion into low-gravity areas of operation." icon_state = "elitemag0" @@ -143,7 +144,8 @@ to_chat(user, "<span class='notice'>You switch on the waddle dampeners!</span>") enabled_waddle = FALSE -/obj/item/clothing/shoes/magboots/wizard //bundled with the wiz hardsuit +/// bundled with the wiz hardsuit +/obj/item/clothing/shoes/magboots/wizard name = "boots of gripping" desc = "These magical boots, once activated, will stay gripped to any surface without slowing you down." icon_state = "wizmag0" diff --git a/code/modules/clothing/shoes/misc_shoes.dm b/code/modules/clothing/shoes/misc_shoes.dm index 86b85ccb40f72..40e71c5435637 100644 --- a/code/modules/clothing/shoes/misc_shoes.dm +++ b/code/modules/clothing/shoes/misc_shoes.dm @@ -3,7 +3,8 @@ icon_state = "mime" item_color = "mime" -/obj/item/clothing/shoes/combat //basic syndicate combat boots for nuke ops and mob corpses +/// basic syndicate combat boots for nuke ops and mob corpses +/obj/item/clothing/shoes/combat name = "combat boots" desc = "High speed, low drag combat boots." w_class = WEIGHT_CLASS_NORMAL @@ -14,7 +15,8 @@ strip_delay = 70 resistance_flags = NONE -/obj/item/clothing/shoes/combat/swat //overpowered gimmick boots +/// overpowered gimmick boots +/obj/item/clothing/shoes/combat/swat name = "\improper SWAT shoes" desc = "High speed, no drag combat boots." permeability_coefficient = 0.01 @@ -57,7 +59,8 @@ desc = "A pair of purple rubber boots, designed to prevent slipping on wet surfaces while also drying them." icon_state = "galoshes_dry" -/obj/item/clothing/shoes/galoshes/dry/lightweight /// for red janitor ert. +/// / for red janitor ert. +/obj/item/clothing/shoes/galoshes/dry/lightweight name = "lightweight absorbent galoshes" desc = "A pair of expensive looking lightweight rubber boots, designed to prevent slipping on wet surfaces while also drying them." slowdown = NONE diff --git a/code/modules/clothing/suits/armor_suits.dm b/code/modules/clothing/suits/armor_suits.dm index 47c2b602ff783..7250245bbeb26 100644 --- a/code/modules/clothing/suits/armor_suits.dm +++ b/code/modules/clothing/suits/armor_suits.dm @@ -648,7 +648,8 @@ disable(rand(2, 5)) return TRUE -/obj/item/clothing/suit/armor/reactive/random //Spawner for random reactive armor +/// Spawner for random reactive armor +/obj/item/clothing/suit/armor/reactive/random name = "Random Reactive Armor" /obj/item/clothing/suit/armor/reactive/random/Initialize(mapload) diff --git a/code/modules/clothing/suits/misc_suits.dm b/code/modules/clothing/suits/misc_suits.dm index 1165ab5005707..648694fa4e274 100644 --- a/code/modules/clothing/suits/misc_suits.dm +++ b/code/modules/clothing/suits/misc_suits.dm @@ -173,7 +173,7 @@ dog_fashion = /datum/dog_fashion/back /obj/item/clothing/suit/corgisuit/en - name = "\improper super-hero E-N suit" + name = "super-hero E-N suit" icon_state = "ensuit" /obj/item/clothing/suit/corgisuit/super_hero @@ -182,7 +182,7 @@ flags = NODROP /obj/item/clothing/suit/corgisuit/super_hero/en - name = "\improper super-hero E-N suit" + name = "super-hero E-N suit" icon_state = "ensuit" /obj/item/clothing/suit/corgisuit/super_hero/en/Initialize(mapload) @@ -325,7 +325,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/hooded/bee_costume // It's Hip! +/// It's Hip! +/obj/item/clothing/suit/hooded/bee_costume name = "bee costume" desc = "Bee the true Queen!" icon_state = "bee" @@ -344,14 +345,16 @@ flags_inv = HIDEEARS sprite_sheets = list("Vox" = 'icons/mob/clothing/species/vox/head.dmi') -/obj/item/clothing/suit/bloated_human //OH MY GOD WHAT HAVE YOU DONE!?!?!? +/// OH MY GOD WHAT HAVE YOU DONE!?!?!? +/obj/item/clothing/suit/bloated_human name = "bloated human suit" desc = "A horribly bloated suit made from human skins." icon_state = "lingspacesuit" item_state = "lingspacesuit" body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS -/obj/item/clothing/suit/draculacoat // Bleh! +/// Bleh! +/obj/item/clothing/suit/draculacoat name = "transylvanian coat" desc = "<i>What is a spessman? A miserable little pile of secrets.</i>" icon_state = "draculacoat" diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index a2f3d90fb155f..6b17ad5723644 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -133,7 +133,8 @@ icon_state = "horribletie" item_color = "horribletie" -/obj/item/clothing/accessory/waistcoat // No overlay +/// No overlay +/obj/item/clothing/accessory/waistcoat name = "waistcoat" desc = "For some classy, murderous fun." icon_state = "waistcoat" @@ -311,7 +312,8 @@ desc = "An award issued by the Quartermaster to supply staff dedicated to being effective." channel = "Supply" -/obj/item/clothing/accessory/medal/recruiter // Prize for the NT Recruiter emagged arcade +/// Prize for the NT Recruiter emagged arcade +/obj/item/clothing/accessory/medal/recruiter name = "nanotrasen recruiter medal" desc = "A prize for those who completed the company's most difficult training, use it to earn the respect of everyone in human resources." @@ -367,7 +369,8 @@ desc = "An award which represents magnificant contributions to the HRD-MDE project in the form of analysing Bubblegum, and the related blood space." channel = null -/obj/item/clothing/accessory/medal/gold/heroism/hardmode_full //Kill every hardmode boss. In a shift. Good luck. +/// Kill every hardmode boss. In a shift. Good luck. +/obj/item/clothing/accessory/medal/gold/heroism/hardmode_full name = "medal of incredible dedication" desc = "An extremely rare golden medal awarded only by CentComm. This medal was issued for miners who went above and beyond for the HRD-MDE project. Engraved on it is the phrase <i>'mori quam foedari'...</i>" channel = null @@ -493,7 +496,8 @@ //SCARVES// /////////// -/obj/item/clothing/accessory/scarf // No overlay +/// No overlay +/obj/item/clothing/accessory/scarf name = "scarf" desc = "A stylish scarf. The perfect winter accessory for those with a keen fashion sense, and those who just can't handle a cold breeze on their necks." dog_fashion = /datum/dog_fashion/head diff --git a/code/modules/clothing/under/color.dm b/code/modules/clothing/under/color.dm index 255e7432b8844..33dc2ab3c39fb 100644 --- a/code/modules/clothing/under/color.dm +++ b/code/modules/clothing/under/color.dm @@ -125,7 +125,8 @@ item_state = "p_suit" item_color = "purple" -/obj/item/clothing/under/color/purple/sensor //for jani ert +/// for jani ert +/obj/item/clothing/under/color/purple/sensor sensor_mode = SENSOR_COORDS random_sensor = FALSE diff --git a/code/modules/clothing/under/costumes.dm b/code/modules/clothing/under/costumes.dm index 7a851e4383987..775802ef24d75 100644 --- a/code/modules/clothing/under/costumes.dm +++ b/code/modules/clothing/under/costumes.dm @@ -138,7 +138,8 @@ item_state = "psyamp" item_color = "psyamp" -/obj/item/clothing/under/psysuit //Don't modify the path, used by a fluff item +/// Don't modify the path, used by a fluff item +/obj/item/clothing/under/psysuit name = "dark undersuit" desc = "A thick, layered grey undersuit lined with power cables. Feels a little like wearing an electrical storm." icon_state = "psysuit" diff --git a/code/modules/clothing/under/jobs/medical_jumpsuits.dm b/code/modules/clothing/under/jobs/medical_jumpsuits.dm index 8dedff438e19e..7a8258f77c0ca 100644 --- a/code/modules/clothing/under/jobs/medical_jumpsuits.dm +++ b/code/modules/clothing/under/jobs/medical_jumpsuits.dm @@ -149,7 +149,8 @@ item_state = "psychturtle" item_color = "psychturtle" -/obj/item/clothing/under/rank/medical/gown //Seems like it should be here for organisational purposes +/// Seems like it should be here for organisational purposes +/obj/item/clothing/under/rank/medical/gown name = "medical gown" desc = "a flimsy examination gown, the back ties never close." icon_state = "medicalgown" diff --git a/code/modules/crafting/guncrafting.dm b/code/modules/crafting/guncrafting.dm index 2b41fbf63bee4..e4d0b3b0d8b65 100644 --- a/code/modules/crafting/guncrafting.dm +++ b/code/modules/crafting/guncrafting.dm @@ -28,84 +28,84 @@ var/outcome /obj/item/weaponcrafting/gunkit/nuclear - name = "\improper advanced energy gun parts kit" + name = "advanced energy gun parts kit" desc = "A suitcase containing the necessary gun parts to transform a standard energy gun into an advanced energy gun." origin_tech = "combat=4;magnets=4;powerstorage=4" outcome = /obj/item/gun/energy/gun/nuclear /obj/item/weaponcrafting/gunkit/tesla - name = "\improper arc revolver parts kit" + name = "arc revolver parts kit" desc = "A suitcase containing the necessary gun parts to construct a arc revolver around a laser rifle. Handle with care." origin_tech = "combat=5;materials=5;powerstorage=5" outcome = /obj/item/gun/energy/arc_revolver /obj/item/weaponcrafting/gunkit/xray - name = "\improper x-ray laser gun parts kit" + name = "x-ray laser gun parts kit" desc = "A suitcase containing the necessary gun parts to turn a laser gun into a x-ray laser gun. Do not point most parts directly towards face." origin_tech = "combat=6;materials=4;magnets=4;syndicate=1" outcome = /obj/item/gun/energy/xray /obj/item/weaponcrafting/gunkit/ion - name = "\improper ion carbine parts kit" + name = "ion carbine parts kit" desc = "A suitcase containing the necessary gun parts to transform a standard energy gun into a ion carbine." origin_tech = "combat=4;magnets=4" outcome = /obj/item/gun/energy/ionrifle/carbine /obj/item/weaponcrafting/gunkit/temperature - name = "\improper temperature gun parts kit" + name = "temperature gun parts kit" desc = "A suitcase containing the necessary gun parts to transform a standard energy gun into a temperature gun. Fantastic at birthday parties and killing indigenious populations of Ash Walkers." origin_tech = "combat=4;materials=4;powerstorage=3;magnets=2" outcome = /obj/item/gun/energy/temperature /obj/item/weaponcrafting/gunkit/decloner - name = "\improper decloner parts kit" + name = "decloner parts kit" desc = "An uttery baffling array of gun parts and technology that somehow turns an energy gun into a decloner. Haircut not included." origin_tech = "combat=4;materials=4;biotech=5;plasmatech=6" outcome = /obj/item/gun/energy/decloner /obj/item/weaponcrafting/gunkit/ebow - name = "\improper energy crossbow parts kit" + name = "energy crossbow parts kit" desc = "Highly illegal weapons refurbishment kit that allows you to turn a laser gun into a near-duplicate energy crossbow. Almost like the real thing!" origin_tech = "combat=4;magnets=4;syndicate=2" outcome = /obj/item/gun/energy/kinetic_accelerator/crossbow/large /obj/item/weaponcrafting/gunkit/immolator - name = "\improper immolator laser gun parts kit" + name = "immolator laser gun parts kit" desc = "Take a perfectly functioning laser gun. Butcher the inside of the gun so it runs hot and mean. You now have a immolator laser. You monster." origin_tech = "combat=4;magnets=4;powerstorage=3" outcome = /obj/item/gun/energy/immolator /obj/item/weaponcrafting/gunkit/accelerator - name = "\improper accelerator laser cannon parts kit" + name = "accelerator laser cannon parts kit" desc = "A suitcase containing the necessary gun parts to transform a standard laser gun into an accelerator laser cannon." origin_tech = "combat=4;magnets=4;powerstorage=3" outcome = /obj/item/gun/energy/lasercannon /obj/item/weaponcrafting/gunkit/lwap - name = "\improper lwap laser sniper parts kit" + name = "lwap laser sniper parts kit" desc = "A suitcase containing the necessary gun parts to transform an laser gun into an advanced piercing laser sniper. Now with wall hacks!" origin_tech = "combat=6;magnets=6;powerstorage=4" outcome = /obj/item/gun/energy/lwap /obj/item/weaponcrafting/gunkit/plasma - name = "\improper plasma pistol parts kit" + name = "plasma pistol parts kit" desc = "A suitcase containing the necessary gun parts to transform a standard laser gun into a plasma pistol. Wort, wort, wort!" origin_tech = "combat=4;magnets=4;powerstorage=3" outcome = /obj/item/gun/energy/plasma_pistol /obj/item/weaponcrafting/gunkit/u_ionsilencer - name = "\improper u-ion silencer parts kit" + name = "u-ion silencer parts kit" desc = "A suitcase containing the necessary gun parts to transform a standard disabler into a silenced and lethal disabling weapon. Look officer, he has no wounds from me!" origin_tech = "combat=6;magnets=6;syndicate=2" outcome = /obj/item/gun/energy/disabler/silencer /obj/item/weaponcrafting/gunkit/universal_gun_kit - name = "\improper universal self assembling gun parts kit" + name = "universal self assembling gun parts kit" desc = "A suitcase containing the necessary gun parts to build a full gun, when combined with a gun kit. Use it directly on a gunkit to rapidly assemble it." icon_state = "syndicase" /obj/item/weaponcrafting/gunkit/universal_gun_kit/sol_gov - name = "\improper sol gov universal self assembling gun parts kit" + name = "sol gov universal self assembling gun parts kit" icon_state = "solcase" //Ikea reference pending. /obj/item/weaponcrafting/gunkit/universal_gun_kit/afterattack(obj/item/weaponcrafting/gunkit/gunkit_to_use, mob/user, flag) diff --git a/code/modules/crafting/recipes.dm b/code/modules/crafting/recipes.dm index 27a767271d6f9..e178aa0c44e58 100644 --- a/code/modules/crafting/recipes.dm +++ b/code/modules/crafting/recipes.dm @@ -818,7 +818,8 @@ category = CAT_PRIMAL alert_admins_on_craft = TRUE -/datum/crafting_recipe/rake //Category resorting incoming +/// Category resorting incoming +/datum/crafting_recipe/rake name = "Rake" time = 30 reqs = list(/obj/item/stack/sheet/wood = 5) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index afa07900913fc..690d19e630304 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -16,7 +16,8 @@ /obj/item/fluff var/used = FALSE -/obj/item/fluff/tattoo_gun // Generic tattoo gun, make subtypes for different folks +/// Generic tattoo gun, make subtypes for different folks +/obj/item/fluff/tattoo_gun name = "disposable tattoo pen" desc = "A cheap plastic tattoo application pen." icon = 'icons/obj/custom_items.dmi' @@ -112,7 +113,8 @@ else to_chat(user, "<span class='notice'>[src] is out of ink!</span>") -/obj/item/fluff/bird_painter // BirdtTalon: Kahkiri +/// BirdtTalon: Kahkiri +/obj/item/fluff/bird_painter name = "Orb of Onyx" desc = "It is imbued with such dark power as to corrupt the very appearance of those who gaze into its depths." icon_state = "bird_orb" @@ -126,7 +128,8 @@ to_chat(user, "You use [src] on yourself.") qdel(src) -/obj/item/claymore/fluff // MrBarrelrolll: Maximus Greenwood +/// MrBarrelrolll: Maximus Greenwood +/obj/item/claymore/fluff name = "Greenwood's Blade" desc = "A replica claymore with strange markings scratched into the blade." force = 5 @@ -135,7 +138,8 @@ /obj/item/claymore/fluff/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) return 0 -/obj/item/fluff/rsik_katana //Xydonus: Rsik Ugsharki Atan +/// Xydonus: Rsik Ugsharki Atan +/obj/item/fluff/rsik_katana name = "ceremonial katana" desc = "A shimmering ceremonial golden katana, for the most discerning class of ninja. Looks expensive, and fragile." icon = 'icons/obj/custom_items.dmi' @@ -156,31 +160,36 @@ user.visible_message("<span class='suicide'>[user] tries to stab [src] into [user.p_their()] stomach! Except [src] shatters! [user.p_they(TRUE)] look[user.p_s()] as if [user.p_they()] might die from the shame.</span>") return BRUTELOSS -/obj/item/crowbar/fluff/zelda_creedy_1 // Zomgponies: Griffin Rowley +/// Zomgponies: Griffin Rowley +/obj/item/crowbar/fluff/zelda_creedy_1 name = "Zelda's Crowbar" desc = "A pink crowbar that has an engraving that reads, 'To Zelda. Love always, Dawn'" icon = 'icons/obj/custom_items.dmi' icon_state = "zeldacrowbar" item_state = "crowbar" -/obj/item/clothing/glasses/monocle/fluff/trubus //Trubus: Wolf O'Shaw +/// Trubus: Wolf O'Shaw +/obj/item/clothing/glasses/monocle/fluff/trubus name = "Gold Thermal Eyepatch" desc = "Wolf's non-functional thermal eyepatch." icon = 'icons/obj/custom_items.dmi' icon_state = "wolf_eyepatch" -/obj/item/clothing/glasses/meson/fluff/book_berner_1 // Adrkiller59: Adam Cooper +/// Adrkiller59: Adam Cooper +/obj/item/clothing/glasses/meson/fluff/book_berner_1 name = "bespectacled mesonic surveyors" desc = "One of the older meson scanner models retrofitted to perform like its modern counterparts." icon = 'icons/obj/custom_items.dmi' icon_state = "book_berner_1" -/obj/item/clothing/glasses/sunglasses_fake/fluff/kaki //Rapidvalj: Kakicharakiti +/// Rapidvalj: Kakicharakiti +/obj/item/clothing/glasses/sunglasses_fake/fluff/kaki name = "broken thermonocle" desc = "A weathered Vox thermonocle, doesn't seem to work anymore." icon_state = "thermoncle" -/obj/item/fluff/rapid_wheelchair_kit //Rapidvalj: Hakikarahiti +/// Rapidvalj: Hakikarahiti +/obj/item/fluff/rapid_wheelchair_kit name = "wheelchair conversion kit" desc = "An assorted set of exchangable parts for a wheelchair." icon_state = "modkit" @@ -208,31 +217,36 @@ desc = "A custom made zippo lighter." icon = 'icons/obj/custom_items.dmi' -/obj/item/lighter/zippo/fluff/purple // GodOfOreos: Jason Conrad +/// GodOfOreos: Jason Conrad +/obj/item/lighter/zippo/fluff/purple name = "purple engraved zippo" desc = "All craftsspacemanship is of the highest quality. It is encrusted with refined plasma sheets. On the item is an image of a dwarf and the words 'Strike the Earth!' etched onto the side." icon_state = "zippo-purple" item_state = "zippo-purple" -/obj/item/lighter/zippo/fluff/michael_guess_1 // mrbits: Callista Gold +/// mrbits: Callista Gold +/obj/item/lighter/zippo/fluff/michael_guess_1 name = "engraved lighter" desc = "A golden lighter, engraved with some ornaments and a G." icon_state = "zippo-guess" item_state = "zippo-gold" -/obj/item/lighter/zippo/fluff/duckchan // Duckchan: Rybys Romney +/// Duckchan: Rybys Romney +/obj/item/lighter/zippo/fluff/duckchan name = "Monogrammed Zippo" desc = " A shiny purple zippo lighter, engraved with Rybys Romney and BuzzPing's name, with a festive green flame." icon_state = "zippo-duckchan" item_state = "zippo-purple" -/obj/item/lighter/zippo/fluff/warriorstar // Warriorstar: DEADLOCK +/// Warriorstar: DEADLOCK +/obj/item/lighter/zippo/fluff/warriorstar name = "zippo" desc = "The lighter is made of a pastel purple metal which seems to glimmer even in complete darkness." icon_state = "zippo-warriorstar" item_state = "zippo-purple" -/obj/item/fluff/dogwhistle //phantasmicdream: Zeke Varloss +/// phantasmicdream: Zeke Varloss +/obj/item/fluff/dogwhistle name = "Sax's whistle" desc = "This whistle seems to have a strange aura about it. Maybe you should blow on it?" icon = 'icons/obj/custom_items.dmi' @@ -256,7 +270,8 @@ user.drop_item() qdel(src) -/obj/item/storage/toolbox/fluff/lunchbox //godoforeos: Jason Conrad +/// godoforeos: Jason Conrad +/obj/item/storage/toolbox/fluff/lunchbox name = "lunchpail" desc = "A simple black lunchpail." icon = 'icons/obj/custom_items.dmi' @@ -297,7 +312,8 @@ to_chat(target, "<span class='notice'>You comb your tail with [src].</span>") used = TRUE -/obj/item/fluff/desolate_coat_kit //DesolateG: Micheal Smith +/// DesolateG: Micheal Smith +/obj/item/fluff/desolate_coat_kit name = "armored jacket conversion kit" desc = "Flaps of dark fabric, probably used to somehow modify some sort of an armored garment. Won't help with protection, though." icon_state = "modkit" @@ -328,7 +344,8 @@ user.update_inv_wear_suit() qdel(src) -/obj/item/fluff/fei_gasmask_kit //Fei Hazelwood: Tariq Yon-Dale +/// Fei Hazelwood: Tariq Yon-Dale +/obj/item/fluff/fei_gasmask_kit name = "gas mask conversion kit" desc = "A gas mask conversion kit." icon_state = "modkit" @@ -354,7 +371,8 @@ to_chat(user, "<span class='warning'>You can't modify [target]!</span>") -/obj/item/fluff/desolate_baton_kit //DesolateG: Micheal Smith +/// DesolateG: Micheal Smith +/obj/item/fluff/desolate_baton_kit name = "stun baton conversion kit" desc = "Some sci-fi looking parts for a stun baton." icon = 'icons/obj/custom_items.dmi' @@ -380,7 +398,8 @@ to_chat(user, "<span class='warning'>You can't modify [target]!</span>") -/obj/item/fluff/cardgage_helmet_kit //captain cardgage: Richard Ulery +/// captain cardgage: Richard Ulery +/obj/item/fluff/cardgage_helmet_kit name = "welding helmet modkit" desc = "Some spraypaint and a stencil, perfect for painting flames onto a welding helmet!" icon_state = "modkit" @@ -402,7 +421,8 @@ return to_chat(user, "<span class='warning'>You can't modify [target]!</span>") -/obj/item/fluff/merchant_sallet_modkit //Travelling Merchant: Trav Noble. This is what they spawn in with +/// Travelling Merchant: Trav Noble. This is what they spawn in with +/obj/item/fluff/merchant_sallet_modkit name = "SG Helmet modkit" desc = "A modkit that can make most helmets look like a Shellguard Helmet." icon_state = "modkit" @@ -445,7 +465,8 @@ else to_chat(user, "<span class='warning'>You can't modify [target]!</span>") -/obj/item/fluff/k3_webbing_modkit //IK3I: Yakikatachi +/// IK3I: Yakikatachi +/obj/item/fluff/k3_webbing_modkit name = "webbing modkit" desc = "A modkit that can be used to turn certain vests and labcoats into lightweight webbing" icon_state = "modkit" @@ -470,7 +491,8 @@ to_chat(user, "<span class='warning'>You can't modify [target]!</span>") // These two fluff items are commented out due to the transfer to MODsuits breaking these. Sprites are still in custom_items.dmi , but they need a resprite to work with MODsuits. -/obj/item/fluff/pyro_wintersec_kit //DarkLordpyro: Valthorne Haliber +/// DarkLordpyro: Valthorne Haliber +/obj/item/fluff/pyro_wintersec_kit name = "winter sec conversion kit" desc = "A securirty hardsuit conversion kit." icon_state = "modkit" @@ -523,7 +545,8 @@ to_chat(user, "<span class='warning'>You can't modify [target]!</span>") */ -/obj/item/fluff/sylus_conversion_kit //Decemviri: Sylus Cain +/// Decemviri: Sylus Cain +/obj/item/fluff/sylus_conversion_kit name = "cerberus pattern conversion kit" desc = "A securirty hardsuit conversion kit." icon_state = "modkit" @@ -589,53 +612,61 @@ //////////// Gloves ////////////// //////////// Eye Wear //////////// -/obj/item/clothing/glasses/hud/security/sunglasses/fluff/eyepro //T0EPIC4U: Ty Omaha +/// T0EPIC4U: Ty Omaha +/obj/item/clothing/glasses/hud/security/sunglasses/fluff/eyepro name = "Tacticool EyePro" desc = "Tacticool ballistic glasses, for making all operators look badass." icon = 'icons/obj/custom_items.dmi' icon_state = "eyepro" item_state = "eyepro" -/obj/item/clothing/glasses/hud/security/sunglasses/fluff/voxxyhud //LP Spartan: Kaskreyarawkta +/// LP Spartan: Kaskreyarawkta +/obj/item/clothing/glasses/hud/security/sunglasses/fluff/voxxyhud name = "VoxxyHUD" desc = "A worn down visor from a vox raider's gear, crudely ripped from its helmet and linked into the security systems of the station. The word 'Kask' is scratched into the side." icon = 'icons/obj/custom_items.dmi' icon_state = "hud-spartan" //////////// Hats //////////// -/obj/item/clothing/head/fluff/heather_winceworth // Regens: Heather Winceworth +/// Regens: Heather Winceworth +/obj/item/clothing/head/fluff/heather_winceworth name= "Heather's rose" desc= "A beautiful purple rose for your hair." icon= 'icons/obj/custom_items.dmi' icon_state = "hairflowerp" item_state = "hairflowerp" -/obj/item/clothing/head/valkyriehelmet //R3Valkyrie: Rikki +/// R3Valkyrie: Rikki +/obj/item/clothing/head/valkyriehelmet name = "charred visor" desc = "A visor of alien origin, charred by fire and completely non-functioning. It's been impeccably polished, shiny!" icon = 'icons/obj/custom_items.dmi' icon_state = "charred_visor" species_restricted = list("Vox") -/obj/item/clothing/head/bearpelt/fluff/polar //Gibson1027: Sploosh +/// Gibson1027: Sploosh +/obj/item/clothing/head/bearpelt/fluff/polar name = "polar bear pelt hat" desc = "Fuzzy, and also stained with blood." icon = 'icons/obj/custom_items.dmi' icon_state = "polarbearpelt" -/obj/item/clothing/head/fluff/sparkyninja_beret // Sparkyninja: Neil Wilkinson +/// Sparkyninja: Neil Wilkinson +/obj/item/clothing/head/fluff/sparkyninja_beret name = "royal marines commando beret" desc = "Dark Green beret with an old insignia on it." icon = 'icons/obj/custom_items.dmi' icon_state = "sparkyninja_beret" -/obj/item/clothing/head/beret/fluff/sigholt //sigholtstarsong: Sigholt Starsong +/// sigholtstarsong: Sigholt Starsong +/obj/item/clothing/head/beret/fluff/sigholt name = "Lieutenant Starsong's beret" desc = "This beret bears insignia of the SOLGOV Marine Corps 417th Regiment, 2nd Battalion, Bravo Company. It looks meticulously maintained." icon_state = "beret_hos" item_state = "beret_hos" -/obj/item/clothing/head/pirate/fluff/stumpy //MrFroztee: Stumpy +/// MrFroztee: Stumpy +/obj/item/clothing/head/pirate/fluff/stumpy name = "The Sobriety Skullcap" desc = "A hat suited for the king of the pirates" icon_state = "pirate" @@ -655,19 +686,22 @@ if(H.head == src) H.Slur(6 SECONDS) //always slur -/obj/item/clothing/head/beret/fluff/linda //Epic_Charger: Linda Clark +/// Epic_Charger: Linda Clark +/obj/item/clothing/head/beret/fluff/linda name = "Green beret" desc = "A beret, an artist's favorite headwear. This one has two holes cut on the edges." icon = 'icons/obj/custom_items.dmi' icon_state = "linda_beret" -/obj/item/clothing/head/fluff/kaki //Rapidvalj: Kakicharakiti +/// Rapidvalj: Kakicharakiti +/obj/item/clothing/head/fluff/kaki name = "sleek fancy leader hat" desc = "A uniquely colored vox leader hat. Has some signs of wear." icon = 'icons/obj/custom_items.dmi' icon_state = "kakicharakiti" -/obj/item/clothing/head/helmet/fluff/merchant_sallet //Travelling Merchant: Trav Noble. This >>IS NOT<< what they spawn in with +/// Travelling Merchant: Trav Noble. This >>IS NOT<< what they spawn in with +/obj/item/clothing/head/helmet/fluff/merchant_sallet name = "Shellguard Helmet" desc = "A Shellguard Helmet with the name Noble written on the inside." icon = 'icons/obj/custom_items.dmi' @@ -715,7 +749,8 @@ user.update_inv_head() return 1 -/obj/item/clothing/head/beret/fluff/elo //V-Force_Bomber: E.L.O. +/// V-Force_Bomber: E.L.O. +/obj/item/clothing/head/beret/fluff/elo name = "E.L.O.'s medical beret" desc = "E.L.O.s personal medical beret, issued by Nanotrassen and awarded along with her medal." icon = 'icons/obj/custom_items.dmi' @@ -729,7 +764,8 @@ adjust_flavour = null sprite_sheets = null -/obj/item/clothing/suit/storage/labcoat/fluff/pulsecoat //ozewse : Daniel Harper : Donated to them by Runemeds, who is the original donor. +/// ozewse : Daniel Harper : Donated to them by Runemeds, who is the original donor. +/obj/item/clothing/suit/storage/labcoat/fluff/pulsecoat name = "EMT pulse coat" desc = "An EMT labcoat modified to track the wearer's heartbeat. It's so worn out that it doesn't seem to accurately track heartbeat anymore. Also, the zipper is stuck." icon = 'icons/obj/custom_items.dmi' @@ -738,7 +774,8 @@ ignore_suitadjust = 1 actions_types = list() -/obj/item/clothing/suit/jacket/miljacket/patch // sniper_fairy : P.A.T.C.H. +/// sniper_fairy : P.A.T.C.H. +/obj/item/clothing/suit/jacket/miljacket/patch name = "custom purple military jacket" desc = "A canvas jacket styled after classical American military garb. Feels sturdy, yet comfortable. This one has a medical patch on it." icon = 'icons/obj/custom_items.dmi' @@ -785,20 +822,23 @@ . = ..() -/obj/item/clothing/suit/fluff/dusty_jacket //ComputerlessCitizen: Screech +/// ComputerlessCitizen: Screech +/obj/item/clothing/suit/fluff/dusty_jacket name = "Dusty Jacket" desc = "A worn leather jacket. Some burn holes have been patched." body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS icon_state = "dusty_jacket" -/obj/item/clothing/suit/fluff/cheeky_sov_coat //CheekyCrenando: Srusu Rskuzu +/// CheekyCrenando: Srusu Rskuzu +/obj/item/clothing/suit/fluff/cheeky_sov_coat name = "Srusu's Greatcoat" desc = "A heavy wool Soviet-style greatcoat. A name is written in fancy handwriting on the inside tag: Srusu Rskuzu" icon = 'icons/obj/custom_items.dmi' item_state = "cheeky_sov_coat" icon_state = "cheeky_sov_coat" -/obj/item/clothing/suit/fluff/supplymaster_jacket //Denthamos: Henry Grandpa Gadow +/// Denthamos: Henry Grandpa Gadow +/obj/item/clothing/suit/fluff/supplymaster_jacket name = "faded NT Supply Master's Coat" desc = "A faded leather overcoat bearing a worn out badge from the NAS Crescent on the shoulder, and a designation tag of Supply Master on the front. A tarnished gold nameplate says H.Gadow on it." icon_state = "supplymaster_jacket_open" @@ -811,14 +851,16 @@ actions_types = list(/datum/action/item_action/button) adjust_flavour = "unbutton" -/obj/item/clothing/suit/storage/labcoat/fluff/aeneas_rinil //Socialsystem: Lynn Fea +/// Socialsystem: Lynn Fea +/obj/item/clothing/suit/storage/labcoat/fluff/aeneas_rinil name = "Robotics labcoat" desc = "A labcoat with a few markings denoting it as the labcoat of roboticist." icon = 'icons/obj/custom_items.dmi' icon_state = "aeneasrinil_open" sprite_sheets = null -/obj/item/clothing/suit/jacket/fluff/kidosvest // Anxipal: Kido Qasteth +/// Anxipal: Kido Qasteth +/obj/item/clothing/suit/jacket/fluff/kidosvest name = "Kido's Vest" desc = "A rugged leather vest with a tag labelled \"Men of Mayhem.\"" icon = 'icons/obj/custom_items.dmi' @@ -829,7 +871,8 @@ adjust_flavour = null sprite_sheets = null -/obj/item/clothing/suit/jacket/fluff/jacksvest // Anxipal: Jack Harper +/// Anxipal: Jack Harper +/obj/item/clothing/suit/jacket/fluff/jacksvest name = "Jack's vest" desc = "A rugged leather vest with a tag labelled \"President\"." icon = 'icons/obj/custom_items.dmi' @@ -839,7 +882,8 @@ adjust_flavour = null sprite_sheets = null -/obj/item/clothing/suit/fluff/kluys // Kluys: Cripty Pandaen +/// Kluys: Cripty Pandaen +/obj/item/clothing/suit/fluff/kluys name = "Nano Fibre Jacket" desc = "A Black Suit made out of nanofibre. The newest of cyberpunk fashion using hightech liquid to solid materials." icon = 'icons/obj/custom_items.dmi' @@ -870,38 +914,44 @@ return usr.update_inv_wear_suit() -/obj/item/clothing/suit/storage/labcoat/fluff/red // Sweetjealousy: Sophie Faust-Noms +/// Sweetjealousy: Sophie Faust-Noms +/obj/item/clothing/suit/storage/labcoat/fluff/red name = "red labcoat" desc = "A suit that protects against minor chemical spills. Has a red stripe on the shoulders and rolled up sleeves." icon = 'icons/obj/custom_items.dmi' icon_state = "labcoat_red_open" sprite_sheets = null -/obj/item/clothing/suit/storage/labcoat/fluff/ionward_labcoat // Ionward: Gemini +/// Ionward: Gemini +/obj/item/clothing/suit/storage/labcoat/fluff/ionward_labcoat name = "Technocracy labcoat" desc = "A thin, faded, carbon fiber labcoat. On the back, a Technocracy vessel's logo. Inside, the name 'Gemini' is printed on the collar." icon = 'icons/obj/custom_items.dmi' icon_state = "ionward_labcoat_open" sprite_sheets = null -/obj/item/clothing/suit/fluff/stobarico_greatcoat // Stobarico: F.U.R.R.Y +/// Stobarico: F.U.R.R.Y +/obj/item/clothing/suit/fluff/stobarico_greatcoat name = "\improper F.U.R.R.Y's Nanotrasen Greatcoat" desc = "A greatcoat with Nanotrasen colors." icon = 'icons/obj/custom_items.dmi' icon_state = "stobarico_jacket" -/obj/item/clothing/suit/hooded/hoodie/fluff/linda // Epic_Charger: Linda Clark +/// Epic_Charger: Linda Clark +/obj/item/clothing/suit/hooded/hoodie/fluff/linda name = "Green Nanotrasen Hoodie" desc = "A green hoodie with the Nanotrasen logo on the back. It looks weathered." icon = 'icons/obj/custom_items.dmi' icon_state = "linda_hoodie" hoodtype = /obj/item/clothing/head/hooded/hood/fluff/linda -/obj/item/clothing/head/hooded/hood/fluff/linda //Epic_Charger: Linda Clark +/// Epic_Charger: Linda Clark +/obj/item/clothing/head/hooded/hood/fluff/linda icon_state = "greenhood" -/obj/item/clothing/suit/hooded/hoodie/hylo //Hylocereus: Sam Aria +/// Hylocereus: Sam Aria +/obj/item/clothing/suit/hooded/hoodie/hylo name = "worn assymetrical hoodie" desc = "A soft, cozy longline hoodie. It looks old and worn, but well cared for. There's no label, but a series of dates and names is penned on a scrap of fabric sewn on the inside of the left side of the chest - 'Sam Aria' is scrawled atop them all, next to the words 'Please Remember'." icon = 'icons/obj/custom_items.dmi' @@ -912,7 +962,8 @@ icon = 'icons/obj/custom_items.dmi' icon_state = "sam_hood" -/obj/item/clothing/suit/hooded/fluff/bone //Doru7: Jack Bone +/// Doru7: Jack Bone +/obj/item/clothing/suit/hooded/fluff/bone name = "skeleton suit" desc = "A spooky full-body suit! This one doesn't glow in the dark." body_parts_covered = HEAD|UPPER_TORSO|LOWER_TORSO|LEGS|ARMS @@ -924,7 +975,8 @@ icon = 'icons/obj/custom_items.dmi' icon_state = "skeleton_hood" -/obj/item/clothing/suit/armor/shodanscoat // RazekPraxis: SHODAN +/// RazekPraxis: SHODAN +/obj/item/clothing/suit/armor/shodanscoat name = "SHODAN's Captain's Coat" desc = "A black coat with gold trim and an old US Chevron printed on the back. Edgy." icon = 'icons/obj/custom_items.dmi' @@ -962,7 +1014,8 @@ to_chat(user, "You turn [src]'s lighting system [flavour].") user.update_inv_wear_suit() -/obj/item/clothing/suit/hooded/hoodie/fluff/xantholne // Xantholne: Meex Zwichsnicrur +/// Xantholne: Meex Zwichsnicrur +/obj/item/clothing/suit/hooded/hoodie/fluff/xantholne name = "stripped winter coat" desc = "A velvety smooth black winter coat with white and red stripes on the side." icon = 'icons/obj/custom_items.dmi' @@ -972,7 +1025,8 @@ allowed = list(/obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/storage/fancy/cigarettes, /obj/item/lighter) -/obj/item/clothing/head/hooded/hood/fluff/xantholne // Xantholne: Meex Zwichsnicrur +/// Xantholne: Meex Zwichsnicrur +/obj/item/clothing/head/hooded/hood/fluff/xantholne name = "black winter hood" desc = "A black hood attached to a stripped winter coat." icon = 'icons/obj/custom_items.dmi' @@ -981,7 +1035,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/hooded/hoodie/fluff/xydonus //Xydonus: Rsik Ugsharki Atan | Based off of the bomber jacket, but with a hood slapped on (for allowed suit storage) +/// Xydonus: Rsik Ugsharki Atan | Based off of the bomber jacket, but with a hood slapped on (for allowed suit storage) +/obj/item/clothing/suit/hooded/hoodie/fluff/xydonus name = "custom fit bomber jacket" desc = "Made for Unathi who likes to show off their big horns." icon = 'icons/obj/custom_items.dmi' @@ -1001,12 +1056,14 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/fluff/pineapple //Pineapple Salad: Dan Jello +/// Pineapple Salad: Dan Jello +/obj/item/clothing/suit/fluff/pineapple name = "red trench coat" desc = "A red coat with cheaply made plastic accessories." icon_state = "pineapple_trench" -/obj/item/fluff/pinapplehairgel ////Pineapple Salad: Dan Jello +/// //Pineapple Salad: Dan Jello +/obj/item/fluff/pinapplehairgel name = "slime hair gel" desc = "A bottle containing extra..material..for custom 'hair' styling." icon = 'icons/obj/custom_items.dmi' @@ -1027,7 +1084,8 @@ -/obj/item/clothing/suit/hooded/wintercoat/fluff/shesi //MrSynnester : Shesi Skaklas +/// MrSynnester : Shesi Skaklas +/obj/item/clothing/suit/hooded/wintercoat/fluff/shesi name = "custom made winter coat" desc = "A custom made winter coat with the arms removed. Looks comfy." icon = 'icons/obj/custom_items.dmi' @@ -1037,7 +1095,8 @@ body_parts_covered = UPPER_TORSO|LOWER_TORSO cold_protection = UPPER_TORSO|LOWER_TORSO -/obj/item/clothing/head/hooded/hood/fluff/shesi //MrSynnester : Shesi Skaklas +/// MrSynnester : Shesi Skaklas +/obj/item/clothing/head/hooded/hood/fluff/shesi name = "custom made winter hood" desc = "A custom made winter coat hood. Looks comfy." icon = 'icons/obj/custom_items.dmi' @@ -1046,7 +1105,8 @@ flags = BLOCKHAIR flags_inv = HIDEEARS -/obj/item/clothing/suit/jacket/dtx //AffectedArc07: DTX +/// AffectedArc07: DTX +/obj/item/clothing/suit/jacket/dtx name = "telecommunications bomber jacket" desc = "Looks like something only a nerd would buy. Has a tag inside reading <i>Property of DTX</i>." icon = 'icons/obj/custom_items.dmi' @@ -1070,7 +1130,8 @@ "Grey" = 'icons/mob/clothing/species/grey/under/donator.dmi' ) -/obj/item/clothing/under/fluff/counterfeitguise_uniform // thatdanguy23 : Rissa Williams +/// thatdanguy23 : Rissa Williams +/obj/item/clothing/under/fluff/counterfeitguise_uniform icon = 'icons/obj/custom_items.dmi' name = "Rissa's hand-me-downs" desc = "An old, hand-me-down baggy sweater and sweatpants combo. A label on the neck reads 'RISSA' in scruffy handwriting." @@ -1080,7 +1141,8 @@ item_state = "counterfeitguise" item_color = "counterfeitguise" -/obj/item/clothing/under/fluff/benjaminfallout // Benjaminfallout: Pretzel Brassheart +/// Benjaminfallout: Pretzel Brassheart +/obj/item/clothing/under/fluff/benjaminfallout icon = 'icons/obj/custom_items.dmi' name = "Pretzel's dress" desc = "A nice looking dress" @@ -1088,7 +1150,8 @@ item_state = "fallout_dress" item_color = "fallout_dress" -/obj/item/clothing/under/fluff/soviet_casual_uniform // Norstead : Natalya Sokolova +/// Norstead : Natalya Sokolova +/obj/item/clothing/under/fluff/soviet_casual_uniform icon = 'icons/obj/custom_items.dmi' name = "Soviet Casual Uniform" desc = "Female U.S.S.P. casual wear. Dlya Rodiny!" @@ -1096,7 +1159,8 @@ item_state = "soviet_casual_uniform" item_color = "soviet_casual_uniform" -/obj/item/clothing/under/fluff/kharshai // Kharshai: Athena Castile +/// Kharshai: Athena Castile +/obj/item/clothing/under/fluff/kharshai name = "Castile formal outfit" desc = "A white and gold formal uniform, accompanied by a small pin with the numbers '004' etched upon it." icon = 'icons/obj/custom_items.dmi' @@ -1104,7 +1168,8 @@ item_state = "castile_dress" item_color = "castile_dress" -/obj/item/clothing/under/fluff/xantholne //Xantholne: Meex Zwichsnicrur +/// Xantholne: Meex Zwichsnicrur +/obj/item/clothing/under/fluff/xantholne name = "Stripped Shorts and Shirt" desc = "A silky pair of dark shorts with a matching shirt. The shirt's collar has a tag on the inside that reads 'Meexy' on it." icon = 'icons/obj/custom_items.dmi' @@ -1114,7 +1179,8 @@ item_state = "xantholne" item_color = "xantholne" -/obj/item/clothing/under/fluff/elishirt // FlattestGuitar9: Eli Randolph +/// FlattestGuitar9: Eli Randolph +/obj/item/clothing/under/fluff/elishirt name = "casual dress shirt" desc = "A soft, white dress shirt paired up with black suit pants. The set looks comfortable." icon = 'icons/obj/custom_items.dmi' @@ -1123,7 +1189,8 @@ item_color = "elishirt" displays_id = FALSE -/obj/item/clothing/under/fluff/jay_turtleneck // Jayfeather: Jay Wingler +/// Jayfeather: Jay Wingler +/obj/item/clothing/under/fluff/jay_turtleneck name = "Mar's Pattern Custom Turtleneck" desc = "It seems to be lightly dusted in orange fuzz, and damp with the smell of anti-freeze. It has a strange symbol in the middle." icon = 'icons/obj/custom_items.dmi' @@ -1132,11 +1199,13 @@ item_color = "jaywingler" displays_id = FALSE -/obj/item/clothing/under/psysuit/fluff/isaca_sirius_1 // Xilia: Isaca Sirius +/// Xilia: Isaca Sirius +/obj/item/clothing/under/psysuit/fluff/isaca_sirius_1 name = "Isaca's suit" desc = "Black, comfortable and nicely fitting suit. Made not to hinder the wearer in any way. Made of some exotic fabric. And some strange glowing jewel at the waist. Name labels says; Property of Isaca Sirius; The Seeder." -/obj/item/clothing/under/fluff/jane_sidsuit // SyndiGirl: Zoey Scyth +/// SyndiGirl: Zoey Scyth +/obj/item/clothing/under/fluff/jane_sidsuit name = "NT-SID jumpsuit" desc = "A Nanotrasen Synthetic Intelligence Division jumpsuit, issued to 'volunteers'. On other people it looks fine, but right here a scientist has noted: on you it looks stupid." icon = 'icons/obj/custom_items.dmi' @@ -1164,7 +1233,8 @@ src.item_state = "[item_color]" usr.update_inv_w_uniform() -/obj/item/clothing/under/fluff/honourable // MrBarrelrolll: Maximus Greenwood +/// MrBarrelrolll: Maximus Greenwood +/obj/item/clothing/under/fluff/honourable name = "Viridi Protegat" desc = "A set of chainmail adorned with a hide mantle. \"Greenwood\" is engraved into the right breast." icon = 'icons/obj/clothing/under/costumes.dmi' @@ -1174,7 +1244,8 @@ displays_id = FALSE strip_delay = 100 -/obj/item/clothing/under/fluff/aegis //PlagueWalker: A.E.G.I.S. +/// PlagueWalker: A.E.G.I.S. +/obj/item/clothing/under/fluff/aegis name = "gilded waistcoat" desc = "This black, gold-trimmed, rather expensive-looking uniform laced with fine materials appears comfortable despite its stiffness." icon = 'icons/obj/custom_items.dmi' @@ -1185,7 +1256,8 @@ item_color = "aegisuniform" displays_id = FALSE -/obj/item/clothing/under/fluff/elo_turtleneck // vforcebomber: E.L.O. +/// vforcebomber: E.L.O. +/obj/item/clothing/under/fluff/elo_turtleneck name = "E.L.O's Turtleneck" desc = "This TurtleNeck belongs to the IPC E.L.O. And has her name sown into the upper left breast, a very wooly jumper." icon = 'icons/obj/custom_items.dmi' // for the floor sprite @@ -1195,13 +1267,15 @@ //////////// Masks //////////// -/obj/item/clothing/mask/bandana/fluff/dar //sasanek12: Dar'Konr +/// sasanek12: Dar'Konr +/obj/item/clothing/mask/bandana/fluff/dar name = "camo bandana" desc = "It's a worn-out bandana in camo paint" icon = 'icons/obj/custom_items.dmi' icon_state = "bandcamo" -/obj/item/clothing/mask/gas/sechailer/fluff/spartan //LP Spartan: Kaskreyarawkta +/// LP Spartan: Kaskreyarawkta +/obj/item/clothing/mask/gas/sechailer/fluff/spartan name = "minimal gasmask" desc = "Designed to cover as little of face as possible while still being a functional gasmask." icon = 'icons/obj/custom_items.dmi' @@ -1300,7 +1374,8 @@ item_state = "superior_boots" -/obj/item/nullrod/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/nullrod/fluff/chronx fluff_transformations = list(/obj/item/nullrod/fluff/chronx/scythe) /obj/item/nullrod/fluff/chronx/scythe @@ -1310,7 +1385,8 @@ icon_state = "chronx_scythe" item_state = "chronx_scythe" -/obj/item/clothing/head/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/clothing/head/fluff/chronx name = "Cthulhu's Hood" desc = "Hood worn by the worshipers of Cthulhu. You see a name inscribed in blood on the inside: Hughe O'Splash" icon = 'icons/obj/custom_items.dmi' @@ -1340,7 +1416,8 @@ var/datum/action/A = X A.UpdateButtonIcon() -/obj/item/clothing/suit/chaplain_hoodie/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/clothing/suit/chaplain_hoodie/fluff/chronx name = "Cthulhu's Robes" desc = "Robes worn by the worshipers of Cthulhu. You see a name inscribed in blood on the inside: Hughe O'Splash" icon = 'icons/obj/custom_items.dmi' @@ -1350,14 +1427,16 @@ adjust_flavour = "untransform" ignore_suitadjust = 0 -/obj/item/clothing/shoes/black/fluff/chronx //chronx100: Hughe O'Splash +/// chronx100: Hughe O'Splash +/obj/item/clothing/shoes/black/fluff/chronx name = "Cthulhu's Boots" desc = "Boots worn by the worshipers of Cthulhu. You see a name inscribed in blood on the inside: Hughe O'Splash" icon = 'icons/obj/custom_items.dmi' icon_state = "chronx_shoes" item_state = "chronx_shoes" -/obj/item/clothing/suit/armor/vest/fluff/tactical //m3hillus: Medusa Schlofield +/// m3hillus: Medusa Schlofield +/obj/item/clothing/suit/armor/vest/fluff/tactical name = "tactical armor vest" desc = "A tactical vest with armored plate inserts." icon = 'icons/obj/clothing/ties.dmi' @@ -1378,7 +1457,8 @@ "Grey" = 'icons/mob/clothing/species/grey/under/donator.dmi' ) -/obj/item/clothing/suit/jacket/fluff/elliot_windbreaker // DaveTheHeadcrab: Elliot Campbell +/// DaveTheHeadcrab: Elliot Campbell +/obj/item/clothing/suit/jacket/fluff/elliot_windbreaker name = "nylon windbreaker" desc = "A cheap nylon windbreaker, according to the tag it was manufactured in New Chiba, Earth.<br>The color reminds you of a television tuned to a dead channel." icon = 'icons/obj/custom_items.dmi' @@ -1388,7 +1468,8 @@ suit_adjusted = 1 sprite_sheets = null -/obj/item/storage/backpack/fluff/syndiesatchel //SkeletalElite: Rawkkihiki +/// SkeletalElite: Rawkkihiki +/obj/item/storage/backpack/fluff/syndiesatchel name= "Military Satchel" desc = "A well made satchel for military operations. Totally not made by an enemy corporation" icon = 'icons/obj/custom_items.dmi' @@ -1396,28 +1477,32 @@ item_state = null sprite_sheets = null -/obj/item/storage/backpack/fluff/krich_back //lizardzsi: Krichahka +/// lizardzsi: Krichahka +/obj/item/storage/backpack/fluff/krich_back name = "Voxcaster" desc = "Battered, Sol-made military radio backpack that had its speakers fried from playing Vox opera. The words 'Swift-Talon' are crudely scratched onto its side." icon = 'icons/obj/custom_items.dmi' icon_state = "voxcaster_fluff" item_state = null -/obj/item/storage/backpack/fluff/ssscratches_back //Ssscratches: Lasshy-Bot +/// Ssscratches: Lasshy-Bot +/obj/item/storage/backpack/fluff/ssscratches_back name = "CatPack" desc = "It's a backpack, but it's also a cat." icon = 'icons/obj/custom_items.dmi' icon_state = "ssscratches_backpack" item_state = null -/obj/item/storage/backpack/fluff/thebrew //Greey: Korala Ice +/// Greey: Korala Ice +/obj/item/storage/backpack/fluff/thebrew name = "The Brew" desc = "Amber colored backpack resembling a long lost friend, a spirit long forgotten." icon = 'icons/obj/custom_items.dmi' icon_state = "greeyfluff" item_state = "greeyfluff" -/obj/item/clothing/head/wizard/fake/fluff/dreamy //phantasmicdream : Dreamy Rockwall +/// phantasmicdream : Dreamy Rockwall +/obj/item/clothing/head/wizard/fake/fluff/dreamy name = "strange witch hat" desc = "A shapeshifting witch hat. A strange aura comes from it..." icon = 'icons/obj/custom_items.dmi' @@ -1447,7 +1532,8 @@ return 1 ..() -/obj/item/fluff/zekemirror //phantasmicdream : Zeke Varloss +/// phantasmicdream : Zeke Varloss +/obj/item/fluff/zekemirror name = "engraved hand mirror" desc = "A very classy hand mirror, with fancy detailing." icon = 'icons/obj/custom_items.dmi' @@ -1469,7 +1555,8 @@ to_chat(target, "<span class='notice'>You take time to admire yourself in [src], brushing your tendrils down and revealing their true length.</span>") -/obj/item/clothing/accessory/necklace/locket/fluff/fethasnecklace //Fethas: Sefra'neem +/// Fethas: Sefra'neem +/obj/item/clothing/accessory/necklace/locket/fluff/fethasnecklace name = "Orange gemmed locket" desc = "A locket with a orange gem set on the front, the picture inside seems to be of a Tajaran." icon = 'icons/obj/custom_items.dmi' @@ -1478,7 +1565,8 @@ item_color = "fethasnecklace" slot_flags = SLOT_FLAG_MASK | SLOT_FLAG_TIE -/obj/item/bedsheet/fluff/hugosheet //HugoLuman: Dan Martinez +/// HugoLuman: Dan Martinez +/obj/item/bedsheet/fluff/hugosheet name = "Cosmic space blankie" desc = "Made from the dreams of space children everywhere." icon = 'icons/obj/custom_items.dmi' @@ -1489,13 +1577,15 @@ item_color = "sheetcosmos" -/obj/item/clothing/head/fluff/lfbowler //Lightfire: Hyperion +/// Lightfire: Hyperion +/obj/item/clothing/head/fluff/lfbowler name = "classy bowler hat" desc = "A very classy looking bowler hat." icon = 'icons/obj/custom_items.dmi' icon_state = "bowler_lightfire" -/obj/item/clothing/under/fluff/lfvicsuit //Lightfire: Hyperion +/// Lightfire: Hyperion +/obj/item/clothing/under/fluff/lfvicsuit name = "classy victorian suit" desc = "A blue and black victorian suit with silver buttons, very fancy!" icon = 'icons/obj/custom_items.dmi' @@ -1507,7 +1597,8 @@ displays_id = FALSE -/obj/item/fluff/lighty_plasman_modkit // LightFire53: Ikelos +/// LightFire53: Ikelos +/obj/item/fluff/lighty_plasman_modkit name = "plasmaman suit modkit" desc = "A kit containing nanites that are able to modify the look of a plasmaman suit and helmet without exposing the wearer to hostile environments." icon_state = "modkit" @@ -1553,11 +1644,13 @@ else to_chat(user, "<span class='warning'>You can't modify [target]!</span>") -/obj/item/clothing/head/helmet/space/plasmaman/lf53_fluff // LightFire53: Ikelos +/// LightFire53: Ikelos +/obj/item/clothing/head/helmet/space/plasmaman/lf53_fluff icon_state = "ikelos_envirohelm" // New item needed because `initial(icon_state)` is used. icon = 'icons/obj/custom_items.dmi' -/obj/item/bikehorn/fluff/pinkbikehorn //Xerdies: Squiddle Toodle +/// Xerdies: Squiddle Toodle +/obj/item/bikehorn/fluff/pinkbikehorn name = "Honkinator5000" desc = "This horn may look ridiculous but is the new hot item for clowns in the Clown Empire. It has a fine print on its side reading: Property of Prince Honktertong the IV" icon = 'icons/obj/custom_items.dmi' @@ -1567,14 +1660,16 @@ icon_state = "teri_horn" item_state = "teri_horn" -/obj/item/clothing/accessory/medal/fluff/elo //V-Force_Bomber: E.L.O. +/// V-Force_Bomber: E.L.O. +/obj/item/clothing/accessory/medal/fluff/elo name = "distinguished medal of loyalty and excellence" desc = "This medal is cut into the shape of a Victoria Cross, and is awarded to those who have proven themselves to Nanotrasen with a long and successful career." icon = 'icons/obj/custom_items.dmi' icon_state = "elo-medal" item_color = "elo-medal" -/obj/item/clothing/suit/fluff/vetcoat //Furasian: Fillmoore Grayson +/// Furasian: Fillmoore Grayson +/obj/item/clothing/suit/fluff/vetcoat name = "Veteran Coat" desc = "An old, yet well-kept Nanotrasen uniform. Very few of its kind are still produced." icon = 'icons/obj/custom_items.dmi' @@ -1584,15 +1679,18 @@ item_state = "alchemistcoatblack" body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS -/obj/item/clothing/suit/fluff/vetcoat/red //Furasian: Fillmoore Grayson +/// Furasian: Fillmoore Grayson +/obj/item/clothing/suit/fluff/vetcoat/red icon_state = "alchemistcoatred" item_state = "alchemistcoatred" -/obj/item/clothing/suit/fluff/vetcoat/navy //Furasian: Fillmoore Grayson +/// Furasian: Fillmoore Grayson +/obj/item/clothing/suit/fluff/vetcoat/navy icon_state = "alchemistcoatnavy" item_state = "alchemistcoatnavy" -/obj/item/clothing/accessory/medal/fluff/panzermedal //PanzerSkull: GRN-DER +/// PanzerSkull: GRN-DER +/obj/item/clothing/accessory/medal/fluff/panzermedal name = "Cross of Valor" desc = "A medal from the bygone Asteroid Wars. Its Ruby shines with a strange intensity." icon = 'icons/obj/custom_items.dmi' @@ -1601,7 +1699,8 @@ item_color = "panzermedal" slot_flags = SLOT_FLAG_TIE -/obj/item/clothing/accessory/medal/fluff/XannZxiax //Sagrotter: Xann Zxiax +/// Sagrotter: Xann Zxiax +/obj/item/clothing/accessory/medal/fluff/XannZxiax name = "Zxiax Garnet" desc = "Green Garnet on fancy blue cord, when you look at the Garnet, you feel strangely appeased." icon = 'icons/obj/custom_items.dmi' @@ -1610,7 +1709,8 @@ item_color = "Xann_necklace" slot_flags = SLOT_FLAG_TIE -/obj/item/clothing/accessory/rbscarf //Rb303: Isthel Eisenwald +/// Rb303: Isthel Eisenwald +/obj/item/clothing/accessory/rbscarf name = "Old purple scarf" desc = "An old, striped purple scarf. It appears to be hand-knitted and has the name 'Isthel' written on it in bad handwriting." icon = 'icons/obj/custom_items.dmi' @@ -1618,13 +1718,15 @@ item_state = "rbscarf" item_color = "rbscarf" -/obj/item/clothing/head/fluff/pinesalad_horns //Pineapple Salad: Dan Jello +/// Pineapple Salad: Dan Jello +/obj/item/clothing/head/fluff/pinesalad_horns name = "Bluespace Horns" desc = "A pair of fake horns. Now with added bluespace!" icon = 'icons/obj/custom_items.dmi' icon_state = "ps_horns" -/obj/item/storage/backpack/fluff/hiking //Pineapple Salad: Dan Jello +/// Pineapple Salad: Dan Jello +/obj/item/storage/backpack/fluff/hiking name = "\improper Fancy Dufflebag" desc = "It's pretty lightweight for a dufflebag, but it only seems to have as much space as an ordinary backpack." icon = 'icons/obj/custom_items.dmi' @@ -1633,7 +1735,8 @@ lefthand_file = 'icons/mob/inhands/fluff_lefthand.dmi' righthand_file = 'icons/mob/inhands/fluff_righthand.dmi' -/obj/item/clothing/under/fluff/kiaoutfit //FullOfSkittles: Kiachi +/// FullOfSkittles: Kiachi +/obj/item/clothing/under/fluff/kiaoutfit name = "Suspicious Outfit" desc = "A very expensive top with intricate details tailored to fit a vox and paired with a glittery blue skirt, probably illegal." icon = 'icons/obj/custom_items.dmi' @@ -1645,7 +1748,8 @@ displays_id = FALSE species_restricted = list("Vox") -/obj/item/clothing/head/fluff/kiahat //FullOfSkittles: Kiachi +/// FullOfSkittles: Kiachi +/obj/item/clothing/head/fluff/kiahat name = "Suspicious Witch Hat" desc = "A black witch hat with a blue sash decorated with tiny glimmering stars and a gold squid-like medallion, probably possessed." icon = 'icons/obj/custom_items.dmi' @@ -1655,7 +1759,8 @@ item_state = "kiahat" item_color = "kiahat" -/obj/item/clothing/mask/gas/fluff/kiamask //FullOfSkittles: Kiachi +/// FullOfSkittles: Kiachi +/obj/item/clothing/mask/gas/fluff/kiamask name = "Suspicious Mask" desc = "A sleek mask that blends in with the owner's existing quills using strange technology. It might even be magic..." icon = 'icons/obj/custom_items.dmi' @@ -1683,13 +1788,15 @@ -/obj/item/clothing/gloves/ring/fluff/benjaminfallout //Benjaminfallout: Pretzel Brassheart +/// Benjaminfallout: Pretzel Brassheart +/obj/item/clothing/gloves/ring/fluff/benjaminfallout name = "Pretzel's Ring" desc = "A small platinum ring with a large light blue diamond. Engraved inside the band are the words: 'To my lovely Pristine Princess. Forever yours, Savinien.'" icon_state = "benjaminfallout_ring" -/obj/item/clothing/under/fluff/kikeridress //Gangelwaefre: Kikeri +/// Gangelwaefre: Kikeri +/obj/item/clothing/under/fluff/kikeridress name = "Kikeri's Dress" desc = "A simple black dress with a white undercoat, tied with a blue ribbon." lefthand_file = 'icons/mob/inhands/fluff_lefthand.dmi' @@ -1701,7 +1808,8 @@ body_parts_covered = UPPER_TORSO|LOWER_TORSO species_restricted = list("Vox") -/obj/item/clothing/mask/gas/fluff/kikerimask //Gangelwaefre: Kikeri +/// Gangelwaefre: Kikeri +/obj/item/clothing/mask/gas/fluff/kikerimask name = "Kikeri's Mask" desc = "A light grey mask with masquerade-esque blue details." icon = 'icons/obj/custom_items.dmi' @@ -1713,7 +1821,8 @@ item_color = "kikerimask" species_restricted = list("Vox") -/obj/item/clothing/mask/gas/fluff/yahiyamask //Asmerath: Yahiya +/// Asmerath: Yahiya +/obj/item/clothing/mask/gas/fluff/yahiyamask name = "Yahiya's Mask" desc = "A dark brown and silver mask resembling that of an eagle. There is a fiery red gem embedded into the forehead." icon = 'icons/obj/custom_items.dmi' diff --git a/code/modules/economy/economy_machinery/eftpos.dm b/code/modules/economy/economy_machinery/eftpos.dm index 9df87f8d06e2a..a9709c5abf8d3 100644 --- a/code/modules/economy/economy_machinery/eftpos.dm +++ b/code/modules/economy/economy_machinery/eftpos.dm @@ -105,25 +105,7 @@ if("link_account") if(!account_database) reconnect_database() - if(account_database) - var/attempt_account_num = tgui_input_number(user, "Enter account number to pay EFTPOS charges into:", "New account number", max_value = 9999999, min_value = 1000000) - if(!attempt_account_num) - return - var/attempt_pin = tgui_input_number(user, "Enter pin code", "Account pin", max_value = 99999, min_value = 10000) - if(!check_user_position(user) || !account_database || !attempt_pin) - return - var/datum/money_account/target_account = GLOB.station_money_database.find_user_account(attempt_account_num, include_departments = TRUE) - if(!target_account) - for(var/department_key in GLOB.station_money_database.department_accounts) - var/datum/money_account/department_account = GLOB.station_money_database.department_accounts[department_key] - if(department_account.account_number == attempt_account_num) - target_account = department_account - if(target_account && GLOB.station_money_database.try_authenticate_login(target_account, attempt_pin, TRUE, FALSE, FALSE)) - linked_account = target_account - else - to_chat(user, "[bicon(src)]<span class='warning'>Unable to connect to inputed account.</span>") - return - else + if(!account_database) to_chat(user, "[bicon(src)]<span class='warning'>Unable to connect to accounts database.</span>") return var/datum/money_account/target_account = locateUID(params["account"]) diff --git a/code/modules/events/blob/blob_structures/captured_nuke.dm b/code/modules/events/blob/blob_structures/captured_nuke.dm index 3374850b1b2c0..030b37d24086f 100644 --- a/code/modules/events/blob/blob_structures/captured_nuke.dm +++ b/code/modules/events/blob/blob_structures/captured_nuke.dm @@ -1,4 +1,5 @@ -/obj/structure/blob/captured_nuke //alternative to blob just straight up destroying nukes +/// alternative to blob just straight up destroying nukes +/obj/structure/blob/captured_nuke name = "blob captured nuke" icon_state = "blob" desc = "A Nuclear Warhead tangled in blob tendrils pulsating with a horrific green glow." diff --git a/code/modules/events/event.dm b/code/modules/events/event.dm index f82af011b8470..2ac68d4785541 100644 --- a/code/modules/events/event.dm +++ b/code/modules/events/event.dm @@ -45,7 +45,8 @@ return ..(active_with_role) return 0*/ -/datum/event //NOTE: Times are measured in master controller ticks! +/// NOTE: Times are measured in master controller ticks! +/datum/event /// The human-readable name of the event var/name /// When in the lifetime to call start(). diff --git a/code/modules/events/meteors_event.dm b/code/modules/events/meteors_event.dm index 24ede06bf922e..39a2f79c5a6b0 100644 --- a/code/modules/events/meteors_event.dm +++ b/code/modules/events/meteors_event.dm @@ -3,11 +3,11 @@ endWhen = 7 var/next_meteor = 6 var/waves = 1 - var/obj/screen/alert/augury/meteor/screen_alert + var/atom/movable/screen/alert/augury/meteor/screen_alert /datum/event/meteor_wave/setup() for(var/mob/dead/observer/O in GLOB.dead_mob_list) - var/obj/screen/alert/augury/meteor/A = O.throw_alert("\ref[src]_augury", /obj/screen/alert/augury/meteor) + var/atom/movable/screen/alert/augury/meteor/A = O.throw_alert("\ref[src]_augury", /atom/movable/screen/alert/augury/meteor) if(A) screen_alert = A @@ -23,7 +23,7 @@ /datum/event/meteor_wave/tick() // keep observers updated with the alert for(var/mob/dead/observer/O in GLOB.dead_mob_list) - O.throw_alert("\ref[src]_augury", /obj/screen/alert/augury/meteor) + O.throw_alert("\ref[src]_augury", /atom/movable/screen/alert/augury/meteor) if(waves && activeFor >= next_meteor) INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(spawn_meteors), get_meteor_count(), get_meteors()) next_meteor += rand(15, 30) / severity diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm index 00b1914c181bd..dad1fac6c8d76 100644 --- a/code/modules/events/spacevine.dm +++ b/code/modules/events/spacevine.dm @@ -218,7 +218,8 @@ if(!isvineimmune(eater)) eater.adjustToxLoss(5) -/datum/spacevine_mutation/explosive //OH SHIT IT CAN CHAINREACT RUN!!! +/// OH SHIT IT CAN CHAINREACT RUN!!! +/datum/spacevine_mutation/explosive name = "explosive" hue = "#ff0000" quality = NEGATIVE @@ -261,7 +262,8 @@ prey.wither() . = TRUE -/datum/spacevine_mutation/aggressive_spread //very OP, but im out of other ideas currently +/// very OP, but im out of other ideas currently +/datum/spacevine_mutation/aggressive_spread name = "aggressive spreading" hue = "#333333" severity = 3 diff --git a/code/modules/events/wizard/ghost_wizard_spells.dm b/code/modules/events/wizard/ghost_wizard_spells.dm index e703799ff0253..f824344c83330 100644 --- a/code/modules/events/wizard/ghost_wizard_spells.dm +++ b/code/modules/events/wizard/ghost_wizard_spells.dm @@ -1,10 +1,12 @@ -/datum/event/wizard/ghost //The spook is real +/// The spook is real +/datum/event/wizard/ghost /datum/event/wizard/ghost/start() var/msg = "<span class='warning'>You suddenly feel extremely obvious...</span>" set_observer_default_invisibility(0, msg) -/datum/event/wizard/ghost_mute //The spook is silent +/// The spook is silent +/datum/event/wizard/ghost_mute /datum/event/wizard/ghost_mute/start() GLOB.dsay_enabled = FALSE diff --git a/code/modules/food_and_drinks/drinks/drinks_base.dm b/code/modules/food_and_drinks/drinks/drinks_base.dm index fc9e0a75aa26d..bbfbaa8e0f3c9 100644 --- a/code/modules/food_and_drinks/drinks/drinks_base.dm +++ b/code/modules/food_and_drinks/drinks/drinks_base.dm @@ -156,7 +156,8 @@ materials = list(MAT_METAL=400) volume = 25 -/obj/item/reagent_containers/drinks/trophy/bronze_cup/toolbox_win //2023 toolbox tournament 3rd place went to paradise station. +/// 2023 toolbox tournament 3rd place went to paradise station. +/obj/item/reagent_containers/drinks/trophy/bronze_cup/toolbox_win name = "3rd place toolbox tournament 2567" desc = "Awarded to centcomms elite toolbox warriors raising money for the GBS research institute." icon_state = "reward_cup" diff --git a/code/modules/food_and_drinks/food/condiment.dm b/code/modules/food_and_drinks/food/condiment.dm index 01c99264ebf07..8b083436ea1bc 100644 --- a/code/modules/food_and_drinks/food/condiment.dm +++ b/code/modules/food_and_drinks/food/condiment.dm @@ -135,7 +135,8 @@ list_reagents = list("sugar" = 50) possible_states = list() -/obj/item/reagent_containers/condiment/saltshaker //Seperate from above since it's a small shaker rather then +/// Seperate from above since it's a small shaker rather then +/obj/item/reagent_containers/condiment/saltshaker name = "salt shaker" // a large one. desc = "Salt. From space oceans, presumably." icon_state = "saltshakersmall" diff --git a/code/modules/food_and_drinks/food/customizables.dm b/code/modules/food_and_drinks/food/customizables.dm index 8d22dd0d9db3b..01db2bfef503c 100644 --- a/code/modules/food_and_drinks/food/customizables.dm +++ b/code/modules/food_and_drinks/food/customizables.dm @@ -302,7 +302,8 @@ do {\ snack_overlays = 0 top = 0 -/obj/item/food/snacks/customizable/fullycustom // In the event you fuckers find something I forgot to add a customizable food for. +/// In the event you fuckers find something I forgot to add a customizable food for. +/obj/item/food/snacks/customizable/fullycustom name = "on a plate" desc = "A unique dish." icon_state = "fullycustom" diff --git a/code/modules/food_and_drinks/food/foods/ingredients.dm b/code/modules/food_and_drinks/food/foods/ingredients.dm index a0cf80c61b6ae..cefb49fd02ee7 100644 --- a/code/modules/food_and_drinks/food/foods/ingredients.dm +++ b/code/modules/food_and_drinks/food/foods/ingredients.dm @@ -239,7 +239,8 @@ return ..() -/obj/item/food/snacks/choc_pile //for reagent chocolate being spilled on turfs +/// for reagent chocolate being spilled on turfs +/obj/item/food/snacks/choc_pile name = "pile of chocolate" desc = "A pile of pure chocolate pieces." icon_state = "cocoa" diff --git a/code/modules/food_and_drinks/food/foods/side_dishes.dm b/code/modules/food_and_drinks/food/foods/side_dishes.dm index fbfdf0394622d..648fd6f1038db 100644 --- a/code/modules/food_and_drinks/food/foods/side_dishes.dm +++ b/code/modules/food_and_drinks/food/foods/side_dishes.dm @@ -72,7 +72,8 @@ list_reagents = list("nutriment" = 10, "beans" = 10, "vitamin" = 3) tastes = list("beans" = 1) -/obj/item/food/snacks/mashed_potatoes //mashed taters +/// mashed taters +/obj/item/food/snacks/mashed_potatoes name = "mashed potatoes" desc = "Some soft, creamy, and irresistible mashed potatoes." icon_state = "mashedtaters" diff --git a/code/modules/food_and_drinks/recipes/recipes_oven.dm b/code/modules/food_and_drinks/recipes/recipes_oven.dm index e95dad37b108d..0d639141d32ba 100644 --- a/code/modules/food_and_drinks/recipes/recipes_oven.dm +++ b/code/modules/food_and_drinks/recipes/recipes_oven.dm @@ -568,7 +568,8 @@ ) result = /obj/item/food/snacks/toastedsandwich -/datum/recipe/oven/turkey // Magic +/// Magic +/datum/recipe/oven/turkey items = list( /obj/item/food/snacks/meat, /obj/item/food/snacks/meat, diff --git a/code/modules/games/cards.dm b/code/modules/games/cards.dm index eb3029bd4dac7..0093de6000116 100644 --- a/code/modules/games/cards.dm +++ b/code/modules/games/cards.dm @@ -239,7 +239,7 @@ if(!ishuman(M)) return - if(istype(over, /obj/screen)) + if(is_screen_atom(over)) if(!remove_item_from_storage(get_turf(M))) M.unEquip(src) switch(over.name) diff --git a/code/modules/hallucinations/effects/moderate.dm b/code/modules/hallucinations/effects/moderate.dm index 187639a5cc555..3e8a8f883e922 100644 --- a/code/modules/hallucinations/effects/moderate.dm +++ b/code/modules/hallucinations/effects/moderate.dm @@ -15,19 +15,19 @@ duration = list(10 SECONDS, 25 SECONDS) /// The possible alerts to be displayed. Key is alert type, value is alert category. var/list/alerts = list( - /obj/screen/alert/not_enough_oxy = "not_enough_oxy", - /obj/screen/alert/not_enough_tox = "not_enough_tox", - /obj/screen/alert/not_enough_co2 = "not_enough_co2", - /obj/screen/alert/not_enough_nitro = "not_enough_nitro", - /obj/screen/alert/too_much_oxy = "too_much_oxy", - /obj/screen/alert/too_much_co2 = "too_much_co2", - /obj/screen/alert/too_much_tox = "too_much_tox", - /obj/screen/alert/hunger/fat = "nutrition", - /obj/screen/alert/hunger/starving = "nutrition", - /obj/screen/alert/hot = "temp", - /obj/screen/alert/cold = "temp", - /obj/screen/alert/highpressure = "pressure", - /obj/screen/alert/lowpressure = "pressure", + /atom/movable/screen/alert/not_enough_oxy = "not_enough_oxy", + /atom/movable/screen/alert/not_enough_tox = "not_enough_tox", + /atom/movable/screen/alert/not_enough_co2 = "not_enough_co2", + /atom/movable/screen/alert/not_enough_nitro = "not_enough_nitro", + /atom/movable/screen/alert/too_much_oxy = "too_much_oxy", + /atom/movable/screen/alert/too_much_co2 = "too_much_co2", + /atom/movable/screen/alert/too_much_tox = "too_much_tox", + /atom/movable/screen/alert/hunger/fat = "nutrition", + /atom/movable/screen/alert/hunger/starving = "nutrition", + /atom/movable/screen/alert/hot = "temp", + /atom/movable/screen/alert/cold = "temp", + /atom/movable/screen/alert/highpressure = "pressure", + /atom/movable/screen/alert/lowpressure = "pressure", ) /// Alert severities. Only needed for some alerts such as temperature or pressure. Key is alert category, value is severity. var/list/severities = list( diff --git a/code/modules/hydroponics/grown/banana.dm b/code/modules/hydroponics/grown/banana.dm index 57d8f8c7e5d2c..7126866a9a37b 100644 --- a/code/modules/hydroponics/grown/banana.dm +++ b/code/modules/hydroponics/grown/banana.dm @@ -133,7 +133,8 @@ icon_state = "bluenana_peel" // Other -/obj/item/grown/bananapeel/specialpeel //used by /obj/item/clothing/shoes/clown_shoes/banana_shoes +/// used by /obj/item/clothing/shoes/clown_shoes/banana_shoes +/obj/item/grown/bananapeel/specialpeel name = "synthesized banana peel" desc = "A synthetic banana peel." diff --git a/code/modules/hydroponics/grown/citrus.dm b/code/modules/hydroponics/grown/citrus.dm index 0f624c37e1d14..888bcdc9aefa8 100644 --- a/code/modules/hydroponics/grown/citrus.dm +++ b/code/modules/hydroponics/grown/citrus.dm @@ -87,7 +87,8 @@ filling_color = "#FFD700" // Combustible lemon -/obj/item/seeds/firelemon //combustible lemon is too long so firelemon +/// combustible lemon is too long so firelemon +/obj/item/seeds/firelemon name = "pack of combustible lemon seeds" desc = "When life gives you lemons, don't make lemonade. Make life take the lemons back! Get mad! I don't want your damn lemons!" icon_state = "seed-firelemon" diff --git a/code/modules/hydroponics/grown/flowers.dm b/code/modules/hydroponics/grown/flowers.dm index 42d7eaa2e9c58..f71f1edf21190 100644 --- a/code/modules/hydroponics/grown/flowers.dm +++ b/code/modules/hydroponics/grown/flowers.dm @@ -118,7 +118,8 @@ mutatelist = list(/obj/item/seeds/sunflower/moonflower, /obj/item/seeds/sunflower/novaflower) reagents_add = list("cornoil" = 0.08, "plantmatter" = 0.04) -/obj/item/grown/sunflower // FLOWER POWER! +/// FLOWER POWER! +/obj/item/grown/sunflower seed = /obj/item/seeds/sunflower name = "sunflower" desc = "It's beautiful! A certain person might beat you to death if you trample these." diff --git a/code/modules/hydroponics/grown/nettle.dm b/code/modules/hydroponics/grown/nettle.dm index 78fe7964c4612..1d79c1d0b3174 100644 --- a/code/modules/hydroponics/grown/nettle.dm +++ b/code/modules/hydroponics/grown/nettle.dm @@ -28,7 +28,8 @@ reagents_add = list("facid" = 0.25, "sacid" = 0.25) rarity = 20 -/obj/item/grown/nettle //abstract type +/// abstract type +/obj/item/grown/nettle name = "nettle" desc = "It's probably <B>not</B> wise to touch it with bare hands..." icon = 'icons/obj/items.dmi' diff --git a/code/modules/hydroponics/grown/towercap.dm b/code/modules/hydroponics/grown/towercap.dm index 1c33b6ce5dae9..9acbcc055fb40 100644 --- a/code/modules/hydroponics/grown/towercap.dm +++ b/code/modules/hydroponics/grown/towercap.dm @@ -119,7 +119,8 @@ /obj/structure/bonfire/dense density = TRUE -/obj/structure/bonfire/lit //haha empty define +/// haha empty define +/obj/structure/bonfire/lit /obj/structure/bonfire/lit/dense density = TRUE diff --git a/code/modules/hydroponics/growninedible.dm b/code/modules/hydroponics/growninedible.dm index 4fcbe25430e1c..820cf7420c88c 100644 --- a/code/modules/hydroponics/growninedible.dm +++ b/code/modules/hydroponics/growninedible.dm @@ -2,7 +2,8 @@ // Other harvested materials from plants (that are not food) // ********************** -/obj/item/grown // Grown weapons +/// Grown weapons +/obj/item/grown name = "grown_weapon" icon = 'icons/obj/hydroponics/harvest.dmi' resistance_flags = FLAMMABLE diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm index 73154db5ef96a..f5bbb310453b5 100644 --- a/code/modules/hydroponics/hydroitemdefines.dm +++ b/code/modules/hydroponics/hydroitemdefines.dm @@ -14,7 +14,8 @@ // Hydroponics Tools // ************************************* -/obj/item/reagent_containers/spray/weedspray // -- Skie +/// -- Skie +/obj/item/reagent_containers/spray/weedspray name = "weed spray" desc = "It's a toxic mixture, in spray form, to kill small weeds." icon = 'icons/obj/hydroponics/equipment.dmi' @@ -34,7 +35,8 @@ user.visible_message("<span class='suicide'>[user] is huffing [src]! It looks like [user.p_theyre()] trying to commit suicide.</span>") return TOXLOSS -/obj/item/reagent_containers/spray/pestspray // -- Skie +/// -- Skie +/obj/item/reagent_containers/spray/pestspray name = "pest spray" desc = "It's some pest eliminator spray! <I>Do not inhale!</I>" icon = 'icons/obj/hydroponics/equipment.dmi' diff --git a/code/modules/hydroponics/hydroponics_tray.dm b/code/modules/hydroponics/hydroponics_tray.dm index ebeaac15cddf4..42fe9a3adff79 100644 --- a/code/modules/hydroponics/hydroponics_tray.dm +++ b/code/modules/hydroponics/hydroponics_tray.dm @@ -96,7 +96,7 @@ var/list/connected = list() var/list/processing_atoms = list(src) - while(processing_atoms.len) + while(length(processing_atoms)) var/atom/a = processing_atoms[1] for(var/step_dir in GLOB.cardinal) var/obj/machinery/hydroponics/h = locate() in get_step(a, step_dir) @@ -485,12 +485,12 @@ else to_chat(user, "<span class='warning'>The pests seem to behave oddly, but quickly settle down...</span>") -/obj/machinery/hydroponics/proc/applyChemicals(datum/reagents/S, mob/user) +/obj/machinery/hydroponics/proc/apply_chemicals(mob/user) if(myseed) - myseed.on_chem_reaction(S) //In case seeds have some special interactions with special chems, currently only used by vines + myseed.on_chem_reaction(reagents) //In case seeds have some special interactions with special chems, currently only used by vines // Requires 5 mutagen to possibly change species.// Poor man's mutagen. - if(S.has_reagent("mutagen", 5) || S.has_reagent("radium", 10) || S.has_reagent("uranium", 10)) + if(reagents.has_reagent("mutagen", 5) || reagents.has_reagent("radium", 10) || reagents.has_reagent("uranium", 10)) switch(rand(100)) if(91 to 100) adjustHealth(-10) @@ -511,212 +511,212 @@ to_chat(user, "<span class='notice'>Nothing happens...</span>") // 2 or 1 units is enough to change the yield and other stats.// Can change the yield and other stats, but requires more than mutagen - else if(S.has_reagent("mutagen", 2) || S.has_reagent("radium", 5) || S.has_reagent("uranium", 5)) + else if(reagents.has_reagent("mutagen", 2) || reagents.has_reagent("radium", 5) || reagents.has_reagent("uranium", 5)) hardmutate() - else if(S.has_reagent("mutagen", 1) || S.has_reagent("radium", 2) || S.has_reagent("uranium", 2)) + else if(reagents.has_reagent("mutagen", 1) || reagents.has_reagent("radium", 2) || reagents.has_reagent("uranium", 2)) mutate() // After handling the mutating, we now handle the damage from adding crude radioactives... - if(S.has_reagent("uranium", 1)) - adjustHealth(-round(S.get_reagent_amount("uranium") * 1)) - adjustToxic(round(S.get_reagent_amount("uranium") * 2)) - if(S.has_reagent("radium", 1)) - adjustHealth(-round(S.get_reagent_amount("radium") * 1)) - adjustToxic(round(S.get_reagent_amount("radium") * 3)) // Radium is harsher (OOC: also easier to produce) + if(reagents.has_reagent("uranium", 1)) + adjustHealth(-round(reagents.get_reagent_amount("uranium") * 1)) + adjustToxic(round(reagents.get_reagent_amount("uranium") * 2)) + if(reagents.has_reagent("radium", 1)) + adjustHealth(-round(reagents.get_reagent_amount("radium") * 1)) + adjustToxic(round(reagents.get_reagent_amount("radium") * 3)) // Radium is harsher (OOC: also easier to produce) // Nutriments - if(S.has_reagent("eznutriment", 1)) + if(reagents.has_reagent("eznutriment", 1)) yieldmod = 1 mutmod = 1 - adjustNutri(round(S.get_reagent_amount("eznutriment") * 1)) + adjustNutri(round(reagents.get_reagent_amount("eznutriment") * 1)) - if(S.has_reagent("left4zednutriment", 1)) + if(reagents.has_reagent("left4zednutriment", 1)) yieldmod = 0 mutmod = 2 - adjustNutri(round(S.get_reagent_amount("left4zednutriment") * 1)) + adjustNutri(round(reagents.get_reagent_amount("left4zednutriment") * 1)) - if(S.has_reagent("robustharvestnutriment", 1)) + if(reagents.has_reagent("robustharvestnutriment", 1)) yieldmod = 1.3 mutmod = 0 - adjustNutri(round(S.get_reagent_amount("robustharvestnutriment") *1 )) + adjustNutri(round(reagents.get_reagent_amount("robustharvestnutriment") *1 )) //Fish Water is both an excellent fertilizer and waters - if(S.has_reagent("fishwater", 1)) - adjustNutri(round(S.get_reagent_amount("fishwater") * 0.75)) - adjustWater(round(S.get_reagent_amount("fishwater") * 1)) + if(reagents.has_reagent("fishwater", 1)) + adjustNutri(round(reagents.get_reagent_amount("fishwater") * 0.75)) + adjustWater(round(reagents.get_reagent_amount("fishwater") * 1)) // Ambrosia Gaia produces earthsblood. - if(S.has_reagent("earthsblood")) - self_sufficiency_progress += S.get_reagent_amount("earthsblood") + if(reagents.has_reagent("earthsblood")) + self_sufficiency_progress += reagents.get_reagent_amount("earthsblood") if(self_sufficiency_progress >= self_sufficiency_req) become_self_sufficient() else if(!self_sustaining) to_chat(user, "<span class='notice'>[src] warms as it might on a spring day under a genuine Sun.</span>") // Antitoxin binds shit pretty well. So the tox goes significantly down - if(S.has_reagent("charcoal", 1)) - adjustToxic(-round(S.get_reagent_amount("charcoal") * 2)) + if(reagents.has_reagent("charcoal", 1)) + adjustToxic(-round(reagents.get_reagent_amount("charcoal") * 2)) // BRO, YOU JUST WENT ON FULL STUPID. - if(S.has_reagent("toxin", 1)) - adjustToxic(round(S.get_reagent_amount("toxin") * 2)) + if(reagents.has_reagent("toxin", 1)) + adjustToxic(round(reagents.get_reagent_amount("toxin") * 2)) // Milk is good for humans, but bad for plants. The sugars canot be used by plants, and the milk fat fucks up growth. Not shrooms though. I can't deal with this now... - if(S.has_reagent("milk", 1)) - adjustNutri(round(S.get_reagent_amount("milk") * 0.1)) - adjustWater(round(S.get_reagent_amount("milk") * 0.9)) + if(reagents.has_reagent("milk", 1)) + adjustNutri(round(reagents.get_reagent_amount("milk") * 0.1)) + adjustWater(round(reagents.get_reagent_amount("milk") * 0.9)) // Beer is a chemical composition of alcohol and various other things. It's a shitty nutrient but hey, it's still one. Also alcohol is bad, mmmkay? - if(S.has_reagent("beer", 1)) - adjustHealth(-round(S.get_reagent_amount("beer") * 0.05)) - adjustNutri(round(S.get_reagent_amount("beer") * 0.25)) - adjustWater(round(S.get_reagent_amount("beer") * 0.7)) + if(reagents.has_reagent("beer", 1)) + adjustHealth(-round(reagents.get_reagent_amount("beer") * 0.05)) + adjustNutri(round(reagents.get_reagent_amount("beer") * 0.25)) + adjustWater(round(reagents.get_reagent_amount("beer") * 0.7)) // You're an idiot for thinking that one of the most corrosive and deadly gasses would be beneficial - if(S.has_reagent("fluorine", 1)) - adjustHealth(-round(S.get_reagent_amount("fluorine") * 2)) - adjustToxic(round(S.get_reagent_amount("fluorine") * 2.5)) - adjustWater(-round(S.get_reagent_amount("fluorine") * 0.5)) + if(reagents.has_reagent("fluorine", 1)) + adjustHealth(-round(reagents.get_reagent_amount("fluorine") * 2)) + adjustToxic(round(reagents.get_reagent_amount("fluorine") * 2.5)) + adjustWater(-round(reagents.get_reagent_amount("fluorine") * 0.5)) adjustWeeds(-rand(1,4)) // You're an idiot for thinking that one of the most corrosive and deadly gasses would be beneficial - if(S.has_reagent("chlorine", 1)) - adjustHealth(-round(S.get_reagent_amount("chlorine") * 1)) - adjustToxic(round(S.get_reagent_amount("chlorine") * 1.5)) - adjustWater(-round(S.get_reagent_amount("chlorine") * 0.5)) + if(reagents.has_reagent("chlorine", 1)) + adjustHealth(-round(reagents.get_reagent_amount("chlorine") * 1)) + adjustToxic(round(reagents.get_reagent_amount("chlorine") * 1.5)) + adjustWater(-round(reagents.get_reagent_amount("chlorine") * 0.5)) adjustWeeds(-rand(1,3)) // White Phosphorous + water -> phosphoric acid. That's not a good thing really. // Phosphoric salts are beneficial though. And even if the plant suffers, in the long run the tray gets some nutrients. The benefit isn't worth that much. - if(S.has_reagent("phosphorus", 1)) - adjustHealth(-round(S.get_reagent_amount("phosphorus") * 0.75)) - adjustNutri(round(S.get_reagent_amount("phosphorus") * 0.1)) - adjustWater(-round(S.get_reagent_amount("phosphorus") * 0.5)) + if(reagents.has_reagent("phosphorus", 1)) + adjustHealth(-round(reagents.get_reagent_amount("phosphorus") * 0.75)) + adjustNutri(round(reagents.get_reagent_amount("phosphorus") * 0.1)) + adjustWater(-round(reagents.get_reagent_amount("phosphorus") * 0.5)) adjustWeeds(-rand(1,2)) // Plants should not have sugar, they can't use it and it prevents them getting water/ nutients, it is good for mold though... - if(S.has_reagent("sugar", 1)) + if(reagents.has_reagent("sugar", 1)) adjustWeeds(rand(1,2)) adjustPests(rand(1,2)) - adjustNutri(round(S.get_reagent_amount("sugar") * 0.1)) + adjustNutri(round(reagents.get_reagent_amount("sugar") * 0.1)) // It is water! - if(S.has_reagent("water", 1)) - adjustWater(round(S.get_reagent_amount("water") * 1)) + if(reagents.has_reagent("water", 1)) + adjustWater(round(reagents.get_reagent_amount("water") * 1)) // Holy water. Mostly the same as water, it also heals the plant a little with the power of the spirits~ - if(S.has_reagent("holywater", 1)) - adjustWater(round(S.get_reagent_amount("holywater") * 1)) - adjustHealth(round(S.get_reagent_amount("holywater") * 0.1)) + if(reagents.has_reagent("holywater", 1)) + adjustWater(round(reagents.get_reagent_amount("holywater") * 1)) + adjustHealth(round(reagents.get_reagent_amount("holywater") * 0.1)) // A variety of nutrients are dissolved in club soda, without sugar. // These nutrients include carbon, oxygen, hydrogen, phosphorous, potassium, sulfur and sodium, all of which are needed for healthy plant growth. - if(S.has_reagent("sodawater", 1)) - adjustWater(round(S.get_reagent_amount("sodawater") * 1)) - adjustHealth(round(S.get_reagent_amount("sodawater") * 0.1)) - adjustNutri(round(S.get_reagent_amount("sodawater") * 0.1)) + if(reagents.has_reagent("sodawater", 1)) + adjustWater(round(reagents.get_reagent_amount("sodawater") * 1)) + adjustHealth(round(reagents.get_reagent_amount("sodawater") * 0.1)) + adjustNutri(round(reagents.get_reagent_amount("sodawater") * 0.1)) // Man, you guys are daft - if(S.has_reagent("sacid", 1)) - adjustHealth(-round(S.get_reagent_amount("sacid") * 1)) - adjustToxic(round(S.get_reagent_amount("sacid") * 1.5)) + if(reagents.has_reagent("sacid", 1)) + adjustHealth(-round(reagents.get_reagent_amount("sacid") * 1)) + adjustToxic(round(reagents.get_reagent_amount("sacid") * 1.5)) adjustWeeds(-rand(1,2)) // SERIOUSLY - if(S.has_reagent("facid", 1)) - adjustHealth(-round(S.get_reagent_amount("facid") * 2)) - adjustToxic(round(S.get_reagent_amount("facid") * 3)) + if(reagents.has_reagent("facid", 1)) + adjustHealth(-round(reagents.get_reagent_amount("facid") * 2)) + adjustToxic(round(reagents.get_reagent_amount("facid") * 3)) adjustWeeds(-rand(1,4)) // Glyphosate is just as bad - if(S.has_reagent("glyphosate", 1)) - adjustHealth(-round(S.get_reagent_amount("glyphosate") * 5)) - adjustToxic(round(S.get_reagent_amount("glyphosate") * 6)) + if(reagents.has_reagent("glyphosate", 1)) + adjustHealth(-round(reagents.get_reagent_amount("glyphosate") * 5)) + adjustToxic(round(reagents.get_reagent_amount("glyphosate") * 6)) adjustWeeds(-rand(4,8)) // why, just why - if(S.has_reagent("napalm", 1)) + if(reagents.has_reagent("napalm", 1)) if(!(myseed.resistance_flags & FIRE_PROOF)) - adjustHealth(-round(S.get_reagent_amount("napalm") * 6)) - adjustToxic(round(S.get_reagent_amount("napalm") * 7)) + adjustHealth(-round(reagents.get_reagent_amount("napalm") * 6)) + adjustToxic(round(reagents.get_reagent_amount("napalm") * 7)) adjustWeeds(-rand(5, 9)) //At least give them a small reward if they bother //Weed Spray - if(S.has_reagent("atrazine", 1)) - adjustToxic(round(S.get_reagent_amount("atrazine") * 0.5)) + if(reagents.has_reagent("atrazine", 1)) + adjustToxic(round(reagents.get_reagent_amount("atrazine") * 0.5)) //old toxicity was 4, each spray is default 10 (minimal of 5) so 5 and 2.5 are the new ammounts adjustWeeds(-rand(1,2)) //Pest Spray - if(S.has_reagent("pestkiller", 1)) - adjustToxic(round(S.get_reagent_amount("pestkiller") * 0.5)) + if(reagents.has_reagent("pestkiller", 1)) + adjustToxic(round(reagents.get_reagent_amount("pestkiller") * 0.5)) adjustPests(-rand(1,2)) // Healing - if(S.has_reagent("cryoxadone", 1)) - adjustHealth(round(S.get_reagent_amount("cryoxadone") * 3)) - adjustToxic(-round(S.get_reagent_amount("cryoxadone") * 3)) + if(reagents.has_reagent("cryoxadone", 1)) + adjustHealth(round(reagents.get_reagent_amount("cryoxadone") * 3)) + adjustToxic(-round(reagents.get_reagent_amount("cryoxadone") * 3)) // Ammonia is bad ass. - if(S.has_reagent("ammonia", 1)) - adjustHealth(round(S.get_reagent_amount("ammonia") * 0.5)) - adjustNutri(round(S.get_reagent_amount("ammonia") * 1)) + if(reagents.has_reagent("ammonia", 1)) + adjustHealth(round(reagents.get_reagent_amount("ammonia") * 0.5)) + adjustNutri(round(reagents.get_reagent_amount("ammonia") * 1)) if(myseed) - myseed.adjust_yield(round(S.get_reagent_amount("ammonia") * 0.01)) + myseed.adjust_yield(round(reagents.get_reagent_amount("ammonia") * 0.01)) // Saltpetre is used for gardening IRL, to simplify highly, it speeds up growth and strengthens plants - if(S.has_reagent("saltpetre", 1)) - var/salt = S.get_reagent_amount("saltpetre") + if(reagents.has_reagent("saltpetre", 1)) + var/salt = reagents.get_reagent_amount("saltpetre") adjustHealth(round(salt * 0.25)) if(myseed) myseed.adjust_production(-round(salt/100)-prob(salt%100)) myseed.adjust_potency(round(salt*0.50)) // Ash is also used IRL in gardening, as a fertilizer enhancer and weed killer - if(S.has_reagent("ash", 1)) - adjustHealth(round(S.get_reagent_amount("ash") * 0.25)) - adjustNutri(round(S.get_reagent_amount("ash") * 0.5)) + if(reagents.has_reagent("ash", 1)) + adjustHealth(round(reagents.get_reagent_amount("ash") * 0.25)) + adjustNutri(round(reagents.get_reagent_amount("ash") * 0.5)) adjustWeeds(-1) // This is more bad ass, and pests get hurt by the corrosive nature of it, not the plant. - if(S.has_reagent("diethylamine", 1)) - adjustHealth(round(S.get_reagent_amount("diethylamine") * 1)) - adjustNutri(round(S.get_reagent_amount("diethylamine") * 2)) + if(reagents.has_reagent("diethylamine", 1)) + adjustHealth(round(reagents.get_reagent_amount("diethylamine") * 1)) + adjustNutri(round(reagents.get_reagent_amount("diethylamine") * 2)) if(myseed) - myseed.adjust_yield(round(S.get_reagent_amount("diethylamine") * 0.02)) + myseed.adjust_yield(round(reagents.get_reagent_amount("diethylamine") * 0.02)) adjustPests(-rand(1,2)) // Compost, effectively - if(S.has_reagent("nutriment", 1)) - adjustHealth(round(S.get_reagent_amount("nutriment") * 0.5)) - adjustNutri(round(S.get_reagent_amount("nutriment") * 1)) + if(reagents.has_reagent("nutriment", 1)) + adjustHealth(round(reagents.get_reagent_amount("nutriment") * 0.5)) + adjustNutri(round(reagents.get_reagent_amount("nutriment") * 1)) - if(S.has_reagent("plantmatter", 1)) - adjustHealth(round(S.get_reagent_amount("plantmatter") * 0.5)) - adjustNutri(round(S.get_reagent_amount("plantmatter") * 1)) + if(reagents.has_reagent("plantmatter", 1)) + adjustHealth(round(reagents.get_reagent_amount("plantmatter") * 0.5)) + adjustNutri(round(reagents.get_reagent_amount("plantmatter") * 1)) // Compost for EVERYTHING - if(S.has_reagent("virusfood", 1)) - adjustNutri(round(S.get_reagent_amount("virusfood") * 0.5)) - adjustHealth(-round(S.get_reagent_amount("virusfood") * 0.5)) + if(reagents.has_reagent("virusfood", 1)) + adjustNutri(round(reagents.get_reagent_amount("virusfood") * 0.5)) + adjustHealth(-round(reagents.get_reagent_amount("virusfood") * 0.5)) // FEED ME - if(S.has_reagent("blood", 1)) - adjustNutri(round(S.get_reagent_amount("blood") * 1)) + if(reagents.has_reagent("blood", 1)) + adjustNutri(round(reagents.get_reagent_amount("blood") * 1)) adjustPests(rand(2,4)) // FEED ME SEYMOUR - if(S.has_reagent("lazarus_reagent", 1)) + if(reagents.has_reagent("lazarus_reagent", 1)) spawnplant() // The best stuff there is. For testing/debugging. - if(S.has_reagent("adminordrazine", 1)) - adjustWater(round(S.get_reagent_amount("adminordrazine") * 1)) - adjustHealth(round(S.get_reagent_amount("adminordrazine") * 1)) - adjustNutri(round(S.get_reagent_amount("adminordrazine") * 1)) + if(reagents.has_reagent("adminordrazine", 1)) + adjustWater(round(reagents.get_reagent_amount("adminordrazine") * 1)) + adjustHealth(round(reagents.get_reagent_amount("adminordrazine") * 1)) + adjustNutri(round(reagents.get_reagent_amount("adminordrazine") * 1)) adjustPests(-rand(1,5)) adjustWeeds(-rand(1,5)) - if(S.has_reagent("adminordrazine", 5)) + if(reagents.has_reagent("adminordrazine", 5)) switch(rand(100)) if(66 to 100) mutatespecie() @@ -726,6 +726,7 @@ mutatepest(user) else to_chat(user, "<span class='warning'>Nothing happens...</span>") + reagents.clear_reagents() /obj/machinery/hydroponics/attackby(obj/item/O, mob/user, params) //Called when mob user "attacks" it with object O @@ -975,7 +976,8 @@ return ..() /////////////////////////////////////////////////////////////////////////////// -/obj/machinery/hydroponics/soil //Not actually hydroponics at all! Honk! +/// Not actually hydroponics at all! Honk! +/obj/machinery/hydroponics/soil name = "soil" icon = 'icons/obj/hydroponics/equipment.dmi' icon_state = "soil" @@ -999,7 +1001,7 @@ /obj/machinery/hydroponics/proc/add_compost(obj/item/reagent_source, mob/user, transfer_amount, visi_msg, irrigate = FALSE) var/list/trays = list(src)//makes the list just this in cases of syringes and compost etc - if(irrigate && transfer_amount > 30 && reagent_source.reagents.total_volume >= 30 && using_irrigation) + if(irrigate && (transfer_amount > 30) && (reagent_source.reagents.total_volume >= 30) && using_irrigation) trays = FindConnected() if(length(trays) > 1) @@ -1009,14 +1011,13 @@ visible_message("<span class='notice'>[visi_msg].</span>") var/split = round(transfer_amount / length(trays)) - for(var/obj/machinery/hydroponics/H in trays)//cause I don't want to feel like im juggling 15 tamagotchis and I can get to my real work of ripping flooring apart in hopes of validating my life choices of becoming a space-gardener - reagent_source.reagents.trans_to(H.reagents, split) - if(isfood(reagent_source) || ispill(reagent_source) || istype(reagent_source, /obj/item/grown)) - qdel(reagent_source) - - H.applyChemicals(reagents, user) - reagents.clear_reagents() + for(var/obj/machinery/hydroponics/H as anything in trays)//cause I don't want to feel like im juggling 15 tamagotchis and I can get to my real work of ripping flooring apart in hopes of validating my life choices of becoming a space-gardener + reagent_source.reagents.trans_to(H, split) + H.apply_chemicals(user) H.update_state() + if(isfood(reagent_source) || ispill(reagent_source) || istype(reagent_source, /obj/item/grown)) + qdel(reagent_source) + if(reagent_source) // If the source wasn't composted and destroyed reagent_source.update_icon() diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index ccf886c8b66e8..95b53c40d64cb 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -450,7 +450,8 @@ S.set_up(G.reagents, splat_location) S.start(smoke_amount) -/datum/plant_gene/trait/fire_resistance // Lavaland +/// Lavaland +/datum/plant_gene/trait/fire_resistance name = "Fire Resistance" /datum/plant_gene/trait/fire_resistance/apply_vars(obj/item/seeds/S) @@ -461,7 +462,8 @@ if(!(G.resistance_flags & FIRE_PROOF)) G.resistance_flags |= FIRE_PROOF -/datum/plant_gene/trait/plant_type // Parent type +/// Parent type +/datum/plant_gene/trait/plant_type name = "you shouldn't see this" trait_id = "plant_type" diff --git a/code/modules/library/library_datums.dm b/code/modules/library/library_datums.dm index 8d191870b2664..ccc1b34192496 100644 --- a/code/modules/library/library_datums.dm +++ b/code/modules/library/library_datums.dm @@ -34,7 +34,8 @@ * Used for tracking books that have been checked out from the library by players. Created and stored upon a book being * checked out and deleted upon the book being succesfully checked back in or the librarian marking a book as "lost" */ -/datum/borrowbook // Datum used to keep track of who has borrowed what when and for how long. +/// Datum used to keep track of who has borrowed what when and for how long. +/datum/borrowbook var/bookname var/libraryid var/patron_name @@ -48,7 +49,8 @@ * are designed to only temporarily hold book data * checked out and deleted upon the book being succesfully checked back in or the librarian marking a book as "lost" */ -/datum/cachedbook // Datum used to cache the SQL DB books locally in order to achieve a performance gain. +/// Datum used to cache the SQL DB books locally in order to achieve a performance gain. +/datum/cachedbook var/id var/libraryid var/title diff --git a/code/modules/mapping/mapping_helpers.dm b/code/modules/mapping/mapping_helpers.dm index 0cf585940ed25..a52cc4d9f462a 100644 --- a/code/modules/mapping/mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers.dm @@ -1,4 +1,5 @@ -/obj/effect/baseturf_helper //Set the baseturfs of every turf in the /area/ it is placed. +/// Set the baseturfs of every turf in the /area/ it is placed. +/obj/effect/baseturf_helper name = "baseturf editor" icon = 'icons/effects/mapping_helpers.dmi' icon_state = "" @@ -65,6 +66,7 @@ /obj/effect/mapping_helpers/no_lava icon_state = "no_lava" + layer = ON_EDGED_TURF_LAYER /obj/effect/mapping_helpers/no_lava/New() var/turf/T = get_turf(src) diff --git a/code/modules/maptext_alerts/location_blurbs.dm b/code/modules/maptext_alerts/location_blurbs.dm index b50b6b1013080..050ca0a42eab9 100644 --- a/code/modules/maptext_alerts/location_blurbs.dm +++ b/code/modules/maptext_alerts/location_blurbs.dm @@ -1,4 +1,4 @@ -/obj/screen/text/blurb +/atom/movable/screen/text/blurb maptext_height = 64 maptext_width = 512 screen_loc = "LEFT+1,BOTTOM+2" @@ -33,7 +33,7 @@ var/background_a = 0 -/obj/screen/text/blurb/proc/show_to(list/client/viewers) +/atom/movable/screen/text/blurb/proc/show_to(list/client/viewers) if(!blurb_text || !viewers) return @@ -52,12 +52,12 @@ print_text() if(hold_for) - addtimer(CALLBACK(src, TYPE_PROC_REF(/obj/screen/text/blurb, hide_from), viewers), hold_for) + addtimer(CALLBACK(src, TYPE_PROC_REF(/atom/movable/screen/text/blurb, hide_from), viewers), hold_for) else hide_from(viewers) -/obj/screen/text/blurb/proc/get_text_style() +/atom/movable/screen/text/blurb/proc/get_text_style() PRIVATE_PROC(TRUE) return {"\ @@ -69,25 +69,25 @@ color: [text_color]; "} -/obj/screen/text/blurb/proc/hide_from(list/client/viewers) +/atom/movable/screen/text/blurb/proc/hide_from(list/client/viewers) PRIVATE_PROC(TRUE) fade() - addtimer(CALLBACK(src, TYPE_PROC_REF(/obj/screen/text/blurb, remove_from_viewers), viewers), fade_animation_duration) + addtimer(CALLBACK(src, TYPE_PROC_REF(/atom/movable/screen/text/blurb, remove_from_viewers), viewers), fade_animation_duration) -/obj/screen/text/blurb/proc/appear() +/atom/movable/screen/text/blurb/proc/appear() PRIVATE_PROC(TRUE) animate(src, alpha = 255, time = appear_animation_duration) -/obj/screen/text/blurb/proc/fade() +/atom/movable/screen/text/blurb/proc/fade() PRIVATE_PROC(TRUE) animate(src, alpha = 0, time = fade_animation_duration) -/obj/screen/text/blurb/proc/print_text() +/atom/movable/screen/text/blurb/proc/print_text() PRIVATE_PROC(TRUE) var/text_style = get_text_style() @@ -97,10 +97,10 @@ maptext += get_formatted_text_segment(text_style, segment_start, segment_end) sleep(interval) -/obj/screen/text/blurb/proc/get_formatted_text_segment(style, segment_start, segment_end) +/atom/movable/screen/text/blurb/proc/get_formatted_text_segment(style, segment_start, segment_end) return "<span style=\"[style]\">[copytext_char(blurb_text, segment_start, segment_end)]</span>" -/obj/screen/text/blurb/proc/remove_from_viewers(list/client/viewers) +/atom/movable/screen/text/blurb/proc/remove_from_viewers(list/client/viewers) PRIVATE_PROC(TRUE) for(var/client/viewer as anything in viewers) @@ -116,7 +116,7 @@ return SEND_SOUND(show_blurb_to, sound('sound/machines/typewriter.ogg')) - var/obj/screen/text/blurb/location_blurb = new() + var/atom/movable/screen/text/blurb/location_blurb = new() if(antag_check.antag_datums) for(var/datum/antagonist/role) if(role.custom_blurb()) @@ -146,7 +146,7 @@ if(!length(GLOB.clients)) return - var/obj/screen/text/blurb/server_restart_blurb = new() + var/atom/movable/screen/text/blurb/server_restart_blurb = new() server_restart_blurb.text_color = COLOR_RED server_restart_blurb.blurb_text = "Round is restarting...\n[reason]" server_restart_blurb.hold_for = 90 SECONDS diff --git a/code/modules/maptext_alerts/text_blurbs.dm b/code/modules/maptext_alerts/text_blurbs.dm index 5177e2e129abb..285d39693c764 100644 --- a/code/modules/maptext_alerts/text_blurbs.dm +++ b/code/modules/maptext_alerts/text_blurbs.dm @@ -45,7 +45,7 @@ html_tags += list(html_tag, html_tag + 1, html_tag + 2, html_tag + 3) html_tag = findtext(message, regex("</.>"), html_tag + 3) - var/obj/screen/text/T = new() + var/atom/movable/screen/text/T = new() T.screen_loc = screen_position switch(text_alignment) if("center") diff --git a/code/modules/martial_arts/krav_maga.dm b/code/modules/martial_arts/krav_maga.dm index 7b018bbca566f..0552c9eb101d2 100644 --- a/code/modules/martial_arts/krav_maga.dm +++ b/code/modules/martial_arts/krav_maga.dm @@ -171,7 +171,8 @@ . = ..() RegisterSignal(src, COMSIG_PARENT_QDELETING, PROC_REF(alert_admins_on_destroy)) -/obj/item/clothing/gloves/color/black/krav_maga/combat // for nukies +/// for nukies +/obj/item/clothing/gloves/color/black/krav_maga/combat name = "Combat gloves plus" desc = "These combat gloves have been upgraded with nanochips that teach the wearer Krav Maga." icon_state = "combat" diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index 17d04d3232ffd..e5fa16692b222 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -463,25 +463,25 @@ /obj/item/bostaff/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) if(HAS_TRAIT(src, TRAIT_WIELDED)) return ..() - return 0 + return FALSE -/obj/screen/combo +/atom/movable/screen/combo icon_state = "" mouse_opacity = MOUSE_OPACITY_TRANSPARENT screen_loc = ui_combo layer = ABOVE_HUD_LAYER var/streak -/obj/screen/combo/proc/clear_streak() +/atom/movable/screen/combo/proc/clear_streak() cut_overlays() streak = "" icon_state = "" -/obj/screen/combo/update_icon(updates, _streak) +/atom/movable/screen/combo/update_icon(updates, _streak) streak = _streak return ..() -/obj/screen/combo/update_overlays() +/atom/movable/screen/combo/update_overlays() . = list() for(var/i in 1 to length(streak)) var/intent_text = copytext(streak, i, i + 1) @@ -489,7 +489,7 @@ intent_icon.pixel_x = 16 * (i - 1) - 8 * length(streak) . += intent_icon -/obj/screen/combo/update_icon_state() +/atom/movable/screen/combo/update_icon_state() icon_state = "" if(!streak) return diff --git a/code/modules/mining/equipment/marker_beacons.dm b/code/modules/mining/equipment/marker_beacons.dm index 57f32f4dae8be..1d353d1309c8b 100644 --- a/code/modules/mining/equipment/marker_beacons.dm +++ b/code/modules/mining/equipment/marker_beacons.dm @@ -27,10 +27,12 @@ GLOBAL_LIST_INIT(marker_beacon_colors, list( max_amount = 100 var/picked_color = "random" -/obj/item/stack/marker_beacon/ten //miners start with 10 of these +/// miners start with 10 of these +/obj/item/stack/marker_beacon/ten amount = 10 -/obj/item/stack/marker_beacon/thirty //and they're bought in stacks of 1, 10, or 30 +/// and they're bought in stacks of 1, 10, or 30 +/obj/item/stack/marker_beacon/thirty amount = 30 /obj/item/stack/marker_beacon/Initialize(mapload) diff --git a/code/modules/mining/equipment/mining_tools.dm b/code/modules/mining/equipment/mining_tools.dm index 6ee74a27e4323..44bc6c90725ca 100644 --- a/code/modules/mining/equipment/mining_tools.dm +++ b/code/modules/mining/equipment/mining_tools.dm @@ -105,7 +105,8 @@ origin_tech = "materials=6;powerstorage=4;engineering=4" toolspeed = 0.2 -/obj/item/pickaxe/drill/cyborg/diamond //This is the BORG version! +/// This is the BORG version! +/obj/item/pickaxe/drill/cyborg/diamond name = "diamond-tipped cyborg mining drill" //To inherit the NODROP flag, and easier to change borg specific drill mechanics. icon_state = "diamonddrill" toolspeed = 0.2 diff --git a/code/modules/mining/equipment/wormhole_jaunter.dm b/code/modules/mining/equipment/wormhole_jaunter.dm index 903be3aa68bf7..3440c1be56e34 100644 --- a/code/modules/mining/equipment/wormhole_jaunter.dm +++ b/code/modules/mining/equipment/wormhole_jaunter.dm @@ -168,7 +168,8 @@ /obj/effect/portal/advanced/getaway one_use = TRUE -/obj/effect/temp_visual/getaway_flare // Because the original contractor flare is not a temp visual, for some reason. +/// Because the original contractor flare is not a temp visual, for some reason. +/obj/effect/temp_visual/getaway_flare name = "contractor extraction flare" icon = 'icons/obj/lighting.dmi' icon_state = "flare-contractor-on" diff --git a/code/modules/mining/lavaland/ash_flora.dm b/code/modules/mining/lavaland/ash_flora.dm index 668442ccf5fa5..c8f0a1e584ed7 100644 --- a/code/modules/mining/lavaland/ash_flora.dm +++ b/code/modules/mining/lavaland/ash_flora.dm @@ -75,7 +75,8 @@ else ..() -/obj/structure/flora/ash/tall_shroom //exists only so that the spawning check doesn't allow these spawning near other things +/// exists only so that the spawning check doesn't allow these spawning near other things +/obj/structure/flora/ash/tall_shroom regrowth_time_low = 4200 /obj/structure/flora/ash/leaf_shroom @@ -197,7 +198,8 @@ pixel_x = rand(-4, 4) pixel_y = rand(-4, 4) -/obj/item/food/snacks/grown/ash_flora/shavings //for actual crafting +/// for actual crafting +/obj/item/food/snacks/grown/ash_flora/shavings /obj/item/food/snacks/grown/ash_flora/mushroom_leaf name = "mushroom leaf" diff --git a/code/modules/mining/lavaland/loot/ashdragon_loot.dm b/code/modules/mining/lavaland/loot/ashdragon_loot.dm index 56cc0fbd32abb..5f3cc8f298ddb 100644 --- a/code/modules/mining/lavaland/loot/ashdragon_loot.dm +++ b/code/modules/mining/lavaland/loot/ashdragon_loot.dm @@ -39,19 +39,25 @@ attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "rended") flags_2 = RANDOM_BLOCKER_2 var/summon_cooldown = 0 - var/list/mob/dead/observer/spirits + /// List of wisps we have active, for cleanup purposes in case a ghost gets randomly deleted. + var/list/obj/effect/wisp/ghost/orbs + /// List of ghosts currently orbiting us. + var/list/mob/dead/observer/ghosts /obj/item/melee/ghost_sword/New() ..() - spirits = list() + ghosts = list() + orbs = list() register_signals(src) RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(on_move)) GLOB.poi_list |= src /obj/item/melee/ghost_sword/Destroy() - for(var/mob/dead/observer/G in spirits) + for(var/mob/dead/observer/G in ghosts) remove_ghost(G) - spirits.Cut() + // if there are any orbs left (possibly detached from ghosts) ensure they don't stick around + for(var/spirit as anything in orbs) + qdel(spirit) remove_signals(src) UnregisterSignal(src, COMSIG_MOVABLE_MOVED) GLOB.poi_list -= src @@ -59,8 +65,8 @@ /obj/item/melee/ghost_sword/examine() . = ..() - if(length(spirits)) - . += "It appears to pulse with the power of [length(spirits)] vengeful spirits!" + if(length(orbs)) + . += "It appears to pulse with the power of [length(orbs)] vengeful spirit\s!" else . += "It glows weakly." @@ -83,7 +89,7 @@ /obj/item/melee/ghost_sword/proc/add_ghost(atom/movable/orbited, atom/orbiter) SIGNAL_HANDLER // COMSIG_ATOM_ORBIT_BEGIN var/mob/dead/observer/ghost = orbiter - if(!istype(ghost) || !isobserver(orbiter) || (ghost in spirits)) + if(!istype(ghost) || !isobserver(orbiter) || (ghost in ghosts)) return if(!ismob(loc)) @@ -91,23 +97,34 @@ // they'll get added to spirits (and turned visible) when the sword enters a mob's hand then return - register_signals(ghost) // Pull in any ghosts that may be orbiting other ghosts TODO THIS MIGHT BE THE FUCKIN PROBLEM + register_signals(ghost) // Pull in any ghosts that may be orbiting other ghosts - spirits |= ghost - ghost.invisibility = 0 + + var/obj/effect/wisp/ghost/orb = new(src) + orb.color = ghost.get_runechat_color() + orb.alpha = 128 + orb.orbit(src, clockwise = FALSE) + ghosts[ghost] = orb + orbs.Add(orb) + + // if a ghost gets deleted, the orb cleans itself up + // which then passes the torch to us to clean ourselves up + RegisterSignal(orb, COMSIG_PARENT_QDELETING, PROC_REF(on_orb_qdel)) /obj/item/melee/ghost_sword/proc/remove_ghost(atom/movable/orbited, atom/orbiter) SIGNAL_HANDLER // COMSIG_ATOM_ORBIT_STOP var/mob/dead/observer/ghost = orbiter - if(!istype(ghost) || !isobserver(ghost) || !(ghost in spirits)) + if(!istype(ghost) || !(ghost in ghosts)) return remove_signals(ghost) - spirits -= ghost - ghost.invisibility = initial(ghost.invisibility) + var/obj/effect/wisp/ghost/attached_orb = ghosts[ghost] + attached_orb.stop_orbit() + qdel(attached_orb) + ghosts -= ghost /obj/item/melee/ghost_sword/proc/remove_signals(atom/A) UnregisterSignal(A, COMSIG_ATOM_ORBIT_STOP) @@ -126,7 +143,7 @@ if(ismob(old_loc)) remove_signals(old_loc) - for(var/mob/dead/observer/orbiter in spirits) + for(var/mob/dead/observer/orbiter in ghosts) remove_ghost(src, orbiter) if(ismob(loc)) @@ -135,20 +152,48 @@ for(var/mob/dead/observer/orbiter in get_orbiters_up_hierarchy(recursive = TRUE)) add_ghost(src, orbiter) +// clean up wisps +/obj/item/melee/ghost_sword/proc/on_orb_qdel(obj/effect/wisp/ghost/orb) + SIGNAL_HANDLER // COMSIG_PARENT_QDELETING + orbs -= orb + for(var/ghost in ghosts) + if(ghosts[ghost] == orb) + ghosts -= ghost + break + + /obj/item/melee/ghost_sword/attack(mob/living/target, mob/living/carbon/human/user) force = 0 - var/ghost_counter = length(spirits) + var/ghost_counter = length(orbs) force = clamp((ghost_counter * 4), 0, 75) - user.visible_message("<span class='danger'>[user] strikes with the force of [ghost_counter] vengeful spirits!</span>") + user.visible_message("<span class='danger'>[user] strikes with the force of [ghost_counter] vengeful spirit\s!</span>") ..() /obj/item/melee/ghost_sword/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) - var/ghost_counter = length(spirits) + var/ghost_counter = length(orbs) final_block_chance += clamp((ghost_counter * 5), 0, 75) - owner.visible_message("<span class='danger'>[owner] is protected by a ring of [ghost_counter] ghosts!</span>") + owner.visible_message("<span class='danger'>[owner] is protected by a ring of [ghost_counter] ghost\s!</span>") return ..() + +/obj/effect/wisp/ghost + name = "mischievous wisp" + desc = "A wisp that seems to want to get up to shenanigans. It often seems disappointed, for some reason." + light_range = 0 + mouse_opacity = MOUSE_OPACITY_TRANSPARENT + +/obj/effect/wisp/ghost/Initialize(mapload, mob/dead/observer/ghost) + . = ..() + RegisterSignal(ghost, COMSIG_PARENT_QDELETING, PROC_REF(on_ghost_qdel)) + +/obj/effect/wisp/ghost/proc/on_ghost_qdel(mob/dead/observer/ghost) + SIGNAL_HANDLER // COMSIG_PARENT_QDELETING + stop_orbit() + // we only live as long as our attached ghost + qdel(src) + + // Blood /obj/item/dragons_blood diff --git a/code/modules/mining/lavaland/loot/colossus_loot.dm b/code/modules/mining/lavaland/loot/colossus_loot.dm index 38d4653f196c2..c0aa03e2d8223 100644 --- a/code/modules/mining/lavaland/loot/colossus_loot.dm +++ b/code/modules/mining/lavaland/loot/colossus_loot.dm @@ -85,7 +85,8 @@ new random_crystal(loc) return INITIALIZE_HINT_QDEL -/obj/machinery/anomalous_crystal/theme_warp //Warps the area you're in to look like a new one +/// Warps the area you're in to look like a new one +/obj/machinery/anomalous_crystal/theme_warp activation_method = "touch" cooldown_add = 200 var/terrain_theme = "winter" @@ -159,7 +160,8 @@ continue affected_targets += A -/obj/machinery/anomalous_crystal/emitter //Generates a projectile when interacted with +/// Generates a projectile when interacted with +/obj/machinery/anomalous_crystal/emitter activation_method = "touch" cooldown_add = 50 var/generated_projectile = /obj/item/projectile/beam/emitter @@ -188,7 +190,8 @@ P.xo = 0 P.fire() -/obj/machinery/anomalous_crystal/dark_reprise //Revives anyone nearby, but turns them into shadowpeople and renders them uncloneable, so the crystal is your only hope of getting up again if you go down. +/// Revives anyone nearby, but turns them into shadowpeople and renders them uncloneable, so the crystal is your only hope of getting up again if you go down. +/obj/machinery/anomalous_crystal/dark_reprise activation_method = "touch" activation_sound = 'sound/hallucinations/growl1.ogg' @@ -206,7 +209,8 @@ ADD_TRAIT(H, TRAIT_BADDNA, MAGIC_TRAIT) //Free revives, but significantly limits your options for reviving except via the crystal H.grab_ghost(force = TRUE) -/obj/machinery/anomalous_crystal/helpers //Lets ghost spawn as helpful creatures that can only heal people slightly. Incredibly fragile and they can't converse with humans +/// Lets ghost spawn as helpful creatures that can only heal people slightly. Incredibly fragile and they can't converse with humans +/obj/machinery/anomalous_crystal/helpers activation_method = "touch" var/ready_to_deploy = 0 @@ -299,7 +303,8 @@ /mob/living/simple_animal/hostile/lightgeist/ghost() qdel(src) -/obj/machinery/anomalous_crystal/possessor //Allows you to bodyjack small animals, then exit them at your leisure, but you can only do this once per activation. Because they blow up. Also, if the bodyjacked animal dies, SO DO YOU. +/// Allows you to bodyjack small animals, then exit them at your leisure, but you can only do this once per activation. Because they blow up. Also, if the bodyjacked animal dies, SO DO YOU. +/obj/machinery/anomalous_crystal/possessor activation_method = "touch" /obj/machinery/anomalous_crystal/possessor/ActivationReaction(mob/user, method) diff --git a/code/modules/mining/lavaland/loot/tendril_loot.dm b/code/modules/mining/lavaland/loot/tendril_loot.dm index 5c643f07398cb..fb565ec9893ed 100644 --- a/code/modules/mining/lavaland/loot/tendril_loot.dm +++ b/code/modules/mining/lavaland/loot/tendril_loot.dm @@ -66,9 +66,9 @@ return if(!M.restrained() && !M.stat) - playsound(loc, "rustle", 50, 1, -5) + playsound(loc, "rustle", 50, TRUE, -5) - if(istype(over_object, /obj/screen/inventory/hand)) + if(istype(over_object, /atom/movable/screen/inventory/hand)) if(!M.unEquip(src)) return M.put_in_active_hand(src) diff --git a/code/modules/mob/dead/observer/observer_base.dm b/code/modules/mob/dead/observer/observer_base.dm index e832baa543ee3..07efb712c6f84 100644 --- a/code/modules/mob/dead/observer/observer_base.dm +++ b/code/modules/mob/dead/observer/observer_base.dm @@ -35,6 +35,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) ///toggle for ghost gas analyzer var/gas_analyzer = FALSE var/datum/orbit_menu/orbit_menu + /// The "color" their runechat would have had + var/alive_runechat_color = "#FFFFFF" /mob/dead/observer/New(mob/body=null, flags=1) set_invisibility(GLOB.observer_default_invisibility) @@ -59,6 +61,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) if(ismob(body)) T = get_turf(body) //Where is the body located? attack_log_old = body.attack_log_old //preserve our attack logs by copying them to our ghost + alive_runechat_color = body.get_runechat_color() var/mutable_appearance/MA = copy_appearance(body) if(body.mind && body.mind.name) @@ -311,7 +314,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(message) to_chat(src, "<span class='ghostalert'>[message]</span>") if(source) - var/obj/screen/alert/A = throw_alert("\ref[source]_notify_cloning", /obj/screen/alert/notify_cloning) + var/atom/movable/screen/alert/A = throw_alert("\ref[source]_notify_cloning", /atom/movable/screen/alert/notify_cloning) if(A) if(client && client.prefs && client.prefs.UI_style) A.icon = ui_style2icon(client.prefs.UI_style) @@ -846,3 +849,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return allow_roundstart_observers return FALSE + +/mob/dead/observer/get_runechat_color() + return alive_runechat_color diff --git a/code/modules/mob/living/brain/MMI.dm b/code/modules/mob/living/brain/MMI.dm index e48f38e341e12..817b30b0cd96f 100644 --- a/code/modules/mob/living/brain/MMI.dm +++ b/code/modules/mob/living/brain/MMI.dm @@ -200,7 +200,7 @@ mmi = null return ..() -/datum/action/generic/configure_mmi_radio/ApplyIcon(obj/screen/movable/action_button/current_button) +/datum/action/generic/configure_mmi_radio/ApplyIcon(atom/movable/screen/movable/action_button/current_button) icon_icon = mmi.icon button_icon_state = mmi.icon_state ..() diff --git a/code/modules/mob/living/brain/brain_emote.dm b/code/modules/mob/living/brain/brain_emote.dm index 13fcf0c4104ee..861e1706a59b4 100644 --- a/code/modules/mob/living/brain/brain_emote.dm +++ b/code/modules/mob/living/brain/brain_emote.dm @@ -25,6 +25,10 @@ if(!(B.container && istype(B.container, /obj/item/mmi))) // No MMI, no emotes return FALSE + if(istype(B.container, /obj/item/mmi/robotic_brain)) //Robobrains can't be silenced and still emote + var/obj/item/mmi/robotic_brain/robobrain = B.container + return !robobrain.silenced + // So, brains can't really see their own emotes so we'll probably just want to send an extra message /datum/emote/living/brain/alarm diff --git a/code/modules/mob/living/carbon/alien/alien_base.dm b/code/modules/mob/living/carbon/alien/alien_base.dm index 97559889b956d..c4a3b3ab08c86 100644 --- a/code/modules/mob/living/carbon/alien/alien_base.dm +++ b/code/modules/mob/living/carbon/alien/alien_base.dm @@ -91,7 +91,7 @@ // +/- 50 degrees from 310.15K is the 'safe' zone, where no damage is dealt. if(bodytemperature > 360.15) //Body temperature is too hot. - throw_alert("alien_fire", /obj/screen/alert/alien_fire) + throw_alert("alien_fire", /atom/movable/screen/alert/alien_fire) switch(bodytemperature) if(360 to 400) apply_damage(HEAT_DAMAGE_LEVEL_1, BURN) diff --git a/code/modules/mob/living/carbon/alien/alien_life.dm b/code/modules/mob/living/carbon/alien/alien_life.dm index 4c13daa7af000..962971a4b21ef 100644 --- a/code/modules/mob/living/carbon/alien/alien_life.dm +++ b/code/modules/mob/living/carbon/alien/alien_life.dm @@ -15,7 +15,7 @@ if(Toxins_pp > tox_detect_threshold) // Detect toxins in air add_plasma(breath.toxins * 250) - throw_alert("alien_tox", /obj/screen/alert/alien_tox) + throw_alert("alien_tox", /atom/movable/screen/alert/alien_tox) toxins_used = breath.toxins diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm index 70f37d83d213b..f95bedded46ec 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid_update_icons.dm @@ -72,7 +72,7 @@ /mob/living/carbon/alien/humanoid/update_inv_wear_suit() if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] inv.update_icon() if(wear_suit) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 6172ff2d94418..fcec9a24c58a1 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -366,7 +366,7 @@ if((E && (E.status & ORGAN_DEAD)) || !.) return FALSE -/mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /obj/screen/fullscreen/flash) +/mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/flash) //Parent proc checks if a mob can_be_flashed() . = ..() @@ -663,7 +663,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven return /mob/living/carbon/throw_item(atom/target) - if(!target || !isturf(loc) || istype(target, /obj/screen)) + if(!target || !isturf(loc) || is_screen_atom(target)) throw_mode_off() return @@ -750,7 +750,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven clear_alert("legcuffed") if(!legcuffed) return - throw_alert("legcuffed", /obj/screen/alert/restrained/legcuffed, new_master = legcuffed) + throw_alert("legcuffed", /atom/movable/screen/alert/restrained/legcuffed, new_master = legcuffed) if(m_intent != MOVE_INTENT_WALK) m_intent = MOVE_INTENT_WALK if(hud_used?.move_intent) @@ -1057,7 +1057,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven drop_r_hand() drop_l_hand() stop_pulling() - throw_alert("handcuffed", /obj/screen/alert/restrained/handcuffed, new_master = handcuffed) + throw_alert("handcuffed", /atom/movable/screen/alert/restrained/handcuffed, new_master = handcuffed) ADD_TRAIT(src, TRAIT_RESTRAINED, "handcuffed") else REMOVE_TRAIT(src, TRAIT_RESTRAINED, "handcuffed") @@ -1280,9 +1280,9 @@ so that different stomachs can handle things in different ways VB*/ /mob/living/carbon/proc/update_tint() var/tinttotal = get_total_tint() if(tinttotal >= TINT_BLIND) - overlay_fullscreen("tint", /obj/screen/fullscreen/blind) + overlay_fullscreen("tint", /atom/movable/screen/fullscreen/blind) else if(tinttotal >= TINT_IMPAIR) - overlay_fullscreen("tint", /obj/screen/fullscreen/impaired, 2) + overlay_fullscreen("tint", /atom/movable/screen/fullscreen/impaired, 2) else clear_fullscreen("tint", 0) diff --git a/code/modules/mob/living/carbon/carbon_life.dm b/code/modules/mob/living/carbon/carbon_life.dm index c5d4088cdf97a..34df76d706730 100644 --- a/code/modules/mob/living/carbon/carbon_life.dm +++ b/code/modules/mob/living/carbon/carbon_life.dm @@ -112,7 +112,7 @@ //CRIT if(!breath || (breath.total_moles() == 0) || !lungs) adjustOxyLoss(1) - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) return FALSE var/safe_oxy_min = 16 @@ -138,7 +138,7 @@ oxygen_used = breath.oxygen*ratio else adjustOxyLoss(3) - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else //Enough oxygen adjustOxyLoss(-5) @@ -167,7 +167,7 @@ if(Toxins_partialpressure > safe_tox_max) var/ratio = (breath.toxins/safe_tox_max) * 10 adjustToxLoss(clamp(ratio, MIN_TOXIC_GAS_DAMAGE, MAX_TOXIC_GAS_DAMAGE)) - throw_alert("too_much_tox", /obj/screen/alert/too_much_tox) + throw_alert("too_much_tox", /atom/movable/screen/alert/too_much_tox) else clear_alert("too_much_tox") @@ -315,7 +315,7 @@ severity = 9 if(-INFINITY to -95) severity = 10 - overlay_fullscreen("crit", /obj/screen/fullscreen/crit, severity) + overlay_fullscreen("crit", /atom/movable/screen/fullscreen/crit, severity) else if(stat == CONSCIOUS) if(check_death_method()) clear_fullscreen("crit") @@ -336,7 +336,7 @@ severity = 6 if(45 to INFINITY) severity = 7 - overlay_fullscreen("oxy", /obj/screen/fullscreen/oxy, severity) + overlay_fullscreen("oxy", /atom/movable/screen/fullscreen/oxy, severity) else clear_fullscreen("oxy") @@ -352,7 +352,7 @@ if(45 to 70) severity = 4 if(70 to 85) severity = 5 if(85 to INFINITY) severity = 6 - overlay_fullscreen("brute", /obj/screen/fullscreen/brute, severity) + overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") diff --git a/code/modules/mob/living/carbon/carbon_update_icons.dm b/code/modules/mob/living/carbon/carbon_update_icons.dm index 5399f6cb059fb..f174dd227ca81 100644 --- a/code/modules/mob/living/carbon/carbon_update_icons.dm +++ b/code/modules/mob/living/carbon/carbon_update_icons.dm @@ -35,9 +35,9 @@ /mob/living/carbon/proc/update_hands_hud() if(!hud_used) return - var/obj/screen/inventory/R = hud_used.inv_slots[SLOT_HUD_RIGHT_HAND] + var/atom/movable/screen/inventory/R = hud_used.inv_slots[SLOT_HUD_RIGHT_HAND] R?.update_icon() - var/obj/screen/inventory/L = hud_used.inv_slots[SLOT_HUD_LEFT_HAND] + var/atom/movable/screen/inventory/L = hud_used.inv_slots[SLOT_HUD_LEFT_HAND] L?.update_icon() /mob/living/carbon/update_inv_r_hand(ignore_cuffs) @@ -64,7 +64,7 @@ /mob/living/carbon/update_inv_back() if(client && hud_used && hud_used.inv_slots[SLOT_HUD_BACK]) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BACK] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BACK] inv.update_icon() if(back) diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index c9ccef9f1c0fe..d1ecf83ad18a0 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -32,16 +32,16 @@ /datum/status_effect/offering_item id = "offering item" duration = 10 SECONDS - alert_type = /obj/screen/alert/status_effect/offering_item + alert_type = /atom/movable/screen/alert/status_effect/offering_item /datum/status_effect/offering_item/on_creation(mob/living/new_owner, receiver_UID, item_UID) . = ..() - var/obj/screen/alert/status_effect/offering_item/offer = linked_alert + var/atom/movable/screen/alert/status_effect/offering_item/offer = linked_alert offer.item_UID = item_UID offer.receiver_UID = receiver_UID -/obj/screen/alert/status_effect/offering_item +/atom/movable/screen/alert/status_effect/offering_item name = "Offering Item" desc = "You're currently offering an item someone. Make sure to keep the item in your hand so they can accept it! Click to stop offering your item." icon_state = "offering_item" @@ -50,7 +50,7 @@ /// UID of the item being given. var/item_UID -/obj/screen/alert/status_effect/offering_item/Click(location, control, params) +/atom/movable/screen/alert/status_effect/offering_item/Click(location, control, params) var/mob/living/carbon/receiver = locateUID(receiver_UID) var/mob/living/carbon/giver = attached_effect.owner var/obj/item/I = locateUID(item_UID) @@ -99,7 +99,7 @@ return // We use UID() here so that the receiver can have more then one give request at one time. // Otherwise, throwing a new "take item" alert would override any current one also named "take item". - receiver.throw_alert("take item [I.UID()]", /obj/screen/alert/take_item, alert_args = list(user, receiver, I)) + receiver.throw_alert("take item [I.UID()]", /atom/movable/screen/alert/take_item, alert_args = list(user, receiver, I)) item_offered = TRUE // TRUE so we don't give them the default chat message in Destroy. to_chat(user, "<span class='info'>You offer [I] to [receiver].</span>") qdel(src) @@ -111,7 +111,7 @@ * Alert which appears for a user when another player is attempting to offer them an item. * The user can click the alert to accept, or simply do nothing to not take the item. */ -/obj/screen/alert/take_item +/atom/movable/screen/alert/take_item name = "Take Item" desc = "someone wants to hand you an item!" icon_state = "template" @@ -124,7 +124,7 @@ var/item_UID -/obj/screen/alert/take_item/Initialize(mapload, mob/living/giver, mob/living/receiver, obj/item/I) +/atom/movable/screen/alert/take_item/Initialize(mapload, mob/living/giver, mob/living/receiver, obj/item/I) . = ..() desc = "[giver] wants to hand you \a [I]. Click here to accept it!" giver_UID = giver.UID() @@ -138,13 +138,13 @@ RegisterSignal(giver, list(COMSIG_PARENT_QDELETING, SIGNAL_ADDTRAIT(TRAIT_HANDS_BLOCKED), COMSIG_CARBON_SWAP_HANDS), PROC_REF(cancel_give)) -/obj/screen/alert/take_item/Destroy() +/atom/movable/screen/alert/take_item/Destroy() var/mob/living/giver = locateUID(giver_UID) giver.remove_status_effect(STATUS_EFFECT_OFFERING_ITEM) return ..() -/obj/screen/alert/take_item/proc/cancel_give() +/atom/movable/screen/alert/take_item/proc/cancel_give() SIGNAL_HANDLER var/mob/living/giver = locateUID(giver_UID) var/mob/living/receiver = locateUID(receiver_UID) @@ -153,7 +153,7 @@ receiver.clear_alert("take item [item_UID]") -/obj/screen/alert/take_item/Click(location, control, params) +/atom/movable/screen/alert/take_item/Click(location, control, params) var/mob/living/receiver = locateUID(receiver_UID) if(receiver.stat != CONSCIOUS) return @@ -178,7 +178,7 @@ receiver.clear_alert("take item [item_UID]") -/obj/screen/alert/take_item/do_timeout(mob/M, category) +/atom/movable/screen/alert/take_item/do_timeout(mob/M, category) var/mob/living/giver = locateUID(giver_UID) var/mob/living/receiver = locateUID(receiver_UID) // Make sure we're still nearby. We don't want to show a message if the giver not near us. diff --git a/code/modules/mob/living/carbon/human/body_accessories.dm b/code/modules/mob/living/carbon/human/body_accessories.dm index fbbfdba9a7cf8..26abf0326957a 100644 --- a/code/modules/mob/living/carbon/human/body_accessories.dm +++ b/code/modules/mob/living/carbon/human/body_accessories.dm @@ -83,19 +83,22 @@ GLOBAL_LIST_EMPTY(body_accessory_by_species) return ..() //Tajaran -/datum/body_accessory/tail/wingler_tail // Jay wingler fluff tail +/// Jay wingler fluff tail +/datum/body_accessory/tail/wingler_tail name = "Striped Tail" icon_state = "winglertail" animated_icon_state = "winglertail_a" allowed_species = list("Tajaran") -/datum/body_accessory/tail/tiny //Pretty ambiguous as to what species it belongs to, tail could've been injured or docked. +/// Pretty ambiguous as to what species it belongs to, tail could've been injured or docked. +/datum/body_accessory/tail/tiny name = "Tiny Tail" icon_state = "tiny" animated_icon_state = "tiny_a" allowed_species = list("Vulpkanin", "Tajaran") -/datum/body_accessory/tail/short //Same as above. +/// Same as above. +/datum/body_accessory/tail/short name = "Short Tail" icon_state = "short" animated_icon_state = "short_a" diff --git a/code/modules/mob/living/carbon/human/human_life.dm b/code/modules/mob/living/carbon/human/human_life.dm index f4583c0c60e6d..b796502eaa375 100644 --- a/code/modules/mob/living/carbon/human/human_life.dm +++ b/code/modules/mob/living/carbon/human/human_life.dm @@ -148,13 +148,13 @@ switch(S.breathid) if("o2") - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) if("tox") - throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) if("co2") // currently unused - throw_alert("not_enough_co2", /obj/screen/alert/not_enough_co2) + throw_alert("not_enough_co2", /atom/movable/screen/alert/not_enough_co2) if("n2") - throw_alert("not_enough_nitro", /obj/screen/alert/not_enough_nitro) + throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro) return FALSE // USED IN DEATHWHISPERS @@ -217,13 +217,13 @@ var/mult = dna.species.heatmod * physiology.heat_mod if(bodytemperature >= dna.species.heat_level_1 && bodytemperature <= dna.species.heat_level_2) - throw_alert("temp", /obj/screen/alert/hot, 1) + throw_alert("temp", /atom/movable/screen/alert/hot, 1) take_overall_damage(burn=mult*HEAT_DAMAGE_LEVEL_1, updating_health = TRUE, used_weapon = "High Body Temperature") if(bodytemperature > dna.species.heat_level_2 && bodytemperature <= dna.species.heat_level_3) - throw_alert("temp", /obj/screen/alert/hot, 2) + throw_alert("temp", /atom/movable/screen/alert/hot, 2) take_overall_damage(burn=mult*HEAT_DAMAGE_LEVEL_2, updating_health = TRUE, used_weapon = "High Body Temperature") if(bodytemperature > dna.species.heat_level_3 && bodytemperature < INFINITY) - throw_alert("temp", /obj/screen/alert/hot, 3) + throw_alert("temp", /atom/movable/screen/alert/hot, 3) if(on_fire) take_overall_damage(burn=mult*HEAT_DAMAGE_LEVEL_3, updating_health = TRUE, used_weapon = "Fire") else @@ -238,13 +238,13 @@ if(!istype(loc, /obj/machinery/atmospherics/unary/cryo_cell) && !(HAS_TRAIT(src, TRAIT_RESISTCOLD))) var/mult = dna.species.coldmod * physiology.cold_mod if(bodytemperature >= dna.species.cold_level_2 && bodytemperature <= dna.species.cold_level_1) - throw_alert("temp", /obj/screen/alert/cold, 1) + throw_alert("temp", /atom/movable/screen/alert/cold, 1) take_overall_damage(burn=mult*COLD_DAMAGE_LEVEL_1, updating_health = TRUE, used_weapon = "Low Body Temperature") if(bodytemperature >= dna.species.cold_level_3 && bodytemperature < dna.species.cold_level_2) - throw_alert("temp", /obj/screen/alert/cold, 2) + throw_alert("temp", /atom/movable/screen/alert/cold, 2) take_overall_damage(burn=mult*COLD_DAMAGE_LEVEL_2, updating_health = TRUE, used_weapon = "Low Body Temperature") if(bodytemperature > -INFINITY && bodytemperature < dna.species.cold_level_3) - throw_alert("temp", /obj/screen/alert/cold, 3) + throw_alert("temp", /atom/movable/screen/alert/cold, 3) take_overall_damage(burn=mult*COLD_DAMAGE_LEVEL_3, updating_health = TRUE, used_weapon = "Low Body Temperature") else clear_alert("temp") @@ -262,21 +262,21 @@ if(!HAS_TRAIT(src, TRAIT_RESISTHIGHPRESSURE)) var/pressure_damage = min(((adjusted_pressure / dna.species.hazard_high_pressure) - 1) * PRESSURE_DAMAGE_COEFFICIENT , MAX_HIGH_PRESSURE_DAMAGE) * physiology.pressure_mod take_overall_damage(brute=pressure_damage, updating_health = TRUE, used_weapon = "High Pressure") - throw_alert("pressure", /obj/screen/alert/highpressure, 2) + throw_alert("pressure", /atom/movable/screen/alert/highpressure, 2) else clear_alert("pressure") else if(adjusted_pressure >= dna.species.warning_high_pressure) - throw_alert("pressure", /obj/screen/alert/highpressure, 1) + throw_alert("pressure", /atom/movable/screen/alert/highpressure, 1) else if(adjusted_pressure >= dna.species.warning_low_pressure) clear_alert("pressure") else if(adjusted_pressure >= dna.species.hazard_low_pressure) - throw_alert("pressure", /obj/screen/alert/lowpressure, 1) + throw_alert("pressure", /atom/movable/screen/alert/lowpressure, 1) else if(HAS_TRAIT(src, TRAIT_RESISTLOWPRESSURE)) clear_alert("pressure") else take_overall_damage(brute = LOW_PRESSURE_DAMAGE * physiology.pressure_mod, updating_health = TRUE, used_weapon = "Low Pressure") - throw_alert("pressure", /obj/screen/alert/lowpressure, 2) + throw_alert("pressure", /atom/movable/screen/alert/lowpressure, 2) ///FIRE CODE @@ -685,7 +685,7 @@ new_hunger += "/[dna.species.hunger_type]" if(dna.species.hunger_level != new_hunger) dna.species.hunger_level = new_hunger - throw_alert("nutrition", "/obj/screen/alert/hunger/[new_hunger]", icon_override = dna.species.hunger_icon) + throw_alert("nutrition", "/atom/movable/screen/alert/hunger/[new_hunger]", icon_override = dna.species.hunger_icon) /mob/living/carbon/human/handle_random_events() // Puke if toxloss is too high diff --git a/code/modules/mob/living/carbon/human/human_update_icons.dm b/code/modules/mob/living/carbon/human/human_update_icons.dm index 355ddc11d8c01..e0d6c8ac37fcd 100644 --- a/code/modules/mob/living/carbon/human/human_update_icons.dm +++ b/code/modules/mob/living/carbon/human/human_update_icons.dm @@ -573,7 +573,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_w_uniform() remove_overlay(UNIFORM_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_JUMPSUIT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_JUMPSUIT] if(inv) inv.update_icon() @@ -650,7 +650,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_wear_id() remove_overlay(ID_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_ID] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_ID] if(inv) inv.update_icon() @@ -666,7 +666,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_gloves() remove_overlay(GLOVES_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLOVES] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLOVES] if(inv) inv.update_icon() @@ -706,7 +706,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) remove_overlay(OVER_MASK_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLASSES] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_GLASSES] if(inv) inv.update_icon() @@ -744,12 +744,12 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_ears() remove_overlay(EARS_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_LEFT_EAR] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_LEFT_EAR] if(inv) inv.update_icon() if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_RIGHT_EAR] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_RIGHT_EAR] if(inv) inv.update_icon() @@ -792,7 +792,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_shoes() remove_overlay(SHOES_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SHOES] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SHOES] if(inv) inv.update_icon() @@ -828,7 +828,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_s_store() remove_overlay(SUIT_STORE_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SUIT_STORE] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_SUIT_STORE] if(inv) inv.update_icon() @@ -850,7 +850,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(HEAD_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_HEAD] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_HEAD] if(inv) inv.update_icon() @@ -879,7 +879,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_belt() remove_overlay(BELT_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BELT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_BELT] if(inv) inv.update_icon() @@ -905,7 +905,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_wear_suit() remove_overlay(SUIT_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_OUTER_SUIT] if(inv) inv.update_icon() @@ -949,7 +949,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_pockets() if(client && hud_used) - var/obj/screen/inventory/inv + var/atom/movable/screen/inventory/inv inv = hud_used.inv_slots[SLOT_HUD_LEFT_STORE] if(inv) @@ -970,7 +970,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_wear_pda() if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_PDA] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_PDA] if(inv) inv.update_icon() @@ -982,7 +982,7 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) ..() remove_overlay(FACEMASK_LAYER) if(client && hud_used) - var/obj/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_MASK] + var/atom/movable/screen/inventory/inv = hud_used.inv_slots[SLOT_HUD_WEAR_MASK] if(inv) inv.update_icon() if(wear_mask && (istype(wear_mask, /obj/item/clothing/mask) || istype(wear_mask, /obj/item/clothing/accessory))) diff --git a/code/modules/mob/living/carbon/human/human_update_status.dm b/code/modules/mob/living/carbon/human/human_update_status.dm index 0c48d4b5fa1b4..855a3d39e747b 100644 --- a/code/modules/mob/living/carbon/human/human_update_status.dm +++ b/code/modules/mob/living/carbon/human/human_update_status.dm @@ -13,7 +13,7 @@ /mob/living/carbon/human/update_nearsighted_effects() var/obj/item/clothing/glasses/G = glasses if(HAS_TRAIT(src, TRAIT_NEARSIGHT) && (!istype(G) || !G.prescription)) - overlay_fullscreen("nearsighted", /obj/screen/fullscreen/impaired, 1) + overlay_fullscreen("nearsighted", /atom/movable/screen/fullscreen/impaired, 1) else clear_fullscreen("nearsighted") diff --git a/code/modules/mob/living/carbon/human/species/diona_species.dm b/code/modules/mob/living/carbon/human/species/diona_species.dm index 4381438edae08..e68698ad4493e 100644 --- a/code/modules/mob/living/carbon/human/species/diona_species.dm +++ b/code/modules/mob/living/carbon/human/species/diona_species.dm @@ -93,7 +93,7 @@ if(light_amount > 0) H.clear_alert("nolight") else - H.throw_alert("nolight", /obj/screen/alert/nolight) + H.throw_alert("nolight", /atom/movable/screen/alert/nolight) if(!is_vamp) H.adjust_nutrition(light_amount * 10) @@ -131,7 +131,8 @@ H.set_nutrition(min(H.nutrition + 30, NUTRITION_LEVEL_FULL)) return TRUE -/datum/species/diona/pod //Same name and everything; we want the same limitations on them; we just want their regeneration to kick in at all times and them to have special factions +/// Same name and everything; we want the same limitations on them; we just want their regeneration to kick in at all times and them to have special factions +/datum/species/diona/pod name = "Diomorph" //Seperate name needed else can't select diona period species_traits = list(NO_HAIR, NOT_SELECTABLE) pod = TRUE diff --git a/code/modules/mob/living/carbon/human/species/golem.dm b/code/modules/mob/living/carbon/human/species/golem.dm index 554048b09f317..ac5c1a5f8e412 100644 --- a/code/modules/mob/living/carbon/human/species/golem.dm +++ b/code/modules/mob/living/carbon/human/species/golem.dm @@ -313,7 +313,7 @@ if(light_amount > 0) H.clear_alert("nolight") else - H.throw_alert("nolight", /obj/screen/alert/nolight) + H.throw_alert("nolight", /atom/movable/screen/alert/nolight) H.adjust_nutrition(light_amount * 10) if(H.nutrition > NUTRITION_LEVEL_ALMOST_FULL) H.set_nutrition(NUTRITION_LEVEL_ALMOST_FULL) diff --git a/code/modules/mob/living/carbon/human/species/shadow.dm b/code/modules/mob/living/carbon/human/species/shadow.dm index 660c0f4dafbbc..24ff15da20122 100644 --- a/code/modules/mob/living/carbon/human/species/shadow.dm +++ b/code/modules/mob/living/carbon/human/species/shadow.dm @@ -34,9 +34,9 @@ light_amount = T.get_lumcount() * 10 if(light_amount > 2) //if there's enough light, start dying - H.take_overall_damage(1,1) - H.throw_alert("lightexposure", /obj/screen/alert/lightexposure) + H.take_overall_damage(1, 1) + H.throw_alert("lightexposure", /atom/movable/screen/alert/lightexposure) else if(light_amount < 2) //heal in the dark - H.heal_overall_damage(1,1) + H.heal_overall_damage(1, 1) H.clear_alert("lightexposure") ..() diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 9d8e832a937ea..bb28b7d0ab7ec 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -799,7 +799,7 @@ if(has_gravity) clear_alert("weightless") else - throw_alert("weightless", /obj/screen/alert/weightless) + throw_alert("weightless", /atom/movable/screen/alert/weightless) if(!flying) float(!has_gravity) @@ -829,7 +829,7 @@ return TRUE //called when the mob receives a bright flash -/mob/living/proc/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /obj/screen/fullscreen/flash) +/mob/living/proc/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/flash) if(can_be_flashed(intensity, override_blindness_check)) overlay_fullscreen("flash", type) addtimer(CALLBACK(src, PROC_REF(clear_fullscreen), "flash", 25), 25) @@ -1146,7 +1146,7 @@ /mob/living/proc/set_forced_look(atom/A, track = FALSE) forced_look = track ? A.UID() : get_cardinal_dir(src, A) to_chat(src, "<span class='userdanger'>You are now facing [track ? A : dir2text(forced_look)]. To cancel this, shift-middleclick yourself.</span>") - throw_alert("direction_lock", /obj/screen/alert/direction_lock) + throw_alert("direction_lock", /atom/movable/screen/alert/direction_lock) /** * Clears the mob's direction lock if enabled. diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index 7d4046935e9e3..9cfdcaebb15cc 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -163,7 +163,7 @@ on_fire = TRUE visible_message("<span class='warning'>[src] catches fire!</span>", "<span class='userdanger'>You're set on fire!</span>") set_light(light_range + 3,l_color = "#ED9200") - throw_alert("fire", /obj/screen/alert/fire) + throw_alert("fire", /atom/movable/screen/alert/fire) update_fire() SEND_SIGNAL(src, COMSIG_LIVING_IGNITED) return TRUE diff --git a/code/modules/mob/living/living_life.dm b/code/modules/mob/living/living_life.dm index 39f9fd35f7eb6..59b1b5a7c0437 100644 --- a/code/modules/mob/living/living_life.dm +++ b/code/modules/mob/living/living_life.dm @@ -173,6 +173,6 @@ healths.icon_state = "health7" severity = 6 if(severity > 0) - overlay_fullscreen("brute", /obj/screen/fullscreen/brute, severity) + overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") diff --git a/code/modules/mob/living/living_update_status.dm b/code/modules/mob/living/living_update_status.dm index d84ec9817c07c..041d28afdf38d 100644 --- a/code/modules/mob/living/living_update_status.dm +++ b/code/modules/mob/living/living_update_status.dm @@ -1,8 +1,8 @@ /mob/living/update_blind_effects() if(!has_vision(information_only=TRUE)) - overlay_fullscreen("blind", /obj/screen/fullscreen/blind) - throw_alert("blind", /obj/screen/alert/blind) - return 1 + overlay_fullscreen("blind", /atom/movable/screen/fullscreen/blind) + throw_alert("blind", /atom/movable/screen/alert/blind) + return TRUE else clear_fullscreen("blind") clear_alert("blind") @@ -19,8 +19,8 @@ /mob/living/update_druggy_effects() if(AmountDruggy()) - overlay_fullscreen("high", /obj/screen/fullscreen/high) - throw_alert("high", /obj/screen/alert/high) + overlay_fullscreen("high", /atom/movable/screen/fullscreen/high) + throw_alert("high", /atom/movable/screen/alert/high) sound_environment_override = SOUND_ENVIRONMENT_DRUGGED else clear_fullscreen("high") @@ -29,14 +29,14 @@ /mob/living/update_nearsighted_effects() if(HAS_TRAIT(src, TRAIT_NEARSIGHT)) - overlay_fullscreen("nearsighted", /obj/screen/fullscreen/impaired, 1) + overlay_fullscreen("nearsighted", /atom/movable/screen/fullscreen/impaired, 1) else clear_fullscreen("nearsighted") /mob/living/update_sleeping_effects(no_alert = FALSE) if(IsSleeping()) if(!no_alert) - throw_alert("asleep", /obj/screen/alert/asleep) + throw_alert("asleep", /atom/movable/screen/alert/asleep) else clear_alert("asleep") diff --git a/code/modules/mob/living/silicon/ai/ai_mob.dm b/code/modules/mob/living/silicon/ai/ai_mob.dm index d1257aaf26770..e1e39b605bf47 100644 --- a/code/modules/mob/living/silicon/ai/ai_mob.dm +++ b/code/modules/mob/living/silicon/ai/ai_mob.dm @@ -1539,7 +1539,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( SEND_SOUND(src, sound('sound/machines/ai_start.ogg')) - var/obj/screen/text/blurb/location_blurb = new() + var/atom/movable/screen/text/blurb/location_blurb = new() location_blurb.maptext_x = 80 location_blurb.maptext_y = 16 location_blurb.maptext_width = 480 diff --git a/code/modules/mob/living/silicon/robot/drone/drone_items.dm b/code/modules/mob/living/silicon/robot/drone/drone_items.dm index 92319021efc9a..e19be02507fdb 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_items.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_items.dm @@ -1,6 +1,7 @@ //Simple borg hand. //Limited use. -/obj/item/gripper_engineering // This isn't a drone item, also in engineering cyborg kits +/// This isn't a drone item, also in engineering cyborg kits +/obj/item/gripper_engineering name = "magnetic gripper" desc = "A simple grasping tool for synthetic assets." icon = 'icons/obj/device.dmi' diff --git a/code/modules/mob/living/silicon/robot/robot_life.dm b/code/modules/mob/living/silicon/robot/robot_life.dm index 1a16490ed96db..2b0be3f6afc14 100644 --- a/code/modules/mob/living/silicon/robot/robot_life.dm +++ b/code/modules/mob/living/silicon/robot/robot_life.dm @@ -63,7 +63,7 @@ emagged = new_state update_icons() if(emagged) - throw_alert("hacked", /obj/screen/alert/hacked) + throw_alert("hacked", /atom/movable/screen/alert/hacked) else clear_alert("hacked") @@ -98,15 +98,15 @@ if(0.75 to INFINITY) clear_alert("charge") if(0.5 to 0.75) - throw_alert("charge", /obj/screen/alert/lowcell, 1) + throw_alert("charge", /atom/movable/screen/alert/lowcell, 1) if(0.25 to 0.5) - throw_alert("charge", /obj/screen/alert/lowcell, 2) + throw_alert("charge", /atom/movable/screen/alert/lowcell, 2) if(0.01 to 0.25) - throw_alert("charge", /obj/screen/alert/lowcell, 3) + throw_alert("charge", /atom/movable/screen/alert/lowcell, 3) else - throw_alert("charge", /obj/screen/alert/emptycell) + throw_alert("charge", /atom/movable/screen/alert/emptycell) else - throw_alert("charge", /obj/screen/alert/nocell) + throw_alert("charge", /atom/movable/screen/alert/nocell) diff --git a/code/modules/mob/living/silicon/robot/robot_mob.dm b/code/modules/mob/living/silicon/robot/robot_mob.dm index 90e501f99ab04..13a3652075ca5 100644 --- a/code/modules/mob/living/silicon/robot/robot_mob.dm +++ b/code/modules/mob/living/silicon/robot/robot_mob.dm @@ -19,15 +19,15 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( var/custom_sprite = FALSE //Due to all the sprites involved, a var for our custom borgs may be best //Hud stuff - var/obj/screen/hands = null - var/obj/screen/inv1 = null - var/obj/screen/inv2 = null - var/obj/screen/inv3 = null - var/obj/screen/lamp_button = null - var/obj/screen/thruster_button = null + var/atom/movable/screen/hands = null + var/atom/movable/screen/inv1 = null + var/atom/movable/screen/inv2 = null + var/atom/movable/screen/inv3 = null + var/atom/movable/screen/lamp_button = null + var/atom/movable/screen/thruster_button = null var/shown_robot_modules = FALSE //Used to determine whether they have the module menu shown or not - var/obj/screen/robot_modules_background + var/atom/movable/screen/robot_modules_background //3 Modules can be activated at any one time. var/obj/item/robot_module/module = null @@ -1296,7 +1296,7 @@ GLOBAL_LIST_INIT(robot_verbs_default, list( if(wires.is_cut(WIRE_BORG_LOCKED)) state = 1 if(state) - throw_alert("locked", /obj/screen/alert/locked) + throw_alert("locked", /atom/movable/screen/alert/locked) else clear_alert("locked") lockcharge = state diff --git a/code/modules/mob/living/silicon/silicon_laws.dm b/code/modules/mob/living/silicon/silicon_laws.dm index af3385c28f124..d7c9b05033110 100644 --- a/code/modules/mob/living/silicon/silicon_laws.dm +++ b/code/modules/mob/living/silicon/silicon_laws.dm @@ -10,7 +10,7 @@ return laws.zeroth_law != null /mob/living/silicon/proc/set_zeroth_law(law, law_borg) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.set_zeroth_law(law, law_borg) if(!isnull(usr) && law) @@ -22,56 +22,56 @@ to_chat(src, "<span class='warning'>Internal camera is currently being accessed.</span>") /mob/living/silicon/proc/add_ion_law(law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.add_ion_law(law) if(!isnull(usr) && law) log_and_message_admins("has given [src] the ion law: [law]") /mob/living/silicon/proc/add_inherent_law(law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.add_inherent_law(law) if(!isnull(usr) && law) log_and_message_admins("has given [src] the inherent law: [law]") /mob/living/silicon/proc/add_supplied_law(number, law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.add_supplied_law(number, law) if(!isnull(usr) && law) log_and_message_admins("has given [src] the supplied law: [law]") /mob/living/silicon/proc/delete_law(datum/ai_law/law) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.delete_law(law) if(!isnull(usr) && law) log_and_message_admins("has deleted a law belonging to [src]: [law.law]") /mob/living/silicon/proc/clear_inherent_laws(silent = 0) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_inherent_laws() if(!silent && !isnull(usr)) log_and_message_admins("cleared the inherent laws of [src]") /mob/living/silicon/proc/clear_ion_laws(silent = 0) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_ion_laws() if(!silent && !isnull(usr)) log_and_message_admins("cleared the ion laws of [src]") /mob/living/silicon/proc/clear_supplied_laws(silent = 0) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_supplied_laws() if(!silent && !isnull(usr)) log_and_message_admins("cleared the supplied laws of [src]") /mob/living/silicon/proc/clear_zeroth_law(silent = FALSE) - throw_alert("newlaw", /obj/screen/alert/newlaw) + throw_alert("newlaw", /atom/movable/screen/alert/newlaw) laws_sanity_check() laws.clear_zeroth_laws() if(!silent && !isnull(usr)) diff --git a/code/modules/mob/living/silicon/silicon_mob.dm b/code/modules/mob/living/silicon/silicon_mob.dm index 9dd4a655f4210..1b0a20083be8e 100644 --- a/code/modules/mob/living/silicon/silicon_mob.dm +++ b/code/modules/mob/living/silicon/silicon_mob.dm @@ -409,7 +409,7 @@ /mob/living/silicon/get_access() return IGNORE_ACCESS //silicons always have access -/mob/living/silicon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, type = /obj/screen/fullscreen/flash/noise) +/mob/living/silicon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, type = /atom/movable/screen/fullscreen/flash/noise) if(affect_silicon) return ..() diff --git a/code/modules/mob/living/simple_animal/bot/griefsky.dm b/code/modules/mob/living/simple_animal/bot/griefsky.dm index 2530633daa340..37406b435e554 100644 --- a/code/modules/mob/living/simple_animal/bot/griefsky.dm +++ b/code/modules/mob/living/simple_animal/bot/griefsky.dm @@ -1,4 +1,5 @@ -/mob/living/simple_animal/bot/secbot/griefsky //This bot is powerful. If you managed to get 4 eswords somehow, you deserve this horror. Emag him for best results. +/// This bot is powerful. If you managed to get 4 eswords somehow, you deserve this horror. Emag him for best results. +/mob/living/simple_animal/bot/secbot/griefsky name = "\improper General Griefsky" desc = "Is that a secbot with four eswords in its arms...?" icon_state = "griefsky0" @@ -18,7 +19,8 @@ var/spam_flag = 0 var/frustration_number = 15 -/mob/living/simple_animal/bot/secbot/griefsky/toy //A toy version of general griefsky! +/// A toy version of general griefsky! +/mob/living/simple_animal/bot/secbot/griefsky/toy name = "Genewul Giftskee" desc = "An adorable looking secbot with four toy swords taped to its arms" spin_icon = "griefskyj-c" diff --git a/code/modules/mob/living/simple_animal/bot/honkbot.dm b/code/modules/mob/living/simple_animal/bot/honkbot.dm index 093d9ccb1dac7..8f118b1a05918 100644 --- a/code/modules/mob/living/simple_animal/bot/honkbot.dm +++ b/code/modules/mob/living/simple_animal/bot/honkbot.dm @@ -1,5 +1,5 @@ /mob/living/simple_animal/bot/honkbot - name = "\improper honkbot" + name = "honkbot" desc = "A little robot. It looks happy with its bike horn." icon = 'icons/obj/aibots.dmi' icon_state = "honkbot" diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index 1e74d1162df16..c1187ee2682ea 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -123,7 +123,7 @@ /mob/living/simple_animal/hostile/construct/Life(seconds, times_fired) if(holy_check(src)) - throw_alert("holy_fire", /obj/screen/alert/holy_fire, override = TRUE) + throw_alert("holy_fire", /atom/movable/screen/alert/holy_fire, override = TRUE) visible_message("<span class='danger'>[src] slowly crumbles to dust in this holy place!</span>", \ "<span class='danger'>Your shell burns as you crumble to dust in this holy place!</span>") playsound(loc, 'sound/items/welder.ogg', 150, TRUE) @@ -162,7 +162,8 @@ playstyle_string = "<b>You are a Juggernaut. Though slow, your shell can withstand extreme punishment, \ create shield walls, rip apart enemies and walls.</b>" -/mob/living/simple_animal/hostile/construct/armoured/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/armoured/hostile AIStatus = AI_ON environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP @@ -195,10 +196,12 @@ retreat_distance = 2 //AI wraiths will move in and out of combat playstyle_string = "<b>You are a Wraith. Though relatively fragile, you are fast, deadly, and even able to phase through walls.</b>" -/mob/living/simple_animal/hostile/construct/wraith/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/wraith/hostile AIStatus = AI_ON -/mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum //Used in bubblegum summoning. Needs MOB_SIZE_LARGE so crushers don't suffer +/// Used in bubblegum summoning. Needs MOB_SIZE_LARGE so crushers don't suffer +/mob/living/simple_animal/hostile/construct/wraith/hostile/bubblegum mob_size = MOB_SIZE_LARGE /////////////////////////////Artificer///////////////////////// @@ -276,7 +279,8 @@ retreat_distance = initial(retreat_distance) minimum_distance = initial(minimum_distance) -/mob/living/simple_animal/hostile/construct/builder/hostile //actually hostile, will move around, hit things, heal other constructs +/// actually hostile, will move around, hit things, heal other constructs +/mob/living/simple_animal/hostile/construct/builder/hostile AIStatus = AI_ON environment_smash = ENVIRONMENT_SMASH_STRUCTURES //only token destruction, don't smash the cult wall NO STOP @@ -306,7 +310,8 @@ var/energy = 0 var/max_energy = 1000 -/mob/living/simple_animal/hostile/construct/behemoth/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/behemoth/hostile AIStatus = AI_ON environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP @@ -340,7 +345,8 @@ return TRUE -/mob/living/simple_animal/hostile/construct/harvester/hostile //actually hostile, will move around, hit things +/// actually hostile, will move around, hit things +/mob/living/simple_animal/hostile/construct/harvester/hostile AIStatus = AI_ON environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP diff --git a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm index 00099deea2757..ff76eef39575a 100644 --- a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm +++ b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm @@ -107,8 +107,8 @@ if(isdiona(M)) to_chat(M, "You feel your being twine with that of [src] as it merges with your biomass.") to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.") - throw_alert(GESTALT_ALERT, /obj/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist - M.throw_alert(NYMPH_ALERT, /obj/screen/alert/gestalt, new_master = src) + throw_alert(GESTALT_ALERT, /atom/movable/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist + M.throw_alert(NYMPH_ALERT, /atom/movable/screen/alert/gestalt, new_master = src) forceMove(M) else if(isrobot(M)) M.visible_message("<span class='notice'>[M] playfully boops [src] on the head!</span>", "<span class='notice'>You playfully boop [src] on the head!</span>") @@ -141,8 +141,8 @@ M.status_flags |= PASSEMOTES to_chat(src, "You feel your being twine with that of [M] as you merge with its biomass.") forceMove(M) - throw_alert(GESTALT_ALERT, /obj/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist - M.throw_alert(NYMPH_ALERT, /obj/screen/alert/gestalt, new_master = src) + throw_alert(GESTALT_ALERT, /atom/movable/screen/alert/nymph, new_master = src) //adds a screen alert that can call resist + M.throw_alert(NYMPH_ALERT, /atom/movable/screen/alert/gestalt, new_master = src) return TRUE else return FALSE diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm index 4cd1f666d0b31..af1762e3bcca8 100644 --- a/code/modules/mob/living/simple_animal/friendly/dog.dm +++ b/code/modules/mob/living/simple_animal/friendly/dog.dm @@ -64,7 +64,7 @@ //Corgis and pugs are now under one dog subtype /mob/living/simple_animal/pet/dog/corgi - name = "\improper corgi" + name = "corgi" real_name = "corgi" desc = "It's a corgi." icon_state = "corgi" @@ -632,7 +632,7 @@ adjustBruteLoss(-maxHealth) /mob/living/simple_animal/pet/dog/corgi/puppy - name = "\improper corgi puppy" + name = "corgi puppy" real_name = "corgi" desc = "It's a corgi puppy!" icon_state = "puppy" @@ -647,8 +647,9 @@ // Puppies do not have a head or back equipment slot. return "<br><B>Collar:</B> <A href='?src=[UID()];[pcollar ? "remove_inv=collar'>[pcollar]" : "add_inv=collar'>Nothing"]</A>" -/mob/living/simple_animal/pet/dog/corgi/puppy/void //Tribute to the corgis born in nullspace - name = "\improper void puppy" +/// Tribute to the corgis born in nullspace +/mob/living/simple_animal/pet/dog/corgi/puppy/void + name = "void puppy" real_name = "voidy" desc = "A corgi puppy that has been infused with deep space energy. It's staring back..." icon_state = "void_puppy" @@ -776,7 +777,7 @@ ///Pugs /mob/living/simple_animal/pet/dog/pug - name = "\improper pug" + name = "pug" real_name = "pug" desc = "It's a pug." icon = 'icons/mob/pets.dmi' diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index f8aa127e2a87f..cc34a767dea6f 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -1,6 +1,6 @@ //goat /mob/living/simple_animal/hostile/retaliate/goat - name = "\improper goat" + name = "goat" desc = "Not known for their pleasant disposition." icon_state = "goat" icon_living = "goat" @@ -109,7 +109,7 @@ //cow /mob/living/simple_animal/cow - name = "\improper cow" + name = "cow" desc = "Known for their milk, just don't tip them over." icon_state = "cow" icon_living = "cow" @@ -187,7 +187,7 @@ return FALSE /mob/living/simple_animal/chick - name = "\improper chick" + name = "chick" desc = "Adorable! They make such a racket though." icon_state = "chick" icon_living = "chick" @@ -241,7 +241,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) /mob/living/simple_animal/chicken - name = "\improper chicken" + name = "chicken" desc = "Hopefully the eggs are good this season." gender = FEMALE mob_biotypes = MOB_ORGANIC | MOB_BEAST @@ -368,7 +368,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) return FALSE /mob/living/simple_animal/pig - name = "\improper pig" + name = "pig" desc = "Oink oink." icon_state = "pig" icon_living = "pig" @@ -394,7 +394,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) footstep_type = FOOTSTEP_MOB_SHOE /mob/living/simple_animal/turkey - name = "\improper turkey" + name = "turkey" desc = "Benjamin Franklin would be proud." icon_state = "turkey" icon_living = "turkey" @@ -419,7 +419,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) footstep_type = FOOTSTEP_MOB_CLAW /mob/living/simple_animal/goose - name = "\improper goose" + name = "goose" desc = "A pretty goose. Would make a nice comforter." icon_state = "goose" icon_living = "goose" @@ -444,7 +444,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) footstep_type = FOOTSTEP_MOB_CLAW /mob/living/simple_animal/seal - name = "\improper seal" + name = "seal" desc = "A beautiful white seal." icon_state = "seal" icon_living = "seal" @@ -469,7 +469,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) blood_volume = BLOOD_VOLUME_NORMAL /mob/living/simple_animal/walrus - name = "\improper walrus" + name = "walrus" desc = "A big brown walrus." icon_state = "walrus" icon_living = "walrus" diff --git a/code/modules/mob/living/simple_animal/hostile/bat.dm b/code/modules/mob/living/simple_animal/hostile/bat.dm index 66f76186713db..c0d064319dd45 100644 --- a/code/modules/mob/living/simple_animal/hostile/bat.dm +++ b/code/modules/mob/living/simple_animal/hostile/bat.dm @@ -1,5 +1,5 @@ /mob/living/simple_animal/hostile/scarybat - name = "\improper space bats" + name = "space bats" desc = "A swarm of cute little blood sucking bats that looks pretty pissed." icon = 'icons/mob/bats.dmi' icon_state = "bat" diff --git a/code/modules/mob/living/simple_animal/hostile/jungle_animals.dm b/code/modules/mob/living/simple_animal/hostile/jungle_animals.dm index f3982ed9a9745..b81f9c2dff4ae 100644 --- a/code/modules/mob/living/simple_animal/hostile/jungle_animals.dm +++ b/code/modules/mob/living/simple_animal/hostile/jungle_animals.dm @@ -3,7 +3,7 @@ //*********// /mob/living/simple_animal/hostile/panther - name = "\improper panther" + name = "panther" desc = "A long sleek, black cat with sharp teeth and claws." icon = 'icons/mob/alienqueen.dmi' icon_state = "panther" diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm index e1e4d06f04dad..76469fd935698 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm @@ -784,7 +784,8 @@ Difficulty: Hard duration = 20 -/obj/item/projectile/energy/tesla_bolt //Leaving here for adminbus / so vetus still uses it. +/// Leaving here for adminbus / so vetus still uses it. +/obj/item/projectile/energy/tesla_bolt name = "shock bolt" icon_state = "purple_laser" impact_effect_type = /obj/effect/temp_visual/impact_effect/purple_laser @@ -810,7 +811,8 @@ Difficulty: Hard var/turf/target_turf = get_turf(A) loc = target_turf -/obj/effect/temp_visual/dragon_swoop/bubblegum/ancient_robot //this is the worst path I have ever made +/// this is the worst path I have ever made +/obj/effect/temp_visual/dragon_swoop/bubblegum/ancient_robot icon_state = "target" /obj/effect/temp_visual/dragon_swoop/bubblegum/ancient_robot/Initialize(mapload, target) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm index 3515e72c7881f..7a29e37406a38 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm @@ -110,7 +110,8 @@ Difficulty: Medium shoot_ka() transform_weapon() -/obj/item/melee/energy/cleaving_saw/miner //nerfed saw because it is very murdery +/// nerfed saw because it is very murdery +/obj/item/melee/energy/cleaving_saw/miner force = 6 force_on = 10 diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index 55cd79a6d15ba..a4601d9bfff6b 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -141,7 +141,7 @@ Difficulty: Hard H.apply_status_effect(STATUS_EFFECT_BUBBLEGUM_CURSE, src) if(second_life) H.clear_fullscreen("Bubblegum") - H.overlay_fullscreen("Bubblegum", /obj/screen/fullscreen/fog, 2) + H.overlay_fullscreen("Bubblegum", /atom/movable/screen/fullscreen/fog, 2) /mob/living/simple_animal/hostile/megafauna/bubblegum/death(gibbed) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index d2a79230e9270..2ef2491296ed6 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -577,7 +577,8 @@ Difficulty: Hard var/turf/simulated/mineral/M = loc M.gets_drilled(caster) -/obj/effect/temp_visual/hierophant/wall //smoothing and pooling were not friends, but pooling is dead. +/// smoothing and pooling were not friends, but pooling is dead. +/obj/effect/temp_visual/hierophant/wall name = "vortex wall" icon = 'icons/turf/walls/hierophant_wall_temp.dmi' icon_state = "hierophant_wall_temp-0" @@ -612,7 +613,8 @@ Difficulty: Hard return TRUE return FALSE -/obj/effect/temp_visual/hierophant/chaser //a hierophant's chaser. follows target around, moving and producing a blast every speed deciseconds. +/// a hierophant's chaser. follows target around, moving and producing a blast every speed deciseconds. +/obj/effect/temp_visual/hierophant/chaser duration = 98 var/mob/living/target //what it's following var/turf/targetturf //what turf the target is actually on diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/fish.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/fish.dm index 1aa4eb05f49f2..53e5e125a1a02 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/fish.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/fish.dm @@ -1,6 +1,6 @@ /mob/living/simple_animal/hostile/retaliate/carp - name = "\improper sea carp" + name = "sea carp" desc = "A large fish bearing similarities to a certain space-faring menace." icon = 'icons/mob/carp.dmi' icon_state = "carp" diff --git a/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm b/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm index 39b5bc47bd68e..a6a840906f83d 100644 --- a/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm +++ b/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm @@ -1,6 +1,7 @@ -/obj/structure/alien/resin/flower_bud_enemy //inheriting basic attack/damage stuff from alien structures +/// inheriting basic attack/damage stuff from alien structures +/obj/structure/alien/resin/flower_bud_enemy name = "flower bud" desc = "A large pulsating plant..." icon = 'icons/effects/spacevines.dmi' diff --git a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm index 2ba65d00bf455..845b8bf461f9e 100644 --- a/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm +++ b/code/modules/mob/living/simple_animal/hostile/winter_mobs.dm @@ -89,7 +89,8 @@ new next_stage(get_turf(src)) qdel(src) //hide the body -/mob/living/simple_animal/hostile/winter/santa/stage_1 //stage 1: slow melee +/// stage 1: slow melee +/mob/living/simple_animal/hostile/winter/santa/stage_1 maxHealth = 150 health = 150 desc = "GET THE FAT MAN!" @@ -99,7 +100,8 @@ melee_damage_lower = 10 melee_damage_upper = 20 -/mob/living/simple_animal/hostile/winter/santa/stage_2 //stage 2: slow ranged +/// stage 2: slow ranged +/mob/living/simple_animal/hostile/winter/santa/stage_2 desc = "GET THE FAT MAN AGAIN!" next_stage = /mob/living/simple_animal/hostile/winter/santa/stage_3 death_message = "<span class='danger'>YOU'VE BEEN VERY NAUGHTY! PREPARE TO DIE!</span>" @@ -110,7 +112,8 @@ retreat_distance = 5 minimum_distance = 5 -/mob/living/simple_animal/hostile/winter/santa/stage_3 //stage 3: fast rapidfire ranged +/// stage 3: fast rapidfire ranged +/mob/living/simple_animal/hostile/winter/santa/stage_3 desc = "WHY WON'T HE DIE ALREADY!?" next_stage = /mob/living/simple_animal/hostile/winter/santa/stage_4 death_message = "<span class='danger'>FACE MY FINAL FORM AND KNOW DESPAIR!</span>" @@ -123,7 +126,8 @@ retreat_distance = 3 minimum_distance = 3 -/mob/living/simple_animal/hostile/winter/santa/stage_4 //stage 4: fast spinebreaker +/// stage 4: fast spinebreaker +/mob/living/simple_animal/hostile/winter/santa/stage_4 name = "Final Form Santa" desc = "WHAT THE HELL IS HE!?! WHY WON'T HE STAY DEAD!?!" maxHealth = 300 //YOU FACE JARAX- I MEAN SANTA! diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 767cdf87a6af8..9c42fa54e10de 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -305,20 +305,20 @@ if(atmos_requirements["min_oxy"] && oxy < atmos_requirements["min_oxy"]) atmos_suitable = 0 - throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else if(atmos_requirements["max_oxy"] && oxy > atmos_requirements["max_oxy"]) atmos_suitable = 0 - throw_alert("too_much_oxy", /obj/screen/alert/too_much_oxy) + throw_alert("too_much_oxy", /atom/movable/screen/alert/too_much_oxy) else clear_alert("not_enough_oxy") clear_alert("too_much_oxy") if(atmos_requirements["min_tox"] && tox < atmos_requirements["min_tox"]) atmos_suitable = 0 - throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) else if(atmos_requirements["max_tox"] && tox > atmos_requirements["max_tox"]) atmos_suitable = 0 - throw_alert("too_much_tox", /obj/screen/alert/too_much_tox) + throw_alert("too_much_tox", /atom/movable/screen/alert/too_much_tox) else clear_alert("too_much_tox") clear_alert("not_enough_tox") diff --git a/code/modules/mob/living/simple_animal/slime/slime_life.dm b/code/modules/mob/living/simple_animal/slime/slime_life.dm index 8617910d8fa08..67d15345bea27 100644 --- a/code/modules/mob/living/simple_animal/slime/slime_life.dm +++ b/code/modules/mob/living/simple_animal/slime/slime_life.dm @@ -114,7 +114,7 @@ if(bodytemperature < (T0C + 5)) // start calculating temperature damage etc if(bodytemperature <= (T0C - 40)) // stun temperature Tempstun = TRUE - throw_alert("temp", /obj/screen/alert/cold, 3) + throw_alert("temp", /atom/movable/screen/alert/cold, 3) to_chat(src,"<span class='userdanger'>You suddenly freeze up, you cannot move!</span>") if(bodytemperature <= (T0C - 50)) // hurt temperature diff --git a/code/modules/mob/living/simple_animal/slime/slime_mob.dm b/code/modules/mob/living/simple_animal/slime/slime_mob.dm index 4db2674ec93a5..4b12a386e3ea5 100644 --- a/code/modules/mob/living/simple_animal/slime/slime_mob.dm +++ b/code/modules/mob/living/simple_animal/slime/slime_mob.dm @@ -193,7 +193,7 @@ healths.icon_state = "slime_health7" severity = 6 if(severity > 0) - overlay_fullscreen("brute", /obj/screen/fullscreen/brute, severity) + overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 17e28d7695b5a..bbc6d76f3c1d4 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1490,14 +1490,14 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \ /mob/proc/sync_lighting_plane_alpha() if(hud_used) - var/obj/screen/plane_master/lighting/L = hud_used.plane_masters["[LIGHTING_PLANE]"] + var/atom/movable/screen/plane_master/lighting/L = hud_used.plane_masters["[LIGHTING_PLANE]"] if(L) L.alpha = lighting_alpha sync_nightvision_screen() //Sync up the overlay used for nightvision to the amount of see_in_dark a mob has. This needs to be called everywhere sync_lighting_plane_alpha() is. /mob/proc/sync_nightvision_screen() - var/obj/screen/fullscreen/see_through_darkness/S = screens["see_through_darkness"] + var/atom/movable/screen/fullscreen/see_through_darkness/S = screens["see_through_darkness"] if(S) var/suffix = "" switch(see_in_dark) diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm index ca1b4c9aad76e..c501c3ee4d066 100644 --- a/code/modules/mob/mob_grab.dm +++ b/code/modules/mob/mob_grab.dm @@ -11,7 +11,7 @@ /obj/item/grab name = "grab" flags = NOBLUDGEON | ABSTRACT | DROPDEL - var/obj/screen/grab/hud = null + var/atom/movable/screen/grab/hud = null var/mob/living/affecting = null var/mob/living/assailant = null var/state = GRAB_PASSIVE @@ -48,7 +48,7 @@ RegisterSignal(affecting, COMSIG_MOVABLE_MOVED, PROC_REF(grab_moved)) RegisterSignal(assailant, COMSIG_MOVABLE_MOVED, PROC_REF(pull_grabbed)) - hud = new /obj/screen/grab(src) + hud = new /atom/movable/screen/grab(src) hud.icon_state = "reinforce" icon_state = "grabbed" hud.name = "reinforce grab" @@ -291,7 +291,7 @@ if(EAST) animate(affecting, pixel_x =-shift, pixel_y = 0, 5, 1, LINEAR_EASING) -/obj/item/grab/proc/s_click(obj/screen/S) +/obj/item/grab/proc/s_click(atom/movable/screen/S) if(!affecting) return if(state >= GRAB_AGGRESSIVE && HAS_TRAIT(assailant, TRAIT_PACIFISM)) diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index 0be10259ed66f..8acc9b1e49e1c 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -554,7 +554,7 @@ if(flashwindow) window_flash(O.client) if(source) - var/obj/screen/alert/notify_action/A = O.throw_alert("\ref[source]_notify_action", /obj/screen/alert/notify_action) + var/atom/movable/screen/alert/notify_action/A = O.throw_alert("\ref[source]_notify_action", /atom/movable/screen/alert/notify_action) if(A) if(O.client.prefs && O.client.prefs.UI_style) A.icon = ui_style2icon(O.client.prefs.UI_style) diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 6de1b1b4d79fe..3a354a4e4c0fd 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -383,7 +383,7 @@ return /client/proc/check_has_body_select() - return mob && mob.hud_used && mob.hud_used.zone_select && istype(mob.hud_used.zone_select, /obj/screen/zone_sel) + return mob && mob.hud_used && mob.hud_used.zone_select && istype(mob.hud_used.zone_select, /atom/movable/screen/zone_sel) /client/verb/body_toggle_head() set name = "body-toggle-head" @@ -401,7 +401,7 @@ else next_in_line = BODY_ZONE_HEAD - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_r_arm() @@ -416,7 +416,7 @@ else next_in_line = BODY_ZONE_R_ARM - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_chest() @@ -426,7 +426,7 @@ if(!check_has_body_select()) return - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(BODY_ZONE_CHEST, mob) /client/verb/body_l_arm() @@ -442,7 +442,7 @@ else next_in_line = BODY_ZONE_L_ARM - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_r_leg() @@ -458,7 +458,7 @@ else next_in_line = BODY_ZONE_R_LEG - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/body_groin() @@ -468,7 +468,7 @@ if(!check_has_body_select()) return - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(BODY_ZONE_PRECISE_GROIN, mob) /client/verb/body_l_leg() @@ -484,7 +484,7 @@ else next_in_line = BODY_ZONE_L_LEG - var/obj/screen/zone_sel/selector = mob.hud_used.zone_select + var/atom/movable/screen/zone_sel/selector = mob.hud_used.zone_select selector.set_selected_zone(next_in_line, mob) /client/verb/toggle_walk_run() @@ -513,5 +513,5 @@ if(hud_used && hud_used.move_intent && hud_used.static_inventory) hud_used.move_intent.icon_state = icon_toggle - for(var/obj/screen/mov_intent/selector in hud_used.static_inventory) + for(var/atom/movable/screen/mov_intent/selector in hud_used.static_inventory) selector.update_icon() diff --git a/code/modules/mob/mob_vars.dm b/code/modules/mob/mob_vars.dm index cfd97814511f2..8a0c3c0781a53 100644 --- a/code/modules/mob/mob_vars.dm +++ b/code/modules/mob/mob_vars.dm @@ -13,11 +13,11 @@ /// The zone this mob is currently targeting var/zone_selected = null - var/obj/screen/pullin = null - var/obj/screen/i_select = null - var/obj/screen/m_select = null - var/obj/screen/healths = null - var/obj/screen/throw_icon = null + var/atom/movable/screen/pullin = null + var/atom/movable/screen/i_select = null + var/atom/movable/screen/m_select = null + var/atom/movable/screen/healths = null + var/atom/movable/screen/throw_icon = null /*A bunch of this stuff really needs to go under their own defines instead of being globally attached to mob. A variable should only be globally attached to turfs/objects/whatever, when it is in fact needed as such. @@ -25,8 +25,8 @@ I'll make some notes on where certain variable defines should probably go. Changing this around would probably require a good look-over the pre-existing code. */ - var/obj/screen/leap_icon = null - var/obj/screen/healthdoll/healthdoll = null + var/atom/movable/screen/leap_icon = null + var/atom/movable/screen/healthdoll/healthdoll = null var/use_me = TRUE //Allows all mobs to use the me verb by default, will have to manually specify they cannot var/damageoverlaytemp = 0 @@ -215,7 +215,7 @@ var/suiciding = FALSE /// Used for some screen objects, such as var/list/screens = list() - /// lazy list. contains /obj/screen/alert only, On /mob so clientless mobs will throw alerts properly + /// lazy list. contains /atom/movable/screen/alert only, On /mob so clientless mobs will throw alerts properly var/list/alerts /// Makes items bloody if you touch them var/bloody_hands = 0 diff --git a/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm b/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm index 9dd5345d48371..87cac271a18a9 100644 --- a/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/human/human_body_markings.dm @@ -8,7 +8,8 @@ species_allowed = list("Unathi", "Tajaran", "Vulpkanin") icon_state = "tiger" -/datum/sprite_accessory/body_markings/tattoo // Tattoos applied post-round startup with tattoo guns in item_defines.dm +/// Tattoos applied post-round startup with tattoo guns in item_defines.dm +/datum/sprite_accessory/body_markings/tattoo species_allowed = list("Human", "Unathi", "Vulpkanin", "Tajaran", "Skrell") icon_state = "none" @@ -17,7 +18,8 @@ icon_state = "campbell" species_allowed = null -/datum/sprite_accessory/body_markings/tattoo/tiger_body // Yep, this is repeated. To be fixed later +/// Yep, this is repeated. To be fixed later +/datum/sprite_accessory/body_markings/tattoo/tiger_body name = "Tiger-stripe Tattoo" species_allowed = list("Human", "Unathi", "Vulpkanin", "Tajaran", "Skrell") icon_state = "tiger" diff --git a/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm b/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm index 27c2ad066b806..9cdfb017e9b41 100644 --- a/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm +++ b/code/modules/mob/new_player/sprite_accessories/human/human_hair.dm @@ -762,7 +762,8 @@ icon_state = "father" species_allowed = list("Human", "Slime People", "Unathi", "Tajaran", "Vulpkanin") -/datum/sprite_accessory/hair/bun4 // Due to a vulp hairstyle called bun +/// Due to a vulp hairstyle called bun +/datum/sprite_accessory/hair/bun4 name = "Bun 4" icon_state = "bun4" species_allowed = list("Human", "Slime People", "Unathi", "Tajaran", "Vulpkanin") @@ -854,7 +855,8 @@ ///Fluff HairStyles// -/datum/sprite_accessory/hair/fluff/pinapple_fluff_hair //Pineapple Salad hair fluff its for a slime..has to go under human +/// Pineapple Salad hair fluff its for a slime..has to go under human +/datum/sprite_accessory/hair/fluff/pinapple_fluff_hair name = "Sasook Hair" icon_state = "psalad_fluff_hair" species_allowed = list("Slime People") diff --git a/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm b/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm index ea1176ff73864..72c9dbdc5ed4d 100644 --- a/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/shared/shared_tail_markings.dm @@ -1,7 +1,8 @@ /datum/sprite_accessory/body_markings/tail/shared icon = 'icons/mob/sprite_accessories/shared/shared_tail_markings.dmi' -/datum/sprite_accessory/body_markings/tail/shared/short_tip //Species-ambiguous, generic short tail. +/// Species-ambiguous, generic short tail. +/datum/sprite_accessory/body_markings/tail/shared/short_tip name = "Short Tail Tip" species_allowed = list("Vulpkanin", "Tajaran") tails_allowed = list("Short Tail") diff --git a/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm b/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm index 0846744f0cafc..76cbbc7284c95 100644 --- a/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm +++ b/code/modules/mob/new_player/sprite_accessories/skrell/skrell_face.dm @@ -155,7 +155,8 @@ secondary_theme = "fest" no_sec_colour = 1 -/datum/sprite_accessory/hair/fluff/zeke_fluff_tentacle //Zeke Fluff hair +/// Zeke Fluff hair +/datum/sprite_accessory/hair/fluff/zeke_fluff_tentacle icon = 'icons/mob/sprite_accessories/skrell/skrell_hair.dmi' name = "Zekes Tentacles" icon_state = "zeke_fluff_hair" diff --git a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm index cf23d358bf042..519b62894bc18 100644 --- a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_head_markings.dm @@ -31,14 +31,17 @@ name = "Tajaran Muzzle and Inner Ears" icon_state = "muzinears" -/datum/sprite_accessory/body_markings/head/tajara/muzzle_alt_taj //Companion marking for Tajaran Belly 2. +/// Companion marking for Tajaran Belly 2. +/datum/sprite_accessory/body_markings/head/tajara/muzzle_alt_taj name = "Tajaran Muzzle 2" icon_state = "muzzle2" -/datum/sprite_accessory/body_markings/head/tajara/points_taj //Companion marking for Tajaran Points. +/// Companion marking for Tajaran Points. +/datum/sprite_accessory/body_markings/head/tajara/points_taj name = "Tajaran Points Head" icon_state = "points" -/datum/sprite_accessory/body_markings/head/tajara/patchy_taj //Companion marking for Tajaran Patches. +/// Companion marking for Tajaran Patches. +/datum/sprite_accessory/body_markings/head/tajara/patchy_taj name = "Tajaran Patches Head" icon_state = "patch" diff --git a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm index c8c0d20a6b3ec..ce507542afa3c 100644 --- a/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/tajaran/tajaran_tail_markings.dm @@ -2,6 +2,7 @@ icon = 'icons/mob/sprite_accessories/tajaran/tajaran_tail_markings.dmi' species_allowed = list("Tajaran") -/datum/sprite_accessory/body_markings/tail/tajara/taj_wingler_stripes //Tiger stripes. +/// Tiger stripes. +/datum/sprite_accessory/body_markings/tail/tajara/taj_wingler_stripes name = "Tajaran Tail Stripes" icon_state = "default_wingler" diff --git a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm index 81eb4356c6ca6..beed205244916 100644 --- a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm +++ b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_hair.dm @@ -3,7 +3,8 @@ species_allowed = list("Unathi") glasses_over = 1 -/datum/sprite_accessory/hair/braid_hip_una // Future coder: Change the typepath under unathi. This is a legacy of my accessories splitting PR where typepath change is avoided at all cost +// Future coder: Change the typepath under unathi. This is a legacy of my accessories splitting PR where typepath change is avoided at all cost +/datum/sprite_accessory/hair/braid_hip_una icon = 'icons/mob/sprite_accessories/unathi/unathi_hair.dmi' name = "Unathi Hippie Braid" icon_state = "hipbraid" diff --git a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm index b410148b0c94b..bb416b82f099c 100644 --- a/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/unathi/unathi_head_markings.dm @@ -20,16 +20,19 @@ icon_state = "lowersnout" heads_allowed = list("All") -/datum/sprite_accessory/body_markings/head/unathi/banded_una //Companion marking for Unathi Banded. +/// Companion marking for Unathi Banded. +/datum/sprite_accessory/body_markings/head/unathi/banded_una name = "Unathi Banded Head" icon_state = "bandedface" heads_allowed = list("All") -/datum/sprite_accessory/body_markings/head/unathi/snout_narrow_una //Companion marking for Unathi Narrow Belly. +/// Companion marking for Unathi Narrow Belly. +/datum/sprite_accessory/body_markings/head/unathi/snout_narrow_una name = "Unathi Snout 2" icon_state = "facenarrow" -/datum/sprite_accessory/body_markings/head/unathi/points_una //Companion marking for Unathi Points. +/// Companion marking for Unathi Points. +/datum/sprite_accessory/body_markings/head/unathi/points_una name = "Unathi Points Head" icon_state = "pointsface" heads_allowed = list("All") @@ -45,6 +48,7 @@ name = "Unathi Sharp Snout" icon_state = "snoutsharp" -/datum/sprite_accessory/body_markings/head/unathi/sharp/snout_narrow_una_sharp //Companion marking for Unathi Narrow Belly. +/// Companion marking for Unathi Narrow Belly. +/datum/sprite_accessory/body_markings/head/unathi/sharp/snout_narrow_una_sharp name = "Unathi Sharp Snout 2" icon_state = "facesharp" diff --git a/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm b/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm index e4c54a0b65ee0..d48897737c47e 100644 --- a/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm +++ b/code/modules/mob/new_player/sprite_accessories/vulpkanin/vulpkanin_head_markings.dm @@ -18,18 +18,22 @@ name = "Vulpkanin Tiger Head and Face" icon_state = "tiger_face" -/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_vulp //Companion marking for Vulpkanin Belly Alt.. +/// Companion marking for Vulpkanin Belly Alt.. +/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_vulp name = "Vulpkanin Muzzle" icon_state = "muzzle" -/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_ears_vulp //Companion marking for Vulpkanin Belly Alt.. +/// Companion marking for Vulpkanin Belly Alt.. +/datum/sprite_accessory/body_markings/head/vulpkanin/muzzle_ears_vulp name = "Vulpkanin Muzzle and Ears" icon_state = "muzzle_ear" -/datum/sprite_accessory/body_markings/head/vulpkanin/points_fade_vulp //Companion marking for Vulpkanin Points Fade. +/// Companion marking for Vulpkanin Points Fade. +/datum/sprite_accessory/body_markings/head/vulpkanin/points_fade_vulp name = "Vulpkanin Points Head" icon_state = "points_fade" -/datum/sprite_accessory/body_markings/head/vulpkanin/points_sharp_vulp //Companion marking for Vulpkanin Points Sharp. +/// Companion marking for Vulpkanin Points Sharp. +/datum/sprite_accessory/body_markings/head/vulpkanin/points_sharp_vulp name = "Vulpkanin Points Head 2" icon_state = "points_sharp" diff --git a/code/modules/mod/mod_construction.dm b/code/modules/mod/mod_construction.dm index e92f9bf41a31d..081cbddf01716 100644 --- a/code/modules/mod/mod_construction.dm +++ b/code/modules/mod/mod_construction.dm @@ -63,16 +63,20 @@ /obj/item/mod/construction/plating/cosmohonk theme = /datum/mod_theme/cosmohonk -/obj/item/mod/construction/plating/rescue //I want to add a way to get the rarer modsuit types, that is limited. A low chance for traders to have plating for it seems interesting +/// I want to add a way to get the rarer modsuit types, that is limited. A low chance for traders to have plating for it seems interesting +/obj/item/mod/construction/plating/rescue theme = /datum/mod_theme/rescue -/obj/item/mod/construction/plating/safeguard //Continued from above, none of these are steal objectives, and only the CE or RD one comes pre-installed with modules. You are getting the protection / speed / looks of these hardsuits, but no special modules. +/// Continued from above, none of these are steal objectives, and only the CE or RD one comes pre-installed with modules. You are getting the protection / speed / looks of these hardsuits, but no special modules. +/obj/item/mod/construction/plating/safeguard theme = /datum/mod_theme/safeguard -/obj/item/mod/construction/plating/advanced //This may be a bad idea. I think this is an interesting idea. And you still need robotics to build it, and traders can charge as much for it as they want. Also with ones like the CE modsuit, it is the flagship mod. That means it is sold a lot. +/// This may be a bad idea. I think this is an interesting idea. And you still need robotics to build it, and traders can charge as much for it as they want. Also with ones like the CE modsuit, it is the flagship mod. That means it is sold a lot. +/obj/item/mod/construction/plating/advanced theme = /datum/mod_theme/advanced -/obj/item/mod/construction/plating/research //Don't think people will want the RD one though, it is as slow as shit. Anyway, here it is. Surely this will not end poorly. +/// Don't think people will want the RD one though, it is as slow as shit. Anyway, here it is. Surely this will not end poorly. +/obj/item/mod/construction/plating/research theme = /datum/mod_theme/research #define START_STEP "start" diff --git a/code/modules/mod/mod_control.dm b/code/modules/mod/mod_control.dm index 6cd38c1bec975..1064d5f794553 100644 --- a/code/modules/mod/mod_control.dm +++ b/code/modules/mod/mod_control.dm @@ -268,7 +268,7 @@ if(!M.restrained() && !M.stat) playsound(loc, "rustle", 50, TRUE, -5) - if(istype(over_object, /obj/screen/inventory/hand)) + if(istype(over_object, /atom/movable/screen/inventory/hand)) for(var/obj/item/part as anything in mod_parts) if(part.loc != src) to_chat(wearer, "<span class='warning'>Retract parts first!</span>") @@ -657,7 +657,7 @@ if(!wearer) return if(!core) - wearer.throw_alert("mod_charge", /obj/screen/alert/nocell) + wearer.throw_alert("mod_charge", /atom/movable/screen/alert/nocell) return core.update_charge_alert() diff --git a/code/modules/mod/mod_core.dm b/code/modules/mod/mod_core.dm index 2dbd92afebc3f..62a214ce072c0 100644 --- a/code/modules/mod/mod_core.dm +++ b/code/modules/mod/mod_core.dm @@ -44,7 +44,8 @@ /obj/item/mod/core/proc/update_charge_alert() mod.wearer.clear_alert("mod_charge") -/obj/item/mod/core/infinite //Admin only. +/// Admin only. +/obj/item/mod/core/infinite name = "MOD infinite core" icon_state = "mod-core-infinite" desc = "A fusion core using the rare Infinium to sustain enough energy for the lifetime of the MOD's user. \ @@ -130,20 +131,20 @@ /obj/item/mod/core/standard/update_charge_alert() var/obj/item/stock_parts/cell/charge_source = charge_source() if(!charge_source) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/nocell) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/nocell) return var/remaining_cell = charge_amount() / max_charge_amount() switch(remaining_cell) if(0.75 to INFINITY) mod.wearer.clear_alert("mod_charge") if(0.5 to 0.75) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 1) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 1) if(0.25 to 0.5) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 2) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 2) if(0.01 to 0.25) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 3) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 3) else - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/emptycell) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/emptycell) /obj/item/mod/core/standard/emp_act(severity) cell?.emp_act(severity) @@ -275,13 +276,13 @@ if(0.75 to INFINITY) mod.wearer.clear_alert("mod_charge") if(0.5 to 0.75) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 1) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 1) if(0.25 to 0.5) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 2) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 2) if(0.01 to 0.25) - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/lowcell, 3) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/lowcell, 3) else - mod.wearer.throw_alert("mod_charge", /obj/screen/alert/emptycell) + mod.wearer.throw_alert("mod_charge", /atom/movable/screen/alert/emptycell) /obj/item/mod/core/plasma/on_attackby(obj/item/attacking_item, mob/user, params) charge_plasma(attacking_item, user) diff --git a/code/modules/mod/mod_theme.dm b/code/modules/mod/mod_theme.dm index d4057244a4503..14c1ce98eb89c 100644 --- a/code/modules/mod/mod_theme.dm +++ b/code/modules/mod/mod_theme.dm @@ -101,7 +101,8 @@ ), ) -/datum/mod_theme/standard //We don't want the civilian skin to apply to all modsuits, that causes issues. +/// We don't want the civilian skin to apply to all modsuits, that causes issues. +/datum/mod_theme/standard name = "standard" @@ -1125,7 +1126,8 @@ ), ) -/obj/item/mod/armor/mod_theme_responsory //This has no slowdown active, and no variation between levels. I am ASSUMING this will be gamma only. +/// This has no slowdown active, and no variation between levels. I am ASSUMING this will be gamma only. +/obj/item/mod/armor/mod_theme_responsory armor = list(MELEE = 40, BULLET = 25, LASER = 25, ENERGY = 20, BOMB = 25, RAD = INFINITY, FIRE = 200, ACID = 200) /datum/mod_theme/apocryphal @@ -1335,5 +1337,6 @@ ), ) -/obj/item/mod/armor/mod_theme_administrative //considering this should not be used, it's getting just DS armor, not infinity in everything. +/// considering this should not be used, it's getting just DS armor, not infinity in everything. +/obj/item/mod/armor/mod_theme_administrative armor = list(MELEE = 200, BULLET = 200, LASER = 50, ENERGY = 50, BOMB = INFINITY, RAD = INFINITY, FIRE = INFINITY, ACID = INFINITY) diff --git a/code/modules/mod/mod_types.dm b/code/modules/mod/mod_types.dm index 0ae05ec490e61..370a5b29bcea0 100644 --- a/code/modules/mod/mod_types.dm +++ b/code/modules/mod/mod_types.dm @@ -119,7 +119,8 @@ /obj/item/mod/module/sphere_transform, ) -/obj/item/mod/control/pre_equipped/mining/vendor //visit robotics. +/// visit robotics. +/obj/item/mod/control/pre_equipped/mining/vendor theme = /datum/mod_theme/mining applied_core = /obj/item/mod/core/plasma applied_modules = list( @@ -130,7 +131,8 @@ ) -/obj/item/mod/control/pre_equipped/mining/asteroid //The asteroid skin, as that one looks more space worthy / older. Good for space ruins. +/// The asteroid skin, as that one looks more space worthy / older. Good for space ruins. +/obj/item/mod/control/pre_equipped/mining/asteroid applied_skin = "asteroid" /obj/item/mod/control/pre_equipped/medical @@ -368,7 +370,8 @@ insignia_type = /obj/item/mod/module/insignia/chaplain additional_module = /obj/item/mod/module/injector -/obj/item/mod/control/pre_equipped/responsory/inquisitory //Diffrent look, as well as magic proof on TG. We don't have the magic proof stuff here, but it's perfect for inqusitors. Or if you want to give your ERT a fancy look. +/// Diffrent look, as well as magic proof on TG. We don't have the magic proof stuff here, but it's perfect for inqusitors. Or if you want to give your ERT a fancy look. +/obj/item/mod/control/pre_equipped/responsory/inquisitory applied_skin = "inquisitory" /obj/item/mod/control/pre_equipped/responsory/inquisitory/commander diff --git a/code/modules/mod/modules/_modules.dm b/code/modules/mod/modules/_modules.dm index fc7905d699b1a..35f6b60db828f 100644 --- a/code/modules/mod/modules/_modules.dm +++ b/code/modules/mod/modules/_modules.dm @@ -328,7 +328,7 @@ if(length(pinned_to)) for(var/datum/action/item_action/mod/pinned_module/M in user.actions) if(M.module == src) - M.Remove(user) + qdel(M) pinned_to = list() return var/datum/action/item_action/mod/pinned_module/new_action = new(Target = mod, custom_icon = src.icon, custom_icon_state = src.icon_state, linked_module = src, user = user) diff --git a/code/modules/mod/modules/module_kinesis.dm b/code/modules/mod/modules/module_kinesis.dm index 99fea77d8b82d..dcacecc173777 100644 --- a/code/modules/mod/modules/module_kinesis.dm +++ b/code/modules/mod/modules/module_kinesis.dm @@ -30,7 +30,7 @@ /// Overlay we add to each grabbed atom. var/image/kinesis_icon /// Our mouse movement catcher. - var/obj/screen/fullscreen/cursor_catcher/kinesis/kinesis_catcher + var/atom/movable/screen/fullscreen/cursor_catcher/kinesis/kinesis_catcher /// The sounds playing while we grabbed an object. var/datum/looping_sound/kinesis/soundloop ///The pixel_X of whatever we were grabbing before hand. @@ -83,7 +83,7 @@ pre_pixel_x = grabbed_atom.pixel_x pre_pixel_y = grabbed_atom.pixel_y beam.chain = beam.Beam(grabbed_atom, icon_state = "kinesis", icon='icons/effects/beam.dmi', time = 100 SECONDS, maxdistance = 15, beam_type = /obj/effect/ebeam, beam_sleep_time = 3) - kinesis_catcher = mod.wearer.overlay_fullscreen("kinesis", /obj/screen/fullscreen/cursor_catcher/kinesis, 0) + kinesis_catcher = mod.wearer.overlay_fullscreen("kinesis", /atom/movable/screen/fullscreen/cursor_catcher/kinesis, 0) kinesis_catcher.assign_to_mob(mod.wearer) soundloop.start() START_PROCESSING(SSfastprocess, src) @@ -249,7 +249,7 @@ complexity = 0 use_power_cost = DEFAULT_CHARGE_DRAIN * 5 -/obj/screen/fullscreen/cursor_catcher/kinesis +/atom/movable/screen/fullscreen/cursor_catcher/kinesis icon = 'icons/mob/screen_kinesis.dmi' icon_state = "kinesis" diff --git a/code/modules/mod/modules/modules_security.dm b/code/modules/mod/modules/modules_security.dm index 6e5a95364955d..865cf356faa80 100644 --- a/code/modules/mod/modules/modules_security.dm +++ b/code/modules/mod/modules/modules_security.dm @@ -92,7 +92,8 @@ M.Copy_Parent(thrower, 15 SECONDS) qdel(src) -/mob/living/simple_animal/hostile/illusion/mirage //It's just standing there, menacingly +/// It's just standing there, menacingly +/mob/living/simple_animal/hostile/illusion/mirage AIStatus = AI_OFF density = FALSE diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index 630d3140b1116..f0ed2903029c2 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -32,7 +32,8 @@ name = "autopsy reports drawer" desc = "A large drawer for holding autopsy reports." -/obj/structure/filingcabinet/filingcabinet //not changing the path to avoid unecessary map issues, but please don't name stuff like this in the future -Pete +/// not changing the path to avoid unecessary map issues, but please don't name stuff like this in the future -Pete +/obj/structure/filingcabinet/filingcabinet icon_state = "tallcabinet" diff --git a/code/modules/paperwork/paperbin.dm b/code/modules/paperwork/paperbin.dm index 7f5a434af85e5..c7339cb1585f6 100644 --- a/code/modules/paperwork/paperbin.dm +++ b/code/modules/paperwork/paperbin.dm @@ -39,7 +39,7 @@ M.unEquip(src) M.put_in_hands(src) - else if(istype(over_object, /obj/screen)) + else if(is_screen_atom(over_object)) switch(over_object.name) if("r_hand") if(!remove_item_from_storage(M)) diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 9ce82fb89937b..da507d360a48b 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -127,10 +127,11 @@ contained += "[round(reagent.volume, 0.01)]u [reagent]" if(reagents.total_volume && M.reagents) + var/fraction = min(transfer_amount / reagents.total_volume, 1) + reagents.reaction(M, REAGENT_INGEST, fraction) transfered = reagents.trans_to(M, transfer_amount) to_chat(user, "<span class='warning'>You sneakily stab [M] with the pen.</span>") add_attack_logs(user, M, "Stabbed with (sleepy) [src]. [transfered]u of reagents transfered from pen containing [english_list(contained)].") - reagents.reaction(M, REAGENT_INGEST, 0.1) return TRUE diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 1885adb49ac32..6e89173910e4f 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -142,7 +142,7 @@ if(ishuman(usr)) var/mob/M = usr - if(!istype(over_object, /obj/screen)) + if(!is_screen_atom(over_object)) return ..() playsound(loc, "rustle", 50, 1, -5) if((!M.restrained() && !M.stat && M.back == src)) diff --git a/code/modules/paperwork/silicon_photography.dm b/code/modules/paperwork/silicon_photography.dm index 5539477190a45..aba7263615ed8 100644 --- a/code/modules/paperwork/silicon_photography.dm +++ b/code/modules/paperwork/silicon_photography.dm @@ -10,13 +10,16 @@ var/photos_taken = 0 var/list/aipictures = list() -/obj/item/camera/siliconcam/ai_camera //camera AI can take pictures with +/// camera AI can take pictures with +/obj/item/camera/siliconcam/ai_camera name = "AI photo camera" -/obj/item/camera/siliconcam/robot_camera //camera cyborgs can take pictures with +/// camera cyborgs can take pictures with +/obj/item/camera/siliconcam/robot_camera name = "Cyborg photo camera" -/obj/item/camera/siliconcam/drone_camera //currently doesn't offer the verbs, thus cannot be used +/// currently doesn't offer the verbs, thus cannot be used +/obj/item/camera/siliconcam/drone_camera name = "Drone photo camera" /obj/item/camera/siliconcam/proc/injectaialbum(datum/picture/P, sufix = "") //stores image information to a list similar to that of the datacore diff --git a/code/modules/paperwork/stamps.dm b/code/modules/paperwork/stamps.dm index 8fb3082e07812..bb1c9ef9e2a00 100644 --- a/code/modules/paperwork/stamps.dm +++ b/code/modules/paperwork/stamps.dm @@ -1,5 +1,5 @@ /obj/item/stamp - name = "\improper rubber stamp" + name = "rubber stamp" desc = "A rubber stamp for stamping important documents." icon = 'icons/obj/bureaucracy.dmi' icon_state = "stamp-ok" diff --git a/code/modules/pda/PDA.dm b/code/modules/pda/PDA.dm index aaa3c6aeabdb0..38022d19e7b77 100644 --- a/code/modules/pda/PDA.dm +++ b/code/modules/pda/PDA.dm @@ -123,7 +123,7 @@ GLOBAL_LIST_EMPTY(PDAs) /obj/item/pda/MouseDrop(obj/over_object as obj, src_location, over_location) var/mob/M = usr - if((!istype(over_object, /obj/screen)) && can_use()) + if((!is_screen_atom(over_object)) && can_use()) return attack_self(M) /obj/item/pda/attack_self(mob/user as mob) diff --git a/code/modules/pda/cart.dm b/code/modules/pda/cart.dm index 9ca068dd81f55..4a66081f9563b 100644 --- a/code/modules/pda/cart.dm +++ b/code/modules/pda/cart.dm @@ -282,7 +282,8 @@ charges = 4 messenger_plugins = list(new/datum/data/pda/messenger_plugin/virus/detonate) -/obj/item/cartridge/syndicate/nuclear //needed subtype so regular traitors can't open and close nuclear shuttle doors +/// needed subtype so regular traitors can't open and close nuclear shuttle doors +/obj/item/cartridge/syndicate/nuclear name = "Nuclear Agent Detomatix Cartridge" desc = "The same reliable Detomatix program except with the added ability of remotely toggling your nuclear shuttle airlock from your PDA" var/initial_remote_door_id = "smindicate" //Make sure this matches the syndicate shuttle's shield/door id!! //don't ask about the name, testing. diff --git a/code/modules/pda/cart_apps.dm b/code/modules/pda/cart_apps.dm index 5779b0944f106..c52d71f48869f 100644 --- a/code/modules/pda/cart_apps.dm +++ b/code/modules/pda/cart_apps.dm @@ -449,8 +449,19 @@ var/direction = get_dir(pda,B) CartData[++CartData.len] = list("x" = bl.x, "y" = bl.y, "dir" = uppertext(dir2text(direction)), "volume" = B.reagents.total_volume, "max_volume" = B.reagents.maximum_volume) + var/list/JaniCartData = list() + for(var/obj/vehicle/janicart/janicart in GLOB.janitorial_equipment) + var/turf/janicart_loc = get_turf(janicart ) + if(janicart_loc) + if(janicart_loc.z != cl.z) + continue + var/direction_from_user = get_dir(pda, janicart) + JaniCartData[++JaniCartData.len] = list("x" = janicart_loc.x, "y" = janicart_loc.y, "direction_from_user" = uppertext(dir2text(direction_from_user))) + JaniData["mops"] = MopData.len ? MopData : null JaniData["buckets"] = BucketData.len ? BucketData : null JaniData["cleanbots"] = CbotData.len ? CbotData : null JaniData["carts"] = CartData.len ? CartData : null + JaniData["janicarts"] = JaniCartData.len ? JaniCartData : null data["janitor"] = JaniData + diff --git a/code/modules/power/apc/apc.dm b/code/modules/power/apc/apc.dm index bd6ed8a952e9a..f5ca2d8097a5a 100644 --- a/code/modules/power/apc/apc.dm +++ b/code/modules/power/apc/apc.dm @@ -1063,7 +1063,8 @@ /obj/machinery/power/apc/off_station/empty_charge start_charge = 0 -/obj/machinery/power/apc/syndicate //general syndicate access +/// general syndicate access +/obj/machinery/power/apc/syndicate name = "Main branch, do not use" req_access = list(ACCESS_SYNDICATE) report_power_alarm = FALSE diff --git a/code/modules/power/apc/apc_malfunction.dm b/code/modules/power/apc/apc_malfunction.dm index 1494cef300e17..6f46ae9745c1e 100644 --- a/code/modules/power/apc/apc_malfunction.dm +++ b/code/modules/power/apc/apc_malfunction.dm @@ -18,8 +18,8 @@ to_chat(malf, "Beginning override of APC systems. This takes some time, and you can only hack one APC at a time.") malf.malfhack = src malf.malfhacking = addtimer(CALLBACK(malf, TYPE_PROC_REF(/mob/living/silicon/ai, malfhacked), src), 600, TIMER_STOPPABLE) - var/obj/screen/alert/hackingapc/A - A = malf.throw_alert("hackingapc", /obj/screen/alert/hackingapc) + var/atom/movable/screen/alert/hackingapc/A + A = malf.throw_alert("hackingapc", /atom/movable/screen/alert/hackingapc) A.target = src /obj/machinery/power/apc/proc/malfoccupy(mob/living/silicon/ai/malf) diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 58ef4172770bf..ac615cfcf740e 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -211,17 +211,20 @@ name = "\improper X-01 multiphase energy gun power cell" maxcharge = 1200 -/obj/item/stock_parts/cell/pulse //200 pulse shots +/// 200 pulse shots +/obj/item/stock_parts/cell/pulse name = "pulse rifle power cell" maxcharge = 40000 rating = 3 chargerate = 1500 -/obj/item/stock_parts/cell/pulse/carbine //25 pulse shots +/// 25 pulse shots +/obj/item/stock_parts/cell/pulse/carbine name = "pulse carbine power cell" maxcharge = 5000 -/obj/item/stock_parts/cell/pulse/pistol //10 pulse shots +/// 10 pulse shots +/obj/item/stock_parts/cell/pulse/pistol name = "pulse pistol power cell" maxcharge = 2000 @@ -371,7 +374,8 @@ maxcharge = 40000 chargerate = 2600 // about 30 seconds to charge with a default recharger -/obj/item/stock_parts/cell/emproof/reactive // EMP proof so emp_act does not double dip. +/// EMP proof so emp_act does not double dip. +/obj/item/stock_parts/cell/emproof/reactive name = "reactive armor power cell" desc = "A cell used to power reactive armors." maxcharge = 2400 diff --git a/code/modules/power/engines/singularity/collector.dm b/code/modules/power/engines/singularity/collector.dm index ccacc3d2fb8c9..5e16aa265b83d 100644 --- a/code/modules/power/engines/singularity/collector.dm +++ b/code/modules/power/engines/singularity/collector.dm @@ -5,7 +5,7 @@ #define RAD_COLLECTOR_OUTPUT min(stored_energy, (stored_energy * RAD_COLLECTOR_STORED_OUT) + 1000) //Produces at least 1000 watts if it has more than that stored /obj/machinery/power/rad_collector - name = "\improper radiation collector array" + name = "radiation collector array" desc = "A device which uses Hawking Radiation and plasma to produce power." icon = 'icons/obj/singularity.dmi' icon_state = "ca" diff --git a/code/modules/power/engines/singularity/narsie.dm b/code/modules/power/engines/singularity/narsie.dm index a2424bad6651e..47676b99e59d7 100644 --- a/code/modules/power/engines/singularity/narsie.dm +++ b/code/modules/power/engines/singularity/narsie.dm @@ -1,4 +1,5 @@ -/obj/singularity/narsie //Moving narsie to a child object of the singularity so it can be made to function differently. --NEO +/// Moving narsie to a child object of the singularity so it can be made to function differently. --NEO +/obj/singularity/narsie name = "Nar'sie's Avatar" desc = "Your mind begins to bubble and ooze as it tries to comprehend what it sees." icon = 'icons/obj/magic_terror.dmi' diff --git a/code/modules/power/engines/supermatter/supermatter.dm b/code/modules/power/engines/supermatter/supermatter.dm index 678b6c49dd104..08d0f4c351fd3 100644 --- a/code/modules/power/engines/supermatter/supermatter.dm +++ b/code/modules/power/engines/supermatter/supermatter.dm @@ -1029,7 +1029,8 @@ moveable = FALSE anchored = TRUE -/obj/machinery/atmospherics/supermatter_crystal/shard/hugbox/fakecrystal //Hugbox shard with crystal visuals, used in the Supermatter/Hyperfractal shuttle +/// Hugbox shard with crystal visuals, used in the Supermatter/Hyperfractal shuttle +/obj/machinery/atmospherics/supermatter_crystal/shard/hugbox/fakecrystal name = "supermatter crystal" base_icon_state = "darkmatter" icon_state = "darkmatter" diff --git a/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm b/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm index 620d88ca48a36..08031bcec2403 100644 --- a/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm +++ b/code/modules/procedural_mapping/mapGenerators/syndicate_mapgen.dm @@ -25,7 +25,8 @@ // Generators -/datum/mapGenerator/syndicate/empty //walls and floor only +/// walls and floor only +/datum/mapGenerator/syndicate/empty modules = list(/datum/mapGeneratorModule/bottomLayer/syndieFloor, \ /datum/mapGeneratorModule/border/syndieWalls,\ /datum/mapGeneratorModule/bottomLayer/repressurize) diff --git a/code/modules/projectiles/ammunition/energy_lens.dm b/code/modules/projectiles/ammunition/energy_lens.dm index 322d210681afc..93f8c9b3d661b 100644 --- a/code/modules/projectiles/ammunition/energy_lens.dm +++ b/code/modules/projectiles/ammunition/energy_lens.dm @@ -13,7 +13,8 @@ muzzle_flash_color = LIGHT_COLOR_DARKRED select_name = "kill" -/obj/item/ammo_casing/energy/laser/cyborg //to balance cyborg energy cost seperately +/// to balance cyborg energy cost seperately +/obj/item/ammo_casing/energy/laser/cyborg e_cost = 250 /obj/item/ammo_casing/energy/lasergun @@ -175,7 +176,8 @@ randomspread = 1 delay = 2 -/obj/item/ammo_casing/energy/disabler/cyborg //seperate balancing for cyborg, again +/// seperate balancing for cyborg, again +/obj/item/ammo_casing/energy/disabler/cyborg e_cost = 250 /obj/item/ammo_casing/energy/disabler/hos @@ -306,7 +308,8 @@ e_cost = 350 // about 42 shots on an engineering borg from a borging machine, Reads a lot better than it actually is because people miss shots and often your better abilities require charge as well delay = 1 SECONDS -/obj/item/ammo_casing/energy/emitter/cyborg/proto // needed a slightly weaker ranged option to give to Safety Overriden borgs. The fire rate is about the same as an emitter if you put it on the ground. +/// needed a slightly weaker ranged option to give to Safety Overriden borgs. The fire rate is about the same as an emitter if you put it on the ground. +/obj/item/ammo_casing/energy/emitter/cyborg/proto e_cost = 500 delay = 2 SECONDS diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index 54fc6475c1459..2a74c71b44824 100644 --- a/code/modules/projectiles/ammunition/magazines.dm +++ b/code/modules/projectiles/ammunition/magazines.dm @@ -571,7 +571,8 @@ multi_sprite_step = 5 w_class = WEIGHT_CLASS_NORMAL -/obj/item/ammo_box/magazine/laser/ert //Used by red ERT. Keeps the size for them +/// Used by red ERT. Keeps the size for them +/obj/item/ammo_box/magazine/laser/ert name = "compact laser carbine projector magazine" desc = "By use of bluespace technology, the ammo casings are stored in a pocket dimension, saving on space and making them EMP proof." w_class = WEIGHT_CLASS_TINY @@ -589,7 +590,8 @@ /obj/item/ammo_box/magazine/toy/smgm45/riot ammo_type = /obj/item/ammo_casing/caseless/foam_dart/riot -/obj/item/ammo_box/magazine/detective/speedcharger //yes this doesn't really belong here but nowhere else works +// yes this doesn't really belong here but nowhere else works +/obj/item/ammo_box/magazine/detective/speedcharger name = "DL-88 charge pack" desc = "One-use charge pack for the DL-88 energy revolver." icon_state = "handgun_ammo_battery" diff --git a/code/modules/projectiles/guns/energy/special_eguns.dm b/code/modules/projectiles/guns/energy/special_eguns.dm index f76483b01c4fe..bad7b5dcbfc4e 100644 --- a/code/modules/projectiles/guns/energy/special_eguns.dm +++ b/code/modules/projectiles/guns/energy/special_eguns.dm @@ -838,7 +838,8 @@ tracking_target_UID = null -/obj/item/gun/energy/spikethrower //It's like the cyborg LMG, uses energy to make spikes +/// It's like the cyborg LMG, uses energy to make spikes +/obj/item/gun/energy/spikethrower name = "\improper Vox spike thrower" desc = "A vicious alien projectile weapon. Parts of it quiver gelatinously, as though the thing is insectile and alive." icon = 'icons/obj/guns/projectile.dmi' diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index 381d1d641d9e4..4168361a0e2c3 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -112,8 +112,9 @@ user.bleed(BLOOD_VOLUME_NORMAL) user.death() // Just in case -/obj/item/gun/projectile/revolver/fingergun //Summoned by the Finger Gun spell, from advanced mimery traitor item - name = "\improper finger gun" +/// Summoned by the Finger Gun spell, from advanced mimery traitor item +/obj/item/gun/projectile/revolver/fingergun + name = "finger gun" desc = "Bang bang bang!" icon_state = "fingergun" force = 0 diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 70e9a7f903bec..f5f3d6100d37f 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -86,7 +86,8 @@ // RIOT SHOTGUN // -/obj/item/gun/projectile/shotgun/riot //for spawn in the armory +/// for spawn in the armory +/obj/item/gun/projectile/shotgun/riot name = "riot shotgun" desc = "A sturdy shotgun with a longer magazine and a fixed tactical stock designed for non-lethal riot control." icon_state = "riotshotgun" diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 56935aae546e9..406aa34e3e3b7 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -7,7 +7,8 @@ hitsound_wall = "ricochet" impact_effect_type = /obj/effect/temp_visual/impact_effect -/obj/item/projectile/bullet/weakbullet //beanbag, heavy stamina damage +/// beanbag, heavy stamina damage +/obj/item/projectile/bullet/weakbullet name = "beanbag slug" damage = 5 stamina = 40 @@ -138,7 +139,8 @@ /obj/item/projectile/bullet/heavybullet damage = 35 -/obj/item/projectile/bullet/stunshot //taser slugs for shotguns, nothing special +/// taser slugs for shotguns, nothing special +/obj/item/projectile/bullet/stunshot name = "stunshot" damage = 5 weaken = 10 SECONDS diff --git a/code/modules/reagents/chemistry/reagents/admin_reagents.dm b/code/modules/reagents/chemistry/reagents/admin_reagents.dm index 32dc34f79de3c..bce28f02500e3 100644 --- a/code/modules/reagents/chemistry/reagents/admin_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/admin_reagents.dm @@ -1,4 +1,5 @@ -/datum/reagent/medicine/adminordrazine //An OP chemical for admins +/// An OP chemical for admins +/datum/reagent/medicine/adminordrazine name = "Adminordrazine" id = "adminordrazine" description = "It's magic. We don't have to explain it." diff --git a/code/modules/reagents/chemistry/reagents/alcohol.dm b/code/modules/reagents/chemistry/reagents/alcohol.dm index ac51cdc9cadc0..2995b332c32d2 100644 --- a/code/modules/reagents/chemistry/reagents/alcohol.dm +++ b/code/modules/reagents/chemistry/reagents/alcohol.dm @@ -230,7 +230,8 @@ drink_desc = "Damn, you feel like some kind of French aristocrat just by holding this." taste_description = "cognac" -/datum/reagent/consumable/ethanol/suicider //otherwise known as "I want to get so smashed my liver gives out and I die from alcohol poisoning". +/// otherwise known as "I want to get so smashed my liver gives out and I die from alcohol poisoning". +/datum/reagent/consumable/ethanol/suicider name = "Suicider" id = "suicider" description = "An unbelievably strong and potent variety of Cider." @@ -1155,7 +1156,8 @@ drink_desc = "For enjoying the most wonderful time of the year." taste_description = "christmas spirit" -/datum/reagent/consumable/ethanol/dragons_breath //inaccessible to players, but here for admin shennanigans +/// inaccessible to players, but here for admin shennanigans +/datum/reagent/consumable/ethanol/dragons_breath name = "Dragon's Breath" id = "dragonsbreath" description = "Possessing this stuff probably breaks the Geneva convention." @@ -1409,7 +1411,8 @@ #undef MIN_WINE_PERCENT -/datum/reagent/consumable/ethanol/bacchus_blessing //An EXTREMELY powerful drink. Smashed in seconds, dead in minutes. +/// An EXTREMELY powerful drink. Smashed in seconds, dead in minutes. +/datum/reagent/consumable/ethanol/bacchus_blessing name = "Bacchus' Blessing" id = "bacchus_blessing" description = "Unidentifiable mixture. Unmeasurably high alcohol content." diff --git a/code/modules/reagents/chemistry/reagents/blob_reagents.dm b/code/modules/reagents/chemistry/reagents/blob_reagents.dm index 0387905fe2c74..5eaa1a1e094b0 100644 --- a/code/modules/reagents/chemistry/reagents/blob_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/blob_reagents.dm @@ -12,7 +12,8 @@ /datum/reagent/blob/proc/damage_reaction(obj/structure/blob/B, damage, damage_type, damage_flag) //when the blob takes damage, do this return damage -/datum/reagent/blob/ripping_tendrils //does brute and a little stamina damage +/// does brute and a little stamina damage +/datum/reagent/blob/ripping_tendrils name = "Ripping Tendrils" description = "Deals High Brute damage, as well as Stamina damage." id = "ripping_tendrils" @@ -28,7 +29,8 @@ if(iscarbon(M)) M.emote("scream") -/datum/reagent/blob/boiling_oil //sets you on fire, does burn damage +/// sets you on fire, does burn damage +/datum/reagent/blob/boiling_oil name = "Boiling Oil" description = "Deals High Burn damage, and sets the victim aflame." id = "boiling_oil" @@ -45,7 +47,8 @@ M.IgniteMob() M.emote("scream") -/datum/reagent/blob/envenomed_filaments //toxin, hallucination, and some bonus spore toxin +/// toxin, hallucination, and some bonus spore toxin +/datum/reagent/blob/envenomed_filaments name = "Envenomed Filaments" description = "Deals High Toxin damage, causes Hallucinations, and injects Spores into the bloodstream." id = "envenomed_filaments" @@ -61,7 +64,8 @@ if(M.reagents) M.reagents.add_reagent("spore", 0.4*volume) -/datum/reagent/blob/lexorin_jelly //does tons of oxygen damage and a little brute +/// does tons of oxygen damage and a little brute +/datum/reagent/blob/lexorin_jelly name = "Lexorin Jelly" description = "Deals Medium Brute damage, but massive amounts of Respiration Damage." id = "lexorin_jelly" @@ -77,7 +81,8 @@ M.AdjustLoseBreath(round(0.6 SECONDS * volume)) -/datum/reagent/blob/kinetic //does semi-random brute damage +/// does semi-random brute damage +/datum/reagent/blob/kinetic name = "Kinetic Gelatin" description = "Deals Randomized damage, between 0.33 to 2.33 times the standard amount." id = "kinetic" @@ -91,7 +96,8 @@ var/damage = rand(5, 35)/25 M.apply_damage(damage*volume, BRUTE) -/datum/reagent/blob/cryogenic_liquid //does low burn damage and stamina damage and cools targets down +/// does low burn damage and stamina damage and cools targets down +/datum/reagent/blob/cryogenic_liquid name = "Cryogenic Liquid" description = "Deals Medium Brute damage, Stamina Damage, and injects Frost Oil into its victims, freezing them to death." id = "cryogenic_liquid" diff --git a/code/modules/reagents/chemistry/reagents/drugs.dm b/code/modules/reagents/chemistry/reagents/drugs.dm index 51f8ec28f3345..da1e5407c06c2 100644 --- a/code/modules/reagents/chemistry/reagents/drugs.dm +++ b/code/modules/reagents/chemistry/reagents/drugs.dm @@ -775,7 +775,8 @@ M.emote("laugh") return list(effect, update_flags) -/datum/reagent/rotatium //Rotatium. Fucks up your rotation and is hilarious +/// Rotatium. Fucks up your rotation and is hilarious +/datum/reagent/rotatium name = "Rotatium" id = "rotatium" description = "A constantly swirling, oddly colourful fluid. Causes the consumer's sense of direction and hand-eye coordination to become wild." diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm index 496cbf3fdd490..e1e666e56ab3d 100644 --- a/code/modules/reagents/chemistry/reagents/food_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm @@ -19,7 +19,8 @@ H.adjust_nutrition(nutriment_factor) // For hunger and fatness return ..() -/datum/reagent/consumable/nutriment // Pure nutriment, universally digestable and thus slightly less effective +/// Pure nutriment, universally digestable and thus slightly less effective +/datum/reagent/consumable/nutriment name = "Nutriment" id = "nutriment" description = "A questionable mixture of various pure nutrients commonly found in processed foods." @@ -62,13 +63,15 @@ counterlist_normalise(taste_amounts) data = taste_amounts -/datum/reagent/consumable/nutriment/protein // Meat-based protein, digestable by carnivores and omnivores, worthless to herbivores +/// Meat-based protein, digestable by carnivores and omnivores, worthless to herbivores +/datum/reagent/consumable/nutriment/protein name = "Protein" id = "protein" description = "Various essential proteins and fats commonly found in animal flesh and blood." diet_flags = DIET_CARN | DIET_OMNI -/datum/reagent/consumable/nutriment/plantmatter // Plant-based biomatter, digestable by herbivores and omnivores, worthless to carnivores +/// Plant-based biomatter, digestable by herbivores and omnivores, worthless to carnivores +/datum/reagent/consumable/nutriment/plantmatter name = "Plant-matter" id = "plantmatter" description = "Vitamin-rich fibers and natural sugars commonly found in fresh produce." @@ -219,56 +222,36 @@ if(method == REAGENT_TOUCH) if(ishuman(M)) var/mob/living/carbon/human/victim = M - var/mouth_covered = 0 - var/eyes_covered = 0 + var/mouth_covered = FALSE + var/eyes_covered = FALSE var/obj/item/safe_thing = null if(victim.wear_mask) if(victim.wear_mask.flags_cover & MASKCOVERSEYES) - eyes_covered = 1 + eyes_covered = TRUE safe_thing = victim.wear_mask if(victim.wear_mask.flags_cover & MASKCOVERSMOUTH) - mouth_covered = 1 + mouth_covered = TRUE safe_thing = victim.wear_mask if(victim.head) if(victim.head.flags_cover & MASKCOVERSEYES) - eyes_covered = 1 + eyes_covered = TRUE safe_thing = victim.head if(victim.head.flags_cover & MASKCOVERSMOUTH) - mouth_covered = 1 + mouth_covered = TRUE safe_thing = victim.head - if(victim.glasses) - eyes_covered = 1 - if(!safe_thing) - safe_thing = victim.glasses + if(eyes_covered && mouth_covered) to_chat(victim, "<span class='danger'>Your [safe_thing] protects you from the pepperspray!</span>") return - else if(mouth_covered) // Reduced effects if partially protected - to_chat(victim, "<span class='danger'>Your [safe_thing] protect you from most of the pepperspray!</span>") - if(prob(5)) - victim.emote("scream") - victim.EyeBlurry(6 SECONDS) - victim.EyeBlind(2 SECONDS) - victim.Confused(6 SECONDS) - victim.damageoverlaytemp = 60 - victim.Weaken(6 SECONDS) - victim.drop_item() - return - else if(eyes_covered) // Eye cover is better than mouth cover - to_chat(victim, "<span class='danger'>Your [safe_thing] protects your eyes from the pepperspray!</span>") - victim.EyeBlurry(6 SECONDS) - victim.damageoverlaytemp = 30 - return - else // Oh dear :D - if(prob(5)) - victim.emote("scream") - to_chat(victim, "<span class='danger'>You're sprayed directly in the eyes with pepperspray!</span>") - victim.EyeBlurry(10 SECONDS) - victim.EyeBlind(4 SECONDS) - victim.Confused(12 SECONDS) - victim.damageoverlaytemp = 75 - victim.Weaken(10 SECONDS) - victim.drop_item() + + if(!mouth_covered) + victim.apply_status_effect(STATUS_EFFECT_PEPPERSPRAYED) + + if(!eyes_covered) + to_chat(victim, "<span class='danger'>Your eyes burns!</span>") + victim.Stun(0.5 SECONDS) + victim.EyeBlurry(20 SECONDS) + victim.EyeBlind(8 SECONDS) /datum/reagent/consumable/frostoil name = "Frost Oil" @@ -833,7 +816,8 @@ ///Food Related, but non-nutritious -/datum/reagent/questionmark // food poisoning +/// food poisoning +/datum/reagent/questionmark name = "????" id = "????" description = "A gross and unidentifiable substance." diff --git a/code/modules/reagents/chemistry/reagents/medicine.dm b/code/modules/reagents/chemistry/reagents/medicine.dm index 3cd551e24f94e..7057b02f99ba4 100644 --- a/code/modules/reagents/chemistry/reagents/medicine.dm +++ b/code/modules/reagents/chemistry/reagents/medicine.dm @@ -1258,7 +1258,8 @@ M.Drowsy(40 SECONDS) return ..() | update_flags -/datum/reagent/medicine/syndicate_nanites //Used exclusively by Syndicate medical cyborgs +/// Used exclusively by Syndicate medical cyborgs +/datum/reagent/medicine/syndicate_nanites name = "Restorative Nanites" id = "syndicate_nanites" description = "Miniature medical robots that swiftly restore bodily damage. May begin to attack their host's cells in high amounts." @@ -1400,7 +1401,8 @@ return ..() | update_flags -/datum/reagent/medicine/earthsblood //Created by ambrosia gaia plants +/// Created by ambrosia gaia plants +/datum/reagent/medicine/earthsblood name = "Earthsblood" id = "earthsblood" description = "Ichor from an extremely powerful plant. Great for restoring wounds, but it's a little heavy on the brain." diff --git a/code/modules/reagents/chemistry/reagents/misc_reagents.dm b/code/modules/reagents/chemistry/reagents/misc_reagents.dm index e99879f3b28d4..ad585ba96a174 100644 --- a/code/modules/reagents/chemistry/reagents/misc_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/misc_reagents.dm @@ -447,7 +447,8 @@ /datum/reagent/love/reaction_mob(mob/living/M, method=REAGENT_TOUCH, volume) to_chat(M, "<span class='notice'>You feel loved!</span>") -/datum/reagent/jestosterone //Formerly known as Nitrogen tungstide hypochlorite before NT fired the chemists for trying to be funny +/// Formerly known as Nitrogen tungstide hypochlorite before NT fired the chemists for trying to be funny +/datum/reagent/jestosterone name = "Jestosterone" id = "jestosterone" description = "Jestosterone is an odd chemical compound that induces a variety of annoying side-effects in the average person. It also causes mild intoxication, and is toxic to mimes." diff --git a/code/modules/reagents/chemistry/reagents/toxins.dm b/code/modules/reagents/chemistry/reagents/toxins.dm index c104e21bd9e9b..264b0b6c88230 100644 --- a/code/modules/reagents/chemistry/reagents/toxins.dm +++ b/code/modules/reagents/chemistry/reagents/toxins.dm @@ -452,7 +452,8 @@ M.EyeBlurry(6 SECONDS) return ..() | update_flags -/datum/reagent/beer2 //disguised as normal beer for use by emagged service borgs +/// disguised as normal beer for use by emagged service borgs +/datum/reagent/beer2 name = "Beer" id = "beer2" description = "An alcoholic beverage made from malted grains, hops, yeast, and water." @@ -1082,7 +1083,8 @@ lethality = 2 //Atrazine, however, is definitely toxic -/datum/reagent/pestkiller // To-Do; make this more realistic. +/// To-Do; make this more realistic. +/datum/reagent/pestkiller name = "Pest Killer" id = "pestkiller" description = "A harmful toxic mixture to kill pests. Do not ingest!" @@ -1237,7 +1239,8 @@ M.emote("scream") M.adjustBruteLoss(4) -/datum/reagent/teslium //Teslium. Causes periodic shocks, and makes shocks against the target much more effective. +/// Teslium. Causes periodic shocks, and makes shocks against the target much more effective. +/datum/reagent/teslium name = "Teslium" id = "teslium" description = "An unstable, electrically-charged metallic slurry. Increases the conductance of living things." @@ -1281,7 +1284,8 @@ playsound(M, "sparks", 50, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) chosen_timer = rand(shock_low, shock_high) //It needs to be randomised here for blob teslium, and randoming it here doesn't affect normal -/datum/reagent/teslium/blob //This version has it's shocks much less frequently, while retaining the shock multiplier +/// This version has it's shocks much less frequently, while retaining the shock multiplier +/datum/reagent/teslium/blob id = "blob_teslium" shock_low = 10 use_chaotic_random = FALSE diff --git a/code/modules/reagents/chemistry/reagents/water.dm b/code/modules/reagents/chemistry/reagents/water.dm index 4c894c64f6718..451cc4fa829e1 100644 --- a/code/modules/reagents/chemistry/reagents/water.dm +++ b/code/modules/reagents/chemistry/reagents/water.dm @@ -118,7 +118,7 @@ if(method == REAGENT_INGEST && iscarbon(M)) var/mob/living/carbon/C = M - if(C.mind?.has_antag_datum(/datum/antagonist/vampire)) + if(C.mind?.has_antag_datum(/datum/antagonist/vampire) && data["blood_type"] != BLOOD_TYPE_FAKE_BLOOD) C.set_nutrition(min(NUTRITION_LEVEL_WELL_FED, C.nutrition + 10)) C.blood_volume = min(C.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL) ..() @@ -363,7 +363,8 @@ qdel(R) T.Bless() -/datum/reagent/fuel/unholywater //if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke +/// if you somehow managed to extract this from someone, dont splash it on yourself and have a smoke +/datum/reagent/fuel/unholywater name = "Unholy Water" id = "unholywater" description = "Something that shouldn't exist on this plane of existence." diff --git a/code/modules/reagents/chemistry/reagents_datum.dm b/code/modules/reagents/chemistry/reagents_datum.dm index 6f2f09a42e5a1..fa5aa62e8842b 100644 --- a/code/modules/reagents/chemistry/reagents_datum.dm +++ b/code/modules/reagents/chemistry/reagents_datum.dm @@ -78,7 +78,8 @@ if(id == "blood" && !(data?["blood_type"] in get_safe_blood(C.dna?.blood_type)) || C.dna?.species.name != data?["species"] && (data?["species_only"] || C.dna?.species.own_species_blood)) C.reagents.add_reagent("toxin", volume * 0.5) else - C.blood_volume = min(C.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL) + if(data?["blood_type"] != BLOOD_TYPE_FAKE_BLOOD) + C.blood_volume = min(C.blood_volume + round(volume, 0.1), BLOOD_VOLUME_NORMAL) // This does not absorb the blood we are getting in *this* reagent transfer operation, // (because the actual transfer has not happened yet. Because reasons) but it does process // the blood already in the mob. diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm index ed5bb95bedd7c..0614786d2d1bb 100644 --- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm +++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm @@ -225,7 +225,8 @@ result_amount = 2 mix_message = "The substance becomes a pile of burning dust." -/datum/chemical_reaction/phlogiston_fire //This MUST be above the smoke recipe. +/// This MUST be above the smoke recipe. +/datum/chemical_reaction/phlogiston_fire name = "Phlogiston Fire" id = "phlogiston_fire" result = "phlogiston" diff --git a/code/modules/reagents/chemistry/recipes/toxins_reactions.dm b/code/modules/reagents/chemistry/recipes/toxins_reactions.dm index cf61f2f916b0e..68d23fe73c105 100644 --- a/code/modules/reagents/chemistry/recipes/toxins_reactions.dm +++ b/code/modules/reagents/chemistry/recipes/toxins_reactions.dm @@ -108,7 +108,8 @@ result_amount = 3 mix_message = "The mixture gives off a harsh odor" -/datum/chemical_reaction/pestkiller // To-Do make this more realistic +/// To-Do make this more realistic +/datum/chemical_reaction/pestkiller name = "Pest Killer" id = "pestkiller" result = "pestkiller" diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 44bb7655de244..7a70db39f578a 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -39,7 +39,7 @@ create_reagents(volume, temperature_min, temperature_max) if(spawned_disease) var/datum/disease/F = new spawned_disease(0) - var/list/data = list("viruses" = list(F), "blood_color" = "#A10808") + var/list/data = list("viruses" = list(F), "blood_color" = "#A10808", "blood_type" = BLOOD_TYPE_FAKE_BLOOD) reagents.add_reagent("blood", disease_amount, data) add_initial_reagents() diff --git a/code/modules/reagents/reagent_containers/applicator.dm b/code/modules/reagents/reagent_containers/applicator.dm index 57bc2d39221ae..7b29dfdcee32d 100644 --- a/code/modules/reagents/reagent_containers/applicator.dm +++ b/code/modules/reagents/reagent_containers/applicator.dm @@ -144,5 +144,6 @@ name = "dual auto-mender" list_reagents = list("synthflesh" = 200) -/obj/item/reagent_containers/applicator/dual/syndi // It magically goes through hardsuits. Don't ask how. +/// It magically goes through hardsuits. Don't ask how. +/obj/item/reagent_containers/applicator/dual/syndi ignore_flags = TRUE diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index ccffe1dcab951..558f06a3a195f 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -116,7 +116,8 @@ volume = 100 list_reagents = list("nanites" = 100) -/obj/item/reagent_containers/hypospray/autoinjector // This is an empty variant +/// This is an empty variant +/obj/item/reagent_containers/hypospray/autoinjector name = "empty autoinjector" desc = "A rapid and safe way to inject chemicals into humanoids. This one is empty." icon_state = "autoinjector" @@ -160,13 +161,15 @@ desc = "A rapid and safe way to stabilize patients in critical condition for personnel without advanced medical knowledge." list_reagents = list("epinephrine" = 10) -/obj/item/reagent_containers/hypospray/autoinjector/teporone //basilisks +/// basilisks +/obj/item/reagent_containers/hypospray/autoinjector/teporone name = "teporone autoinjector" desc = "A rapid way to regulate your body's temperature in the event of a hardsuit malfunction." icon_state = "lepopen" list_reagents = list("teporone" = 10) -/obj/item/reagent_containers/hypospray/autoinjector/stimpack //goliath kiting +/// goliath kiting +/obj/item/reagent_containers/hypospray/autoinjector/stimpack name = "stimpack autoinjector" desc = "A rapid way to stimulate your body's adrenaline, allowing for freer movement in restrictive armor." icon_state = "stimpen" diff --git a/code/modules/reagents/reagent_containers/iv_bag.dm b/code/modules/reagents/reagent_containers/iv_bag.dm index 0236eb5ed2eb6..4dcf8ffff9a46 100644 --- a/code/modules/reagents/reagent_containers/iv_bag.dm +++ b/code/modules/reagents/reagent_containers/iv_bag.dm @@ -163,7 +163,8 @@ . = ..() name = "[initial(name)] - Saline Glucose" -/obj/item/reagent_containers/iv_bag/blood // Don't use this - just an abstract type to allow blood bags to have a common blood_type var for ease of creation. +/// Don't use this - just an abstract type to allow blood bags to have a common blood_type var for ease of creation. +/obj/item/reagent_containers/iv_bag/blood var/blood_type var/blood_species = "Synthetic humanoid" var/iv_blood_colour = "#A10808" diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 518e1f9a4a429..6a7f760a61e0a 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -273,8 +273,9 @@ to_chat(user, "<span class='notice'>You adjust the output switch. You'll now use [amount_per_transfer_from_this] units per spray.</span>") -// Plant-B-Gone -/obj/item/reagent_containers/spray/plantbgone // -- Skie +/// Plant-B-Gone +/// -- Skie +/obj/item/reagent_containers/spray/plantbgone name = "Plant-B-Gone" desc = "Kills those pesky weeds!" icon = 'icons/obj/hydroponics/equipment.dmi' diff --git a/code/modules/recycling/belt-placer.dm b/code/modules/recycling/belt-placer.dm index 1b473bef81465..8e1db8b15fced 100644 --- a/code/modules/recycling/belt-placer.dm +++ b/code/modules/recycling/belt-placer.dm @@ -1,4 +1,5 @@ -/obj/item/storage/conveyor //Stores conveyor belts, click floor to make belt, use a conveyor switch on this to link all belts to that lever. +/// Stores conveyor belts, click floor to make belt, use a conveyor switch on this to link all belts to that lever. +/obj/item/storage/conveyor name = "conveyor belt placer" desc = "This device facilitates the rapid deployment of conveyor belts." icon_state = "belt_placer" diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 50bc20252eb84..dd15c3f2a6507 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -547,7 +547,7 @@ /obj/machinery/disposal/get_remote_view_fullscreens(mob/user) if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS))) - user.overlay_fullscreen("remote_view", /obj/screen/fullscreen/impaired, 2) + user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/impaired, 2) /obj/machinery/disposal/force_eject_occupant(mob/target) target.forceMove(get_turf(src)) diff --git a/code/modules/research/anomaly/anomaly.dm b/code/modules/research/anomaly/anomaly.dm index e3d80b984edf1..b895540988ea6 100644 --- a/code/modules/research/anomaly/anomaly.dm +++ b/code/modules/research/anomaly/anomaly.dm @@ -18,42 +18,42 @@ //Anomaly cores /obj/item/assembly/signaler/anomaly/pyro - name = "\improper pyroclastic anomaly core" + name = "pyroclastic anomaly core" desc = "The neutralized core of a pyroclastic anomaly. It feels warm to the touch. It'd probably be valuable for research." icon_state = "pyro_core" anomaly_type = /obj/effect/anomaly/pyro origin_tech = "plasmatech=7" /obj/item/assembly/signaler/anomaly/cryo - name = "\improper cryogenic anomaly core" + name = "cryogenic anomaly core" desc = "The neutralized core of a cryogenic anomaly. Rime is forming on its cold surface. It'd probably be valuable for research." icon_state = "cryo_core" anomaly_type = /obj/effect/anomaly/cryo origin_tech = "biotech=7" /obj/item/assembly/signaler/anomaly/grav - name = "\improper gravitational anomaly core" + name = "gravitational anomaly core" desc = "The neutralized core of a gravitational anomaly. It feels much heavier than it looks. It'd probably be valuable for research." icon_state = "grav_core" anomaly_type = /obj/effect/anomaly/grav origin_tech = "magnets=7" /obj/item/assembly/signaler/anomaly/flux - name = "\improper flux anomaly core" + name = "flux anomaly core" desc = "The neutralized core of a flux anomaly. Touching it makes your skin tingle. It'd probably be valuable for research." icon_state = "flux_core" anomaly_type = /obj/effect/anomaly/flux origin_tech = "powerstorage=7" /obj/item/assembly/signaler/anomaly/bluespace - name = "\improper bluespace anomaly core" + name = "bluespace anomaly core" desc = "The neutralized core of a bluespace anomaly. It keeps phasing in and out of view. It'd probably be valuable for research." icon_state = "anomaly_core" anomaly_type = /obj/effect/anomaly/bluespace origin_tech = "bluespace=7" /obj/item/assembly/signaler/anomaly/vortex - name = "\improper vortex anomaly core" + name = "vortex anomaly core" desc = "The neutralized core of a vortex anomaly. It won't sit still, as if some invisible force is acting on it. It'd probably be valuable for research." icon_state = "vortex_core" anomaly_type = /obj/effect/anomaly/bhole diff --git a/code/modules/research/designs.dm b/code/modules/research/designs.dm index 809cf610e0176..aeae9e6daa5a9 100644 --- a/code/modules/research/designs.dm +++ b/code/modules/research/designs.dm @@ -29,7 +29,8 @@ other types of metals and chemistry for reagents). */ -/datum/design //Datum for object designs, used in construction +/// Datum for object designs, used in construction +/datum/design var/name = "Name" //Name of the created object. var/desc = "Desc" //Description of the created object. var/id = "id" //ID of the created object for easy refernece. Alphanumeric, lower-case, no symbols diff --git a/code/modules/research/research.dm b/code/modules/research/research.dm index 50e22ec33cae2..1846823372395 100644 --- a/code/modules/research/research.dm +++ b/code/modules/research/research.dm @@ -44,7 +44,8 @@ research holder datum. ** Includes all the helper procs and basic tech processing. ** ***************************************************************/ -/datum/research //Holder for all the existing, archived, and known tech. Individual to console. +/// Holder for all the existing, archived, and known tech. Individual to console. +/datum/research //Datum/tech go here. // Possible is a list of direct datum references @@ -249,7 +250,8 @@ research holder datum. ** Includes all the various technoliges and what they make. ** ***************************************************************/ -/datum/tech //Datum of individual technologies. +/// Datum of individual technologies. +/datum/tech var/name = "name" //Name of the technology. var/desc = "description" //General description of what it does and what it makes. var/id = "id" //An easily referenced ID. Must be alphanumeric, lower-case, and no symbols. @@ -317,7 +319,8 @@ research holder datum. id = "programming" max_level = 7 -/datum/tech/toxins //not meant to be raised by deconstruction, do not give objects toxins as an origin_tech +/// not meant to be raised by deconstruction, do not give objects toxins as an origin_tech +/datum/tech/toxins name = "Toxins Research" desc = "Research into plasma based explosive devices. Upgrade through testing explosives in the toxins lab." id = "toxins" diff --git a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm index fa9306f52459d..35c509798e12a 100644 --- a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm +++ b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm @@ -68,7 +68,8 @@ layer = TURF_LAYER plane = FLOOR_PLANE -/obj/effect/clockwork/overlay/floor/bloodcult //this is used by BLOOD CULT, it shouldn't use such a path... +/// this is used by BLOOD CULT, it shouldn't use such a path... +/obj/effect/clockwork/overlay/floor/bloodcult icon_state = "cult" // Wall gears @@ -204,7 +205,8 @@ name = "gear bit" desc = "A broken chunk of a gear. You want it." -/obj/item/clockwork/alloy_shards/medium/gear_bit/large //gives more power +/// gives more power +/obj/item/clockwork/alloy_shards/medium/gear_bit/large /obj/item/clockwork/alloy_shards/medium/gear_bit/large/replace_name_desc() ..() diff --git a/code/modules/ruins/lavalandruin_code/sin_ruins.dm b/code/modules/ruins/lavalandruin_code/sin_ruins.dm index 38fc3e466bdb4..8d9ed669b8c85 100644 --- a/code/modules/ruins/lavalandruin_code/sin_ruins.dm +++ b/code/modules/ruins/lavalandruin_code/sin_ruins.dm @@ -130,7 +130,8 @@ collapse() // Gluttony -/obj/effect/gluttony //Gluttony's wall: Used in the Gluttony ruin. Only lets the overweight through. +/// Gluttony's wall: Used in the Gluttony ruin. Only lets the overweight through. +/obj/effect/gluttony name = "gluttony's wall" desc = "Only those who truly indulge may pass." anchored = TRUE @@ -153,7 +154,8 @@ return FALSE // Pride -/obj/structure/mirror/magic/pride //Pride's mirror: Used in the Pride ruin. +/// Pride's mirror: Used in the Pride ruin. +/obj/structure/mirror/magic/pride name = "pride's mirror" desc = "Pride cometh before the..." icon_state = "magic_mirror" @@ -180,7 +182,8 @@ C.drop(user) // Envy -/obj/item/kitchen/knife/envy //Envy's knife: Found in the Envy ruin. Attackers take on the appearance of whoever they strike. +/// Envy's knife: Found in the Envy ruin. Attackers take on the appearance of whoever they strike. +/obj/item/kitchen/knife/envy name = "envy's knife" desc = "Their success will be yours." icon = 'icons/obj/wizard.dmi' diff --git a/code/modules/space_management/space_transition.dm b/code/modules/space_management/space_transition.dm index 282fa666b9965..f6030cfdf5d4b 100644 --- a/code/modules/space_management/space_transition.dm +++ b/code/modules/space_management/space_transition.dm @@ -82,7 +82,8 @@ return S -/datum/point //this is explicitly utilitarian datum type made specially for the space map generation and are absolutely unusable for anything else +/// this is explicitly utilitarian datum type made specially for the space map generation and are absolutely unusable for anything else +/datum/point var/list/neighbors = list() var/x var/y diff --git a/code/modules/supply/supply_packs/pack_emergency.dm b/code/modules/supply/supply_packs/pack_emergency.dm index 3957f94e9397c..c34c949986bb2 100644 --- a/code/modules/supply/supply_packs/pack_emergency.dm +++ b/code/modules/supply/supply_packs/pack_emergency.dm @@ -1,4 +1,5 @@ -/datum/supply_packs/emergency // Section header - use these to set default supply group and crate type for sections +/// Section header - use these to set default supply group and crate type for sections +/datum/supply_packs/emergency name = "HEADER" // Use "HEADER" to denote section headers, this is needed for the supply computers to filter them containertype = /obj/structure/closet/crate/internals group = SUPPLY_EMERGENCY diff --git a/code/modules/supply/supply_packs/pack_engineering.dm b/code/modules/supply/supply_packs/pack_engineering.dm index cd06c41f78536..f75fbf64f1ea7 100644 --- a/code/modules/supply/supply_packs/pack_engineering.dm +++ b/code/modules/supply/supply_packs/pack_engineering.dm @@ -12,7 +12,8 @@ containertype = /obj/structure/largecrate containername = "fuel tank crate" -/datum/supply_packs/engineering/tools //the most robust crate +/// the most robust crate +/datum/supply_packs/engineering/tools name = "Toolbox Crate" contains = list(/obj/item/storage/toolbox/electrical, /obj/item/storage/toolbox/electrical, diff --git a/code/modules/supply/supply_packs/pack_miscellaneous.dm b/code/modules/supply/supply_packs/pack_miscellaneous.dm index 113ab3cbfa7ce..80dfa802b469e 100644 --- a/code/modules/supply/supply_packs/pack_miscellaneous.dm +++ b/code/modules/supply/supply_packs/pack_miscellaneous.dm @@ -405,7 +405,8 @@ cost = 1000 containername = "expensive coat crate" -/datum/supply_packs/misc/formalwear //This is a very classy crate. +/// This is a very classy crate. +/datum/supply_packs/misc/formalwear name = "Formal Wear Crate" contains = list(/obj/item/clothing/under/dress/blacktango, /obj/item/clothing/under/misc/assistantformal, @@ -449,7 +450,8 @@ cost = 400 containername = "wedding crate" -/datum/supply_packs/misc/teamcolors //For team sports like space polo +/// For team sports like space polo +/datum/supply_packs/misc/teamcolors name = "Team Jerseys Crate" // 4 red jerseys, 4 blue jerseys, and 1 baseball contains = list(/obj/item/clothing/under/color/red/jersey, @@ -464,7 +466,8 @@ cost = 300 containername = "team jerseys crate" -/datum/supply_packs/misc/polo //For space polo! Or horsehead Quiditch +/// For space polo! Or horsehead Quiditch +/datum/supply_packs/misc/polo name = "Polo Supply Crate" // 6 brooms, 6 horse masks for the brooms, and 1 beach ball contains = list(/obj/item/staff/broom, @@ -483,7 +486,8 @@ cost = 250 containername = "polo supply crate" -/datum/supply_packs/misc/boxing //For non log spamming cargo brawls! +/// For non log spamming cargo brawls! +/datum/supply_packs/misc/boxing name = "Boxing Supply Crate" // 4 boxing gloves contains = list(/obj/item/clothing/gloves/boxing/blue, diff --git a/code/modules/supply/supply_packs/pack_organic.dm b/code/modules/supply/supply_packs/pack_organic.dm index 2f6158d207bf7..26940ae357299 100644 --- a/code/modules/supply/supply_packs/pack_organic.dm +++ b/code/modules/supply/supply_packs/pack_organic.dm @@ -37,7 +37,8 @@ cost = 500 containername = "Pizza crate" -/datum/supply_packs/misc/randomised/ingredients // its a bit hacky... +/// its a bit hacky... +/datum/supply_packs/misc/randomised/ingredients num_contained = 25 contains = list(/obj/item/food/snacks/grown/wheat, /obj/item/food/snacks/grown/tomato, @@ -234,7 +235,8 @@ ////// hippy gear -/datum/supply_packs/organic/hydroponics // -- Skie +/// -- Skie +/datum/supply_packs/organic/hydroponics name = "Hydroponics Supply Crate" contains = list(/obj/item/reagent_containers/spray/plantbgone, /obj/item/reagent_containers/spray/plantbgone, diff --git a/code/modules/supply/supply_packs/pack_security.dm b/code/modules/supply/supply_packs/pack_security.dm index ed278f83aaf46..152cd90f2baea 100644 --- a/code/modules/supply/supply_packs/pack_security.dm +++ b/code/modules/supply/supply_packs/pack_security.dm @@ -216,7 +216,8 @@ containertype = /obj/structure/closet/crate/secure/plasma containername = "energy gun crate" -/datum/supply_packs/security/armory/epistol // costs 3/5ths of the normal e-guns for 3/4ths the total ammo, making it cheaper to arm more people, but less convient for any one person +/// costs 3/5ths of the normal e-guns for 3/4ths the total ammo, making it cheaper to arm more people, but less convient for any one person +/datum/supply_packs/security/armory/epistol name = "Energy Pistol Crate" contains = list(/obj/item/gun/energy/gun/mini, /obj/item/gun/energy/gun/mini, @@ -330,7 +331,8 @@ cost = 200 containername = "security clothing crate" -/datum/supply_packs/security/officerpack // Starter pack for an officer. Contains everything in a locker but backpack (officer already start with one). Convenient way to equip new officer on highpop. +/// Starter pack for an officer. Contains everything in a locker but backpack (officer already start with one). Convenient way to equip new officer on highpop. +/datum/supply_packs/security/officerpack name = "Officer Starter Pack" contains = list(/obj/item/clothing/suit/armor/vest/security, /obj/item/radio/headset/headset_sec/alt, diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm index 89a19ebcb97c0..1dad1daa084f0 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -329,7 +329,8 @@ parent_organ = "l_arm" slot = "l_arm_device" -/obj/item/organ/internal/cyberimp/arm/janitorial/advanced /// ERT implant, i dont overly expect this to get into the hands of crew +/// ERT implant, i dont overly expect this to get into the hands of crew +/obj/item/organ/internal/cyberimp/arm/janitorial/advanced name = "advanced janitorial toolset implant" desc = "A set of advanced janitorial tools hidden behind a concealed panel on the user's arm." contents = newlist(/obj/item/mop/advanced, /obj/item/soap/deluxe, /obj/item/lightreplacer/bluespace, /obj/item/holosign_creator/janitor, /obj/item/melee/flyswatter, /obj/item/reagent_containers/spray/cleaner/advanced) @@ -338,7 +339,8 @@ action_icon_state = list(/datum/action/item_action/organ_action/toggle = "janibelt") emp_proof = TRUE -/obj/item/organ/internal/cyberimp/arm/janitorial/advanced/l /// its for ERT, but still probably a good idea. +/// its for ERT, but still probably a good idea. +/obj/item/organ/internal/cyberimp/arm/janitorial/advanced/l parent_organ = "l_arm" slot = "l_arm_device" diff --git a/code/modules/surgery/organs/augments_internal.dm b/code/modules/surgery/organs/augments_internal.dm index 54a1b02031682..e0733411b137b 100644 --- a/code/modules/surgery/organs/augments_internal.dm +++ b/code/modules/surgery/organs/augments_internal.dm @@ -240,7 +240,8 @@ REMOVE_TRAIT(M, TRAIT_COMIC_SANS, "augment") return ..() -/obj/item/organ/internal/cyberimp/brain/speech_translator //actual translating done in human/handle_speech_problems +// actual translating done in human/handle_speech_problems +/obj/item/organ/internal/cyberimp/brain/speech_translator name = "Speech translator implant" desc = "While known as a translator, this implant actually generates speech based on the user's thoughts when activated, completely bypassing the need to speak." implant_color = "#C0C0C0" diff --git a/code/modules/surgery/organs/blood.dm b/code/modules/surgery/organs/blood.dm index f16ef7cecd8f8..ab99f91591a06 100644 --- a/code/modules/surgery/organs/blood.dm +++ b/code/modules/surgery/organs/blood.dm @@ -234,26 +234,26 @@ // This is has more potential uses, and is probably faster than the old proc. /proc/get_safe_blood(bloodtype) - . = list() + . = list(BLOOD_TYPE_FAKE_BLOOD) if(!bloodtype) return switch(bloodtype) if("A-") - return list("A-", "O-") + . += list("A-", "O-") if("A+") - return list("A-", "A+", "O-", "O+") + . += list("A-", "A+", "O-", "O+") if("B-") - return list("B-", "O-") + . += list("B-", "O-") if("B+") - return list("B-", "B+", "O-", "O+") + . += list("B-", "B+", "O-", "O+") if("AB-") - return list("A-", "B-", "O-", "AB-") + . += list("A-", "B-", "O-", "AB-") if("AB+") - return list("A-", "A+", "B-", "B+", "O-", "O+", "AB-", "AB+") + . += list("A-", "A+", "B-", "B+", "O-", "O+", "AB-", "AB+") if("O-") - return list("O-") + . += list("O-") if("O+") - return list("O-", "O+") + . += list("O-", "O+") //to add a splatter of blood or other mob liquid. /mob/living/proc/add_splatter_floor(turf/T, small_drip, shift_x, shift_y, emittor_intertia) diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index 700232bf3fe42..373303286c605 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -211,7 +211,8 @@ #define ONE_SHATTERED 1 #define BOTH_SHATTERED 2 -/obj/item/organ/internal/eyes/cybernetic/eyesofgod //no occuline allowed +// no occuline allowed +/obj/item/organ/internal/eyes/cybernetic/eyesofgod name = "\improper Eyes of the Gods" desc = "Two eyes said to belong to the gods. But such vision comes at a price." icon_state = "eyesofgod" diff --git a/code/modules/surgery/organs/organ_datums/lung_datum.dm b/code/modules/surgery/organs/organ_datums/lung_datum.dm index c939bbab65110..2bec8cdc8d179 100644 --- a/code/modules/surgery/organs/organ_datums/lung_datum.dm +++ b/code/modules/surgery/organs/organ_datums/lung_datum.dm @@ -65,13 +65,13 @@ H.adjustOxyLoss(5) if(safe_oxygen_min) - H.throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + H.throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else if(safe_toxins_min) - H.throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + H.throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) else if(safe_co2_min) - H.throw_alert("not_enough_co2", /obj/screen/alert/not_enough_co2) + H.throw_alert("not_enough_co2", /atom/movable/screen/alert/not_enough_co2) else if(safe_nitro_min) - H.throw_alert("not_enough_nitro", /obj/screen/alert/not_enough_nitro) + H.throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro) return FALSE @@ -95,7 +95,7 @@ if(O2_pp > safe_oxygen_max) var/ratio = (breath.oxygen / safe_oxygen_max / safe_oxygen_max) * 10 H.apply_damage_type(clamp(ratio, oxy_breath_dam_min, oxy_breath_dam_max), oxy_damage_type) - H.throw_alert("too_much_oxy", /obj/screen/alert/too_much_oxy) + H.throw_alert("too_much_oxy", /atom/movable/screen/alert/too_much_oxy) else H.clear_alert("too_much_oxy") @@ -103,7 +103,7 @@ if(safe_oxygen_min) if(O2_pp < safe_oxygen_min) gas_breathed = handle_too_little_breath(H, O2_pp, safe_oxygen_min, breath.oxygen) - H.throw_alert("not_enough_oxy", /obj/screen/alert/not_enough_oxy) + H.throw_alert("not_enough_oxy", /atom/movable/screen/alert/not_enough_oxy) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.oxygen @@ -121,7 +121,7 @@ if(N2_pp > safe_nitro_max) var/ratio = (breath.nitrogen / safe_nitro_max) * 10 H.apply_damage_type(clamp(ratio, nitro_breath_dam_min, nitro_breath_dam_max), nitro_damage_type) - H.throw_alert("too_much_nitro", /obj/screen/alert/too_much_nitro) + H.throw_alert("too_much_nitro", /atom/movable/screen/alert/too_much_nitro) else H.clear_alert("too_much_nitro") @@ -129,7 +129,7 @@ if(safe_nitro_min) if(N2_pp < safe_nitro_min) gas_breathed = handle_too_little_breath(H, N2_pp, safe_nitro_min, breath.nitrogen) - H.throw_alert("not_enough_nitro", /obj/screen/alert/not_enough_nitro) + H.throw_alert("not_enough_nitro", /atom/movable/screen/alert/not_enough_nitro) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.nitrogen @@ -152,7 +152,7 @@ H.apply_damage_type(HUMAN_MAX_OXYLOSS, co2_damage_type) // Lets hurt em a little, let them know we mean business if(world.time - H.co2overloadtime > 300) // They've been in here 30s now, lets start to kill them for their own good! H.apply_damage_type(15, co2_damage_type) - H.throw_alert("too_much_co2", /obj/screen/alert/too_much_co2) + H.throw_alert("too_much_co2", /atom/movable/screen/alert/too_much_co2) if(prob(20)) // Lets give them some chance to know somethings not right though I guess. H.emote("cough") @@ -164,7 +164,7 @@ if(safe_co2_min) if(CO2_pp < safe_co2_min) gas_breathed = handle_too_little_breath(H, CO2_pp, safe_co2_min, breath.carbon_dioxide) - H.throw_alert("not_enough_co2", /obj/screen/alert/not_enough_co2) + H.throw_alert("not_enough_co2", /atom/movable/screen/alert/not_enough_co2) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.carbon_dioxide @@ -183,7 +183,7 @@ if(Toxins_pp > safe_toxins_max) var/ratio = (breath.toxins / safe_toxins_max) * 10 H.apply_damage_type(clamp(ratio, tox_breath_dam_min, tox_breath_dam_max), tox_damage_type) - H.throw_alert("too_much_tox", /obj/screen/alert/too_much_tox) + H.throw_alert("too_much_tox", /atom/movable/screen/alert/too_much_tox) else H.clear_alert("too_much_tox") @@ -192,7 +192,7 @@ if(safe_toxins_min) if(Toxins_pp < safe_toxins_min) gas_breathed = handle_too_little_breath(H, Toxins_pp, safe_toxins_min, breath.toxins) - H.throw_alert("not_enough_tox", /obj/screen/alert/not_enough_tox) + H.throw_alert("not_enough_tox", /atom/movable/screen/alert/not_enough_tox) else H.adjustOxyLoss(-HUMAN_MAX_OXYLOSS) gas_breathed = breath.toxins diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index 4468194ed880f..2f41331f7e415 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -207,7 +207,7 @@ parent.children.Add(src) if(owner.has_embedded_objects()) - owner.throw_alert("embeddedobject", /obj/screen/alert/embeddedobject) + owner.throw_alert("embeddedobject", /atom/movable/screen/alert/embeddedobject) /obj/item/organ/external/attempt_become_organ(obj/item/organ/external/parent,mob/living/carbon/human/H) if(parent_organ != parent.limb_name) @@ -926,7 +926,7 @@ Note that amputating the affected organ does in fact remove the infection from t forceMove(T) /obj/item/organ/external/proc/add_embedded_object(obj/item/I) - owner.throw_alert("embeddedobject", /obj/screen/alert/embeddedobject) + owner.throw_alert("embeddedobject", /atom/movable/screen/alert/embeddedobject) embedded_objects += I I.forceMove(owner) RegisterSignal(I, COMSIG_MOVABLE_MOVED, PROC_REF(remove_embedded_object)) diff --git a/code/modules/surgery/organs/subtypes/diona_organs.dm b/code/modules/surgery/organs/subtypes/diona_organs.dm index f015da30d204f..896685a7be5d2 100644 --- a/code/modules/surgery/organs/subtypes/diona_organs.dm +++ b/code/modules/surgery/organs/subtypes/diona_organs.dm @@ -71,7 +71,8 @@ /obj/item/organ/diona/process() return -/obj/item/organ/internal/heart/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/heart/diona name = "neural strata" icon = 'icons/obj/objects.dmi' icon_state = "nymph" @@ -81,29 +82,34 @@ icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/brain/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/brain/diona name = "gas bladder" icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/kidneys/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/kidneys/diona name = "polyp segment" icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/appendix/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/appendix/diona name = "anchoring ligament" icon = 'icons/obj/objects.dmi' icon_state = "nymph" -/obj/item/organ/internal/eyes/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/eyes/diona name = "receptor node" icon = 'icons/mob/alien.dmi' icon_state = "claw" //TODO:Make absorb rads on insert -/obj/item/organ/internal/liver/diona // Turns into a nymph instantly, no transplanting possible. +/// Turns into a nymph instantly, no transplanting possible. +/obj/item/organ/internal/liver/diona name = "nutrient vessel" icon = 'icons/mob/alien.dmi' icon_state = "claw" diff --git a/code/modules/surgery/organs/subtypes/tajaran_organs.dm b/code/modules/surgery/organs/subtypes/tajaran_organs.dm index 011cdb09c61a6..055228c7a4926 100644 --- a/code/modules/surgery/organs/subtypes/tajaran_organs.dm +++ b/code/modules/surgery/organs/subtypes/tajaran_organs.dm @@ -10,7 +10,8 @@ replace_colours = TRITANOPIA_COLOR_REPLACE see_in_dark = 4 -/obj/item/organ/internal/eyes/tajaran/farwa //Being the lesser form of Tajara, Farwas have an utterly incurable version of their colourblindness. +/// Being the lesser form of Tajara, Farwas have an utterly incurable version of their colourblindness. +/obj/item/organ/internal/eyes/tajaran/farwa name = "farwa eyeballs" colourmatrix = MATRIX_TAJ_CBLIND see_in_dark = 3 diff --git a/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm b/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm index 42a632a37becb..326996284c349 100644 --- a/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm +++ b/code/modules/surgery/organs/subtypes/vulpkanin_organs.dm @@ -10,7 +10,8 @@ replace_colours = PROTANOPIA_COLOR_REPLACE see_in_dark = 4 -/obj/item/organ/internal/eyes/vulpkanin/wolpin //Being the lesser form of Vulpkanin, Wolpins have an utterly incurable version of their colourblindness. +/// Being the lesser form of Vulpkanin, Wolpins have an utterly incurable version of their colourblindness. +/obj/item/organ/internal/eyes/vulpkanin/wolpin name = "wolpin eyeballs" colourmatrix = MATRIX_VULP_CBLIND see_in_dark = 3 diff --git a/code/modules/surgery/organs/vocal_cords.dm b/code/modules/surgery/organs/vocal_cords.dm index f07d89797b99f..b7b2d0f741912 100644 --- a/code/modules/surgery/organs/vocal_cords.dm +++ b/code/modules/surgery/organs/vocal_cords.dm @@ -35,7 +35,8 @@ GLOBAL_DATUM_INIT(clap_words, /regex, regex("clap|applaud")) GLOBAL_DATUM_INIT(honk_words, /regex, regex("ho+nk")) //hooooooonk GLOBAL_DATUM_INIT(multispin_words, /regex, regex("like a record baby")) -/obj/item/organ/internal/vocal_cords //organs that are activated through speech with the :x channel +/// organs that are activated through speech with the :x channel +/obj/item/organ/internal/vocal_cords name = "vocal cords" icon_state = "appendix" slot = "vocal_cords" diff --git a/code/modules/surgery/other.dm b/code/modules/surgery/other.dm index ecf8f7d3424c9..cc4f1ccea022c 100644 --- a/code/modules/surgery/other.dm +++ b/code/modules/surgery/other.dm @@ -173,7 +173,8 @@ ) return SURGERY_STEP_RETRY -/datum/surgery_step/fix_dead_tissue //Debridement +/// Debridement +/datum/surgery_step/fix_dead_tissue name = "remove dead tissue" allowed_tools = list( TOOL_SCALPEL = 100, diff --git a/code/modules/surgery/tools.dm b/code/modules/surgery/tools.dm index 214350e63268e..ce09847c4a87f 100644 --- a/code/modules/surgery/tools.dm +++ b/code/modules/surgery/tools.dm @@ -138,14 +138,16 @@ /* * Researchable Scalpels */ -/obj/item/scalpel/laser //parent type +/// parent type +/obj/item/scalpel/laser name = "laser scalpel" desc = "A scalpel augmented with a directed laser." icon_state = "scalpel_laser1_on" damtype = "fire" hitsound = 'sound/weapons/sear.ogg' -/obj/item/scalpel/laser/laser1 //lasers also count as catuarys +/// lasers also count as catuarys +/obj/item/scalpel/laser/laser1 name = "laser scalpel" desc = "A scalpel augmented with a directed laser. This one looks basic and could be improved." icon_state = "scalpel_laser1_on" @@ -163,7 +165,8 @@ icon_state = "scalpel_laser3_on" toolspeed = 0.4 -/obj/item/scalpel/laser/manager //super tool! Retractor/hemostat +/// super tool! Retractor/hemostat +/obj/item/scalpel/laser/manager name = "incision management system" desc = "A true extension of the surgeon's body, this marvel instantly and completely prepares an incision allowing for the immediate commencement of therapeutic steps." icon_state = "scalpel_manager_on" diff --git a/code/modules/tooltip/tooltip.dm b/code/modules/tooltip/tooltip.dm index d6111c01b85f5..f11341127f1ea 100644 --- a/code/modules/tooltip/tooltip.dm +++ b/code/modules/tooltip/tooltip.dm @@ -13,7 +13,7 @@ Configuration: Usage: - Define mouse event procs on your (probably HUD) object and simply call the show and hide procs respectively: - /obj/screen/hud + /atom/movable/screen/hud MouseEntered(location, control, params) usr.client.tooltip.show(params, title = src.name, content = src.desc) diff --git a/code/modules/vehicle/janivehicle.dm b/code/modules/vehicle/janivehicle.dm index 492da44102286..2be7e94a23965 100644 --- a/code/modules/vehicle/janivehicle.dm +++ b/code/modules/vehicle/janivehicle.dm @@ -11,7 +11,12 @@ /// Does it clean the tile under it? var/floorbuffer = FALSE +/obj/vehicle/janicart/Initialize(mapload) + . = ..() + GLOB.janitorial_equipment += src + /obj/vehicle/janicart/Destroy() + GLOB.janitorial_equipment -= src QDEL_NULL(mybag) return ..() diff --git a/code/modules/vote/vote_presets.dm b/code/modules/vote/vote_presets.dm index 0699867462850..6927fa4fea7c0 100644 --- a/code/modules/vote/vote_presets.dm +++ b/code/modules/vote/vote_presets.dm @@ -35,7 +35,7 @@ /datum/vote/map/announce() ..() for(var/mob/M in GLOB.player_list) - M.throw_alert("Map Vote", /obj/screen/alert/notify_mapvote, timeout_override = GLOB.configuration.vote.vote_time) + M.throw_alert("Map Vote", /atom/movable/screen/alert/notify_mapvote, timeout_override = GLOB.configuration.vote.vote_time) /datum/vote/map/handle_result(result) // Find target map. diff --git a/icons/turf/areas.dmi b/icons/turf/areas.dmi index afddb44f48adf..9c265a8f5e284 100755 Binary files a/icons/turf/areas.dmi and b/icons/turf/areas.dmi differ diff --git a/modular_ss220/cinematics/code/_cinematics.dm b/modular_ss220/cinematics/code/_cinematics.dm index 86691ee2287a2..b71c4878c8a3c 100644 --- a/modular_ss220/cinematics/code/_cinematics.dm +++ b/modular_ss220/cinematics/code/_cinematics.dm @@ -18,7 +18,7 @@ return playing /// The cinematic screen showed to everyone -/obj/screen/cinematic +/atom/movable/screen/cinematic icon = 'icons/effects/station_explosion.dmi' icon_state = "station_intact" plane = SPLASHSCREEN_PLANE @@ -37,7 +37,7 @@ /// Whether the cinematic is a global cinematic or not var/is_global = FALSE /// Refernce to the cinematic screen shown to everyohne - var/obj/screen/cinematic/screen + var/atom/movable/screen/cinematic/screen /// Callbacks passed that occur during the animation var/datum/callback/special_callback /// How long for the final screen remains shown @@ -45,7 +45,7 @@ /// Whether the cinematic turns off ooc when played globally. var/stop_ooc = TRUE // screen type for cinematic backdrop - var/backdrop_type = /obj/screen/fullscreen/cinematic_backdrop + var/backdrop_type = /atom/movable/screen/fullscreen/cinematic_backdrop /datum/cinematic/New(watcher, datum/callback/special_callback) screen = new(src) @@ -75,7 +75,7 @@ ooc_toggled = TRUE toggle_ooc() - // Place the /obj/screen/cinematic into everyone's screens, and prevent movement. + // Place the /atom/movable/screen/cinematic into everyone's screens, and prevent movement. for(var/mob/watching_mob in watchers) show_to(watching_mob, watching_mob.client) RegisterSignal(watching_mob, COMSIG_MOB_CLIENT_LOGIN, PROC_REF(show_to)) diff --git a/modular_ss220/cinematics/code/cinematics/credits.dm b/modular_ss220/cinematics/code/cinematics/credits.dm index 388e7580a8784..e6e83557e80f0 100644 --- a/modular_ss220/cinematics/code/cinematics/credits.dm +++ b/modular_ss220/cinematics/code/cinematics/credits.dm @@ -2,11 +2,11 @@ is_global = TRUE should_lock_watchers = FALSE stop_ooc = FALSE - backdrop_type = /obj/screen/fullscreen/cinematic_backdrop/credits + backdrop_type = /atom/movable/screen/fullscreen/cinematic_backdrop/credits /datum/cinematic/credits/New(watcher, datum/callback/special_callback) . = ..() - screen = new /obj/screen/cinematic/credits(src) + screen = new /atom/movable/screen/cinematic/credits(src) /datum/cinematic/credits/start_cinematic(list/watchers) if(!(SEND_GLOBAL_SIGNAL(COMSIG_GLOB_PLAY_CINEMATIC, src) & COMPONENT_GLOB_BLOCK_CINEMATIC)) @@ -49,36 +49,36 @@ /datum/cinematic/credits/halloween/New(watcher, datum/callback/special_callback) . = ..() - screen = new /obj/screen/cinematic/credits/halloween() + screen = new /atom/movable/screen/cinematic/credits/halloween() /datum/cinematic/credits/new_year /datum/cinematic/credits/new_year/New(watcher, datum/callback/special_callback) . = ..() - screen = new /obj/screen/cinematic/credits/new_year() + screen = new /atom/movable/screen/cinematic/credits/new_year() -/obj/screen/cinematic/credits +/atom/movable/screen/cinematic/credits icon_state = "blank" alpha = 0 -/obj/screen/cinematic/credits/Initialize(mapload) +/atom/movable/screen/cinematic/credits/Initialize(mapload) . = ..() animate(src, alpha = 120, time = 3 SECONDS) -/obj/screen/cinematic/credits/halloween +/atom/movable/screen/cinematic/credits/halloween icon = 'modular_ss220/cinematics/icons/backdrops.dmi' icon_state = "halloween" -/obj/screen/cinematic/credits/new_year +/atom/movable/screen/cinematic/credits/new_year icon = 'modular_ss220/cinematics/icons/backdrops.dmi' icon_state = "new_year" -/obj/screen/fullscreen/cinematic_backdrop/credits +/atom/movable/screen/fullscreen/cinematic_backdrop/credits alpha = 0 -/obj/screen/fullscreen/cinematic_backdrop/credits/Initialize(mapload) +/atom/movable/screen/fullscreen/cinematic_backdrop/credits/Initialize(mapload) . = ..() animate(src, alpha = 220, time = 3 SECONDS) diff --git a/modular_ss220/cinematics/code/cinematics_screen.dm b/modular_ss220/cinematics/code/cinematics_screen.dm index 678a5fa6391f4..77df18d85b613 100644 --- a/modular_ss220/cinematics/code/cinematics_screen.dm +++ b/modular_ss220/cinematics/code/cinematics_screen.dm @@ -1,4 +1,4 @@ -/obj/screen/fullscreen/cinematic_backdrop +/atom/movable/screen/fullscreen/cinematic_backdrop icon = 'icons/mob/screen_gen.dmi' screen_loc = "WEST,SOUTH to EAST,NORTH" icon_state = "flash" diff --git a/modular_ss220/credits/code/credits.dm b/modular_ss220/credits/code/credits.dm index 2b73edf9c46ac..d7a71e3fdec8f 100644 --- a/modular_ss220/credits/code/credits.dm +++ b/modular_ss220/credits/code/credits.dm @@ -43,7 +43,7 @@ for(var/client/client in clients) LAZYINITLIST(client.credits) - var/obj/screen/credit/logo = new /obj/screen/credit/logo(null, "", clients) + var/atom/movable/screen/credit/logo = new /atom/movable/screen/credit/logo(null, "", clients) screen_credits += logo addtimer(CALLBACK(src, PROC_REF(start_rolling_credits_for_clients), clients), delay_time) @@ -59,11 +59,11 @@ addtimer(CALLBACK(src, PROC_REF(clear_credits_for_clients), clients), SScredits.credit_roll_speed) /datum/credits/proc/start_rolling_logo() - var/obj/screen/credit/logo/logo = screen_credits[1] + var/atom/movable/screen/credit/logo/logo = screen_credits[1] logo.rollem() /datum/credits/proc/start_rolling_credit_item(list/client/clients, credit_item) - var/obj/screen/credit/title = new(null, credit_item, clients) + var/atom/movable/screen/credit/title = new(null, credit_item, clients) screen_credits += title title.rollem() @@ -372,7 +372,7 @@ content += "<hr>" content += "<center><span style='font-size:6pt;'>[jointext(disclaimer, null)]</span><br></center>" -/obj/screen/credit +/atom/movable/screen/credit icon_state = "blank" mouse_opacity = 0 alpha = 255 @@ -381,7 +381,7 @@ var/list/client/watchers = list() -/obj/screen/credit/Initialize(mapload, credited, list/client/clients) +/atom/movable/screen/credit/Initialize(mapload, credited, list/client/clients) . = ..() for(var/client/watcher in clients) @@ -398,7 +398,7 @@ maptext_height = world.icon_size * 2 maptext_width = world.icon_size * 14 -/obj/screen/credit/proc/rollem() +/atom/movable/screen/credit/proc/rollem() var/matrix/matrix = matrix(transform) transform = matrix.Translate(0, -world.icon_size) @@ -406,11 +406,11 @@ animate(src, transform = matrix, time = SScredits.credit_roll_speed) addtimer(CALLBACK(src, PROC_REF(delete_credit)), SScredits.credit_roll_speed, TIMER_CLIENT_TIME) -/obj/screen/credit/proc/delete_credit() +/atom/movable/screen/credit/proc/delete_credit() if(!QDELETED(src)) qdel(src) -/obj/screen/credit/Destroy() +/atom/movable/screen/credit/Destroy() for(var/client/watcher in watchers) if(!watcher) continue @@ -421,14 +421,14 @@ return ..() -/obj/screen/credit/logo +/atom/movable/screen/credit/logo icon = 'modular_ss220/credits/icons/logo.dmi' icon_state = "ss220" screen_loc = "CENTER - 2,CENTER" alpha = 100 -/obj/screen/credit/logo/Initialize(mapload, credited, list/client/clients) +/atom/movable/screen/credit/logo/Initialize(mapload, credited, list/client/clients) . = ..() animate(src, alpha = 220, time = 3 SECONDS) maptext = "<center><h1>Playing music - [SScredits.title_music]</h1></center>" @@ -436,7 +436,7 @@ maptext_x -= 5 * world.icon_size maptext_y += 6 * world.icon_size -/obj/screen/credit/logo/rollem() +/atom/movable/screen/credit/logo/rollem() var/matrix/matrix = matrix(transform) matrix.Translate(0, SScredits.credit_animate_height) animate(src, transform = matrix, time = SScredits.credit_roll_speed) diff --git a/modular_ss220/credits/code/halloween_credits.dm b/modular_ss220/credits/code/halloween_credits.dm index 1cc414679c898..bbdf7e6f2e8f4 100644 --- a/modular_ss220/credits/code/halloween_credits.dm +++ b/modular_ss220/credits/code/halloween_credits.dm @@ -17,7 +17,7 @@ for(var/client/client in clients) LAZYINITLIST(client.credits) - var/obj/screen/credit/logo = new /obj/screen/credit/halloween(null, "", clients) + var/atom/movable/screen/credit/logo = new /atom/movable/screen/credit/halloween(null, "", clients) screen_credits += logo addtimer(CALLBACK(src, PROC_REF(start_rolling_credits_for_clients), clients), delay_time) @@ -174,14 +174,14 @@ if(length(goodboys)) content += "<center><h1>Духи:<br></h1>[english_list(goodboys, and_text = " и ")]</center><br>" -/obj/screen/credit/halloween +/atom/movable/screen/credit/halloween icon = 'modular_ss220/credits/icons/logo.dmi' icon_state = "halloween" screen_loc = "CENTER - 2,CENTER + 1" appearance_flags = NO_CLIENT_COLOR | TILE_BOUND | PIXEL_SCALE alpha = 255 -/obj/screen/credit/halloween/Initialize(mapload, credited, list/client/clients) +/atom/movable/screen/credit/halloween/Initialize(mapload, credited, list/client/clients) . = ..() plane++ @@ -194,7 +194,7 @@ transform = transform.Translate(-8 * world.icon_size, 0) animate(src, transform = matrix, time = 5 SECONDS, flags = ANIMATION_PARALLEL) -/obj/screen/credit/halloween/rollem() +/atom/movable/screen/credit/halloween/rollem() var/matrix/matrix = matrix(transform) matrix.Translate(0, SScredits.credit_animate_height) animate(src, transform = matrix, time = SScredits.credit_roll_speed) diff --git a/modular_ss220/gunhud/code/gunhud_component.dm b/modular_ss220/gunhud/code/gunhud_component.dm index 57296fdfdddff..9796edc1bddf6 100644 --- a/modular_ss220/gunhud/code/gunhud_component.dm +++ b/modular_ss220/gunhud/code/gunhud_component.dm @@ -1,5 +1,5 @@ /datum/component/gunhud - var/obj/screen/ammo_counter/hud + var/atom/movable/screen/ammo_counter/hud /datum/component/gunhud/Initialize() . = ..() diff --git a/modular_ss220/gunhud/code/gunhud_hud.dm b/modular_ss220/gunhud/code/gunhud_hud.dm index e4e5a728e60a4..3565d7110b047 100644 --- a/modular_ss220/gunhud/code/gunhud_hud.dm +++ b/modular_ss220/gunhud/code/gunhud_hud.dm @@ -1,9 +1,9 @@ /datum/hud - var/obj/screen/ammo_counter + var/atom/movable/screen/ammo_counter /datum/hud/human/New(mob/living/carbon/human/owner, ui_style, ui_color, ui_alpha) . = ..() - ammo_counter = new /obj/screen/ammo_counter() + ammo_counter = new /atom/movable/screen/ammo_counter() ammo_counter.hud = src infodisplay += ammo_counter @@ -21,7 +21,7 @@ * Check the gunhud.dmi for all available icons you can use. */ -/obj/screen/ammo_counter +/atom/movable/screen/ammo_counter name = "ammo counter" icon = 'modular_ss220/gunhud/icons/gunhud.dmi' icon_state = "backing" @@ -44,7 +44,7 @@ var/indicator ///This proc simply resets the hud to standard and removes it from the players visible hud. -/obj/screen/ammo_counter/proc/turn_off() +/atom/movable/screen/ammo_counter/proc/turn_off() invisibility = INVISIBILITY_ABSTRACT maptext = null backing_color = COLOR_RED @@ -56,11 +56,11 @@ update_appearance() ///This proc turns the hud on, but does not set it to anything other than the currently set values -/obj/screen/ammo_counter/proc/turn_on() +/atom/movable/screen/ammo_counter/proc/turn_on() invisibility = 0 ///This is the main proc for altering the hud's appeareance, it controls the setting of the overlays. Use the OTH and below variables to set it accordingly. -/obj/screen/ammo_counter/proc/set_hud(_backing_color, _oth_o, _oth_t, _oth_h, _indicator, _oth_backing = "oth_light") +/atom/movable/screen/ammo_counter/proc/set_hud(_backing_color, _oth_o, _oth_t, _oth_h, _indicator, _oth_backing = "oth_light") backing_color = _backing_color oth_backing = _oth_backing oth_o = _oth_o @@ -70,7 +70,7 @@ update_appearance() -/obj/screen/ammo_counter/update_overlays() +/atom/movable/screen/ammo_counter/update_overlays() . = ..() if(oth_backing) var/mutable_appearance/oth_backing_overlay = mutable_appearance(icon, oth_backing) diff --git a/modular_ss220/mobs/code/pet_carrier.dm b/modular_ss220/mobs/code/pet_carrier.dm index 453499dd4c883..e710018e5a045 100644 --- a/modular_ss220/mobs/code/pet_carrier.dm +++ b/modular_ss220/mobs/code/pet_carrier.dm @@ -251,7 +251,7 @@ try_free_content(T, usr) return TRUE - if(!(istype(over_object, /obj/screen))) + if(!is_screen_atom(over_object)) return ..() if(!(loc == usr) || (loc && loc.loc == usr)) return diff --git a/modular_ss220/screentip_change/code/screentip.dm b/modular_ss220/screentip_change/code/screentip.dm index 3a4ba41f16b19..912160cb30d92 100644 --- a/modular_ss220/screentip_change/code/screentip.dm +++ b/modular_ss220/screentip_change/code/screentip.dm @@ -1,2 +1,2 @@ -/obj/screen/screentip +/atom/movable/screen/screentip maptext_y = 0 diff --git a/modular_ss220/silicons/code/items/rlf.dm b/modular_ss220/silicons/code/items/rlf.dm index 1bb4b71c29e50..ef09085778e1a 100644 --- a/modular_ss220/silicons/code/items/rlf.dm +++ b/modular_ss220/silicons/code/items/rlf.dm @@ -22,10 +22,10 @@ to_chat(user, span_warning("You offer lollipop to [receiver], but they don't seem to respond...")) return var/obj/item/I = new /obj/item/food/snacks/candy/sucker/lollipop - receiver.throw_alert("take item [I.UID()]", /obj/screen/alert/take_item/RLF, alert_args = list(user, receiver, I)) + receiver.throw_alert("take item [I.UID()]", /atom/movable/screen/alert/take_item/RLF, alert_args = list(user, receiver, I)) to_chat(user, span_info("You offer lollipop to [receiver].")) -/obj/screen/alert/take_item/RLF/Click(location, control, params) +/atom/movable/screen/alert/take_item/RLF/Click(location, control, params) var/mob/living/receiver = locateUID(receiver_UID) if(receiver.stat != CONSCIOUS) return diff --git a/tgui/packages/tgui/interfaces/NTRecruiter.js b/tgui/packages/tgui/interfaces/NTRecruiter.js index 9ff6a44446b61..eeab78b429ccc 100644 --- a/tgui/packages/tgui/interfaces/NTRecruiter.js +++ b/tgui/packages/tgui/interfaces/NTRecruiter.js @@ -7,7 +7,7 @@ export const NTRecruiter = (props, context) => { const { gamestatus, cand_name, - cand_gender, + cand_birth, cand_age, cand_species, cand_planet, @@ -125,6 +125,10 @@ export const NTRecruiter = (props, context) => { Keep your eyes open for incompatible <b>naming schemes</b>, no company wants a Vox named Joe! </LabeledList.Item> + <LabeledList.Item label="10#" color="silver"> + For some unknown reason <b>clowns</b> are never denied by the + company, no matter what. + </LabeledList.Item> </LabeledList> </Section> </Stack> @@ -153,14 +157,14 @@ export const NTRecruiter = (props, context) => { <LabeledList.Item label="Name" color="silver"> <b>{cand_name}</b> </LabeledList.Item> - <LabeledList.Item label="Gender" color="silver"> - <b>{cand_gender}</b> + <LabeledList.Item label="Species" color="silver"> + <b>{cand_species}</b> </LabeledList.Item> <LabeledList.Item label="Age" color="silver"> <b>{cand_age}</b> </LabeledList.Item> - <LabeledList.Item label="Species" color="silver"> - <b>{cand_species}</b> + <LabeledList.Item label="Date of Birth" color="silver"> + <b>{cand_birth}</b> </LabeledList.Item> <LabeledList.Item label="Planet of Origin" color="silver"> <b>{cand_planet}</b> @@ -237,7 +241,7 @@ export const NTRecruiter = (props, context) => { </Stack.Item> <Section> <Button - lineHeight={2} + lineHeight={4} fluid icon="arrow-left" content="Main Menu" diff --git a/tgui/packages/tgui/interfaces/pda/pda_janitor.js b/tgui/packages/tgui/interfaces/pda/pda_janitor.js index 1d097945bfdae..c27deffcfe570 100644 --- a/tgui/packages/tgui/interfaces/pda/pda_janitor.js +++ b/tgui/packages/tgui/interfaces/pda/pda_janitor.js @@ -5,7 +5,7 @@ export const pda_janitor = (props, context) => { const { act, data } = useBackend(context); const { janitor } = data; - const { user_loc, mops, buckets, cleanbots, carts } = janitor; + const { user_loc, mops, buckets, cleanbots, carts, janicarts } = janitor; return ( <LabeledList> @@ -48,6 +48,15 @@ export const pda_janitor = (props, context) => { ))} </LabeledList.Item> )} + {janicarts && ( + <LabeledList.Item label="Janicart Locations"> + {janicarts.map((janicart) => ( + <Box key={janicart}> + {janicart.x},{janicart.y} ({janicart.direction_from_user}) + </Box> + ))} + </LabeledList.Item> + )} </LabeledList> ); }; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index c7eaacf7c4f4c..9ce27c1c7d3b9 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,8 +1,8 @@ -(function(){(function(){var _t={15113:function(I,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=p(n(28770)),a=p(n(12866)),t=p(n(88577)),o=p(n(29727)),f=p(n(13657)),V=p(n(97902)),k=p(n(57547)),S=p(n(4709));r.detectOverflow=S.default;var y=n(65601);function p(d){return d&&d.__esModule?d:{default:d}}var l={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return!u.some(function(v){return!(v&&typeof v.getBoundingClientRect=="function")})}function m(d){d===void 0&&(d={});var u=d,s=u.defaultModifiers,v=s===void 0?[]:s,g=u.defaultOptions,C=g===void 0?l:g;return function(){function h(N,b,B){B===void 0&&(B=C);var L={placement:"bottom",orderedModifiers:[],options:Object.assign({},l,C),modifiersData:{},elements:{reference:N,popper:b},attributes:{},styles:{}},w=[],T=!1,A={state:L,setOptions:function(){function P(R){var M=typeof R=="function"?R(L.options):R;E(),L.options=Object.assign({},C,L.options,M),L.scrollParents={reference:(0,y.isElement)(N)?(0,t.default)(N):N.contextElement?(0,t.default)(N.contextElement):[],popper:(0,t.default)(b)};var D=(0,f.default)((0,k.default)([].concat(v,L.options.modifiers)));return L.orderedModifiers=D.filter(function(j){return j.enabled}),x(),A.update()}return P}(),forceUpdate:function(){function P(){if(!T){var R=L.elements,M=R.reference,D=R.popper;if(c(M,D)){L.rects={reference:(0,e.default)(M,(0,o.default)(D),L.options.strategy==="fixed"),popper:(0,a.default)(D)},L.reset=!1,L.placement=L.options.placement,L.orderedModifiers.forEach(function(z){return L.modifiersData[z.name]=Object.assign({},z.data)});for(var j=0;j<L.orderedModifiers.length;j++){if(L.reset===!0){L.reset=!1,j=-1;continue}var F=L.orderedModifiers[j],W=F.fn,K=F.options,_=K===void 0?{}:K,$=F.name;typeof W=="function"&&(L=W({state:L,options:_,name:$,instance:A})||L)}}}}return P}(),update:(0,V.default)(function(){return new Promise(function(P){A.forceUpdate(),P(L)})}),destroy:function(){function P(){E(),T=!0}return P}()};if(!c(N,b))return A;A.setOptions(B).then(function(P){!T&&B.onFirstUpdate&&B.onFirstUpdate(P)});function x(){L.orderedModifiers.forEach(function(P){var R=P.name,M=P.options,D=M===void 0?{}:M,j=P.effect;if(typeof j=="function"){var F=j({state:L,name:R,instance:A,options:D}),W=function(){function K(){}return K}();w.push(F||W)}})}function E(){w.forEach(function(P){return P()}),w=[]}return A}return h}()}var i=r.createPopper=m()},11848:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t,o){var f=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(f&&(0,e.isShadowRoot)(f)){var V=o;do{if(V&&t.isSameNode(V))return!0;V=V.parentNode||V.host}while(V)}return!1}},83199:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=n(65601),a=n(79257),t=f(n(44901)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S,y){S===void 0&&(S=!1),y===void 0&&(y=!1);var p=k.getBoundingClientRect(),l=1,c=1;S&&(0,e.isHTMLElement)(k)&&(l=k.offsetWidth>0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,i=m.visualViewport,d=!(0,o.default)()&&y,u=(p.left+(d&&i?i.offsetLeft:0))/l,s=(p.top+(d&&i?i.offsetTop:0))/c,v=p.width/l,g=p.height/c;return{width:v,height:g,top:s,right:u+v,bottom:s+g,left:u,x:u,y:s}}},98310:function(I,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=d(n(63064)),t=d(n(16940)),o=d(n(88577)),f=d(n(29727)),V=d(n(9252)),k=d(n(75663)),S=n(65601),y=d(n(83199)),p=d(n(16292)),l=d(n(11848)),c=d(n(1707)),m=d(n(21194)),i=n(79257);function d(C){return C&&C.__esModule?C:{default:C}}function u(C,h){var N=(0,y.default)(C,!1,h==="fixed");return N.top=N.top+C.clientTop,N.left=N.left+C.clientLeft,N.bottom=N.top+C.clientHeight,N.right=N.left+C.clientWidth,N.width=C.clientWidth,N.height=C.clientHeight,N.x=N.left,N.y=N.top,N}function s(C,h,N){return h===e.viewport?(0,m.default)((0,a.default)(C,N)):(0,S.isElement)(h)?u(h,N):(0,m.default)((0,t.default)((0,V.default)(C)))}function v(C){var h=(0,o.default)((0,p.default)(C)),N=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,b=N&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(C,h,N,b){var B=h==="clippingParents"?v(C):[].concat(h),L=[].concat(B,[N]),w=L[0],T=L.reduce(function(A,x){var E=s(C,x,b);return A.top=(0,i.max)(E.top,A.top),A.right=(0,i.min)(E.right,A.right),A.bottom=(0,i.min)(E.bottom,A.bottom),A.left=(0,i.max)(E.left,A.left),A},s(C,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=y(n(83199)),a=y(n(3107)),t=y(n(1707)),o=n(65601),f=y(n(94889)),V=y(n(9252)),k=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),i=(0,S.round)(m.width)/c.offsetWidth||1,d=(0,S.round)(m.height)/c.offsetHeight||1;return i!==1||d!==1}function l(c,m,i){i===void 0&&(i=!1);var d=(0,o.isHTMLElement)(m),u=(0,o.isHTMLElement)(m)&&p(m),s=(0,V.default)(m),v=(0,e.default)(c,u,i),g={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(d||!d&&!i)&&(((0,t.default)(m)!=="body"||(0,k.default)(s))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):s&&(C.x=(0,f.default)(s))),{x:v.left+g.scrollLeft-C.x,y:v.top+g.scrollTop-C.y,width:v.width,height:v.height}}},75663:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(I,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(9252)),a=V(n(75663)),t=V(n(94889)),o=V(n(42532)),f=n(79257);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),l=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-l.scrollLeft+(0,t.default)(S),u=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:d,y:u}}},89741:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},1707:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},29727:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),f=S(n(36875)),V=S(n(16292)),k=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),i=/Trident/i.test((0,k.default)());if(i&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var u=(0,V.default)(c);for((0,o.isShadowRoot)(u)&&(u=u.host);(0,o.isHTMLElement)(u)&&["html","body"].indexOf((0,a.default)(u))<0;){var s=(0,t.default)(u);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||m&&s.willChange==="filter"||m&&s.filter&&s.filter!=="none")return u;u=u.parentNode}return null}function l(c){for(var m=(0,e.default)(c),i=y(c);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=y(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?m:i||p(c)||m}},16292:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},87899:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},63064:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),l=y.visualViewport,c=p.clientWidth,m=p.clientHeight,i=0,d=0;if(l){c=l.width,m=l.height;var u=(0,o.default)();(u||!u&&S==="fixed")&&(i=l.offsetLeft,d=l.offsetTop)}return{width:c,height:m,x:i+(0,t.default)(k),y:d}}},44901:function(I,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}},42532:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},94889:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},65601:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},95294:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},36875:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),l=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,i=S.concat(m);return l?i:i.concat(V((0,a.default)(m)))}},37802:function(I,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],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,L){return B.concat([L+"-"+V,L+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,L){return B.concat([L,L+"-"+V,L+"-"+k])},[]),i=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",v=r.main="main",g=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[i,d,u,s,v,g,C,h,N]},60028:function(I,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(37802);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(16055);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(98420);r.createPopper=f.createPopper;var V=n(22008);r.createPopperLite=V.createPopper},20637:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},l=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(m){var i=l[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(p){var l=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),i=m.reduce(function(d,u){return d[u]="",d},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,i),Object.keys(c).forEach(function(d){l.removeAttribute(d)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),f=p(n(26608)),V=n(87415),k=p(n(41e3)),S=p(n(62605)),y=n(37802);function p(d){return d&&d.__esModule?d:{default:d}}var l=function(){function d(u,s){return u=typeof u=="function"?u(Object.assign({},s.rects,{placement:s.placement})):u,(0,k.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,v=d.name,g=d.options,C=s.elements.arrow,h=s.modifiersData.popperOffsets,N=(0,e.default)(s.placement),b=(0,f.default)(N),B=[y.left,y.right].indexOf(N)>=0,L=B?"height":"width";if(!(!C||!h)){var w=l(g.padding,s),T=(0,a.default)(C),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=s.rects.reference[L]+s.rects.reference[b]-h[b]-s.rects.popper[L],P=h[b]-s.rects.reference[b],R=(0,o.default)(C),M=R?b==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-P/2,j=w[A],F=M-T[L]-w[x],W=M/2-T[L]/2+D,K=(0,V.within)(j,W,F),_=b;s.modifiersData[v]=(u={},u[_]=K,u.centerOffset=K-W,u)}}function m(d){var u=d.state,s=d.options,v=s.element,g=v===void 0?"[data-popper-arrow]":v;g!=null&&(typeof g=="string"&&(g=u.elements.popper.querySelector(g),!g)||(0,t.default)(u.elements.popper,g)&&(u.elements.arrow=g))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=y(n(29727)),t=y(n(44901)),o=y(n(9252)),f=y(n(75663)),V=y(n(16275)),k=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(d,u){var s=d.x,v=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(v*g)/g||0}}function c(d){var u,s=d.popper,v=d.popperRect,g=d.placement,C=d.variation,h=d.offsets,N=d.position,b=d.gpuAcceleration,B=d.adaptive,L=d.roundOffsets,w=d.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,P=typeof L=="function"?L({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var R=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),D=e.left,j=e.top,F=window;if(B){var W=(0,a.default)(s),K="clientHeight",_="clientWidth";if(W===(0,t.default)(s)&&(W=(0,o.default)(s),(0,f.default)(W).position!=="static"&&N==="absolute"&&(K="scrollHeight",_="scrollWidth")),W=W,g===e.top||(g===e.left||g===e.right)&&C===e.end){j=e.bottom;var $=w&&W===F&&F.visualViewport?F.visualViewport.height:W[K];E-=$-v.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&C===e.end){D=e.right;var z=w&&W===F&&F.visualViewport?F.visualViewport.width:W[_];A-=z-v.width,A*=b?1:-1}}var Y=Object.assign({position:N},B&&p),Z=L===!0?l({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=Z.x,E=Z.y,b){var ie;return Object.assign({},Y,(ie={},ie[j]=M?"0":"",ie[D]=R?"0":"",ie.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(u={},u[j]=M?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,v=s.gpuAcceleration,g=v===void 0?!0:v,C=s.adaptive,h=C===void 0?!0:C,N=s.roundOffsets,b=N===void 0?!0:N,B={placement:(0,V.default)(u.placement),variation:(0,k.default)(u.placement),popper:u.elements.popper,popperRect:u.rects.popper,gpuAcceleration:g,isFixed:u.options.strategy==="fixed"};u.modifiersData.popperOffsets!=null&&(u.styles.popper=Object.assign({},u.styles.popper,c(Object.assign({},B,{offsets:u.modifiersData.popperOffsets,position:u.options.strategy,adaptive:h,roundOffsets:b})))),u.modifiersData.arrow!=null&&(u.styles.arrow=Object.assign({},u.styles.arrow,c(Object.assign({},B,{offsets:u.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-placement":u.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},21068:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,y=V.options,p=y.scroll,l=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,i=(0,e.default)(k.elements.popper),d=[].concat(k.scrollParents.reference,k.scrollParents.popper);return l&&d.forEach(function(u){u.addEventListener("scroll",S.update,t)}),m&&i.addEventListener("resize",S.update,t),function(){l&&d.forEach(function(u){u.removeEventListener("scroll",S.update,t)}),m&&i.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},51825:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),f=S(n(36705)),V=n(37802),k=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,i=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var u=i.mainAxis,s=u===void 0?!0:u,v=i.altAxis,g=v===void 0?!0:v,C=i.fallbackPlacements,h=i.padding,N=i.boundary,b=i.rootBoundary,B=i.altBoundary,L=i.flipVariations,w=L===void 0?!0:L,T=i.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=C||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(P).reduce(function(Q,q){return Q.concat((0,a.default)(q)===V.auto?(0,f.default)(m,{placement:q,boundary:N,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=m.rects.reference,D=m.rects.popper,j=new Map,F=!0,W=R[0],K=0;K<R.length;K++){var _=R[K],$=(0,a.default)(_),z=(0,k.default)(_)===V.start,Y=[V.top,V.bottom].indexOf($)>=0,Z=Y?"width":"height",ie=(0,o.default)(m,{placement:_,boundary:N,rootBoundary:b,altBoundary:B,padding:h}),ae=Y?z?V.right:V.left:z?V.bottom:V.top;M[Z]>D[Z]&&(ae=(0,e.default)(ae));var se=(0,e.default)(ae),he=[];if(s&&he.push(ie[$]<=0),g&&he.push(ie[ae]<=0,ie[se]<=0),he.every(function(Q){return Q})){W=_,F=!1;break}j.set(_,he)}if(F)for(var ye=w?3:1,Le=function(){function Q(q){var ue=R.find(function(me){var ne=j.get(me);if(ne)return ne.slice(0,q).every(function(be){return be})});if(ue)return W=ue,"break"}return Q}(),pe=ye;pe>0;pe--){var oe=Le(pe);if(oe==="break")break}m.placement!==W&&(m.modifiersData[d]._skip=!0,m.placement=W,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function V(S){var y=S.state,p=S.name,l=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,i=(0,a.default)(y,{elementContext:"reference"}),d=(0,a.default)(y,{altBoundary:!0}),u=o(i,l),s=o(d,c,m),v=f(u),g=f(s);y.modifiersData[p]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:v,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},16055:function(I,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=p(n(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var f=p(n(51825));r.flip=f.default;var V=p(n(44677));r.hide=V.default;var k=p(n(34331));r.offset=k.default;var S=p(n(56154));r.popperOffsets=S.default;var y=p(n(69770));r.preventOverflow=y.default;function p(l){return l&&l.__esModule?l:{default:l}}},34331:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],i=c[1];return m=m||0,i=(i||0)*l,[a.left,a.right].indexOf(p)>=0?{x:i,y:m}:{x:m,y:i}}function f(k){var S=k.state,y=k.options,p=k.name,l=y.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(s,v){return s[v]=o(v,S.rects,c),s},{}),i=m[S.placement],d=i.x,u=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=d,S.modifiersData.popperOffsets.y+=u),S.modifiersData[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),f=n(87415),V=c(n(12866)),k=c(n(29727)),S=c(n(4709)),y=c(n(56918)),p=c(n(26143)),l=n(79257);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var u=d.state,s=d.options,v=d.name,g=s.mainAxis,C=g===void 0?!0:g,h=s.altAxis,N=h===void 0?!1:h,b=s.boundary,B=s.rootBoundary,L=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(u,{boundary:b,rootBoundary:B,padding:w,altBoundary:L}),R=(0,a.default)(u.placement),M=(0,y.default)(u.placement),D=!M,j=(0,t.default)(R),F=(0,o.default)(j),W=u.modifiersData.popperOffsets,K=u.rects.reference,_=u.rects.popper,$=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,z=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,Z={x:0,y:0};if(W){if(C){var ie,ae=j==="y"?e.top:e.left,se=j==="y"?e.bottom:e.right,he=j==="y"?"height":"width",ye=W[j],Le=ye+P[ae],pe=ye-P[se],oe=A?-_[he]/2:0,Q=M===e.start?K[he]:_[he],q=M===e.start?-_[he]:-K[he],ue=u.elements.arrow,me=A&&ue?(0,V.default)(ue):{width:0,height:0},ne=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=ne[ae],fe=ne[se],ge=(0,f.within)(0,K[he],me[he]),ke=D?K[he]/2-oe-ge-be-z.mainAxis:Q-ge-be-z.mainAxis,ve=D?-K[he]/2+oe+ge+fe+z.mainAxis:q+ge+fe+z.mainAxis,Se=u.elements.arrow&&(0,k.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[j])!=null?ie:0,Oe=ye+ke-xe-we,Ue=ye+ve-xe,Ve=(0,f.within)(A?(0,l.min)(Le,Oe):Le,ye,A?(0,l.max)(pe,Ue):pe);W[j]=Ve,Z[j]=Ve-ye}if(N){var re,le=j==="x"?e.top:e.left,Ce=j==="x"?e.bottom:e.right,de=W[F],Ne=F==="y"?"height":"width",Ae=de+P[le],De=de-P[Ce],je=[e.top,e.left].indexOf(R)!==-1,Ke=(re=Y==null?void 0:Y[F])!=null?re:0,We=je?Ae:de-K[Ne]-_[Ne]-Ke+z.altAxis,He=je?de+K[Ne]+_[Ne]-Ke-z.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(We,de,He):(0,f.within)(A?We:Ae,de,A?He:De);W[F]=Ge,Z[F]=Ge-de}u.modifiersData[v]=Z}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(21068)),t=V(n(56154)),o=V(n(85445)),f=V(n(20637));function V(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},98420:function(I,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(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(21068)),o=i(n(56154)),f=i(n(85445)),V=i(n(20637)),k=i(n(34331)),S=i(n(51825)),y=i(n(69770)),p=i(n(11106)),l=i(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var m=n(16055);Object.keys(m).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(e,s)||s in r&&r[s]===m[s]||(r[s]=m[s])});function i(s){return s&&s.__esModule?s:{default:s}}var d=r.defaultModifiers=[t.default,o.default,f.default,V.default,k.default,S.default,y.default,p.default,l.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var y=S,p=y.placement,l=y.boundary,c=y.rootBoundary,m=y.padding,i=y.flipVariations,d=y.allowedAutoPlacements,u=d===void 0?a.placements:d,s=(0,e.default)(p),v=s?i?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===s}):a.basePlacements,g=v.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=v);var C=g.reduce(function(h,N){return h[N]=(0,t.default)(k,{placement:N,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(C).sort(function(h,N){return C[h]-C[N]})}},49306:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,y=k.element,p=k.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-y.width/2,i=S.y+S.height/2-y.height/2,d;switch(l){case o.top:d={x:m,y:S.y-y.height};break;case o.bottom:d={x:m,y:S.y+S.height};break;case o.right:d={x:S.x+S.width,y:i};break;case o.left:d={x:S.x-y.width,y:i};break;default:d={x:S.x,y:S.y}}var u=l?(0,t.default)(l):null;if(u!=null){var s=u==="y"?"height":"width";switch(c){case o.start:d[u]=d[u]-(S[s]/2-y[s]/2);break;case o.end:d[u]=d[u]+(S[s]/2-y[s]/2);break;default:}}return d}},97902:function(I,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}}},4709:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),f=p(n(21194)),V=n(37802),k=n(65601),S=p(n(41e3)),y=p(n(62605));function p(c){return c&&c.__esModule?c:{default:c}}function l(c,m){m===void 0&&(m={});var i=m,d=i.placement,u=d===void 0?c.placement:d,s=i.strategy,v=s===void 0?c.strategy:s,g=i.boundary,C=g===void 0?V.clippingParents:g,h=i.rootBoundary,N=h===void 0?V.viewport:h,b=i.elementContext,B=b===void 0?V.popper:b,L=i.altBoundary,w=L===void 0?!1:L,T=i.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,P=c.rects.popper,R=c.elements[w?E:B],M=(0,e.default)((0,k.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),C,N,v),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:P,strategy:"absolute",placement:u}),F=(0,f.default)(Object.assign({},P,j)),W=B===V.popper?F:D,K={top:M.top-W.top+x.top,bottom:W.bottom-M.bottom+x.bottom,left:M.left-W.left+x.left,right:W.right-M.right+x.right},_=c.modifiersData.offset;if(B===V.popper&&_){var $=_[u];Object.keys(K).forEach(function(z){var Y=[V.right,V.bottom].indexOf(z)>=0?1:-1,Z=[V.top,V.bottom].indexOf(z)>=0?"y":"x";K[z]+=$[Z]*Y})}return K}},62605:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(I,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]})}},15022:function(I,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]})}},56918:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(I,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},57547:function(I,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]})}},41e3:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){V.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(l){if(!V.has(l)){var c=f.get(l);c&&S(c)}}),k.push(y)}return o.forEach(function(y){V.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},21194:function(I,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})}},88492:function(I,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}},87415:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},60208:function(I,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Le,r._M=ze,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=K,r.createFragment=$,r.createPortal=ae,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=_,r.createVNode=D,r.directClone=Z,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=he,r.linkEvent=p,r.normalizeProps=z,r.options=void 0,r.render=Ut,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(O){var U=typeof O;return U==="string"||U==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function V(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function y(O,U){var H={};if(O)for(var G in O)H[G]=O[G];if(U)for(var J in U)H[J]=U[J];return H}function p(O,U){return o(U)?{data:O,event:U}:null}function l(O){return!k(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function i(O){return O.substr(2).toLowerCase()}function d(O,U){O.appendChild(U)}function u(O,U,H){k(H)?d(O,U):O.insertBefore(U,H)}function s(O,U){return U?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function v(O,U,H){O.replaceChild(U,H)}function g(O,U){O.removeChild(U)}function C(O){for(var U=0;U<O.length;U++)O[U]()}function h(O,U,H){var G=O.children;return H&4?G.$LI:H&8192?O.childFlags===2?G:G[U?0:G.length-1]:G}function N(O,U){for(var H;O;){if(H=O.flags,H&2033)return O.dom;O=h(O,U,H)}return null}function b(O,U){do{var H=O.flags;if(H&2033){g(U,O.dom);return}var G=O.children;if(H&4&&(O=G.$LI),H&8&&(O=G),H&8192)if(O.childFlags===2)O=G;else{for(var J=0,ee=G.length;J<ee;++J)b(G[J],U);return}}while(O)}function B(O,U,H){do{var G=O.flags;if(G&2033){u(U,O.dom,H);return}var J=O.children;if(G&4&&(O=J.$LI),G&8&&(O=J),G&8192)if(O.childFlags===2)O=J;else{for(var ee=0,te=J.length;ee<te;++ee)B(J[ee],U,H);return}}while(O)}function L(O,U,H){return O.constructor.getDerivedStateFromProps?y(H,O.constructor.getDerivedStateFromProps(U,H)):H}var w={v:!1},T=r.options={componentComparator:null,createVNode:null,renderComplete:null};function A(O,U){O.textContent=U}function x(O,U){return l(O)&&O.event===U.event&&O.data===U.data}function E(O,U){for(var H in U)S(O[H])&&(O[H]=U[H]);return O}function P(O,U){return!!o(O)&&(O(U),!0)}var R="$";function M(O,U,H,G,J,ee,te,ce){this.childFlags=O,this.children=U,this.className=H,this.dom=null,this.flags=G,this.key=J===void 0?null:J,this.props=ee===void 0?null:ee,this.ref=te===void 0?null:te,this.type=ce}function D(O,U,H,G,J,ee,te,ce){var Te=J===void 0?1:J,Be=new M(Te,G,H,O,te,ee,ce,U);return T.createVNode&&T.createVNode(Be),Te===0&&ye(Be,Be.children),Be}function j(O,U,H){if(O&4)return H;var G=(O&32768?U.render:U).defaultHooks;return a(G)?H:a(H)?G:E(H,G)}function F(O,U,H){var G=(O&32768?U.render:U).defaultProps;return a(G)?H:a(H)?y(G,null):E(H,G)}function W(O,U){return O&12?O:U.prototype&&U.prototype.render?4:U.render?32776:8}function K(O,U,H,G,J){O=W(O,U);var ee=new M(1,null,null,O,G,F(O,U,H),j(O,U,J),U);return T.createVNode&&T.createVNode(ee),ee}function _(O,U){return new M(1,a(O)||O===!0||O===!1?"":O,null,16,U,null,null,null)}function $(O,U,H){var G=D(8192,8192,null,O,U,null,H,null);switch(G.childFlags){case 1:G.children=ie(),G.childFlags=2;break;case 16:G.children=[_(O)],G.childFlags=4;break}return G}function z(O){var U=O.props;if(U){var H=O.flags;H&481&&(U.children!==void 0&&a(O.children)&&ye(O,U.children),U.className!==void 0&&(a(O.className)&&(O.className=U.className||null),U.className=void 0)),U.key!==void 0&&(O.key=U.key,U.key=void 0),U.ref!==void 0&&(H&8?O.ref=y(O.ref,U.ref):O.ref=U.ref,U.ref=void 0)}return O}function Y(O){var U=O.children,H=O.childFlags;return $(H===2?Z(U):U.map(Z),H,O.key)}function Z(O){var U=O.flags&-16385,H=O.props;if(U&14&&!k(H)){var G=H;H={};for(var J in G)H[J]=G[J]}return U&8192?Y(O):new M(O.childFlags,O.children,O.className,U,O.key,H,O.ref,O.type)}function ie(){return _("",null)}function ae(O,U){var H=Le(O);return D(1024,1024,null,H,0,null,H.key,U)}function se(O,U,H,G){for(var J=O.length;H<J;H++){var ee=O[H];if(!t(ee)){var te=G+R+H;if(n(ee))se(ee,U,0,te);else{if(e(ee))ee=_(ee,te);else{var ce=ee.key,Te=f(ce)&&ce[0]===R;(ee.flags&81920||Te)&&(ee=Z(ee)),ee.flags|=65536,Te?ce.substring(0,G.length)!==G&&(ee.key=G+ce):k(ce)?ee.key=te:ee.key=G+ce}U.push(ee)}}}}function he(O){switch(O){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case m:return 8192;default:return 1}}function ye(O,U){var H,G=1;if(t(U))H=U;else if(e(U))G=16,H=U;else if(n(U)){for(var J=U.length,ee=0;ee<J;++ee){var te=U[ee];if(t(te)||n(te)){H=H||U.slice(0,ee),se(U,H,ee,"");break}else if(e(te))H=H||U.slice(0,ee),H.push(_(te,R+ee));else{var ce=te.key,Te=(te.flags&81920)>0,Be=k(ce),Ie=f(ce)&&ce[0]===R;Te||Be||Ie?(H=H||U.slice(0,ee),(Te||Ie)&&(te=Z(te)),(Be||Ie)&&(te.key=R+ee),H.push(te)):H&&H.push(te),te.flags|=65536}}H=H||U,H.length===0?G=1:G=8}else H=U,H.flags|=65536,U.flags&81920&&(H=Z(U)),G=2;return O.children=H,O.childFlags=G,O}function Le(O){return t(O)||e(O)?_(O,null):n(O)?$(O,0,null):O.flags&16384?Z(O):O}var pe="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=q(0),me=q(null),ne=q(!0);function be(O,U){var H=U.$EV;return H||(H=U.$EV=q(null)),H[O]||++ue[O]===1&&(me[O]=re(O)),H}function fe(O,U){var H=U.$EV;H&&H[O]&&(--ue[O]===0&&(document.removeEventListener(i(O),me[O]),me[O]=null),H[O]=null)}function ge(O,U,H,G){if(o(H))be(O,G)[O]=H;else if(l(H)){if(x(U,H))return;be(O,G)[O]=H}else fe(O,G)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ve(O,U,H,G){var J=ke(O);do{if(U&&J.disabled)return;var ee=J.$EV;if(ee){var te=ee[H];if(te&&(G.dom=J,te.event?te.event(te.data,O):te(O),O.cancelBubble))return}J=J.parentNode}while(!k(J))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var U={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function H(){return U.dom}return H}()}),U}function Ue(O){return function(U){if(U.button!==0){U.stopPropagation();return}ve(U,!0,O,Oe(U))}}function Ve(O){return function(U){ve(U,!1,O,Oe(U))}}function re(O){var U=O==="onClick"||O==="onDblClick"?Ue(O):Ve(O);return document.addEventListener(i(O),U),U}function le(O,U){var H=document.createElement("i");return H.innerHTML=U,H.innerHTML===O.innerHTML}function Ce(O,U,H){if(O[U]){var G=O[U];G.event?G.event(G.data,H):G(H)}else{var J=U.toLowerCase();O[J]&&O[J](H)}}function de(O,U){var H=function(J){var ee=this.$V;if(ee){var te=ee.props||c,ce=ee.dom;if(f(O))Ce(te,O,J);else for(var Te=0;Te<O.length;++Te)Ce(te,O[Te],J);if(o(U)){var Be=this.$V,Ie=Be.props||c;U(Ie,ce,!1,Be)}}};return Object.defineProperty(H,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),H}function Ne(O,U,H){var G="$"+U,J=O[G];if(J){if(J[1].wrapped)return;O.removeEventListener(J[0],J[1]),O[G]=null}o(H)&&(O.addEventListener(U,H),O[G]=[U,H])}function Ae(O){return O==="checkbox"||O==="radio"}var De=de("onInput",He),je=de(["onClick","onChange"],He);function Ke(O){O.stopPropagation()}Ke.wrapped=!0;function We(O,U){Ae(U.type)?(Ne(O,"change",je),Ne(O,"click",Ke)):Ne(O,"input",De)}function He(O,U){var H=O.type,G=O.value,J=O.checked,ee=O.multiple,te=O.defaultValue,ce=!a(G);H&&H!==U.type&&U.setAttribute("type",H),!a(ee)&&ee!==U.multiple&&(U.multiple=ee),!a(te)&&!ce&&(U.defaultValue=te+""),Ae(H)?(ce&&(U.value=G),a(J)||(U.checked=J)):ce&&U.value!==G?(U.defaultValue=G,U.value=G):a(J)||(U.checked=J)}function Ge(O,U){if(O.type==="option")yt(O,U);else{var H=O.children,G=O.flags;if(G&4)Ge(H.$LI,U);else if(G&8)Ge(H,U);else if(O.childFlags===2)Ge(H,U);else if(O.childFlags&12)for(var J=0,ee=H.length;J<ee;++J)Ge(H[J],U)}}function yt(O,U){var H=O.props||c,G=O.dom;G.value=H.value,H.value===U||n(U)&&U.indexOf(H.value)!==-1?G.selected=!0:(!a(U)||!a(H.selected))&&(G.selected=H.selected||!1)}var kt=de("onChange",ft);function St(O){Ne(O,"change",kt)}function ft(O,U,H,G){var J=!!O.multiple;!a(O.multiple)&&J!==U.multiple&&(U.multiple=J);var ee=O.selectedIndex;ee===-1&&(U.selectedIndex=-1);var te=G.childFlags;if(te!==1){var ce=O.value;V(ee)&&ee>-1&&U.options[ee]&&(ce=U.options[ee].value),H&&a(ce)&&(ce=O.defaultValue),Ge(G,ce)}}var Bt=de("onInput",pt),Lt=de("onChange");function It(O,U){Ne(O,"input",Bt),U.onChange&&Ne(O,"change",Lt)}function pt(O,U,H){var G=O.value,J=U.value;if(a(G)){if(H){var ee=O.defaultValue;!a(ee)&&ee!==J&&(U.defaultValue=ee,U.value=ee)}}else J!==G&&(U.defaultValue=G,U.value=G)}function wt(O,U,H,G,J,ee){O&64?He(G,H):O&256?ft(G,H,J,U):O&128&&pt(G,H,J),ee&&(H.$V=U)}function Gt(O,U,H){O&64?We(U,H):O&256?St(U):O&128&&It(U,H)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!P(O,null)&&O.current&&(O.current=null)}function ot(O,U,H){O&&(o(O)||O.current!==void 0)&&H.push(function(){!P(O,U)&&O.current!==void 0&&(O.current=U)})}function Xe(O,U){Qe(O),b(O,U)}function Qe(O){var U=O.flags,H=O.children,G;if(U&481){G=O.ref;var J=O.props;lt(G);var ee=O.childFlags;if(!k(J))for(var te=Object.keys(J),ce=0,Te=te.length;ce<Te;ce++){var Be=te[ce];ne[Be]&&fe(Be,O.dom)}ee&12?rt(H):ee===2&&Qe(H)}else H&&(U&4?(o(H.componentWillUnmount)&&H.componentWillUnmount(),lt(O.ref),H.$UN=!0,Qe(H.$LI)):U&8?(G=O.ref,!a(G)&&o(G.onComponentWillUnmount)&&G.onComponentWillUnmount(N(O,!0),O.props||c),Qe(H)):U&1024?Xe(H,O.ref):U&8192&&O.childFlags&12&&rt(H))}function rt(O){for(var U=0,H=O.length;U<H;++U)Qe(O[U])}function ut(O){O.textContent=""}function dt(O,U,H){rt(H),U.flags&8192?b(U,O):ut(O)}function Jt(O){var U=O.event;return function(H){U(O.data,H)}}function Qt(O,U,H,G){if(l(H)){if(x(U,H))return;H=Jt(H)}Ne(G,i(O),H)}function Zt(O,U,H){if(a(U)){H.removeAttribute("style");return}var G=H.style,J,ee;if(f(U)){G.cssText=U;return}if(!a(O)&&!f(O)){for(J in U)ee=U[J],ee!==O[J]&&G.setProperty(J,ee);for(J in O)a(U[J])&&G.removeProperty(J)}else for(J in U)ee=U[J],G.setProperty(J,ee)}function qt(O,U,H,G){var J=O&&O.__html||"",ee=U&&U.__html||"";J!==ee&&!a(ee)&&!le(G,ee)&&(k(H)||(H.childFlags&12?rt(H.children):H.childFlags===2&&Qe(H.children),H.children=null,H.childFlags=1),G.innerHTML=ee)}function ht(O,U,H,G,J,ee,te){switch(O){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":G.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":G[O]=!!H;break;case"defaultChecked":case"value":case"volume":if(ee&&O==="value")break;var ce=a(H)?"":H;G[O]!==ce&&(G[O]=ce);break;case"style":Zt(U,H,G);break;case"dangerouslySetInnerHTML":qt(U,H,te,G);break;default:ne[O]?ge(O,U,H,G):O.charCodeAt(0)===111&&O.charCodeAt(1)===110?Qt(O,U,H,G):a(H)?G.removeAttribute(O):J&&Q[O]?G.setAttributeNS(Q[O],O,H):G.setAttribute(O,H);break}}function xt(O,U,H,G,J){var ee=!1,te=(U&448)>0;te&&(ee=Tt(H),ee&&Gt(U,G,H));for(var ce in H)ht(ce,null,H[ce],G,J,ee,null);te&&wt(U,O,G,H,!0,ee)}function At(O,U,H){var G=Le(O.render(U,O.state,H)),J=H;return o(O.getChildContext)&&(J=y(H,O.getChildContext())),O.$CX=J,G}function Et(O,U,H,G,J,ee){var te=new U(H,G),ce=te.$N=!!(U.getDerivedStateFromProps||te.getSnapshotBeforeUpdate);if(te.$SVG=J,te.$L=ee,O.children=te,te.$BS=!1,te.context=G,te.props===c&&(te.props=H),ce)te.state=L(te,H,te.state);else if(o(te.componentWillMount)){te.$BR=!0,te.componentWillMount();var Te=te.$PS;if(!k(Te)){var Be=te.state;if(k(Be))te.state=Te;else for(var Ie in Te)Be[Ie]=Te[Ie];te.$PS=null}te.$BR=!1}return te.$LI=At(te,H,G),te}function Ct(O,U){var H=O.props||c;return O.flags&32768?O.type.render(H,O.ref,U):O.type(H,U)}function ze(O,U,H,G,J,ee){var te=O.flags|=16384;te&481?Pt(O,U,H,G,J,ee):te&4?nn(O,U,H,G,J,ee):te&8?(on(O,U,H,G,J,ee),Rt(O,ee)):te&512||te&16?Mt(O,U,J):te&8192?tn(O,H,U,G,J,ee):te&1024&&en(O,H,U,J,ee)}function en(O,U,H,G,J){ze(O.children,O.ref,U,!1,null,J);var ee=ie();Mt(ee,H,G),O.dom=ee.dom}function tn(O,U,H,G,J,ee){var te=O.children,ce=O.childFlags;ce&12&&te.length===0&&(ce=O.childFlags=2,te=O.children=ie()),ce===2?ze(te,H,U,G,J,ee):nt(te,H,U,G,J,ee)}function Mt(O,U,H){var G=O.dom=document.createTextNode(O.children);k(U)||u(U,G,H)}function Pt(O,U,H,G,J,ee){var te=O.flags,ce=O.props,Te=O.className,Be=O.childFlags,Ie=O.dom=s(O.type,G=G||(te&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(G?Ie.setAttribute("class",Te):Ie.className=Te),Be===16)A(Ie,Ee);else if(Be!==1){var Pe=G&&O.type!=="foreignObject";Be===2?(Ee.flags&16384&&(O.children=Ee=Z(Ee)),ze(Ee,Ie,H,Pe,null,ee)):(Be===8||Be===4)&&nt(Ee,Ie,H,Pe,null,ee)}k(U)||u(U,Ie,J),k(ce)||xt(O,te,ce,Ie,G),ot(O.ref,Ie,ee)}function nt(O,U,H,G,J,ee){for(var te=0;te<O.length;++te){var ce=O[te];ce.flags&16384&&(O[te]=ce=Z(ce)),ze(ce,U,H,G,J,ee)}}function nn(O,U,H,G,J,ee){var te=Et(O,O.type,O.props||c,H,G,ee);ze(te.$LI,U,te.$CX,G,J,ee),Ot(O.ref,te,ee)}function on(O,U,H,G,J,ee){ze(O.children=Le(Ct(O,H)),U,H,G,J,ee)}function rn(O){return function(){O.componentDidMount()}}function Ot(O,U,H){ot(O,U,H),o(U.componentDidMount)&&H.push(rn(U))}function an(O,U){return function(){O.onComponentDidMount(N(U,!0),U.props||c)}}function Rt(O,U){var H=O.ref;a(H)||(P(H.onComponentWillMount,O.props||c),o(H.onComponentDidMount)&&U.push(an(H,O)))}function cn(O,U,H,G,J,ee){Qe(O),U.flags&O.flags&2033?(ze(U,null,G,J,null,ee),v(H,U.dom,O.dom)):(ze(U,H,G,J,N(O,!0),ee),b(O,H))}function Ze(O,U,H,G,J,ee,te){var ce=U.flags|=16384;O.flags!==ce||O.type!==U.type||O.key!==U.key||ce&2048?O.flags&16384?cn(O,U,H,G,J,te):ze(U,H,G,J,ee,te):ce&481?mn(O,U,G,J,ce,te):ce&4?hn(O,U,H,G,J,ee,te):ce&8?Cn(O,U,H,G,J,ee,te):ce&16?vn(O,U):ce&512?U.dom=O.dom:ce&8192?dn(O,U,H,G,J,te):sn(O,U,G,te)}function ln(O,U,H){O!==U&&(O!==""?H.firstChild.nodeValue=U:A(H,U))}function un(O,U){O.textContent!==U&&(O.textContent=U)}function dn(O,U,H,G,J,ee){var te=O.children,ce=U.children,Te=O.childFlags,Be=U.childFlags,Ie=null;Be&12&&ce.length===0&&(Be=U.childFlags=2,ce=U.children=ie());var Ee=(Be&2)!==0;if(Te&12){var Pe=te.length;(Te&8&&Be&8||Ee||!Ee&&ce.length>Pe)&&(Ie=N(te[Pe-1],!1).nextSibling)}vt(Te,Be,te,ce,H,G,J,Ie,O,ee)}function sn(O,U,H,G){var J=O.ref,ee=U.ref,te=U.children;if(vt(O.childFlags,U.childFlags,O.children,te,J,H,!1,null,O,G),U.dom=O.dom,J!==ee&&!t(te)){var ce=te.dom;g(J,ce),d(ee,ce)}}function mn(O,U,H,G,J,ee){var te=U.dom=O.dom,ce=O.props,Te=U.props,Be=!1,Ie=!1,Ee;if(G=G||(J&32)>0,ce!==Te){var Pe=ce||c;if(Ee=Te||c,Ee!==c){Be=(J&448)>0,Be&&(Ie=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],$e=Ee[Fe];Me!==$e&&ht(Fe,Me,$e,te,G,Ie,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,te,G,Ie,O)}var et=U.children,Ye=U.className;O.className!==Ye&&(a(Ye)?te.removeAttribute("class"):G?te.setAttribute("class",Ye):te.className=Ye),J&4096?un(te,et):vt(O.childFlags,U.childFlags,O.children,et,te,H,G&&U.type!=="foreignObject",null,O,ee),Be&&wt(J,U,te,Ee,!1,Ie);var at=U.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,te,ee))}function fn(O,U,H,G,J,ee){Qe(O),nt(U,H,G,J,N(O,!0),ee),b(O,H)}function vt(O,U,H,G,J,ee,te,ce,Te,Be){switch(O){case 2:switch(U){case 2:Ze(H,G,J,ee,te,ce,Be);break;case 1:Xe(H,J);break;case 16:Qe(H),A(J,G);break;default:fn(H,G,J,ee,te,Be);break}break;case 1:switch(U){case 2:ze(G,J,ee,te,ce,Be);break;case 1:break;case 16:A(J,G);break;default:nt(G,J,ee,te,ce,Be);break}break;case 16:switch(U){case 16:ln(H,G,J);break;case 2:ut(J),ze(G,J,ee,te,ce,Be);break;case 1:ut(J);break;default:ut(J),nt(G,J,ee,te,ce,Be);break}break;default:switch(U){case 16:rt(H),A(J,G);break;case 2:dt(J,Te,H),ze(G,J,ee,te,ce,Be);break;case 1:dt(J,Te,H);break;default:var Ie=H.length|0,Ee=G.length|0;Ie===0?Ee>0&&nt(G,J,ee,te,ce,Be):Ee===0?dt(J,Te,H):U===8&&O===8?Nn(H,G,J,ee,te,Ie,Ee,ce,Te,Be):gn(H,G,J,ee,te,Ie,Ee,ce,Be);break}break}}function pn(O,U,H,G,J){J.push(function(){O.componentDidUpdate(U,H,G)})}function Dt(O,U,H,G,J,ee,te,ce,Te){var Be=O.state,Ie=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(U=L(O,H,U!==Be?y(Be,U):U)),te||!Pe||Pe&&O.shouldComponentUpdate(H,U,J)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(H,U,J),O.props=H,O.state=U,O.context=J;var Fe=null,Me=At(O,H,J);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Ie,Be)),Ze(O.$LI,Me,G,O.$CX,ee,ce,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Ie,Be,Fe,Te)}else O.props=H,O.state=U,O.context=J}function hn(O,U,H,G,J,ee,te){var ce=U.children=O.children;if(!k(ce)){ce.$L=te;var Te=U.props||c,Be=U.ref,Ie=O.ref,Ee=ce.state;if(!ce.$N){if(o(ce.componentWillReceiveProps)){if(ce.$BR=!0,ce.componentWillReceiveProps(Te,G),ce.$UN)return;ce.$BR=!1}k(ce.$PS)||(Ee=y(Ee,ce.$PS),ce.$PS=null)}Dt(ce,Ee,Te,H,G,J,!1,ee,te),Ie!==Be&&(lt(Ie),ot(Be,ce,te))}}function Cn(O,U,H,G,J,ee,te){var ce=!0,Te=U.props||c,Be=U.ref,Ie=O.props,Ee=!a(Be),Pe=O.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ce=Be.onComponentShouldUpdate(Ie,Te)),ce!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Ie,Te);var Fe=Le(Ct(U,G));Ze(Pe,Fe,H,G,J,ee,te),U.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Ie,Te)}else U.children=Pe}function vn(O,U){var H=U.children,G=U.dom=O.dom;H!==O.children&&(G.nodeValue=H)}function gn(O,U,H,G,J,ee,te,ce,Te){for(var Be=ee>te?te:ee,Ie=0,Ee,Pe;Ie<Be;++Ie)Ee=U[Ie],Pe=O[Ie],Ee.flags&16384&&(Ee=U[Ie]=Z(Ee)),Ze(Pe,Ee,H,G,J,ce,Te),O[Ie]=Ee;if(ee<te)for(Ie=Be;Ie<te;++Ie)Ee=U[Ie],Ee.flags&16384&&(Ee=U[Ie]=Z(Ee)),ze(Ee,H,G,J,ce,Te);else if(ee>te)for(Ie=Be;Ie<ee;++Ie)Xe(O[Ie],H)}function Nn(O,U,H,G,J,ee,te,ce,Te,Be){var Ie=ee-1,Ee=te-1,Pe=0,Fe=O[Pe],Me=U[Pe],$e,Re;e:{for(;Fe.key===Me.key;){if(Me.flags&16384&&(U[Pe]=Me=Z(Me)),Ze(Fe,Me,H,G,J,ce,Be),O[Pe]=Me,++Pe,Pe>Ie||Pe>Ee)break e;Fe=O[Pe],Me=U[Pe]}for(Fe=O[Ie],Me=U[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(U[Ee]=Me=Z(Me)),Ze(Fe,Me,H,G,J,ce,Be),O[Ie]=Me,Ie--,Ee--,Pe>Ie||Pe>Ee)break e;Fe=O[Ie],Me=U[Ee]}}if(Pe>Ie){if(Pe<=Ee)for($e=Ee+1,Re=$e<te?N(U[$e],!0):ce;Pe<=Ee;)Me=U[Pe],Me.flags&16384&&(U[Pe]=Me=Z(Me)),++Pe,ze(Me,H,G,J,Re,Be)}else if(Pe>Ee)for(;Pe<=Ie;)Xe(O[Pe++],H);else Vn(O,U,G,ee,te,Ie,Ee,Pe,H,J,ce,Te,Be)}function Vn(O,U,H,G,J,ee,te,ce,Te,Be,Ie,Ee,Pe){var Fe,Me,$e,Re=0,et=ce,Ye=ce,at=ee-ce+1,Je=te-ce+1,ct=new Int32Array(Je+1),tt=at===G,Vt=!1,_e=0,it=0;if(J<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=O[Re],it<Je){for(ce=Ye;ce<=te;ce++)if(Me=U[ce],Fe.key===Me.key){if(ct[ce-Ye]=Re+1,tt)for(tt=!1;et<Re;)Xe(O[et++],Te);_e>ce?Vt=!0:_e=ce,Me.flags&16384&&(U[ce]=Me=Z(Me)),Ze(Fe,Me,Te,H,Be,Ie,Pe),++it;break}!tt&&ce>te&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=te;++Re)zt[U[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=O[Re],it<Je)if(ce=zt[Fe.key],ce!==void 0){if(tt)for(tt=!1;Re>et;)Xe(O[et++],Te);ct[ce-Ye]=Re+1,_e>ce?Vt=!0:_e=ce,Me=U[ce],Me.flags&16384&&(U[ce]=Me=Z(Me)),Ze(Fe,Me,Te,H,Be,Ie,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(U,Te,H,Be,Ie,Pe);else if(Vt){var $t=bn(ct);for(ce=$t.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?(_e=Re+Ye,Me=U[_e],Me.flags&16384&&(U[_e]=Me=Z(Me)),$e=_e+1,ze(Me,Te,H,Be,$e<J?N(U[$e],!0):Ie,Pe)):ce<0||Re!==$t[ce]?(_e=Re+Ye,Me=U[_e],$e=_e+1,B(Me,Te,$e<J?N(U[$e],!0):Ie)):ce--}else if(it!==Je)for(Re=Je-1;Re>=0;Re--)ct[Re]===0&&(_e=Re+Ye,Me=U[_e],Me.flags&16384&&(U[_e]=Me=Z(Me)),$e=_e+1,ze(Me,Te,H,Be,$e<J?N(U[$e],!0):Ie,Pe))}var qe,st,jt=0;function bn(O){var U=0,H=0,G=0,J=0,ee=0,te=0,ce=0,Te=O.length;for(Te>jt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));H<Te;++H)if(U=O[H],U!==0){if(G=qe[J],O[G]<U){st[H]=G,qe[++J]=H;continue}for(ee=0,te=J;ee<te;)ce=ee+te>>1,O[qe[ce]]<U?ee=ce+1:te=ce;U<O[qe[ee]]&&(ee>0&&(st[H]=qe[ee-1]),qe[ee]=H)}ee=J+1;var Be=new Int32Array(ee);for(te=qe[ee-1];ee-- >0;)Be[ee]=te,te=st[te],qe[ee]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,U,H,G){var J=[],ee=U.$V;w.v=!0,a(ee)?a(O)||(O.flags&16384&&(O=Z(O)),ze(O,U,G,!1,null,J),U.$V=O,ee=O):a(O)?(Xe(ee,U),U.$V=null):(O.flags&16384&&(O=Z(O)),Ze(ee,O,U,G,!1,null,J),ee=U.$V=O),C(J),w.v=!1,o(H)&&H(),o(T.renderComplete)&&T.renderComplete(ee,U)}function Ut(O,U,H,G){H===void 0&&(H=null),G===void 0&&(G=c),Ft(O,U,H,G)}function kn(O){return function(){function U(H,G,J,ee){O||(O=H),Ut(G,O,J,ee)}return U}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Wt(O,U,H,G){var J=O.$PS;if(o(U)&&(U=U(J?y(O.state,J):O.state,O.props,O.context)),a(J))O.$PS=U;else for(var ee in U)J[ee]=U[ee];if(O.$BR)o(H)&&O.$L.push(H.bind(O));else{if(!w.v&&mt.length===0){Ht(O,G),o(H)&&H.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),G&&(O.$F=!0),gt||(gt=!0,Sn(Kt)),o(H)){var te=O.$QU;te||(te=O.$QU=[]),te.push(H)}}}function Bn(O){for(var U=O.$QU,H=0;H<U.length;++H)U[H].call(O);O.$QU=null}function Kt(){var O;for(gt=!1;O=mt.shift();)if(!O.$UN){var U=O.$F;O.$F=!1,Ht(O,U),O.$QU&&Bn(O)}}function Ht(O,U){if(U||!O.$BR){var H=O.$PS;O.$PS=null;var G=[];w.v=!0,Dt(O,y(O.state,H),O.props,N(O.$LI,!0).parentNode,O.context,O.$SVG,U,null,G),C(G),w.v=!1}else O.state=O.$PS,O.$PS=null}var Nt=r.Component=function(){function O(U,H){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=U||c,this.context=H||c}return O}();Nt.prototype.forceUpdate=function(){function O(U){this.$UN||Wt(this,{},U,!0)}return O}(),Nt.prototype.setState=function(){function O(U,H){this.$UN||this.$BS||Wt(this,U,H,!1)}return O}(),Nt.prototype.render=function(){function O(U,H,G){return null}return O}();var In=r.version="7.4.11"},28823:function(I,r,n){"use strict";r.__esModule=!0;var e=n(60208);Object.keys(e).forEach(function(a){a==="default"||a==="__esModule"||a in r&&r[a]===e[a]||(r[a]=e[a])})},32883:function(I,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){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.Void=512]="Void",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=2033]="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={}))},34793:function(I,r,n){"use strict";var e=n(33436);function a(){}function t(){}t.resetWarningCache=a,I.exports=function(){function o(k,S,y,p,l,c){if(c!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}o.isRequired=o;function f(){return o}var V={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:f,element:o,elementType:o,instanceOf:f,node:o,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:t,resetWarningCache:a};return V.PropTypes=V,V}},64635:function(I,r,n){"use strict";if(0)var e,a;else I.exports=n(34793)()},33436:function(I){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";I.exports=r},16970:function(I){"use strict";var r=function(n){"use strict";var e=Object.prototype,a=e.hasOwnProperty,t=Object.defineProperty||function(M,D,j){M[D]=j.value},o,f=typeof Symbol=="function"?Symbol:{},V=f.iterator||"@@iterator",k=f.asyncIterator||"@@asyncIterator",S=f.toStringTag||"@@toStringTag";function y(M,D,j){return Object.defineProperty(M,D,{value:j,enumerable:!0,configurable:!0,writable:!0}),M[D]}try{y({},"")}catch(M){y=function(j,F,W){return j[F]=W}}function p(M,D,j,F){var W=D&&D.prototype instanceof s?D:s,K=Object.create(W.prototype),_=new E(F||[]);return t(K,"_invoke",{value:w(M,j,_)}),K}n.wrap=p;function l(M,D,j){try{return{type:"normal",arg:M.call(D,j)}}catch(F){return{type:"throw",arg:F}}}var c="suspendedStart",m="suspendedYield",i="executing",d="completed",u={};function s(){}function v(){}function g(){}var C={};y(C,V,function(){return this});var h=Object.getPrototypeOf,N=h&&h(h(P([])));N&&N!==e&&a.call(N,V)&&(C=N);var b=g.prototype=s.prototype=Object.create(C);v.prototype=g,t(b,"constructor",{value:g,configurable:!0}),t(g,"constructor",{value:v,configurable:!0}),v.displayName=y(g,S,"GeneratorFunction");function B(M){["next","throw","return"].forEach(function(D){y(M,D,function(j){return this._invoke(D,j)})})}n.isGeneratorFunction=function(M){var D=typeof M=="function"&&M.constructor;return D?D===v||(D.displayName||D.name)==="GeneratorFunction":!1},n.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,g):(M.__proto__=g,y(M,S,"GeneratorFunction")),M.prototype=Object.create(b),M},n.awrap=function(M){return{__await:M}};function L(M,D){function j(K,_,$,z){var Y=l(M[K],M,_);if(Y.type==="throw")z(Y.arg);else{var Z=Y.arg,ie=Z.value;return ie&&typeof ie=="object"&&a.call(ie,"__await")?D.resolve(ie.__await).then(function(ae){j("next",ae,$,z)},function(ae){j("throw",ae,$,z)}):D.resolve(ie).then(function(ae){Z.value=ae,$(Z)},function(ae){return j("throw",ae,$,z)})}}var F;function W(K,_){function $(){return new D(function(z,Y){j(K,_,z,Y)})}return F=F?F.then($,$):$()}t(this,"_invoke",{value:W})}B(L.prototype),y(L.prototype,k,function(){return this}),n.AsyncIterator=L,n.async=function(M,D,j,F,W){W===void 0&&(W=Promise);var K=new L(p(M,D,j,F),W);return n.isGeneratorFunction(D)?K:K.next().then(function(_){return _.done?_.value:K.next()})};function w(M,D,j){var F=c;return function(){function W(K,_){if(F===i)throw new Error("Generator is already running");if(F===d){if(K==="throw")throw _;return R()}for(j.method=K,j.arg=_;;){var $=j.delegate;if($){var z=T($,j);if(z){if(z===u)continue;return z}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(F===c)throw F=d,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);F=i;var Y=l(M,D,j);if(Y.type==="normal"){if(F=j.done?d:m,Y.arg===u)continue;return{value:Y.arg,done:j.done}}else Y.type==="throw"&&(F=d,j.method="throw",j.arg=Y.arg)}}return W}()}function T(M,D){var j=D.method,F=M.iterator[j];if(F===o)return D.delegate=null,j==="throw"&&M.iterator.return&&(D.method="return",D.arg=o,T(M,D),D.method==="throw")||j!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+j+"' method")),u;var W=l(F,M.iterator,D.arg);if(W.type==="throw")return D.method="throw",D.arg=W.arg,D.delegate=null,u;var K=W.arg;if(!K)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,u;if(K.done)D[M.resultName]=K.value,D.next=M.nextLoc,D.method!=="return"&&(D.method="next",D.arg=o);else return K;return D.delegate=null,u}B(b),y(b,S,"Generator"),y(b,V,function(){return this}),y(b,"toString",function(){return"[object Generator]"});function A(M){var D={tryLoc:M[0]};1 in M&&(D.catchLoc=M[1]),2 in M&&(D.finallyLoc=M[2],D.afterLoc=M[3]),this.tryEntries.push(D)}function x(M){var D=M.completion||{};D.type="normal",delete D.arg,M.completion=D}function E(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(A,this),this.reset(!0)}n.keys=function(M){var D=Object(M),j=[];for(var F in D)j.push(F);return j.reverse(),function(){function W(){for(;j.length;){var K=j.pop();if(K in D)return W.value=K,W.done=!1,W}return W.done=!0,W}return W}()};function P(M){if(M!=null){var D=M[V];if(D)return D.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var j=-1,F=function(){function W(){for(;++j<M.length;)if(a.call(M,j))return W.value=M[j],W.done=!1,W;return W.value=o,W.done=!0,W}return W}();return F.next=F}}throw new TypeError(typeof M+" is not iterable")}n.values=P;function R(){return{value:o,done:!0}}return E.prototype={constructor:E,reset:function(){function M(D){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(x),!D)for(var j in this)j.charAt(0)==="t"&&a.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=o)}return M}(),stop:function(){function M(){this.done=!0;var D=this.tryEntries[0],j=D.completion;if(j.type==="throw")throw j.arg;return this.rval}return M}(),dispatchException:function(){function M(D){if(this.done)throw D;var j=this;function F(Y,Z){return _.type="throw",_.arg=D,j.next=Y,Z&&(j.method="next",j.arg=o),!!Z}for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W],_=K.completion;if(K.tryLoc==="root")return F("end");if(K.tryLoc<=this.prev){var $=a.call(K,"catchLoc"),z=a.call(K,"finallyLoc");if($&&z){if(this.prev<K.catchLoc)return F(K.catchLoc,!0);if(this.prev<K.finallyLoc)return F(K.finallyLoc)}else if($){if(this.prev<K.catchLoc)return F(K.catchLoc,!0)}else if(z){if(this.prev<K.finallyLoc)return F(K.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return M}(),abrupt:function(){function M(D,j){for(var F=this.tryEntries.length-1;F>=0;--F){var W=this.tryEntries[F];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var K=W;break}}K&&(D==="break"||D==="continue")&&K.tryLoc<=j&&j<=K.finallyLoc&&(K=null);var _=K?K.completion:{};return _.type=D,_.arg=j,K?(this.method="next",this.next=K.finallyLoc,u):this.complete(_)}return M}(),complete:function(){function M(D,j){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&j&&(this.next=j),u}return M}(),finish:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===D)return this.complete(F.completion,F.afterLoc),x(F),u}}return M}(),catch:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===D){var W=F.completion;if(W.type==="throw"){var K=W.arg;x(F)}return K}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(D,j,F){return this.delegate={iterator:P(D),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),u}return M}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var V in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},72026:function(I,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(s,v){var g=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(g)return(g=g.call(s)).next.bind(g);if(Array.isArray(s)||(g=e(s))||v&&s&&typeof s.length=="number"){g&&(s=g);var C=0;return function(){return C>=s.length?{done:!0}:{done:!1,value:s[C++]}}}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(s,v){if(s){if(typeof s=="string")return a(s,v);var g=Object.prototype.toString.call(s).slice(8,-1);if(g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set")return Array.from(s);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(s,v)}}function a(s,v){(v==null||v>s.length)&&(v=s.length);for(var g=0,C=new Array(v);g<v;g++)C[g]=s[g];return C}/** +(function(){(function(){var _t={15113:function(I,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=p(n(28770)),a=p(n(12866)),t=p(n(88577)),o=p(n(29727)),f=p(n(13657)),V=p(n(97902)),k=p(n(57547)),S=p(n(4709));r.detectOverflow=S.default;var y=n(65601);function p(d){return d&&d.__esModule?d:{default:d}}var l={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return!u.some(function(C){return!(C&&typeof C.getBoundingClientRect=="function")})}function m(d){d===void 0&&(d={});var u=d,s=u.defaultModifiers,C=s===void 0?[]:s,g=u.defaultOptions,v=g===void 0?l:g;return function(){function h(N,b,B){B===void 0&&(B=v);var L={placement:"bottom",orderedModifiers:[],options:Object.assign({},l,v),modifiersData:{},elements:{reference:N,popper:b},attributes:{},styles:{}},w=[],T=!1,A={state:L,setOptions:function(){function P(R){var M=typeof R=="function"?R(L.options):R;E(),L.options=Object.assign({},v,L.options,M),L.scrollParents={reference:(0,y.isElement)(N)?(0,t.default)(N):N.contextElement?(0,t.default)(N.contextElement):[],popper:(0,t.default)(b)};var D=(0,f.default)((0,k.default)([].concat(C,L.options.modifiers)));return L.orderedModifiers=D.filter(function(j){return j.enabled}),x(),A.update()}return P}(),forceUpdate:function(){function P(){if(!T){var R=L.elements,M=R.reference,D=R.popper;if(c(M,D)){L.rects={reference:(0,e.default)(M,(0,o.default)(D),L.options.strategy==="fixed"),popper:(0,a.default)(D)},L.reset=!1,L.placement=L.options.placement,L.orderedModifiers.forEach(function(z){return L.modifiersData[z.name]=Object.assign({},z.data)});for(var j=0;j<L.orderedModifiers.length;j++){if(L.reset===!0){L.reset=!1,j=-1;continue}var F=L.orderedModifiers[j],W=F.fn,K=F.options,_=K===void 0?{}:K,$=F.name;typeof W=="function"&&(L=W({state:L,options:_,name:$,instance:A})||L)}}}}return P}(),update:(0,V.default)(function(){return new Promise(function(P){A.forceUpdate(),P(L)})}),destroy:function(){function P(){E(),T=!0}return P}()};if(!c(N,b))return A;A.setOptions(B).then(function(P){!T&&B.onFirstUpdate&&B.onFirstUpdate(P)});function x(){L.orderedModifiers.forEach(function(P){var R=P.name,M=P.options,D=M===void 0?{}:M,j=P.effect;if(typeof j=="function"){var F=j({state:L,name:R,instance:A,options:D}),W=function(){function K(){}return K}();w.push(F||W)}})}function E(){w.forEach(function(P){return P()}),w=[]}return A}return h}()}var i=r.createPopper=m()},11848:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t,o){var f=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(f&&(0,e.isShadowRoot)(f)){var V=o;do{if(V&&t.isSameNode(V))return!0;V=V.parentNode||V.host}while(V)}return!1}},83199:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=n(65601),a=n(79257),t=f(n(44901)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S,y){S===void 0&&(S=!1),y===void 0&&(y=!1);var p=k.getBoundingClientRect(),l=1,c=1;S&&(0,e.isHTMLElement)(k)&&(l=k.offsetWidth>0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,i=m.visualViewport,d=!(0,o.default)()&&y,u=(p.left+(d&&i?i.offsetLeft:0))/l,s=(p.top+(d&&i?i.offsetTop:0))/c,C=p.width/l,g=p.height/c;return{width:C,height:g,top:s,right:u+C,bottom:s+g,left:u,x:u,y:s}}},98310:function(I,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=d(n(63064)),t=d(n(16940)),o=d(n(88577)),f=d(n(29727)),V=d(n(9252)),k=d(n(75663)),S=n(65601),y=d(n(83199)),p=d(n(16292)),l=d(n(11848)),c=d(n(1707)),m=d(n(21194)),i=n(79257);function d(v){return v&&v.__esModule?v:{default:v}}function u(v,h){var N=(0,y.default)(v,!1,h==="fixed");return N.top=N.top+v.clientTop,N.left=N.left+v.clientLeft,N.bottom=N.top+v.clientHeight,N.right=N.left+v.clientWidth,N.width=v.clientWidth,N.height=v.clientHeight,N.x=N.left,N.y=N.top,N}function s(v,h,N){return h===e.viewport?(0,m.default)((0,a.default)(v,N)):(0,S.isElement)(h)?u(h,N):(0,m.default)((0,t.default)((0,V.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),N=["absolute","fixed"].indexOf((0,k.default)(v).position)>=0,b=N&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(v,h,N,b){var B=h==="clippingParents"?C(v):[].concat(h),L=[].concat(B,[N]),w=L[0],T=L.reduce(function(A,x){var E=s(v,x,b);return A.top=(0,i.max)(E.top,A.top),A.right=(0,i.min)(E.right,A.right),A.bottom=(0,i.min)(E.bottom,A.bottom),A.left=(0,i.max)(E.left,A.left),A},s(v,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=y(n(83199)),a=y(n(3107)),t=y(n(1707)),o=n(65601),f=y(n(94889)),V=y(n(9252)),k=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),i=(0,S.round)(m.width)/c.offsetWidth||1,d=(0,S.round)(m.height)/c.offsetHeight||1;return i!==1||d!==1}function l(c,m,i){i===void 0&&(i=!1);var d=(0,o.isHTMLElement)(m),u=(0,o.isHTMLElement)(m)&&p(m),s=(0,V.default)(m),C=(0,e.default)(c,u,i),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!i)&&(((0,t.default)(m)!=="body"||(0,k.default)(s))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):s&&(v.x=(0,f.default)(s))),{x:C.left+g.scrollLeft-v.x,y:C.top+g.scrollTop-v.y,width:C.width,height:C.height}}},75663:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(I,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(9252)),a=V(n(75663)),t=V(n(94889)),o=V(n(42532)),f=n(79257);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),l=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-l.scrollLeft+(0,t.default)(S),u=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:d,y:u}}},89741:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},1707:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},29727:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),f=S(n(36875)),V=S(n(16292)),k=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),i=/Trident/i.test((0,k.default)());if(i&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var u=(0,V.default)(c);for((0,o.isShadowRoot)(u)&&(u=u.host);(0,o.isHTMLElement)(u)&&["html","body"].indexOf((0,a.default)(u))<0;){var s=(0,t.default)(u);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||m&&s.willChange==="filter"||m&&s.filter&&s.filter!=="none")return u;u=u.parentNode}return null}function l(c){for(var m=(0,e.default)(c),i=y(c);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=y(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?m:i||p(c)||m}},16292:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},87899:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},63064:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),l=y.visualViewport,c=p.clientWidth,m=p.clientHeight,i=0,d=0;if(l){c=l.width,m=l.height;var u=(0,o.default)();(u||!u&&S==="fixed")&&(i=l.offsetLeft,d=l.offsetTop)}return{width:c,height:m,x:i+(0,t.default)(k),y:d}}},44901:function(I,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}},42532:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},94889:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},65601:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},95294:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},36875:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),l=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,i=S.concat(m);return l?i:i.concat(V((0,a.default)(m)))}},37802:function(I,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],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,L){return B.concat([L+"-"+V,L+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,L){return B.concat([L,L+"-"+V,L+"-"+k])},[]),i=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",C=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[i,d,u,s,C,g,v,h,N]},60028:function(I,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(37802);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(16055);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(98420);r.createPopper=f.createPopper;var V=n(22008);r.createPopperLite=V.createPopper},20637:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},l=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(m){var i=l[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(p){var l=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),i=m.reduce(function(d,u){return d[u]="",d},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,i),Object.keys(c).forEach(function(d){l.removeAttribute(d)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),f=p(n(26608)),V=n(87415),k=p(n(41e3)),S=p(n(62605)),y=n(37802);function p(d){return d&&d.__esModule?d:{default:d}}var l=function(){function d(u,s){return u=typeof u=="function"?u(Object.assign({},s.rects,{placement:s.placement})):u,(0,k.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,C=d.name,g=d.options,v=s.elements.arrow,h=s.modifiersData.popperOffsets,N=(0,e.default)(s.placement),b=(0,f.default)(N),B=[y.left,y.right].indexOf(N)>=0,L=B?"height":"width";if(!(!v||!h)){var w=l(g.padding,s),T=(0,a.default)(v),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=s.rects.reference[L]+s.rects.reference[b]-h[b]-s.rects.popper[L],P=h[b]-s.rects.reference[b],R=(0,o.default)(v),M=R?b==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-P/2,j=w[A],F=M-T[L]-w[x],W=M/2-T[L]/2+D,K=(0,V.within)(j,W,F),_=b;s.modifiersData[C]=(u={},u[_]=K,u.centerOffset=K-W,u)}}function m(d){var u=d.state,s=d.options,C=s.element,g=C===void 0?"[data-popper-arrow]":C;g!=null&&(typeof g=="string"&&(g=u.elements.popper.querySelector(g),!g)||(0,t.default)(u.elements.popper,g)&&(u.elements.arrow=g))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=y(n(29727)),t=y(n(44901)),o=y(n(9252)),f=y(n(75663)),V=y(n(16275)),k=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(d,u){var s=d.x,C=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(C*g)/g||0}}function c(d){var u,s=d.popper,C=d.popperRect,g=d.placement,v=d.variation,h=d.offsets,N=d.position,b=d.gpuAcceleration,B=d.adaptive,L=d.roundOffsets,w=d.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,P=typeof L=="function"?L({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var R=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),D=e.left,j=e.top,F=window;if(B){var W=(0,a.default)(s),K="clientHeight",_="clientWidth";if(W===(0,t.default)(s)&&(W=(0,o.default)(s),(0,f.default)(W).position!=="static"&&N==="absolute"&&(K="scrollHeight",_="scrollWidth")),W=W,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var $=w&&W===F&&F.visualViewport?F.visualViewport.height:W[K];E-=$-C.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var z=w&&W===F&&F.visualViewport?F.visualViewport.width:W[_];A-=z-C.width,A*=b?1:-1}}var Y=Object.assign({position:N},B&&p),Z=L===!0?l({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=Z.x,E=Z.y,b){var ie;return Object.assign({},Y,(ie={},ie[j]=M?"0":"",ie[D]=R?"0":"",ie.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(u={},u[j]=M?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,C=s.gpuAcceleration,g=C===void 0?!0:C,v=s.adaptive,h=v===void 0?!0:v,N=s.roundOffsets,b=N===void 0?!0:N,B={placement:(0,V.default)(u.placement),variation:(0,k.default)(u.placement),popper:u.elements.popper,popperRect:u.rects.popper,gpuAcceleration:g,isFixed:u.options.strategy==="fixed"};u.modifiersData.popperOffsets!=null&&(u.styles.popper=Object.assign({},u.styles.popper,c(Object.assign({},B,{offsets:u.modifiersData.popperOffsets,position:u.options.strategy,adaptive:h,roundOffsets:b})))),u.modifiersData.arrow!=null&&(u.styles.arrow=Object.assign({},u.styles.arrow,c(Object.assign({},B,{offsets:u.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-placement":u.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},21068:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,y=V.options,p=y.scroll,l=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,i=(0,e.default)(k.elements.popper),d=[].concat(k.scrollParents.reference,k.scrollParents.popper);return l&&d.forEach(function(u){u.addEventListener("scroll",S.update,t)}),m&&i.addEventListener("resize",S.update,t),function(){l&&d.forEach(function(u){u.removeEventListener("scroll",S.update,t)}),m&&i.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},51825:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),f=S(n(36705)),V=n(37802),k=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,i=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var u=i.mainAxis,s=u===void 0?!0:u,C=i.altAxis,g=C===void 0?!0:C,v=i.fallbackPlacements,h=i.padding,N=i.boundary,b=i.rootBoundary,B=i.altBoundary,L=i.flipVariations,w=L===void 0?!0:L,T=i.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(P).reduce(function(Q,q){return Q.concat((0,a.default)(q)===V.auto?(0,f.default)(m,{placement:q,boundary:N,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=m.rects.reference,D=m.rects.popper,j=new Map,F=!0,W=R[0],K=0;K<R.length;K++){var _=R[K],$=(0,a.default)(_),z=(0,k.default)(_)===V.start,Y=[V.top,V.bottom].indexOf($)>=0,Z=Y?"width":"height",ie=(0,o.default)(m,{placement:_,boundary:N,rootBoundary:b,altBoundary:B,padding:h}),ae=Y?z?V.right:V.left:z?V.bottom:V.top;M[Z]>D[Z]&&(ae=(0,e.default)(ae));var se=(0,e.default)(ae),he=[];if(s&&he.push(ie[$]<=0),g&&he.push(ie[ae]<=0,ie[se]<=0),he.every(function(Q){return Q})){W=_,F=!1;break}j.set(_,he)}if(F)for(var ye=w?3:1,Le=function(){function Q(q){var ue=R.find(function(me){var ne=j.get(me);if(ne)return ne.slice(0,q).every(function(be){return be})});if(ue)return W=ue,"break"}return Q}(),pe=ye;pe>0;pe--){var oe=Le(pe);if(oe==="break")break}m.placement!==W&&(m.modifiersData[d]._skip=!0,m.placement=W,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function V(S){var y=S.state,p=S.name,l=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,i=(0,a.default)(y,{elementContext:"reference"}),d=(0,a.default)(y,{altBoundary:!0}),u=o(i,l),s=o(d,c,m),C=f(u),g=f(s);y.modifiersData[p]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:C,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},16055:function(I,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=p(n(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var f=p(n(51825));r.flip=f.default;var V=p(n(44677));r.hide=V.default;var k=p(n(34331));r.offset=k.default;var S=p(n(56154));r.popperOffsets=S.default;var y=p(n(69770));r.preventOverflow=y.default;function p(l){return l&&l.__esModule?l:{default:l}}},34331:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],i=c[1];return m=m||0,i=(i||0)*l,[a.left,a.right].indexOf(p)>=0?{x:i,y:m}:{x:m,y:i}}function f(k){var S=k.state,y=k.options,p=k.name,l=y.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(s,C){return s[C]=o(C,S.rects,c),s},{}),i=m[S.placement],d=i.x,u=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=d,S.modifiersData.popperOffsets.y+=u),S.modifiersData[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),f=n(87415),V=c(n(12866)),k=c(n(29727)),S=c(n(4709)),y=c(n(56918)),p=c(n(26143)),l=n(79257);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var u=d.state,s=d.options,C=d.name,g=s.mainAxis,v=g===void 0?!0:g,h=s.altAxis,N=h===void 0?!1:h,b=s.boundary,B=s.rootBoundary,L=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(u,{boundary:b,rootBoundary:B,padding:w,altBoundary:L}),R=(0,a.default)(u.placement),M=(0,y.default)(u.placement),D=!M,j=(0,t.default)(R),F=(0,o.default)(j),W=u.modifiersData.popperOffsets,K=u.rects.reference,_=u.rects.popper,$=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,z=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,Z={x:0,y:0};if(W){if(v){var ie,ae=j==="y"?e.top:e.left,se=j==="y"?e.bottom:e.right,he=j==="y"?"height":"width",ye=W[j],Le=ye+P[ae],pe=ye-P[se],oe=A?-_[he]/2:0,Q=M===e.start?K[he]:_[he],q=M===e.start?-_[he]:-K[he],ue=u.elements.arrow,me=A&&ue?(0,V.default)(ue):{width:0,height:0},ne=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=ne[ae],fe=ne[se],ge=(0,f.within)(0,K[he],me[he]),ke=D?K[he]/2-oe-ge-be-z.mainAxis:Q-ge-be-z.mainAxis,ve=D?-K[he]/2+oe+ge+fe+z.mainAxis:q+ge+fe+z.mainAxis,Se=u.elements.arrow&&(0,k.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[j])!=null?ie:0,Oe=ye+ke-xe-we,Ue=ye+ve-xe,Ve=(0,f.within)(A?(0,l.min)(Le,Oe):Le,ye,A?(0,l.max)(pe,Ue):pe);W[j]=Ve,Z[j]=Ve-ye}if(N){var re,le=j==="x"?e.top:e.left,Ce=j==="x"?e.bottom:e.right,de=W[F],Ne=F==="y"?"height":"width",Ae=de+P[le],De=de-P[Ce],je=[e.top,e.left].indexOf(R)!==-1,Ke=(re=Y==null?void 0:Y[F])!=null?re:0,We=je?Ae:de-K[Ne]-_[Ne]-Ke+z.altAxis,He=je?de+K[Ne]+_[Ne]-Ke-z.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(We,de,He):(0,f.within)(A?We:Ae,de,A?He:De);W[F]=Ge,Z[F]=Ge-de}u.modifiersData[C]=Z}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(21068)),t=V(n(56154)),o=V(n(85445)),f=V(n(20637));function V(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},98420:function(I,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(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(21068)),o=i(n(56154)),f=i(n(85445)),V=i(n(20637)),k=i(n(34331)),S=i(n(51825)),y=i(n(69770)),p=i(n(11106)),l=i(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var m=n(16055);Object.keys(m).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(e,s)||s in r&&r[s]===m[s]||(r[s]=m[s])});function i(s){return s&&s.__esModule?s:{default:s}}var d=r.defaultModifiers=[t.default,o.default,f.default,V.default,k.default,S.default,y.default,p.default,l.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var y=S,p=y.placement,l=y.boundary,c=y.rootBoundary,m=y.padding,i=y.flipVariations,d=y.allowedAutoPlacements,u=d===void 0?a.placements:d,s=(0,e.default)(p),C=s?i?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===s}):a.basePlacements,g=C.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=C);var v=g.reduce(function(h,N){return h[N]=(0,t.default)(k,{placement:N,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(v).sort(function(h,N){return v[h]-v[N]})}},49306:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,y=k.element,p=k.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-y.width/2,i=S.y+S.height/2-y.height/2,d;switch(l){case o.top:d={x:m,y:S.y-y.height};break;case o.bottom:d={x:m,y:S.y+S.height};break;case o.right:d={x:S.x+S.width,y:i};break;case o.left:d={x:S.x-y.width,y:i};break;default:d={x:S.x,y:S.y}}var u=l?(0,t.default)(l):null;if(u!=null){var s=u==="y"?"height":"width";switch(c){case o.start:d[u]=d[u]-(S[s]/2-y[s]/2);break;case o.end:d[u]=d[u]+(S[s]/2-y[s]/2);break;default:}}return d}},97902:function(I,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}}},4709:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),f=p(n(21194)),V=n(37802),k=n(65601),S=p(n(41e3)),y=p(n(62605));function p(c){return c&&c.__esModule?c:{default:c}}function l(c,m){m===void 0&&(m={});var i=m,d=i.placement,u=d===void 0?c.placement:d,s=i.strategy,C=s===void 0?c.strategy:s,g=i.boundary,v=g===void 0?V.clippingParents:g,h=i.rootBoundary,N=h===void 0?V.viewport:h,b=i.elementContext,B=b===void 0?V.popper:b,L=i.altBoundary,w=L===void 0?!1:L,T=i.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,P=c.rects.popper,R=c.elements[w?E:B],M=(0,e.default)((0,k.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,N,C),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:P,strategy:"absolute",placement:u}),F=(0,f.default)(Object.assign({},P,j)),W=B===V.popper?F:D,K={top:M.top-W.top+x.top,bottom:W.bottom-M.bottom+x.bottom,left:M.left-W.left+x.left,right:W.right-M.right+x.right},_=c.modifiersData.offset;if(B===V.popper&&_){var $=_[u];Object.keys(K).forEach(function(z){var Y=[V.right,V.bottom].indexOf(z)>=0?1:-1,Z=[V.top,V.bottom].indexOf(z)>=0?"y":"x";K[z]+=$[Z]*Y})}return K}},62605:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(I,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]})}},15022:function(I,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]})}},56918:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(I,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},57547:function(I,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]})}},41e3:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){V.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(l){if(!V.has(l)){var c=f.get(l);c&&S(c)}}),k.push(y)}return o.forEach(function(y){V.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},21194:function(I,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})}},88492:function(I,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}},87415:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},60208:function(I,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Le,r._M=ze,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=K,r.createFragment=$,r.createPortal=ae,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=_,r.createVNode=D,r.directClone=Z,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=he,r.linkEvent=p,r.normalizeProps=z,r.options=void 0,r.render=Ut,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(O){var U=typeof O;return U==="string"||U==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function V(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function y(O,U){var H={};if(O)for(var G in O)H[G]=O[G];if(U)for(var J in U)H[J]=U[J];return H}function p(O,U){return o(U)?{data:O,event:U}:null}function l(O){return!k(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function i(O){return O.substr(2).toLowerCase()}function d(O,U){O.appendChild(U)}function u(O,U,H){k(H)?d(O,U):O.insertBefore(U,H)}function s(O,U){return U?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function C(O,U,H){O.replaceChild(U,H)}function g(O,U){O.removeChild(U)}function v(O){for(var U=0;U<O.length;U++)O[U]()}function h(O,U,H){var G=O.children;return H&4?G.$LI:H&8192?O.childFlags===2?G:G[U?0:G.length-1]:G}function N(O,U){for(var H;O;){if(H=O.flags,H&2033)return O.dom;O=h(O,U,H)}return null}function b(O,U){do{var H=O.flags;if(H&2033){g(U,O.dom);return}var G=O.children;if(H&4&&(O=G.$LI),H&8&&(O=G),H&8192)if(O.childFlags===2)O=G;else{for(var J=0,ee=G.length;J<ee;++J)b(G[J],U);return}}while(O)}function B(O,U,H){do{var G=O.flags;if(G&2033){u(U,O.dom,H);return}var J=O.children;if(G&4&&(O=J.$LI),G&8&&(O=J),G&8192)if(O.childFlags===2)O=J;else{for(var ee=0,te=J.length;ee<te;++ee)B(J[ee],U,H);return}}while(O)}function L(O,U,H){return O.constructor.getDerivedStateFromProps?y(H,O.constructor.getDerivedStateFromProps(U,H)):H}var w={v:!1},T=r.options={componentComparator:null,createVNode:null,renderComplete:null};function A(O,U){O.textContent=U}function x(O,U){return l(O)&&O.event===U.event&&O.data===U.data}function E(O,U){for(var H in U)S(O[H])&&(O[H]=U[H]);return O}function P(O,U){return!!o(O)&&(O(U),!0)}var R="$";function M(O,U,H,G,J,ee,te,ce){this.childFlags=O,this.children=U,this.className=H,this.dom=null,this.flags=G,this.key=J===void 0?null:J,this.props=ee===void 0?null:ee,this.ref=te===void 0?null:te,this.type=ce}function D(O,U,H,G,J,ee,te,ce){var Te=J===void 0?1:J,Be=new M(Te,G,H,O,te,ee,ce,U);return T.createVNode&&T.createVNode(Be),Te===0&&ye(Be,Be.children),Be}function j(O,U,H){if(O&4)return H;var G=(O&32768?U.render:U).defaultHooks;return a(G)?H:a(H)?G:E(H,G)}function F(O,U,H){var G=(O&32768?U.render:U).defaultProps;return a(G)?H:a(H)?y(G,null):E(H,G)}function W(O,U){return O&12?O:U.prototype&&U.prototype.render?4:U.render?32776:8}function K(O,U,H,G,J){O=W(O,U);var ee=new M(1,null,null,O,G,F(O,U,H),j(O,U,J),U);return T.createVNode&&T.createVNode(ee),ee}function _(O,U){return new M(1,a(O)||O===!0||O===!1?"":O,null,16,U,null,null,null)}function $(O,U,H){var G=D(8192,8192,null,O,U,null,H,null);switch(G.childFlags){case 1:G.children=ie(),G.childFlags=2;break;case 16:G.children=[_(O)],G.childFlags=4;break}return G}function z(O){var U=O.props;if(U){var H=O.flags;H&481&&(U.children!==void 0&&a(O.children)&&ye(O,U.children),U.className!==void 0&&(a(O.className)&&(O.className=U.className||null),U.className=void 0)),U.key!==void 0&&(O.key=U.key,U.key=void 0),U.ref!==void 0&&(H&8?O.ref=y(O.ref,U.ref):O.ref=U.ref,U.ref=void 0)}return O}function Y(O){var U=O.children,H=O.childFlags;return $(H===2?Z(U):U.map(Z),H,O.key)}function Z(O){var U=O.flags&-16385,H=O.props;if(U&14&&!k(H)){var G=H;H={};for(var J in G)H[J]=G[J]}return U&8192?Y(O):new M(O.childFlags,O.children,O.className,U,O.key,H,O.ref,O.type)}function ie(){return _("",null)}function ae(O,U){var H=Le(O);return D(1024,1024,null,H,0,null,H.key,U)}function se(O,U,H,G){for(var J=O.length;H<J;H++){var ee=O[H];if(!t(ee)){var te=G+R+H;if(n(ee))se(ee,U,0,te);else{if(e(ee))ee=_(ee,te);else{var ce=ee.key,Te=f(ce)&&ce[0]===R;(ee.flags&81920||Te)&&(ee=Z(ee)),ee.flags|=65536,Te?ce.substring(0,G.length)!==G&&(ee.key=G+ce):k(ce)?ee.key=te:ee.key=G+ce}U.push(ee)}}}}function he(O){switch(O){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case m:return 8192;default:return 1}}function ye(O,U){var H,G=1;if(t(U))H=U;else if(e(U))G=16,H=U;else if(n(U)){for(var J=U.length,ee=0;ee<J;++ee){var te=U[ee];if(t(te)||n(te)){H=H||U.slice(0,ee),se(U,H,ee,"");break}else if(e(te))H=H||U.slice(0,ee),H.push(_(te,R+ee));else{var ce=te.key,Te=(te.flags&81920)>0,Be=k(ce),Ie=f(ce)&&ce[0]===R;Te||Be||Ie?(H=H||U.slice(0,ee),(Te||Ie)&&(te=Z(te)),(Be||Ie)&&(te.key=R+ee),H.push(te)):H&&H.push(te),te.flags|=65536}}H=H||U,H.length===0?G=1:G=8}else H=U,H.flags|=65536,U.flags&81920&&(H=Z(U)),G=2;return O.children=H,O.childFlags=G,O}function Le(O){return t(O)||e(O)?_(O,null):n(O)?$(O,0,null):O.flags&16384?Z(O):O}var pe="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=q(0),me=q(null),ne=q(!0);function be(O,U){var H=U.$EV;return H||(H=U.$EV=q(null)),H[O]||++ue[O]===1&&(me[O]=re(O)),H}function fe(O,U){var H=U.$EV;H&&H[O]&&(--ue[O]===0&&(document.removeEventListener(i(O),me[O]),me[O]=null),H[O]=null)}function ge(O,U,H,G){if(o(H))be(O,G)[O]=H;else if(l(H)){if(x(U,H))return;be(O,G)[O]=H}else fe(O,G)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ve(O,U,H,G){var J=ke(O);do{if(U&&J.disabled)return;var ee=J.$EV;if(ee){var te=ee[H];if(te&&(G.dom=J,te.event?te.event(te.data,O):te(O),O.cancelBubble))return}J=J.parentNode}while(!k(J))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var U={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function H(){return U.dom}return H}()}),U}function Ue(O){return function(U){if(U.button!==0){U.stopPropagation();return}ve(U,!0,O,Oe(U))}}function Ve(O){return function(U){ve(U,!1,O,Oe(U))}}function re(O){var U=O==="onClick"||O==="onDblClick"?Ue(O):Ve(O);return document.addEventListener(i(O),U),U}function le(O,U){var H=document.createElement("i");return H.innerHTML=U,H.innerHTML===O.innerHTML}function Ce(O,U,H){if(O[U]){var G=O[U];G.event?G.event(G.data,H):G(H)}else{var J=U.toLowerCase();O[J]&&O[J](H)}}function de(O,U){var H=function(J){var ee=this.$V;if(ee){var te=ee.props||c,ce=ee.dom;if(f(O))Ce(te,O,J);else for(var Te=0;Te<O.length;++Te)Ce(te,O[Te],J);if(o(U)){var Be=this.$V,Ie=Be.props||c;U(Ie,ce,!1,Be)}}};return Object.defineProperty(H,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),H}function Ne(O,U,H){var G="$"+U,J=O[G];if(J){if(J[1].wrapped)return;O.removeEventListener(J[0],J[1]),O[G]=null}o(H)&&(O.addEventListener(U,H),O[G]=[U,H])}function Ae(O){return O==="checkbox"||O==="radio"}var De=de("onInput",He),je=de(["onClick","onChange"],He);function Ke(O){O.stopPropagation()}Ke.wrapped=!0;function We(O,U){Ae(U.type)?(Ne(O,"change",je),Ne(O,"click",Ke)):Ne(O,"input",De)}function He(O,U){var H=O.type,G=O.value,J=O.checked,ee=O.multiple,te=O.defaultValue,ce=!a(G);H&&H!==U.type&&U.setAttribute("type",H),!a(ee)&&ee!==U.multiple&&(U.multiple=ee),!a(te)&&!ce&&(U.defaultValue=te+""),Ae(H)?(ce&&(U.value=G),a(J)||(U.checked=J)):ce&&U.value!==G?(U.defaultValue=G,U.value=G):a(J)||(U.checked=J)}function Ge(O,U){if(O.type==="option")yt(O,U);else{var H=O.children,G=O.flags;if(G&4)Ge(H.$LI,U);else if(G&8)Ge(H,U);else if(O.childFlags===2)Ge(H,U);else if(O.childFlags&12)for(var J=0,ee=H.length;J<ee;++J)Ge(H[J],U)}}function yt(O,U){var H=O.props||c,G=O.dom;G.value=H.value,H.value===U||n(U)&&U.indexOf(H.value)!==-1?G.selected=!0:(!a(U)||!a(H.selected))&&(G.selected=H.selected||!1)}var kt=de("onChange",ft);function St(O){Ne(O,"change",kt)}function ft(O,U,H,G){var J=!!O.multiple;!a(O.multiple)&&J!==U.multiple&&(U.multiple=J);var ee=O.selectedIndex;ee===-1&&(U.selectedIndex=-1);var te=G.childFlags;if(te!==1){var ce=O.value;V(ee)&&ee>-1&&U.options[ee]&&(ce=U.options[ee].value),H&&a(ce)&&(ce=O.defaultValue),Ge(G,ce)}}var Bt=de("onInput",pt),Lt=de("onChange");function It(O,U){Ne(O,"input",Bt),U.onChange&&Ne(O,"change",Lt)}function pt(O,U,H){var G=O.value,J=U.value;if(a(G)){if(H){var ee=O.defaultValue;!a(ee)&&ee!==J&&(U.defaultValue=ee,U.value=ee)}}else J!==G&&(U.defaultValue=G,U.value=G)}function wt(O,U,H,G,J,ee){O&64?He(G,H):O&256?ft(G,H,J,U):O&128&&pt(G,H,J),ee&&(H.$V=U)}function Gt(O,U,H){O&64?We(U,H):O&256?St(U):O&128&&It(U,H)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!P(O,null)&&O.current&&(O.current=null)}function ot(O,U,H){O&&(o(O)||O.current!==void 0)&&H.push(function(){!P(O,U)&&O.current!==void 0&&(O.current=U)})}function Xe(O,U){Qe(O),b(O,U)}function Qe(O){var U=O.flags,H=O.children,G;if(U&481){G=O.ref;var J=O.props;lt(G);var ee=O.childFlags;if(!k(J))for(var te=Object.keys(J),ce=0,Te=te.length;ce<Te;ce++){var Be=te[ce];ne[Be]&&fe(Be,O.dom)}ee&12?rt(H):ee===2&&Qe(H)}else H&&(U&4?(o(H.componentWillUnmount)&&H.componentWillUnmount(),lt(O.ref),H.$UN=!0,Qe(H.$LI)):U&8?(G=O.ref,!a(G)&&o(G.onComponentWillUnmount)&&G.onComponentWillUnmount(N(O,!0),O.props||c),Qe(H)):U&1024?Xe(H,O.ref):U&8192&&O.childFlags&12&&rt(H))}function rt(O){for(var U=0,H=O.length;U<H;++U)Qe(O[U])}function ut(O){O.textContent=""}function dt(O,U,H){rt(H),U.flags&8192?b(U,O):ut(O)}function Jt(O){var U=O.event;return function(H){U(O.data,H)}}function Qt(O,U,H,G){if(l(H)){if(x(U,H))return;H=Jt(H)}Ne(G,i(O),H)}function Zt(O,U,H){if(a(U)){H.removeAttribute("style");return}var G=H.style,J,ee;if(f(U)){G.cssText=U;return}if(!a(O)&&!f(O)){for(J in U)ee=U[J],ee!==O[J]&&G.setProperty(J,ee);for(J in O)a(U[J])&&G.removeProperty(J)}else for(J in U)ee=U[J],G.setProperty(J,ee)}function qt(O,U,H,G){var J=O&&O.__html||"",ee=U&&U.__html||"";J!==ee&&!a(ee)&&!le(G,ee)&&(k(H)||(H.childFlags&12?rt(H.children):H.childFlags===2&&Qe(H.children),H.children=null,H.childFlags=1),G.innerHTML=ee)}function ht(O,U,H,G,J,ee,te){switch(O){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":G.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":G[O]=!!H;break;case"defaultChecked":case"value":case"volume":if(ee&&O==="value")break;var ce=a(H)?"":H;G[O]!==ce&&(G[O]=ce);break;case"style":Zt(U,H,G);break;case"dangerouslySetInnerHTML":qt(U,H,te,G);break;default:ne[O]?ge(O,U,H,G):O.charCodeAt(0)===111&&O.charCodeAt(1)===110?Qt(O,U,H,G):a(H)?G.removeAttribute(O):J&&Q[O]?G.setAttributeNS(Q[O],O,H):G.setAttribute(O,H);break}}function xt(O,U,H,G,J){var ee=!1,te=(U&448)>0;te&&(ee=Tt(H),ee&&Gt(U,G,H));for(var ce in H)ht(ce,null,H[ce],G,J,ee,null);te&&wt(U,O,G,H,!0,ee)}function At(O,U,H){var G=Le(O.render(U,O.state,H)),J=H;return o(O.getChildContext)&&(J=y(H,O.getChildContext())),O.$CX=J,G}function Et(O,U,H,G,J,ee){var te=new U(H,G),ce=te.$N=!!(U.getDerivedStateFromProps||te.getSnapshotBeforeUpdate);if(te.$SVG=J,te.$L=ee,O.children=te,te.$BS=!1,te.context=G,te.props===c&&(te.props=H),ce)te.state=L(te,H,te.state);else if(o(te.componentWillMount)){te.$BR=!0,te.componentWillMount();var Te=te.$PS;if(!k(Te)){var Be=te.state;if(k(Be))te.state=Te;else for(var Ie in Te)Be[Ie]=Te[Ie];te.$PS=null}te.$BR=!1}return te.$LI=At(te,H,G),te}function Ct(O,U){var H=O.props||c;return O.flags&32768?O.type.render(H,O.ref,U):O.type(H,U)}function ze(O,U,H,G,J,ee){var te=O.flags|=16384;te&481?Pt(O,U,H,G,J,ee):te&4?nn(O,U,H,G,J,ee):te&8?(on(O,U,H,G,J,ee),Rt(O,ee)):te&512||te&16?Mt(O,U,J):te&8192?tn(O,H,U,G,J,ee):te&1024&&en(O,H,U,J,ee)}function en(O,U,H,G,J){ze(O.children,O.ref,U,!1,null,J);var ee=ie();Mt(ee,H,G),O.dom=ee.dom}function tn(O,U,H,G,J,ee){var te=O.children,ce=O.childFlags;ce&12&&te.length===0&&(ce=O.childFlags=2,te=O.children=ie()),ce===2?ze(te,H,U,G,J,ee):nt(te,H,U,G,J,ee)}function Mt(O,U,H){var G=O.dom=document.createTextNode(O.children);k(U)||u(U,G,H)}function Pt(O,U,H,G,J,ee){var te=O.flags,ce=O.props,Te=O.className,Be=O.childFlags,Ie=O.dom=s(O.type,G=G||(te&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(G?Ie.setAttribute("class",Te):Ie.className=Te),Be===16)A(Ie,Ee);else if(Be!==1){var Pe=G&&O.type!=="foreignObject";Be===2?(Ee.flags&16384&&(O.children=Ee=Z(Ee)),ze(Ee,Ie,H,Pe,null,ee)):(Be===8||Be===4)&&nt(Ee,Ie,H,Pe,null,ee)}k(U)||u(U,Ie,J),k(ce)||xt(O,te,ce,Ie,G),ot(O.ref,Ie,ee)}function nt(O,U,H,G,J,ee){for(var te=0;te<O.length;++te){var ce=O[te];ce.flags&16384&&(O[te]=ce=Z(ce)),ze(ce,U,H,G,J,ee)}}function nn(O,U,H,G,J,ee){var te=Et(O,O.type,O.props||c,H,G,ee);ze(te.$LI,U,te.$CX,G,J,ee),Ot(O.ref,te,ee)}function on(O,U,H,G,J,ee){ze(O.children=Le(Ct(O,H)),U,H,G,J,ee)}function rn(O){return function(){O.componentDidMount()}}function Ot(O,U,H){ot(O,U,H),o(U.componentDidMount)&&H.push(rn(U))}function an(O,U){return function(){O.onComponentDidMount(N(U,!0),U.props||c)}}function Rt(O,U){var H=O.ref;a(H)||(P(H.onComponentWillMount,O.props||c),o(H.onComponentDidMount)&&U.push(an(H,O)))}function cn(O,U,H,G,J,ee){Qe(O),U.flags&O.flags&2033?(ze(U,null,G,J,null,ee),C(H,U.dom,O.dom)):(ze(U,H,G,J,N(O,!0),ee),b(O,H))}function Ze(O,U,H,G,J,ee,te){var ce=U.flags|=16384;O.flags!==ce||O.type!==U.type||O.key!==U.key||ce&2048?O.flags&16384?cn(O,U,H,G,J,te):ze(U,H,G,J,ee,te):ce&481?mn(O,U,G,J,ce,te):ce&4?hn(O,U,H,G,J,ee,te):ce&8?Cn(O,U,H,G,J,ee,te):ce&16?vn(O,U):ce&512?U.dom=O.dom:ce&8192?dn(O,U,H,G,J,te):sn(O,U,G,te)}function ln(O,U,H){O!==U&&(O!==""?H.firstChild.nodeValue=U:A(H,U))}function un(O,U){O.textContent!==U&&(O.textContent=U)}function dn(O,U,H,G,J,ee){var te=O.children,ce=U.children,Te=O.childFlags,Be=U.childFlags,Ie=null;Be&12&&ce.length===0&&(Be=U.childFlags=2,ce=U.children=ie());var Ee=(Be&2)!==0;if(Te&12){var Pe=te.length;(Te&8&&Be&8||Ee||!Ee&&ce.length>Pe)&&(Ie=N(te[Pe-1],!1).nextSibling)}vt(Te,Be,te,ce,H,G,J,Ie,O,ee)}function sn(O,U,H,G){var J=O.ref,ee=U.ref,te=U.children;if(vt(O.childFlags,U.childFlags,O.children,te,J,H,!1,null,O,G),U.dom=O.dom,J!==ee&&!t(te)){var ce=te.dom;g(J,ce),d(ee,ce)}}function mn(O,U,H,G,J,ee){var te=U.dom=O.dom,ce=O.props,Te=U.props,Be=!1,Ie=!1,Ee;if(G=G||(J&32)>0,ce!==Te){var Pe=ce||c;if(Ee=Te||c,Ee!==c){Be=(J&448)>0,Be&&(Ie=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],$e=Ee[Fe];Me!==$e&&ht(Fe,Me,$e,te,G,Ie,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,te,G,Ie,O)}var et=U.children,Ye=U.className;O.className!==Ye&&(a(Ye)?te.removeAttribute("class"):G?te.setAttribute("class",Ye):te.className=Ye),J&4096?un(te,et):vt(O.childFlags,U.childFlags,O.children,et,te,H,G&&U.type!=="foreignObject",null,O,ee),Be&&wt(J,U,te,Ee,!1,Ie);var at=U.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,te,ee))}function fn(O,U,H,G,J,ee){Qe(O),nt(U,H,G,J,N(O,!0),ee),b(O,H)}function vt(O,U,H,G,J,ee,te,ce,Te,Be){switch(O){case 2:switch(U){case 2:Ze(H,G,J,ee,te,ce,Be);break;case 1:Xe(H,J);break;case 16:Qe(H),A(J,G);break;default:fn(H,G,J,ee,te,Be);break}break;case 1:switch(U){case 2:ze(G,J,ee,te,ce,Be);break;case 1:break;case 16:A(J,G);break;default:nt(G,J,ee,te,ce,Be);break}break;case 16:switch(U){case 16:ln(H,G,J);break;case 2:ut(J),ze(G,J,ee,te,ce,Be);break;case 1:ut(J);break;default:ut(J),nt(G,J,ee,te,ce,Be);break}break;default:switch(U){case 16:rt(H),A(J,G);break;case 2:dt(J,Te,H),ze(G,J,ee,te,ce,Be);break;case 1:dt(J,Te,H);break;default:var Ie=H.length|0,Ee=G.length|0;Ie===0?Ee>0&&nt(G,J,ee,te,ce,Be):Ee===0?dt(J,Te,H):U===8&&O===8?Nn(H,G,J,ee,te,Ie,Ee,ce,Te,Be):gn(H,G,J,ee,te,Ie,Ee,ce,Be);break}break}}function pn(O,U,H,G,J){J.push(function(){O.componentDidUpdate(U,H,G)})}function Dt(O,U,H,G,J,ee,te,ce,Te){var Be=O.state,Ie=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(U=L(O,H,U!==Be?y(Be,U):U)),te||!Pe||Pe&&O.shouldComponentUpdate(H,U,J)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(H,U,J),O.props=H,O.state=U,O.context=J;var Fe=null,Me=At(O,H,J);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Ie,Be)),Ze(O.$LI,Me,G,O.$CX,ee,ce,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Ie,Be,Fe,Te)}else O.props=H,O.state=U,O.context=J}function hn(O,U,H,G,J,ee,te){var ce=U.children=O.children;if(!k(ce)){ce.$L=te;var Te=U.props||c,Be=U.ref,Ie=O.ref,Ee=ce.state;if(!ce.$N){if(o(ce.componentWillReceiveProps)){if(ce.$BR=!0,ce.componentWillReceiveProps(Te,G),ce.$UN)return;ce.$BR=!1}k(ce.$PS)||(Ee=y(Ee,ce.$PS),ce.$PS=null)}Dt(ce,Ee,Te,H,G,J,!1,ee,te),Ie!==Be&&(lt(Ie),ot(Be,ce,te))}}function Cn(O,U,H,G,J,ee,te){var ce=!0,Te=U.props||c,Be=U.ref,Ie=O.props,Ee=!a(Be),Pe=O.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ce=Be.onComponentShouldUpdate(Ie,Te)),ce!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Ie,Te);var Fe=Le(Ct(U,G));Ze(Pe,Fe,H,G,J,ee,te),U.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Ie,Te)}else U.children=Pe}function vn(O,U){var H=U.children,G=U.dom=O.dom;H!==O.children&&(G.nodeValue=H)}function gn(O,U,H,G,J,ee,te,ce,Te){for(var Be=ee>te?te:ee,Ie=0,Ee,Pe;Ie<Be;++Ie)Ee=U[Ie],Pe=O[Ie],Ee.flags&16384&&(Ee=U[Ie]=Z(Ee)),Ze(Pe,Ee,H,G,J,ce,Te),O[Ie]=Ee;if(ee<te)for(Ie=Be;Ie<te;++Ie)Ee=U[Ie],Ee.flags&16384&&(Ee=U[Ie]=Z(Ee)),ze(Ee,H,G,J,ce,Te);else if(ee>te)for(Ie=Be;Ie<ee;++Ie)Xe(O[Ie],H)}function Nn(O,U,H,G,J,ee,te,ce,Te,Be){var Ie=ee-1,Ee=te-1,Pe=0,Fe=O[Pe],Me=U[Pe],$e,Re;e:{for(;Fe.key===Me.key;){if(Me.flags&16384&&(U[Pe]=Me=Z(Me)),Ze(Fe,Me,H,G,J,ce,Be),O[Pe]=Me,++Pe,Pe>Ie||Pe>Ee)break e;Fe=O[Pe],Me=U[Pe]}for(Fe=O[Ie],Me=U[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(U[Ee]=Me=Z(Me)),Ze(Fe,Me,H,G,J,ce,Be),O[Ie]=Me,Ie--,Ee--,Pe>Ie||Pe>Ee)break e;Fe=O[Ie],Me=U[Ee]}}if(Pe>Ie){if(Pe<=Ee)for($e=Ee+1,Re=$e<te?N(U[$e],!0):ce;Pe<=Ee;)Me=U[Pe],Me.flags&16384&&(U[Pe]=Me=Z(Me)),++Pe,ze(Me,H,G,J,Re,Be)}else if(Pe>Ee)for(;Pe<=Ie;)Xe(O[Pe++],H);else Vn(O,U,G,ee,te,Ie,Ee,Pe,H,J,ce,Te,Be)}function Vn(O,U,H,G,J,ee,te,ce,Te,Be,Ie,Ee,Pe){var Fe,Me,$e,Re=0,et=ce,Ye=ce,at=ee-ce+1,Je=te-ce+1,ct=new Int32Array(Je+1),tt=at===G,Vt=!1,_e=0,it=0;if(J<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=O[Re],it<Je){for(ce=Ye;ce<=te;ce++)if(Me=U[ce],Fe.key===Me.key){if(ct[ce-Ye]=Re+1,tt)for(tt=!1;et<Re;)Xe(O[et++],Te);_e>ce?Vt=!0:_e=ce,Me.flags&16384&&(U[ce]=Me=Z(Me)),Ze(Fe,Me,Te,H,Be,Ie,Pe),++it;break}!tt&&ce>te&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=te;++Re)zt[U[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=O[Re],it<Je)if(ce=zt[Fe.key],ce!==void 0){if(tt)for(tt=!1;Re>et;)Xe(O[et++],Te);ct[ce-Ye]=Re+1,_e>ce?Vt=!0:_e=ce,Me=U[ce],Me.flags&16384&&(U[ce]=Me=Z(Me)),Ze(Fe,Me,Te,H,Be,Ie,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(U,Te,H,Be,Ie,Pe);else if(Vt){var $t=bn(ct);for(ce=$t.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?(_e=Re+Ye,Me=U[_e],Me.flags&16384&&(U[_e]=Me=Z(Me)),$e=_e+1,ze(Me,Te,H,Be,$e<J?N(U[$e],!0):Ie,Pe)):ce<0||Re!==$t[ce]?(_e=Re+Ye,Me=U[_e],$e=_e+1,B(Me,Te,$e<J?N(U[$e],!0):Ie)):ce--}else if(it!==Je)for(Re=Je-1;Re>=0;Re--)ct[Re]===0&&(_e=Re+Ye,Me=U[_e],Me.flags&16384&&(U[_e]=Me=Z(Me)),$e=_e+1,ze(Me,Te,H,Be,$e<J?N(U[$e],!0):Ie,Pe))}var qe,st,jt=0;function bn(O){var U=0,H=0,G=0,J=0,ee=0,te=0,ce=0,Te=O.length;for(Te>jt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));H<Te;++H)if(U=O[H],U!==0){if(G=qe[J],O[G]<U){st[H]=G,qe[++J]=H;continue}for(ee=0,te=J;ee<te;)ce=ee+te>>1,O[qe[ce]]<U?ee=ce+1:te=ce;U<O[qe[ee]]&&(ee>0&&(st[H]=qe[ee-1]),qe[ee]=H)}ee=J+1;var Be=new Int32Array(ee);for(te=qe[ee-1];ee-- >0;)Be[ee]=te,te=st[te],qe[ee]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,U,H,G){var J=[],ee=U.$V;w.v=!0,a(ee)?a(O)||(O.flags&16384&&(O=Z(O)),ze(O,U,G,!1,null,J),U.$V=O,ee=O):a(O)?(Xe(ee,U),U.$V=null):(O.flags&16384&&(O=Z(O)),Ze(ee,O,U,G,!1,null,J),ee=U.$V=O),v(J),w.v=!1,o(H)&&H(),o(T.renderComplete)&&T.renderComplete(ee,U)}function Ut(O,U,H,G){H===void 0&&(H=null),G===void 0&&(G=c),Ft(O,U,H,G)}function kn(O){return function(){function U(H,G,J,ee){O||(O=H),Ut(G,O,J,ee)}return U}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Wt(O,U,H,G){var J=O.$PS;if(o(U)&&(U=U(J?y(O.state,J):O.state,O.props,O.context)),a(J))O.$PS=U;else for(var ee in U)J[ee]=U[ee];if(O.$BR)o(H)&&O.$L.push(H.bind(O));else{if(!w.v&&mt.length===0){Ht(O,G),o(H)&&H.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),G&&(O.$F=!0),gt||(gt=!0,Sn(Kt)),o(H)){var te=O.$QU;te||(te=O.$QU=[]),te.push(H)}}}function Bn(O){for(var U=O.$QU,H=0;H<U.length;++H)U[H].call(O);O.$QU=null}function Kt(){var O;for(gt=!1;O=mt.shift();)if(!O.$UN){var U=O.$F;O.$F=!1,Ht(O,U),O.$QU&&Bn(O)}}function Ht(O,U){if(U||!O.$BR){var H=O.$PS;O.$PS=null;var G=[];w.v=!0,Dt(O,y(O.state,H),O.props,N(O.$LI,!0).parentNode,O.context,O.$SVG,U,null,G),v(G),w.v=!1}else O.state=O.$PS,O.$PS=null}var Nt=r.Component=function(){function O(U,H){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=U||c,this.context=H||c}return O}();Nt.prototype.forceUpdate=function(){function O(U){this.$UN||Wt(this,{},U,!0)}return O}(),Nt.prototype.setState=function(){function O(U,H){this.$UN||this.$BS||Wt(this,U,H,!1)}return O}(),Nt.prototype.render=function(){function O(U,H,G){return null}return O}();var In=r.version="7.4.11"},28823:function(I,r,n){"use strict";r.__esModule=!0;var e=n(60208);Object.keys(e).forEach(function(a){a==="default"||a==="__esModule"||a in r&&r[a]===e[a]||(r[a]=e[a])})},32883:function(I,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){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.Void=512]="Void",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=2033]="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={}))},34793:function(I,r,n){"use strict";var e=n(33436);function a(){}function t(){}t.resetWarningCache=a,I.exports=function(){function o(k,S,y,p,l,c){if(c!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}o.isRequired=o;function f(){return o}var V={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:f,element:o,elementType:o,instanceOf:f,node:o,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:t,resetWarningCache:a};return V.PropTypes=V,V}},64635:function(I,r,n){"use strict";if(0)var e,a;else I.exports=n(34793)()},33436:function(I){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";I.exports=r},16970:function(I){"use strict";var r=function(n){"use strict";var e=Object.prototype,a=e.hasOwnProperty,t=Object.defineProperty||function(M,D,j){M[D]=j.value},o,f=typeof Symbol=="function"?Symbol:{},V=f.iterator||"@@iterator",k=f.asyncIterator||"@@asyncIterator",S=f.toStringTag||"@@toStringTag";function y(M,D,j){return Object.defineProperty(M,D,{value:j,enumerable:!0,configurable:!0,writable:!0}),M[D]}try{y({},"")}catch(M){y=function(j,F,W){return j[F]=W}}function p(M,D,j,F){var W=D&&D.prototype instanceof s?D:s,K=Object.create(W.prototype),_=new E(F||[]);return t(K,"_invoke",{value:w(M,j,_)}),K}n.wrap=p;function l(M,D,j){try{return{type:"normal",arg:M.call(D,j)}}catch(F){return{type:"throw",arg:F}}}var c="suspendedStart",m="suspendedYield",i="executing",d="completed",u={};function s(){}function C(){}function g(){}var v={};y(v,V,function(){return this});var h=Object.getPrototypeOf,N=h&&h(h(P([])));N&&N!==e&&a.call(N,V)&&(v=N);var b=g.prototype=s.prototype=Object.create(v);C.prototype=g,t(b,"constructor",{value:g,configurable:!0}),t(g,"constructor",{value:C,configurable:!0}),C.displayName=y(g,S,"GeneratorFunction");function B(M){["next","throw","return"].forEach(function(D){y(M,D,function(j){return this._invoke(D,j)})})}n.isGeneratorFunction=function(M){var D=typeof M=="function"&&M.constructor;return D?D===C||(D.displayName||D.name)==="GeneratorFunction":!1},n.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,g):(M.__proto__=g,y(M,S,"GeneratorFunction")),M.prototype=Object.create(b),M},n.awrap=function(M){return{__await:M}};function L(M,D){function j(K,_,$,z){var Y=l(M[K],M,_);if(Y.type==="throw")z(Y.arg);else{var Z=Y.arg,ie=Z.value;return ie&&typeof ie=="object"&&a.call(ie,"__await")?D.resolve(ie.__await).then(function(ae){j("next",ae,$,z)},function(ae){j("throw",ae,$,z)}):D.resolve(ie).then(function(ae){Z.value=ae,$(Z)},function(ae){return j("throw",ae,$,z)})}}var F;function W(K,_){function $(){return new D(function(z,Y){j(K,_,z,Y)})}return F=F?F.then($,$):$()}t(this,"_invoke",{value:W})}B(L.prototype),y(L.prototype,k,function(){return this}),n.AsyncIterator=L,n.async=function(M,D,j,F,W){W===void 0&&(W=Promise);var K=new L(p(M,D,j,F),W);return n.isGeneratorFunction(D)?K:K.next().then(function(_){return _.done?_.value:K.next()})};function w(M,D,j){var F=c;return function(){function W(K,_){if(F===i)throw new Error("Generator is already running");if(F===d){if(K==="throw")throw _;return R()}for(j.method=K,j.arg=_;;){var $=j.delegate;if($){var z=T($,j);if(z){if(z===u)continue;return z}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(F===c)throw F=d,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);F=i;var Y=l(M,D,j);if(Y.type==="normal"){if(F=j.done?d:m,Y.arg===u)continue;return{value:Y.arg,done:j.done}}else Y.type==="throw"&&(F=d,j.method="throw",j.arg=Y.arg)}}return W}()}function T(M,D){var j=D.method,F=M.iterator[j];if(F===o)return D.delegate=null,j==="throw"&&M.iterator.return&&(D.method="return",D.arg=o,T(M,D),D.method==="throw")||j!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+j+"' method")),u;var W=l(F,M.iterator,D.arg);if(W.type==="throw")return D.method="throw",D.arg=W.arg,D.delegate=null,u;var K=W.arg;if(!K)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,u;if(K.done)D[M.resultName]=K.value,D.next=M.nextLoc,D.method!=="return"&&(D.method="next",D.arg=o);else return K;return D.delegate=null,u}B(b),y(b,S,"Generator"),y(b,V,function(){return this}),y(b,"toString",function(){return"[object Generator]"});function A(M){var D={tryLoc:M[0]};1 in M&&(D.catchLoc=M[1]),2 in M&&(D.finallyLoc=M[2],D.afterLoc=M[3]),this.tryEntries.push(D)}function x(M){var D=M.completion||{};D.type="normal",delete D.arg,M.completion=D}function E(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(A,this),this.reset(!0)}n.keys=function(M){var D=Object(M),j=[];for(var F in D)j.push(F);return j.reverse(),function(){function W(){for(;j.length;){var K=j.pop();if(K in D)return W.value=K,W.done=!1,W}return W.done=!0,W}return W}()};function P(M){if(M!=null){var D=M[V];if(D)return D.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var j=-1,F=function(){function W(){for(;++j<M.length;)if(a.call(M,j))return W.value=M[j],W.done=!1,W;return W.value=o,W.done=!0,W}return W}();return F.next=F}}throw new TypeError(typeof M+" is not iterable")}n.values=P;function R(){return{value:o,done:!0}}return E.prototype={constructor:E,reset:function(){function M(D){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(x),!D)for(var j in this)j.charAt(0)==="t"&&a.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=o)}return M}(),stop:function(){function M(){this.done=!0;var D=this.tryEntries[0],j=D.completion;if(j.type==="throw")throw j.arg;return this.rval}return M}(),dispatchException:function(){function M(D){if(this.done)throw D;var j=this;function F(Y,Z){return _.type="throw",_.arg=D,j.next=Y,Z&&(j.method="next",j.arg=o),!!Z}for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W],_=K.completion;if(K.tryLoc==="root")return F("end");if(K.tryLoc<=this.prev){var $=a.call(K,"catchLoc"),z=a.call(K,"finallyLoc");if($&&z){if(this.prev<K.catchLoc)return F(K.catchLoc,!0);if(this.prev<K.finallyLoc)return F(K.finallyLoc)}else if($){if(this.prev<K.catchLoc)return F(K.catchLoc,!0)}else if(z){if(this.prev<K.finallyLoc)return F(K.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return M}(),abrupt:function(){function M(D,j){for(var F=this.tryEntries.length-1;F>=0;--F){var W=this.tryEntries[F];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var K=W;break}}K&&(D==="break"||D==="continue")&&K.tryLoc<=j&&j<=K.finallyLoc&&(K=null);var _=K?K.completion:{};return _.type=D,_.arg=j,K?(this.method="next",this.next=K.finallyLoc,u):this.complete(_)}return M}(),complete:function(){function M(D,j){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&j&&(this.next=j),u}return M}(),finish:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===D)return this.complete(F.completion,F.afterLoc),x(F),u}}return M}(),catch:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===D){var W=F.completion;if(W.type==="throw"){var K=W.arg;x(F)}return K}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(D,j,F){return this.delegate={iterator:P(D),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),u}return M}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var V in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},72026:function(I,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(s,C){var g=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(g)return(g=g.call(s)).next.bind(g);if(Array.isArray(s)||(g=e(s))||C&&s&&typeof s.length=="number"){g&&(s=g);var v=0;return function(){return v>=s.length?{done:!0}:{done:!1,value:s[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 e(s,C){if(s){if(typeof s=="string")return a(s,C);var g=Object.prototype.toString.call(s).slice(8,-1);if(g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set")return Array.from(s);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(s,C)}}function a(s,C){(C==null||C>s.length)&&(C=s.length);for(var g=0,v=new Array(C);g<C;g++)v[g]=s[g];return v}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.toArray=function(){function s(v){if(Array.isArray(v))return v;if(typeof v=="object"){var g=Object.prototype.hasOwnProperty,C=[];for(var h in v)g.call(v,h)&&C.push(v[h]);return C}return[]}return s}(),o=r.toKeyedArray=function(){function s(v,g){return g===void 0&&(g="key"),V(function(C,h){var N;return Object.assign((N={},N[g]=h,N),C)})(v)}return s}(),f=r.filter=function(){function s(v){return function(g){if(g==null)return g;if(Array.isArray(g)){for(var C=[],h=0;h<g.length;h++){var N=g[h];v(N,h,g)&&C.push(N)}return C}throw new Error("filter() can't iterate on type "+typeof g)}}return s}(),V=r.map=function(){function s(v){return function(g){if(g==null)return g;if(Array.isArray(g)){for(var C=[],h=0;h<g.length;h++)C.push(v(g[h],h,g));return C}if(typeof g=="object"){var N=Object.prototype.hasOwnProperty,b=[];for(var B in g)N.call(g,B)&&b.push(v(g[B],B,g));return b}throw new Error("map() can't iterate on type "+typeof g)}}return s}(),k=r.filterMap=function(){function s(v,g){for(var C=[],h=n(v),N;!(N=h()).done;){var b=N.value,B=g(b);B!==void 0&&C.push(B)}return C}return s}(),S=function(v,g){for(var C=v.criteria,h=g.criteria,N=C.length,b=0;b<N;b++){var B=C[b],L=h[b];if(B<L)return-1;if(B>L)return 1}return 0},y=r.sortBy=function(){function s(){for(var v=arguments.length,g=new Array(v),C=0;C<v;C++)g[C]=arguments[C];return function(h){if(!Array.isArray(h))return h;for(var N=h.length,b=[],B=function(){function w(){var T=h[L];b.push({criteria:g.map(function(A){return A(T)}),value:T})}return w}(),L=0;L<N;L++)B();for(b.sort(S);N--;)b[N]=b[N].value;return b}}return s}(),p=r.sort=y(),l=r.range=function(){function s(v,g){return new Array(g-v).fill(null).map(function(C,h){return h+v})}return s}(),c=r.reduce=function(){function s(v,g){return function(C){var h=C.length,N,b;for(g===void 0?(N=1,b=C[0]):(N=0,b=g);N<h;N++)b=v(b,C[N],N,C);return b}}return s}(),m=r.uniqBy=function(){function s(v){return function(g){var C=g.length,h=[],N=v?[]:h,b=-1;e:for(;++b<C;){var B=g[b],L=v?v(B):B;if(B=B!==0?B:0,L===L){for(var w=N.length;w--;)if(N[w]===L)continue e;v&&N.push(L),h.push(B)}else N.includes(L)||(N!==h&&N.push(L),h.push(B))}return h}}return s}(),i=r.uniq=m(),d=r.zip=function(){function s(){for(var v=arguments.length,g=new Array(v),C=0;C<v;C++)g[C]=arguments[C];if(g.length!==0){for(var h=g.length,N=g[0].length,b=[],B=0;B<N;B++){for(var L=[],w=0;w<h;w++)L.push(g[w][B]);b.push(L)}return b}}return s}(),u=r.zipWith=function(){function s(v){return function(){return V(function(g){return v.apply(void 0,g)})(d.apply(void 0,arguments))}}return s}()},70654:function(I,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** + */var t=r.toArray=function(){function s(C){if(Array.isArray(C))return C;if(typeof C=="object"){var g=Object.prototype.hasOwnProperty,v=[];for(var h in C)g.call(C,h)&&v.push(C[h]);return v}return[]}return s}(),o=r.toKeyedArray=function(){function s(C,g){return g===void 0&&(g="key"),V(function(v,h){var N;return Object.assign((N={},N[g]=h,N),v)})(C)}return s}(),f=r.filter=function(){function s(C){return function(g){if(g==null)return g;if(Array.isArray(g)){for(var v=[],h=0;h<g.length;h++){var N=g[h];C(N,h,g)&&v.push(N)}return v}throw new Error("filter() can't iterate on type "+typeof g)}}return s}(),V=r.map=function(){function s(C){return function(g){if(g==null)return g;if(Array.isArray(g)){for(var v=[],h=0;h<g.length;h++)v.push(C(g[h],h,g));return v}if(typeof g=="object"){var N=Object.prototype.hasOwnProperty,b=[];for(var B in g)N.call(g,B)&&b.push(C(g[B],B,g));return b}throw new Error("map() can't iterate on type "+typeof g)}}return s}(),k=r.filterMap=function(){function s(C,g){for(var v=[],h=n(C),N;!(N=h()).done;){var b=N.value,B=g(b);B!==void 0&&v.push(B)}return v}return s}(),S=function(C,g){for(var v=C.criteria,h=g.criteria,N=v.length,b=0;b<N;b++){var B=v[b],L=h[b];if(B<L)return-1;if(B>L)return 1}return 0},y=r.sortBy=function(){function s(){for(var C=arguments.length,g=new Array(C),v=0;v<C;v++)g[v]=arguments[v];return function(h){if(!Array.isArray(h))return h;for(var N=h.length,b=[],B=function(){function w(){var T=h[L];b.push({criteria:g.map(function(A){return A(T)}),value:T})}return w}(),L=0;L<N;L++)B();for(b.sort(S);N--;)b[N]=b[N].value;return b}}return s}(),p=r.sort=y(),l=r.range=function(){function s(C,g){return new Array(g-C).fill(null).map(function(v,h){return h+C})}return s}(),c=r.reduce=function(){function s(C,g){return function(v){var h=v.length,N,b;for(g===void 0?(N=1,b=v[0]):(N=0,b=g);N<h;N++)b=C(b,v[N],N,v);return b}}return s}(),m=r.uniqBy=function(){function s(C){return function(g){var v=g.length,h=[],N=C?[]:h,b=-1;e:for(;++b<v;){var B=g[b],L=C?C(B):B;if(B=B!==0?B:0,L===L){for(var w=N.length;w--;)if(N[w]===L)continue e;C&&N.push(L),h.push(B)}else N.includes(L)||(N!==h&&N.push(L),h.push(B))}return h}}return s}(),i=r.uniq=m(),d=r.zip=function(){function s(){for(var C=arguments.length,g=new Array(C),v=0;v<C;v++)g[v]=arguments[v];if(g.length!==0){for(var h=g.length,N=g[0].length,b=[],B=0;B<N;B++){for(var L=[],w=0;w<h;w++)L.push(g[w][B]);b.push(L)}return b}}return s}(),u=r.zipWith=function(){function s(C){return function(){return V(function(g){return C.apply(void 0,g)})(d.apply(void 0,arguments))}}return s}()},70654:function(I,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -16,7 +16,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.KEY_BACKSPACE=8,e=r.KEY_TAB=9,a=r.KEY_ENTER=13,t=r.KEY_SHIFT=16,o=r.KEY_CTRL=17,f=r.KEY_ALT=18,V=r.KEY_PAUSE=19,k=r.KEY_CAPSLOCK=20,S=r.KEY_ESCAPE=27,y=r.KEY_SPACE=32,p=r.KEY_PAGEUP=33,l=r.KEY_PAGEDOWN=34,c=r.KEY_END=35,m=r.KEY_HOME=36,i=r.KEY_LEFT=37,d=r.KEY_UP=38,u=r.KEY_RIGHT=39,s=r.KEY_DOWN=40,v=r.KEY_INSERT=45,g=r.KEY_DELETE=46,C=r.KEY_0=48,h=r.KEY_1=49,N=r.KEY_2=50,b=r.KEY_3=51,B=r.KEY_4=52,L=r.KEY_5=53,w=r.KEY_6=54,T=r.KEY_7=55,A=r.KEY_8=56,x=r.KEY_9=57,E=r.KEY_A=65,P=r.KEY_B=66,R=r.KEY_C=67,M=r.KEY_D=68,D=r.KEY_E=69,j=r.KEY_F=70,F=r.KEY_G=71,W=r.KEY_H=72,K=r.KEY_I=73,_=r.KEY_J=74,$=r.KEY_K=75,z=r.KEY_L=76,Y=r.KEY_M=77,Z=r.KEY_N=78,ie=r.KEY_O=79,ae=r.KEY_P=80,se=r.KEY_Q=81,he=r.KEY_R=82,ye=r.KEY_S=83,Le=r.KEY_T=84,pe=r.KEY_U=85,oe=r.KEY_V=86,Q=r.KEY_W=87,q=r.KEY_X=88,ue=r.KEY_Y=89,me=r.KEY_Z=90,ne=r.KEY_NUMPAD_0=96,be=r.KEY_NUMPAD_1=97,fe=r.KEY_NUMPAD_2=98,ge=r.KEY_NUMPAD_3=99,ke=r.KEY_NUMPAD_4=100,ve=r.KEY_NUMPAD_5=101,Se=r.KEY_NUMPAD_6=102,we=r.KEY_NUMPAD_7=103,xe=r.KEY_NUMPAD_8=104,Oe=r.KEY_NUMPAD_9=105,Ue=r.KEY_F1=112,Ve=r.KEY_F2=113,re=r.KEY_F3=114,le=r.KEY_F4=115,Ce=r.KEY_F5=116,de=r.KEY_F6=117,Ne=r.KEY_F7=118,Ae=r.KEY_F8=119,De=r.KEY_F9=120,je=r.KEY_F10=121,Ke=r.KEY_F11=122,We=r.KEY_F12=123,He=r.KEY_SEMICOLON=186,Ge=r.KEY_EQUAL=187,yt=r.KEY_COMMA=188,kt=r.KEY_MINUS=189,St=r.KEY_PERIOD=190,ft=r.KEY_SLASH=191,Bt=r.KEY_LEFT_BRACKET=219,Lt=r.KEY_BACKSLASH=220,It=r.KEY_RIGHT_BRACKET=221,pt=r.KEY_QUOTE=222},58331:function(I,r){"use strict";r.__esModule=!0,r.toFixed=r.scale=r.round=r.rad2deg=r.keyOfMatchingRange=r.inRange=r.clamp01=r.clamp=void 0;/** + */var n=r.KEY_BACKSPACE=8,e=r.KEY_TAB=9,a=r.KEY_ENTER=13,t=r.KEY_SHIFT=16,o=r.KEY_CTRL=17,f=r.KEY_ALT=18,V=r.KEY_PAUSE=19,k=r.KEY_CAPSLOCK=20,S=r.KEY_ESCAPE=27,y=r.KEY_SPACE=32,p=r.KEY_PAGEUP=33,l=r.KEY_PAGEDOWN=34,c=r.KEY_END=35,m=r.KEY_HOME=36,i=r.KEY_LEFT=37,d=r.KEY_UP=38,u=r.KEY_RIGHT=39,s=r.KEY_DOWN=40,C=r.KEY_INSERT=45,g=r.KEY_DELETE=46,v=r.KEY_0=48,h=r.KEY_1=49,N=r.KEY_2=50,b=r.KEY_3=51,B=r.KEY_4=52,L=r.KEY_5=53,w=r.KEY_6=54,T=r.KEY_7=55,A=r.KEY_8=56,x=r.KEY_9=57,E=r.KEY_A=65,P=r.KEY_B=66,R=r.KEY_C=67,M=r.KEY_D=68,D=r.KEY_E=69,j=r.KEY_F=70,F=r.KEY_G=71,W=r.KEY_H=72,K=r.KEY_I=73,_=r.KEY_J=74,$=r.KEY_K=75,z=r.KEY_L=76,Y=r.KEY_M=77,Z=r.KEY_N=78,ie=r.KEY_O=79,ae=r.KEY_P=80,se=r.KEY_Q=81,he=r.KEY_R=82,ye=r.KEY_S=83,Le=r.KEY_T=84,pe=r.KEY_U=85,oe=r.KEY_V=86,Q=r.KEY_W=87,q=r.KEY_X=88,ue=r.KEY_Y=89,me=r.KEY_Z=90,ne=r.KEY_NUMPAD_0=96,be=r.KEY_NUMPAD_1=97,fe=r.KEY_NUMPAD_2=98,ge=r.KEY_NUMPAD_3=99,ke=r.KEY_NUMPAD_4=100,ve=r.KEY_NUMPAD_5=101,Se=r.KEY_NUMPAD_6=102,we=r.KEY_NUMPAD_7=103,xe=r.KEY_NUMPAD_8=104,Oe=r.KEY_NUMPAD_9=105,Ue=r.KEY_F1=112,Ve=r.KEY_F2=113,re=r.KEY_F3=114,le=r.KEY_F4=115,Ce=r.KEY_F5=116,de=r.KEY_F6=117,Ne=r.KEY_F7=118,Ae=r.KEY_F8=119,De=r.KEY_F9=120,je=r.KEY_F10=121,Ke=r.KEY_F11=122,We=r.KEY_F12=123,He=r.KEY_SEMICOLON=186,Ge=r.KEY_EQUAL=187,yt=r.KEY_COMMA=188,kt=r.KEY_MINUS=189,St=r.KEY_PERIOD=190,ft=r.KEY_SLASH=191,Bt=r.KEY_LEFT_BRACKET=219,Lt=r.KEY_BACKSLASH=220,It=r.KEY_RIGHT_BRACKET=221,pt=r.KEY_QUOTE=222},58331:function(I,r){"use strict";r.__esModule=!0,r.toFixed=r.scale=r.round=r.rad2deg=r.keyOfMatchingRange=r.inRange=r.clamp01=r.clamp=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -36,17 +36,17 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=r.createStore=function(){function S(y,p){if(p)return p(S)(y);var l,c=[],m=function(){function u(){return l}return u}(),i=function(){function u(s){c.push(s)}return u}(),d=function(){function u(s){l=y(l,s);for(var v=0;v<c.length;v++)c[v]()}return u}();return d({type:"@@INIT"}),{dispatch:d,subscribe:i,getState:m}}return S}(),t=r.applyMiddleware=function(){function S(){for(var y=arguments.length,p=new Array(y),l=0;l<y;l++)p[l]=arguments[l];return function(c){return function(m){for(var i=arguments.length,d=new Array(i>1?i-1:0),u=1;u<i;u++)d[u-1]=arguments[u];var s=c.apply(void 0,[m].concat(d)),v=function(){function h(){throw new Error("Dispatching while constructing your middleware is not allowed.")}return h}(),g={getState:s.getState,dispatch:function(){function h(N){for(var b=arguments.length,B=new Array(b>1?b-1:0),L=1;L<b;L++)B[L-1]=arguments[L];return v.apply(void 0,[N].concat(B))}return h}()},C=p.map(function(h){return h(g)});return v=e.compose.apply(void 0,C)(s.dispatch),Object.assign({},s,{dispatch:v})}}}return S}(),o=r.combineReducers=function(){function S(y){var p=Object.keys(y),l=!1;return function(c,m){c===void 0&&(c={});for(var i=Object.assign({},c),d=0,u=p;d<u.length;d++){var s=u[d],v=y[s],g=c[s],C=v(g,m);g!==C&&(l=!0,i[s]=C)}return l?i:c}}return S}(),f=r.createAction=function(){function S(y,p){p===void 0&&(p=null);var l=function(){function c(){if(!p)return{type:y,payload:arguments.length<=0?void 0:arguments[0]};var m=p.apply(void 0,arguments);if(!m)throw new Error("prepare function did not return an object");var i={type:y};return"payload"in m&&(i.payload=m.payload),"meta"in m&&(i.meta=m.meta),i}return c}();return l.toString=function(){return""+y},l.type=y,l.match=function(c){return c.type===y},l}return S}(),V=r.useDispatch=function(){function S(y){return y.store.dispatch}return S}(),k=r.useSelector=function(){function S(y,p){return p(y.store.getState())}return S}()},96417:function(I,r){"use strict";r.__esModule=!0,r.storage=r.IMPL_MEMORY=r.IMPL_LOCAL_STORAGE=r.IMPL_INDEXED_DB=void 0;function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return C};var g,C={},h=Object.prototype,N=h.hasOwnProperty,b=Object.defineProperty||function(oe,Q,q){oe[Q]=q.value},B=typeof Symbol=="function"?Symbol:{},L=B.iterator||"@@iterator",w=B.asyncIterator||"@@asyncIterator",T=B.toStringTag||"@@toStringTag";function A(oe,Q,q){return Object.defineProperty(oe,Q,{value:q,enumerable:!0,configurable:!0,writable:!0}),oe[Q]}try{A({},"")}catch(oe){A=function(q,ue,me){return q[ue]=me}}function x(oe,Q,q,ue){var me=Q&&Q.prototype instanceof F?Q:F,ne=Object.create(me.prototype),be=new Le(ue||[]);return b(ne,"_invoke",{value:ae(oe,q,be)}),ne}function E(oe,Q,q){try{return{type:"normal",arg:oe.call(Q,q)}}catch(ue){return{type:"throw",arg:ue}}}C.wrap=x;var P="suspendedStart",R="suspendedYield",M="executing",D="completed",j={};function F(){}function W(){}function K(){}var _={};A(_,L,function(){return this});var $=Object.getPrototypeOf,z=$&&$($(pe([])));z&&z!==h&&N.call(z,L)&&(_=z);var Y=K.prototype=F.prototype=Object.create(_);function Z(oe){["next","throw","return"].forEach(function(Q){A(oe,Q,function(q){return this._invoke(Q,q)})})}function ie(oe,Q){function q(me,ne,be,fe){var ge=E(oe[me],oe,ne);if(ge.type!=="throw"){var ke=ge.arg,ve=ke.value;return ve&&typeof ve=="object"&&N.call(ve,"__await")?Q.resolve(ve.__await).then(function(Se){q("next",Se,be,fe)},function(Se){q("throw",Se,be,fe)}):Q.resolve(ve).then(function(Se){ke.value=Se,be(ke)},function(Se){return q("throw",Se,be,fe)})}fe(ge.arg)}var ue;b(this,"_invoke",{value:function(){function me(ne,be){function fe(){return new Q(function(ge,ke){q(ne,be,ge,ke)})}return ue=ue?ue.then(fe,fe):fe()}return me}()})}function ae(oe,Q,q){var ue=P;return function(me,ne){if(ue===M)throw new Error("Generator is already running");if(ue===D){if(me==="throw")throw ne;return{value:g,done:!0}}for(q.method=me,q.arg=ne;;){var be=q.delegate;if(be){var fe=se(be,q);if(fe){if(fe===j)continue;return fe}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(ue===P)throw ue=D,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);ue=M;var ge=E(oe,Q,q);if(ge.type==="normal"){if(ue=q.done?D:R,ge.arg===j)continue;return{value:ge.arg,done:q.done}}ge.type==="throw"&&(ue=D,q.method="throw",q.arg=ge.arg)}}}function se(oe,Q){var q=Q.method,ue=oe.iterator[q];if(ue===g)return Q.delegate=null,q==="throw"&&oe.iterator.return&&(Q.method="return",Q.arg=g,se(oe,Q),Q.method==="throw")||q!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+q+"' method")),j;var me=E(ue,oe.iterator,Q.arg);if(me.type==="throw")return Q.method="throw",Q.arg=me.arg,Q.delegate=null,j;var ne=me.arg;return ne?ne.done?(Q[oe.resultName]=ne.value,Q.next=oe.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=g),Q.delegate=null,j):ne:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,j)}function he(oe){var Q={tryLoc:oe[0]};1 in oe&&(Q.catchLoc=oe[1]),2 in oe&&(Q.finallyLoc=oe[2],Q.afterLoc=oe[3]),this.tryEntries.push(Q)}function ye(oe){var Q=oe.completion||{};Q.type="normal",delete Q.arg,oe.completion=Q}function Le(oe){this.tryEntries=[{tryLoc:"root"}],oe.forEach(he,this),this.reset(!0)}function pe(oe){if(oe||oe===""){var Q=oe[L];if(Q)return Q.call(oe);if(typeof oe.next=="function")return oe;if(!isNaN(oe.length)){var q=-1,ue=function(){function me(){for(;++q<oe.length;)if(N.call(oe,q))return me.value=oe[q],me.done=!1,me;return me.value=g,me.done=!0,me}return me}();return ue.next=ue}}throw new TypeError(typeof oe+" is not iterable")}return W.prototype=K,b(Y,"constructor",{value:K,configurable:!0}),b(K,"constructor",{value:W,configurable:!0}),W.displayName=A(K,T,"GeneratorFunction"),C.isGeneratorFunction=function(oe){var Q=typeof oe=="function"&&oe.constructor;return!!Q&&(Q===W||(Q.displayName||Q.name)==="GeneratorFunction")},C.mark=function(oe){return Object.setPrototypeOf?Object.setPrototypeOf(oe,K):(oe.__proto__=K,A(oe,T,"GeneratorFunction")),oe.prototype=Object.create(Y),oe},C.awrap=function(oe){return{__await:oe}},Z(ie.prototype),A(ie.prototype,w,function(){return this}),C.AsyncIterator=ie,C.async=function(oe,Q,q,ue,me){me===void 0&&(me=Promise);var ne=new ie(x(oe,Q,q,ue),me);return C.isGeneratorFunction(Q)?ne:ne.next().then(function(be){return be.done?be.value:ne.next()})},Z(Y),A(Y,T,"Generator"),A(Y,L,function(){return this}),A(Y,"toString",function(){return"[object Generator]"}),C.keys=function(oe){var Q=Object(oe),q=[];for(var ue in Q)q.push(ue);return q.reverse(),function(){function me(){for(;q.length;){var ne=q.pop();if(ne in Q)return me.value=ne,me.done=!1,me}return me.done=!0,me}return me}()},C.values=pe,Le.prototype={constructor:Le,reset:function(){function oe(Q){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(ye),!Q)for(var q in this)q.charAt(0)==="t"&&N.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=g)}return oe}(),stop:function(){function oe(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval}return oe}(),dispatchException:function(){function oe(Q){if(this.done)throw Q;var q=this;function ue(ke,ve){return be.type="throw",be.arg=Q,q.next=ke,ve&&(q.method="next",q.arg=g),!!ve}for(var me=this.tryEntries.length-1;me>=0;--me){var ne=this.tryEntries[me],be=ne.completion;if(ne.tryLoc==="root")return ue("end");if(ne.tryLoc<=this.prev){var fe=N.call(ne,"catchLoc"),ge=N.call(ne,"finallyLoc");if(fe&&ge){if(this.prev<ne.catchLoc)return ue(ne.catchLoc,!0);if(this.prev<ne.finallyLoc)return ue(ne.finallyLoc)}else if(fe){if(this.prev<ne.catchLoc)return ue(ne.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<ne.finallyLoc)return ue(ne.finallyLoc)}}}}return oe}(),abrupt:function(){function oe(Q,q){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var me=this.tryEntries[ue];if(me.tryLoc<=this.prev&&N.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var ne=me;break}}ne&&(Q==="break"||Q==="continue")&&ne.tryLoc<=q&&q<=ne.finallyLoc&&(ne=null);var be=ne?ne.completion:{};return be.type=Q,be.arg=q,ne?(this.method="next",this.next=ne.finallyLoc,j):this.complete(be)}return oe}(),complete:function(){function oe(Q,q){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&q&&(this.next=q),j}return oe}(),finish:function(){function oe(Q){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Q)return this.complete(ue.completion,ue.afterLoc),ye(ue),j}}return oe}(),catch:function(){function oe(Q){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Q){var me=ue.completion;if(me.type==="throw"){var ne=me.arg;ye(ue)}return ne}}throw new Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(Q,q,ue){return this.delegate={iterator:pe(Q),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=g),j}return oe}()},C}function e(g,C,h,N,b,B,L){try{var w=g[B](L),T=w.value}catch(A){h(A);return}w.done?C(T):Promise.resolve(T).then(N,b)}function a(g){return function(){var C=this,h=arguments;return new Promise(function(N,b){var B=g.apply(C,h);function L(T){e(B,N,b,L,w,"next",T)}function w(T){e(B,N,b,L,w,"throw",T)}L(void 0)})}}/** + */var a=r.createStore=function(){function S(y,p){if(p)return p(S)(y);var l,c=[],m=function(){function u(){return l}return u}(),i=function(){function u(s){c.push(s)}return u}(),d=function(){function u(s){l=y(l,s);for(var C=0;C<c.length;C++)c[C]()}return u}();return d({type:"@@INIT"}),{dispatch:d,subscribe:i,getState:m}}return S}(),t=r.applyMiddleware=function(){function S(){for(var y=arguments.length,p=new Array(y),l=0;l<y;l++)p[l]=arguments[l];return function(c){return function(m){for(var i=arguments.length,d=new Array(i>1?i-1:0),u=1;u<i;u++)d[u-1]=arguments[u];var s=c.apply(void 0,[m].concat(d)),C=function(){function h(){throw new Error("Dispatching while constructing your middleware is not allowed.")}return h}(),g={getState:s.getState,dispatch:function(){function h(N){for(var b=arguments.length,B=new Array(b>1?b-1:0),L=1;L<b;L++)B[L-1]=arguments[L];return C.apply(void 0,[N].concat(B))}return h}()},v=p.map(function(h){return h(g)});return C=e.compose.apply(void 0,v)(s.dispatch),Object.assign({},s,{dispatch:C})}}}return S}(),o=r.combineReducers=function(){function S(y){var p=Object.keys(y),l=!1;return function(c,m){c===void 0&&(c={});for(var i=Object.assign({},c),d=0,u=p;d<u.length;d++){var s=u[d],C=y[s],g=c[s],v=C(g,m);g!==v&&(l=!0,i[s]=v)}return l?i:c}}return S}(),f=r.createAction=function(){function S(y,p){p===void 0&&(p=null);var l=function(){function c(){if(!p)return{type:y,payload:arguments.length<=0?void 0:arguments[0]};var m=p.apply(void 0,arguments);if(!m)throw new Error("prepare function did not return an object");var i={type:y};return"payload"in m&&(i.payload=m.payload),"meta"in m&&(i.meta=m.meta),i}return c}();return l.toString=function(){return""+y},l.type=y,l.match=function(c){return c.type===y},l}return S}(),V=r.useDispatch=function(){function S(y){return y.store.dispatch}return S}(),k=r.useSelector=function(){function S(y,p){return p(y.store.getState())}return S}()},96417:function(I,r){"use strict";r.__esModule=!0,r.storage=r.IMPL_MEMORY=r.IMPL_LOCAL_STORAGE=r.IMPL_INDEXED_DB=void 0;function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return v};var g,v={},h=Object.prototype,N=h.hasOwnProperty,b=Object.defineProperty||function(oe,Q,q){oe[Q]=q.value},B=typeof Symbol=="function"?Symbol:{},L=B.iterator||"@@iterator",w=B.asyncIterator||"@@asyncIterator",T=B.toStringTag||"@@toStringTag";function A(oe,Q,q){return Object.defineProperty(oe,Q,{value:q,enumerable:!0,configurable:!0,writable:!0}),oe[Q]}try{A({},"")}catch(oe){A=function(q,ue,me){return q[ue]=me}}function x(oe,Q,q,ue){var me=Q&&Q.prototype instanceof F?Q:F,ne=Object.create(me.prototype),be=new Le(ue||[]);return b(ne,"_invoke",{value:ae(oe,q,be)}),ne}function E(oe,Q,q){try{return{type:"normal",arg:oe.call(Q,q)}}catch(ue){return{type:"throw",arg:ue}}}v.wrap=x;var P="suspendedStart",R="suspendedYield",M="executing",D="completed",j={};function F(){}function W(){}function K(){}var _={};A(_,L,function(){return this});var $=Object.getPrototypeOf,z=$&&$($(pe([])));z&&z!==h&&N.call(z,L)&&(_=z);var Y=K.prototype=F.prototype=Object.create(_);function Z(oe){["next","throw","return"].forEach(function(Q){A(oe,Q,function(q){return this._invoke(Q,q)})})}function ie(oe,Q){function q(me,ne,be,fe){var ge=E(oe[me],oe,ne);if(ge.type!=="throw"){var ke=ge.arg,ve=ke.value;return ve&&typeof ve=="object"&&N.call(ve,"__await")?Q.resolve(ve.__await).then(function(Se){q("next",Se,be,fe)},function(Se){q("throw",Se,be,fe)}):Q.resolve(ve).then(function(Se){ke.value=Se,be(ke)},function(Se){return q("throw",Se,be,fe)})}fe(ge.arg)}var ue;b(this,"_invoke",{value:function(){function me(ne,be){function fe(){return new Q(function(ge,ke){q(ne,be,ge,ke)})}return ue=ue?ue.then(fe,fe):fe()}return me}()})}function ae(oe,Q,q){var ue=P;return function(me,ne){if(ue===M)throw new Error("Generator is already running");if(ue===D){if(me==="throw")throw ne;return{value:g,done:!0}}for(q.method=me,q.arg=ne;;){var be=q.delegate;if(be){var fe=se(be,q);if(fe){if(fe===j)continue;return fe}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(ue===P)throw ue=D,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);ue=M;var ge=E(oe,Q,q);if(ge.type==="normal"){if(ue=q.done?D:R,ge.arg===j)continue;return{value:ge.arg,done:q.done}}ge.type==="throw"&&(ue=D,q.method="throw",q.arg=ge.arg)}}}function se(oe,Q){var q=Q.method,ue=oe.iterator[q];if(ue===g)return Q.delegate=null,q==="throw"&&oe.iterator.return&&(Q.method="return",Q.arg=g,se(oe,Q),Q.method==="throw")||q!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+q+"' method")),j;var me=E(ue,oe.iterator,Q.arg);if(me.type==="throw")return Q.method="throw",Q.arg=me.arg,Q.delegate=null,j;var ne=me.arg;return ne?ne.done?(Q[oe.resultName]=ne.value,Q.next=oe.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=g),Q.delegate=null,j):ne:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,j)}function he(oe){var Q={tryLoc:oe[0]};1 in oe&&(Q.catchLoc=oe[1]),2 in oe&&(Q.finallyLoc=oe[2],Q.afterLoc=oe[3]),this.tryEntries.push(Q)}function ye(oe){var Q=oe.completion||{};Q.type="normal",delete Q.arg,oe.completion=Q}function Le(oe){this.tryEntries=[{tryLoc:"root"}],oe.forEach(he,this),this.reset(!0)}function pe(oe){if(oe||oe===""){var Q=oe[L];if(Q)return Q.call(oe);if(typeof oe.next=="function")return oe;if(!isNaN(oe.length)){var q=-1,ue=function(){function me(){for(;++q<oe.length;)if(N.call(oe,q))return me.value=oe[q],me.done=!1,me;return me.value=g,me.done=!0,me}return me}();return ue.next=ue}}throw new TypeError(typeof oe+" is not iterable")}return W.prototype=K,b(Y,"constructor",{value:K,configurable:!0}),b(K,"constructor",{value:W,configurable:!0}),W.displayName=A(K,T,"GeneratorFunction"),v.isGeneratorFunction=function(oe){var Q=typeof oe=="function"&&oe.constructor;return!!Q&&(Q===W||(Q.displayName||Q.name)==="GeneratorFunction")},v.mark=function(oe){return Object.setPrototypeOf?Object.setPrototypeOf(oe,K):(oe.__proto__=K,A(oe,T,"GeneratorFunction")),oe.prototype=Object.create(Y),oe},v.awrap=function(oe){return{__await:oe}},Z(ie.prototype),A(ie.prototype,w,function(){return this}),v.AsyncIterator=ie,v.async=function(oe,Q,q,ue,me){me===void 0&&(me=Promise);var ne=new ie(x(oe,Q,q,ue),me);return v.isGeneratorFunction(Q)?ne:ne.next().then(function(be){return be.done?be.value:ne.next()})},Z(Y),A(Y,T,"Generator"),A(Y,L,function(){return this}),A(Y,"toString",function(){return"[object Generator]"}),v.keys=function(oe){var Q=Object(oe),q=[];for(var ue in Q)q.push(ue);return q.reverse(),function(){function me(){for(;q.length;){var ne=q.pop();if(ne in Q)return me.value=ne,me.done=!1,me}return me.done=!0,me}return me}()},v.values=pe,Le.prototype={constructor:Le,reset:function(){function oe(Q){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(ye),!Q)for(var q in this)q.charAt(0)==="t"&&N.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=g)}return oe}(),stop:function(){function oe(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval}return oe}(),dispatchException:function(){function oe(Q){if(this.done)throw Q;var q=this;function ue(ke,ve){return be.type="throw",be.arg=Q,q.next=ke,ve&&(q.method="next",q.arg=g),!!ve}for(var me=this.tryEntries.length-1;me>=0;--me){var ne=this.tryEntries[me],be=ne.completion;if(ne.tryLoc==="root")return ue("end");if(ne.tryLoc<=this.prev){var fe=N.call(ne,"catchLoc"),ge=N.call(ne,"finallyLoc");if(fe&&ge){if(this.prev<ne.catchLoc)return ue(ne.catchLoc,!0);if(this.prev<ne.finallyLoc)return ue(ne.finallyLoc)}else if(fe){if(this.prev<ne.catchLoc)return ue(ne.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<ne.finallyLoc)return ue(ne.finallyLoc)}}}}return oe}(),abrupt:function(){function oe(Q,q){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var me=this.tryEntries[ue];if(me.tryLoc<=this.prev&&N.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var ne=me;break}}ne&&(Q==="break"||Q==="continue")&&ne.tryLoc<=q&&q<=ne.finallyLoc&&(ne=null);var be=ne?ne.completion:{};return be.type=Q,be.arg=q,ne?(this.method="next",this.next=ne.finallyLoc,j):this.complete(be)}return oe}(),complete:function(){function oe(Q,q){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&q&&(this.next=q),j}return oe}(),finish:function(){function oe(Q){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Q)return this.complete(ue.completion,ue.afterLoc),ye(ue),j}}return oe}(),catch:function(){function oe(Q){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Q){var me=ue.completion;if(me.type==="throw"){var ne=me.arg;ye(ue)}return ne}}throw new Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(Q,q,ue){return this.delegate={iterator:pe(Q),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=g),j}return oe}()},v}function e(g,v,h,N,b,B,L){try{var w=g[B](L),T=w.value}catch(A){h(A);return}w.done?v(T):Promise.resolve(T).then(N,b)}function a(g){return function(){var v=this,h=arguments;return new Promise(function(N,b){var B=g.apply(v,h);function L(T){e(B,N,b,L,w,"next",T)}function w(T){e(B,N,b,L,w,"throw",T)}L(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_LOCAL_STORAGE=1,f=r.IMPL_INDEXED_DB=2,V=1,k="para-tgui",S="storage-v1",y="readonly",p="readwrite",l=function(C){return function(){try{return!!C()}catch(h){return!1}}},c=l(function(){return window.localStorage&&window.localStorage.getItem}),m=l(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function g(){this.impl=t,this.store={}}var C=g.prototype;return C.get=function(){function h(N){return this.store[N]}return h}(),C.set=function(){function h(N,b){this.store[N]=b}return h}(),C.remove=function(){function h(N){this.store[N]=void 0}return h}(),C.clear=function(){function h(){this.store={}}return h}(),g}(),d=function(){function g(){this.impl=o}var C=g.prototype;return C.get=function(){function h(N){var b=localStorage.getItem(N);if(typeof b=="string")return JSON.parse(b)}return h}(),C.set=function(){function h(N,b){localStorage.setItem(N,JSON.stringify(b))}return h}(),C.remove=function(){function h(N){localStorage.removeItem(N)}return h}(),C.clear=function(){function h(){localStorage.clear()}return h}(),g}(),u=function(){function g(){this.impl=f,this.dbPromise=new Promise(function(h,N){var b=window.indexedDB||window.msIndexedDB,B=b.open(k,V);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(L){N(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return h(B.result)},B.onerror=function(){N(new Error("Failed to open IDB: "+B.error))}})}var C=g.prototype;return C.getStore=function(){function h(N){return this.dbPromise.then(function(b){return b.transaction(S,N).objectStore(S)})}return h}(),C.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(y);case 2:return L=T.sent,T.abrupt("return",new Promise(function(A,x){var E=L.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),C.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return L===null&&(L=void 0),A.next=3,this.getStore(p);case 3:w=A.sent,w.put(L,B);case 5:case"end":return A.stop()}}return T}(),b,this)}return b}()));function N(b,B){return h.apply(this,arguments)}return N}(),C.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:L=T.sent,L.delete(B);case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),C.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function N(){return h.apply(this,arguments)}return N}(),g}(),s=function(){function g(){this.backendPromise=a(n().mark(function(){function h(){var N;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:if(!m()){B.next=10;break}return B.prev=1,N=new u,B.next=5,N.dbPromise;case 5:return B.abrupt("return",N);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!c()){B.next=12;break}return B.abrupt("return",new d);case 12:return B.abrupt("return",new i);case 13:case"end":return B.stop()}}return b}(),h,null,[[1,8]])}return h}()))()}var C=g.prototype;return C.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.get(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),C.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return w=A.sent,A.abrupt("return",w.set(B,L));case 4:case"end":return A.stop()}}return T}(),b,this)}return b}()));function N(b,B){return h.apply(this,arguments)}return N}(),C.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.remove(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),C.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.clear());case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function N(){return h.apply(this,arguments)}return N}(),g}(),v=r.storage=new s},37843:function(I,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c<l;c++)m[c]=p[c];return m}/** + */var t=r.IMPL_MEMORY=0,o=r.IMPL_LOCAL_STORAGE=1,f=r.IMPL_INDEXED_DB=2,V=1,k="para-tgui",S="storage-v1",y="readonly",p="readwrite",l=function(v){return function(){try{return!!v()}catch(h){return!1}}},c=l(function(){return window.localStorage&&window.localStorage.getItem}),m=l(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function g(){this.impl=t,this.store={}}var v=g.prototype;return v.get=function(){function h(N){return this.store[N]}return h}(),v.set=function(){function h(N,b){this.store[N]=b}return h}(),v.remove=function(){function h(N){this.store[N]=void 0}return h}(),v.clear=function(){function h(){this.store={}}return h}(),g}(),d=function(){function g(){this.impl=o}var v=g.prototype;return v.get=function(){function h(N){var b=localStorage.getItem(N);if(typeof b=="string")return JSON.parse(b)}return h}(),v.set=function(){function h(N,b){localStorage.setItem(N,JSON.stringify(b))}return h}(),v.remove=function(){function h(N){localStorage.removeItem(N)}return h}(),v.clear=function(){function h(){localStorage.clear()}return h}(),g}(),u=function(){function g(){this.impl=f,this.dbPromise=new Promise(function(h,N){var b=window.indexedDB||window.msIndexedDB,B=b.open(k,V);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(L){N(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return h(B.result)},B.onerror=function(){N(new Error("Failed to open IDB: "+B.error))}})}var v=g.prototype;return v.getStore=function(){function h(N){return this.dbPromise.then(function(b){return b.transaction(S,N).objectStore(S)})}return h}(),v.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(y);case 2:return L=T.sent,T.abrupt("return",new Promise(function(A,x){var E=L.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),v.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return L===null&&(L=void 0),A.next=3,this.getStore(p);case 3:w=A.sent,w.put(L,B);case 5:case"end":return A.stop()}}return T}(),b,this)}return b}()));function N(b,B){return h.apply(this,arguments)}return N}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:L=T.sent,L.delete(B);case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function N(){return h.apply(this,arguments)}return N}(),g}(),s=function(){function g(){this.backendPromise=a(n().mark(function(){function h(){var N;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:if(!m()){B.next=10;break}return B.prev=1,N=new u,B.next=5,N.dbPromise;case 5:return B.abrupt("return",N);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!c()){B.next=12;break}return B.abrupt("return",new d);case 12:return B.abrupt("return",new i);case 13:case"end":return B.stop()}}return b}(),h,null,[[1,8]])}return h}()))()}var v=g.prototype;return v.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.get(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),v.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return w=A.sent,A.abrupt("return",w.set(B,L));case 4:case"end":return A.stop()}}return T}(),b,this)}return b}()));function N(b,B){return h.apply(this,arguments)}return N}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.remove(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function N(b){return h.apply(this,arguments)}return N}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.clear());case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function N(){return h.apply(this,arguments)}return N}(),g}(),C=r.storage=new s},37843:function(I,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c<l;c++)m[c]=p[c];return m}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.multiline=function(){function p(l){if(Array.isArray(l))return p(l.join(""));for(var c=l.split("\n"),m,i=n(c),d;!(d=i()).done;)for(var u=d.value,s=0;s<u.length;s++){var v=u[s];if(v!==" "){(m===void 0||s<m)&&(m=s);break}}return m||(m=0),c.map(function(g){return g.substr(m).trimRight()}).join("\n").trim()}return p}(),o=r.createGlobPattern=function(){function p(l){var c=function(){function i(d){return d.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}return i}(),m=new RegExp("^"+l.split(/\*+/).map(c).join(".*")+"$");return function(i){return m.test(i)}}return p}(),f=r.createSearch=function(){function p(l,c){var m=l.toLowerCase().trim();return function(i){if(!m)return!0;var d=c?c(i):i;return d?d.toLowerCase().includes(m):!1}}return p}(),V=r.capitalize=function(){function p(l){return Array.isArray(l)?l.map(p):l.charAt(0).toUpperCase()+l.slice(1).toLowerCase()}return p}(),k=r.toTitleCase=function(){function p(l){if(Array.isArray(l))return l.map(p);if(typeof l!="string")return l;for(var c=["Id","Tv"],m=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"],i=l.replace(/([^\W_]+[^\s-]*) */g,function(b){return b.charAt(0).toUpperCase()+b.substr(1).toLowerCase()}),d=0,u=m;d<u.length;d++){var s=u[d],v=new RegExp("\\s"+s+"\\s","g");i=i.replace(v,function(b){return b.toLowerCase()})}for(var g=0,C=c;g<C.length;g++){var h=C[g],N=new RegExp("\\b"+h+"\\b","g");i=i.replace(N,function(b){return b.toLowerCase()})}return i}return p}(),S=r.decodeHtmlEntities=function(){function p(l){if(!l)return l;var c=/&(nbsp|amp|quot|lt|gt|apos);/g,m={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">",apos:"'"};return l.replace(/<br>/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(i,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(i,d){var u=parseInt(d,10);return String.fromCharCode(u)}).replace(/&#x?([0-9a-f]+);/gi,function(i,d){var u=parseInt(d,16);return String.fromCharCode(u)})}return p}(),y=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},32742:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function p(l){if(Array.isArray(l))return p(l.join(""));for(var c=l.split("\n"),m,i=n(c),d;!(d=i()).done;)for(var u=d.value,s=0;s<u.length;s++){var C=u[s];if(C!==" "){(m===void 0||s<m)&&(m=s);break}}return m||(m=0),c.map(function(g){return g.substr(m).trimRight()}).join("\n").trim()}return p}(),o=r.createGlobPattern=function(){function p(l){var c=function(){function i(d){return d.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}return i}(),m=new RegExp("^"+l.split(/\*+/).map(c).join(".*")+"$");return function(i){return m.test(i)}}return p}(),f=r.createSearch=function(){function p(l,c){var m=l.toLowerCase().trim();return function(i){if(!m)return!0;var d=c?c(i):i;return d?d.toLowerCase().includes(m):!1}}return p}(),V=r.capitalize=function(){function p(l){return Array.isArray(l)?l.map(p):l.charAt(0).toUpperCase()+l.slice(1).toLowerCase()}return p}(),k=r.toTitleCase=function(){function p(l){if(Array.isArray(l))return l.map(p);if(typeof l!="string")return l;for(var c=["Id","Tv"],m=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"],i=l.replace(/([^\W_]+[^\s-]*) */g,function(b){return b.charAt(0).toUpperCase()+b.substr(1).toLowerCase()}),d=0,u=m;d<u.length;d++){var s=u[d],C=new RegExp("\\s"+s+"\\s","g");i=i.replace(C,function(b){return b.toLowerCase()})}for(var g=0,v=c;g<v.length;g++){var h=v[g],N=new RegExp("\\b"+h+"\\b","g");i=i.replace(N,function(b){return b.toLowerCase()})}return i}return p}(),S=r.decodeHtmlEntities=function(){function p(l){if(!l)return l;var c=/&(nbsp|amp|quot|lt|gt|apos);/g,m={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">",apos:"'"};return l.replace(/<br>/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(i,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(i,d){var u=parseInt(d,10);return String.fromCharCode(u)}).replace(/&#x?([0-9a-f]+);/gi,function(i,d){var u=parseInt(d,16);return String.fromCharCode(u)})}return p}(),y=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},32742:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -58,7 +58,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,u){return d+u},t=function(d,u){return d-u},o=function(d,u){return d*u},f=function(d,u){return d/u},V=r.vecAdd=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(v,g){return(0,e.zipWith)(a)(v,g)})(u)}return i}(),k=r.vecSubtract=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(v,g){return(0,e.zipWith)(t)(v,g)})(u)}return i}(),S=r.vecMultiply=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(v,g){return(0,e.zipWith)(o)(v,g)})(u)}return i}(),y=r.vecDivide=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(v,g){return(0,e.zipWith)(f)(v,g)})(u)}return i}(),p=r.vecScale=function(){function i(d,u){return(0,e.map)(function(s){return s*u})(d)}return i}(),l=r.vecInverse=function(){function i(d){return(0,e.map)(function(u){return-u})(d)}return i}(),c=r.vecLength=function(){function i(d){return Math.sqrt((0,e.reduce)(a)((0,e.zipWith)(o)(d,d)))}return i}(),m=r.vecNormalize=function(){function i(d){return y(d,c(d))}return i}()},96820:function(I,r){"use strict";r.__esModule=!0,r.resolveAsset=r.assetMiddleware=void 0;/** + */var a=function(d,u){return d+u},t=function(d,u){return d-u},o=function(d,u){return d*u},f=function(d,u){return d/u},V=r.vecAdd=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(C,g){return(0,e.zipWith)(a)(C,g)})(u)}return i}(),k=r.vecSubtract=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(C,g){return(0,e.zipWith)(t)(C,g)})(u)}return i}(),S=r.vecMultiply=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(C,g){return(0,e.zipWith)(o)(C,g)})(u)}return i}(),y=r.vecDivide=function(){function i(){for(var d=arguments.length,u=new Array(d),s=0;s<d;s++)u[s]=arguments[s];return(0,e.reduce)(function(C,g){return(0,e.zipWith)(f)(C,g)})(u)}return i}(),p=r.vecScale=function(){function i(d,u){return(0,e.map)(function(s){return s*u})(d)}return i}(),l=r.vecInverse=function(){function i(d){return(0,e.map)(function(u){return-u})(d)}return i}(),c=r.vecLength=function(){function i(d){return Math.sqrt((0,e.reduce)(a)((0,e.zipWith)(o)(d,d)))}return i}(),m=r.vecNormalize=function(){function i(d){return y(d,c(d))}return i}()},96820:function(I,r){"use strict";r.__esModule=!0,r.resolveAsset=r.assetMiddleware=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -73,11 +73,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var k=(0,f.createLogger)("backend"),S=r.backendUpdate=(0,a.createAction)("backend/update"),y=r.backendSetSharedState=(0,a.createAction)("backend/setSharedState"),p=r.backendSuspendStart=(0,a.createAction)("backend/suspendStart"),l=r.backendSuspendSuccess=function(){function C(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}}return C}(),c={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},m=r.backendReducer=function(){function C(h,N){h===void 0&&(h=c);var b=N.type,B=N.payload;if(b==="backend/update"){var L=Object.assign({},h.config,B.config),w=Object.assign({},h.data,B.static_data,B.data),T=Object.assign({},h.shared);if(B.shared)for(var A=0,x=Object.keys(B.shared);A<x.length;A++){var E=x[A],P=B.shared[E];P===""?T[E]=void 0:T[E]=JSON.parse(P)}return Object.assign({},h,{config:L,data:w,shared:T,suspended:!1})}if(b==="backend/setSharedState"){var R,M=B.key,D=B.nextState;return Object.assign({},h,{shared:Object.assign({},h.shared,(R={},R[M]=D,R))})}if(b==="backend/suspendStart")return Object.assign({},h,{suspending:!0});if(b==="backend/suspendSuccess"){var j=B.timestamp;return Object.assign({},h,{data:{},shared:{},config:Object.assign({},h.config,{title:"",status:1}),suspending:!1,suspended:j})}return h}return C}(),i=r.backendMiddleware=function(){function C(h){var N,b;return function(B){return function(L){var w=u(h.getState()),T=w.suspended,A=L.type,x=L.payload;if(A==="update"){h.dispatch(S(x));return}if(A==="suspend"){h.dispatch(l());return}if(A==="ping"){Byond.sendMessage("ping/reply");return}if(A==="backend/suspendStart"&&!b){k.log("suspending ("+Byond.windowId+")");var E=function(){function M(){return Byond.sendMessage("suspend")}return M}();E(),b=setInterval(E,2e3)}if(A==="backend/suspendSuccess"&&((0,V.suspendRenderer)(),clearInterval(b),b=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,o.focusMap)()})),A==="backend/update"){var P,R=(P=x.config)==null||(P=P.window)==null?void 0:P.fancy;N===void 0?N=R:N!==R&&(k.log("changing fancy mode to",R),N=R,Byond.winset(Byond.windowId,{titlebar:!R,"can-resize":!R}))}return A==="backend/update"&&T&&(k.log("backend/update",x),(0,V.resumeRenderer)(),(0,t.setupDrag)(),setImmediate(function(){e.perf.mark("resume/start");var M=u(h.getState()),D=M.suspended;D||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.perf.mark("resume/finish"))})),B(L)}}}return C}(),d=r.sendAct=function(){function C(h,N){N===void 0&&(N={});var b=typeof N=="object"&&N!==null&&!Array.isArray(N);if(!b){k.error("Payload for act() must be an object, got this:",N);return}Byond.sendMessage("act/"+h,N)}return C}(),u=r.selectBackend=function(){function C(h){return h.backend||{}}return C}(),s=r.useBackend=function(){function C(h){var N=h.store,b=u(N.getState());return Object.assign({},b,{act:d})}return C}(),v=r.useLocalState=function(){function C(h,N,b){var B,L=h.store,w=u(L.getState()),T=(B=w.shared)!=null?B:{},A=N in T?T[N]:b;return[A,function(x){L.dispatch(y({key:N,nextState:typeof x=="function"?x(A):x}))}]}return C}(),g=r.useSharedState=function(){function C(h,N,b){var B,L=h.store,w=u(L.getState()),T=(B=w.shared)!=null?B:{},A=N in T?T[N]:b;return[A,function(x){Byond.sendMessage({type:"setSharedState",key:N,value:JSON.stringify(typeof x=="function"?x(A):x)||""})}]}return C}()},15281:function(I,r,n){"use strict";r.__esModule=!0,r.AnimatedNumber=void 0;var e=n(58331),a=n(28823);function t(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,o(y,p)}function o(y,p){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),o(y,p)}/** + */var k=(0,f.createLogger)("backend"),S=r.backendUpdate=(0,a.createAction)("backend/update"),y=r.backendSetSharedState=(0,a.createAction)("backend/setSharedState"),p=r.backendSuspendStart=(0,a.createAction)("backend/suspendStart"),l=r.backendSuspendSuccess=function(){function v(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}}return v}(),c={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},m=r.backendReducer=function(){function v(h,N){h===void 0&&(h=c);var b=N.type,B=N.payload;if(b==="backend/update"){var L=Object.assign({},h.config,B.config),w=Object.assign({},h.data,B.static_data,B.data),T=Object.assign({},h.shared);if(B.shared)for(var A=0,x=Object.keys(B.shared);A<x.length;A++){var E=x[A],P=B.shared[E];P===""?T[E]=void 0:T[E]=JSON.parse(P)}return Object.assign({},h,{config:L,data:w,shared:T,suspended:!1})}if(b==="backend/setSharedState"){var R,M=B.key,D=B.nextState;return Object.assign({},h,{shared:Object.assign({},h.shared,(R={},R[M]=D,R))})}if(b==="backend/suspendStart")return Object.assign({},h,{suspending:!0});if(b==="backend/suspendSuccess"){var j=B.timestamp;return Object.assign({},h,{data:{},shared:{},config:Object.assign({},h.config,{title:"",status:1}),suspending:!1,suspended:j})}return h}return v}(),i=r.backendMiddleware=function(){function v(h){var N,b;return function(B){return function(L){var w=u(h.getState()),T=w.suspended,A=L.type,x=L.payload;if(A==="update"){h.dispatch(S(x));return}if(A==="suspend"){h.dispatch(l());return}if(A==="ping"){Byond.sendMessage("ping/reply");return}if(A==="backend/suspendStart"&&!b){k.log("suspending ("+Byond.windowId+")");var E=function(){function M(){return Byond.sendMessage("suspend")}return M}();E(),b=setInterval(E,2e3)}if(A==="backend/suspendSuccess"&&((0,V.suspendRenderer)(),clearInterval(b),b=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,o.focusMap)()})),A==="backend/update"){var P,R=(P=x.config)==null||(P=P.window)==null?void 0:P.fancy;N===void 0?N=R:N!==R&&(k.log("changing fancy mode to",R),N=R,Byond.winset(Byond.windowId,{titlebar:!R,"can-resize":!R}))}return A==="backend/update"&&T&&(k.log("backend/update",x),(0,V.resumeRenderer)(),(0,t.setupDrag)(),setImmediate(function(){e.perf.mark("resume/start");var M=u(h.getState()),D=M.suspended;D||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.perf.mark("resume/finish"))})),B(L)}}}return v}(),d=r.sendAct=function(){function v(h,N){N===void 0&&(N={});var b=typeof N=="object"&&N!==null&&!Array.isArray(N);if(!b){k.error("Payload for act() must be an object, got this:",N);return}Byond.sendMessage("act/"+h,N)}return v}(),u=r.selectBackend=function(){function v(h){return h.backend||{}}return v}(),s=r.useBackend=function(){function v(h){var N=h.store,b=u(N.getState());return Object.assign({},b,{act:d})}return v}(),C=r.useLocalState=function(){function v(h,N,b){var B,L=h.store,w=u(L.getState()),T=(B=w.shared)!=null?B:{},A=N in T?T[N]:b;return[A,function(x){L.dispatch(y({key:N,nextState:typeof x=="function"?x(A):x}))}]}return v}(),g=r.useSharedState=function(){function v(h,N,b){var B,L=h.store,w=u(L.getState()),T=(B=w.shared)!=null?B:{},A=N in T?T[N]:b;return[A,function(x){Byond.sendMessage({type:"setSharedState",key:N,value:JSON.stringify(typeof x=="function"?x(A):x)||""})}]}return v}()},15281:function(I,r,n){"use strict";r.__esModule=!0,r.AnimatedNumber=void 0;var e=n(58331),a=n(28823);function t(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,o(y,p)}function o(y,p){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),o(y,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var f=20,V=.5,k=function(p){return typeof p=="number"&&Number.isFinite(p)&&!Number.isNaN(p)},S=r.AnimatedNumber=function(y){t(p,y);function p(c){var m;return m=y.call(this,c)||this,m.timer=null,m.state={value:0},k(c.initial)?m.state.value=c.initial:k(c.value)&&(m.state.value=Number(c.value)),m}var l=p.prototype;return l.tick=function(){function c(){var m=this.props,i=this.state,d=Number(i.value),u=Number(m.value);if(k(u)){var s=d*V+u*(1-V);this.setState({value:s})}}return c}(),l.componentDidMount=function(){function c(){var m=this;this.timer=setInterval(function(){return m.tick()},1e3/f)}return c}(),l.componentWillUnmount=function(){function c(){clearTimeout(this.timer)}return c}(),l.render=function(){function c(){var m=this.props,i=this.state,d=m.format,u=m.children,s=i.value,v=m.value;if(!k(v))return v||null;var g=s;if(d)g=d(s);else{var C=String(v).split(".")[1],h=C?C.length:0;g=(0,e.toFixed)(s,(0,e.clamp)(h,0,8))}return typeof u=="function"?u(g,s):g}return c}(),p}(a.Component)},81789:function(I,r,n){"use strict";r.__esModule=!0,r.Autofocus=void 0;var e=n(28823);function a(f,V){f.prototype=Object.create(V.prototype),f.prototype.constructor=f,t(f,V)}function t(f,V){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(S,y){return S.__proto__=y,S}return k}(),t(f,V)}var o=r.Autofocus=function(f){a(V,f);function V(){for(var S,y=arguments.length,p=new Array(y),l=0;l<y;l++)p[l]=arguments[l];return S=f.call.apply(f,[this].concat(p))||this,S.ref=(0,e.createRef)(),S}var k=V.prototype;return k.componentDidMount=function(){function S(){var y=this;setTimeout(function(){var p;(p=y.ref.current)==null||p.focus()},1)}return S}(),k.render=function(){function S(){return(0,e.createVNode)(1,"div",null,this.props.children,0,{tabIndex:-1},null,this.ref)}return S}(),V}(e.Component)},11316:function(I,r,n){"use strict";r.__esModule=!0,r.Blink=void 0;var e=n(28823);function a(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,t(k,S)}function t(k,S){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function y(p,l){return p.__proto__=l,p}return y}(),t(k,S)}var o=1e3,f=1e3,V=r.Blink=function(k){a(S,k);function S(){var p;return p=k.call(this)||this,p.state={hidden:!1},p}var y=S.prototype;return y.createTimer=function(){function p(){var l=this,c=this.props,m=c.interval,i=m===void 0?o:m,d=c.time,u=d===void 0?f:d;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval(function(){l.setState({hidden:!0}),l.timer=setTimeout(function(){l.setState({hidden:!1})},u)},i+u)}return p}(),y.componentDidMount=function(){function p(){this.createTimer()}return p}(),y.componentDidUpdate=function(){function p(l){(l.interval!==this.props.interval||l.time!==this.props.time)&&this.createTimer()}return p}(),y.componentWillUnmount=function(){function p(){clearInterval(this.interval),clearTimeout(this.timer)}return p}(),y.render=function(){function p(l){return(0,e.createVNode)(1,"span",null,l.children,0,{style:{visibility:this.state.hidden?"hidden":"visible"}})}return p}(),S}(e.Component)},26558:function(I,r,n){"use strict";r.__esModule=!0,r.BlockQuote=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className"];/** +*/var f=20,V=.5,k=function(p){return typeof p=="number"&&Number.isFinite(p)&&!Number.isNaN(p)},S=r.AnimatedNumber=function(y){t(p,y);function p(c){var m;return m=y.call(this,c)||this,m.timer=null,m.state={value:0},k(c.initial)?m.state.value=c.initial:k(c.value)&&(m.state.value=Number(c.value)),m}var l=p.prototype;return l.tick=function(){function c(){var m=this.props,i=this.state,d=Number(i.value),u=Number(m.value);if(k(u)){var s=d*V+u*(1-V);this.setState({value:s})}}return c}(),l.componentDidMount=function(){function c(){var m=this;this.timer=setInterval(function(){return m.tick()},1e3/f)}return c}(),l.componentWillUnmount=function(){function c(){clearTimeout(this.timer)}return c}(),l.render=function(){function c(){var m=this.props,i=this.state,d=m.format,u=m.children,s=i.value,C=m.value;if(!k(C))return C||null;var g=s;if(d)g=d(s);else{var v=String(C).split(".")[1],h=v?v.length:0;g=(0,e.toFixed)(s,(0,e.clamp)(h,0,8))}return typeof u=="function"?u(g,s):g}return c}(),p}(a.Component)},81789:function(I,r,n){"use strict";r.__esModule=!0,r.Autofocus=void 0;var e=n(28823);function a(f,V){f.prototype=Object.create(V.prototype),f.prototype.constructor=f,t(f,V)}function t(f,V){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(S,y){return S.__proto__=y,S}return k}(),t(f,V)}var o=r.Autofocus=function(f){a(V,f);function V(){for(var S,y=arguments.length,p=new Array(y),l=0;l<y;l++)p[l]=arguments[l];return S=f.call.apply(f,[this].concat(p))||this,S.ref=(0,e.createRef)(),S}var k=V.prototype;return k.componentDidMount=function(){function S(){var y=this;setTimeout(function(){var p;(p=y.ref.current)==null||p.focus()},1)}return S}(),k.render=function(){function S(){return(0,e.createVNode)(1,"div",null,this.props.children,0,{tabIndex:-1},null,this.ref)}return S}(),V}(e.Component)},11316:function(I,r,n){"use strict";r.__esModule=!0,r.Blink=void 0;var e=n(28823);function a(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,t(k,S)}function t(k,S){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function y(p,l){return p.__proto__=l,p}return y}(),t(k,S)}var o=1e3,f=1e3,V=r.Blink=function(k){a(S,k);function S(){var p;return p=k.call(this)||this,p.state={hidden:!1},p}var y=S.prototype;return y.createTimer=function(){function p(){var l=this,c=this.props,m=c.interval,i=m===void 0?o:m,d=c.time,u=d===void 0?f:d;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval(function(){l.setState({hidden:!0}),l.timer=setTimeout(function(){l.setState({hidden:!1})},u)},i+u)}return p}(),y.componentDidMount=function(){function p(){this.createTimer()}return p}(),y.componentDidUpdate=function(){function p(l){(l.interval!==this.props.interval||l.time!==this.props.time)&&this.createTimer()}return p}(),y.componentWillUnmount=function(){function p(){clearInterval(this.interval),clearTimeout(this.timer)}return p}(),y.render=function(){function p(l){return(0,e.createVNode)(1,"span",null,l.children,0,{style:{visibility:this.state.hidden?"hidden":"visible"}})}return p}(),S}(e.Component)},26558:function(I,r,n){"use strict";r.__esModule=!0,r.BlockQuote=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -85,23 +85,23 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(C,h){if(C==null)return{};var N={},b=Object.keys(C),B,L;for(L=0;L<b.length;L++)B=b[L],!(h.indexOf(B)>=0)&&(N[B]=C[B]);return N}var k=r.unit=function(){function C(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return C}(),S=r.halfUnit=function(){function C(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return C}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[h]=b)}},c=function(h,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=N(B))}},m=function(h,N){return function(b,B){B&&(b[h]=N)}},i=function(h,N,b){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var w=0;w<b.length;w++)B[h+"-"+b[w]]=N(L)}},d=function(h){return function(N,b){y(b)&&(N[h]=b)}},u={position:l("position"),overflow:l("overflow"),overflowX:l("overflow-x"),overflowY:l("overflow-y"),top:c("top",k),bottom:c("bottom",k),left:c("left",k),right:c("right",k),width:c("width",k),minWidth:c("min-width",k),maxWidth:c("max-width",k),height:c("height",k),minHeight:c("min-height",k),maxHeight:c("max-height",k),fontSize:c("font-size",k),fontFamily:l("font-family"),lineHeight:function(){function C(h,N){typeof N=="number"?h["line-height"]=N:typeof N=="string"&&(h["line-height"]=k(N))}return C}(),opacity:l("opacity"),textAlign:l("text-align"),verticalAlign:l("vertical-align"),inline:m("display","inline-block"),bold:m("font-weight","bold"),italic:m("font-style","italic"),nowrap:m("white-space","nowrap"),preserveWhitespace:m("white-space","pre-wrap"),m:i("margin",S,["top","bottom","left","right"]),mx:i("margin",S,["left","right"]),my:i("margin",S,["top","bottom"]),mt:c("margin-top",S),mb:c("margin-bottom",S),ml:c("margin-left",S),mr:c("margin-right",S),p:i("padding",S,["top","bottom","left","right"]),px:i("padding",S,["left","right"]),py:i("padding",S,["top","bottom"]),pt:c("padding-top",S),pb:c("padding-bottom",S),pl:c("padding-left",S),pr:c("padding-right",S),color:d("color"),textColor:d("color"),backgroundColor:d("background-color"),fillPositionedParent:function(){function C(h,N){N&&(h.position="absolute",h.top=0,h.bottom=0,h.left=0,h.right=0)}return C}()},s=r.computeBoxProps=function(){function C(h){for(var N={},b={},B=0,L=Object.keys(h);B<L.length;B++){var w=L[B];if(w!=="style"){if(Byond.IS_LTE_IE8&&w==="onClick"){N.onclick=h[w];continue}var T=h[w],A=u[w];A?A(b,T):N[w]=T}}for(var x="",E=0,P=Object.keys(b);E<P.length;E++){var R=P[E],M=b[R];x+=R+":"+M+";"}if(h.style)for(var D=0,j=Object.keys(h.style);D<j.length;D++){var F=j[D],W=h.style[F];x+=F+":"+W+";"}return x.length>0&&(N.style=x),N}return C}(),v=r.computeBoxClassName=function(){function C(h){var N=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(N)&&"color-"+N,p(b)&&"color-bg-"+b])}return C}(),g=r.Box=function(){function C(h){var N=h.as,b=N===void 0?"div":N,B=h.className,L=h.children,w=V(h,f);if(typeof L=="function")return L(s(h));var T=typeof B=="string"?B+" "+v(w):v(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,L,t.ChildFlags.UnknownChildren,A)}return C}();g.defaultHooks=e.pureComponentHooks},16699:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),f=n(93843),V=n(69433),k=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function V(v,h){if(v==null)return{};var N={},b=Object.keys(v),B,L;for(L=0;L<b.length;L++)B=b[L],!(h.indexOf(B)>=0)&&(N[B]=v[B]);return N}var k=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return v}(),S=r.halfUnit=function(){function v(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return v}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[h]=b)}},c=function(h,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=N(B))}},m=function(h,N){return function(b,B){B&&(b[h]=N)}},i=function(h,N,b){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var w=0;w<b.length;w++)B[h+"-"+b[w]]=N(L)}},d=function(h){return function(N,b){y(b)&&(N[h]=b)}},u={position:l("position"),overflow:l("overflow"),overflowX:l("overflow-x"),overflowY:l("overflow-y"),top:c("top",k),bottom:c("bottom",k),left:c("left",k),right:c("right",k),width:c("width",k),minWidth:c("min-width",k),maxWidth:c("max-width",k),height:c("height",k),minHeight:c("min-height",k),maxHeight:c("max-height",k),fontSize:c("font-size",k),fontFamily:l("font-family"),lineHeight:function(){function v(h,N){typeof N=="number"?h["line-height"]=N:typeof N=="string"&&(h["line-height"]=k(N))}return v}(),opacity:l("opacity"),textAlign:l("text-align"),verticalAlign:l("vertical-align"),inline:m("display","inline-block"),bold:m("font-weight","bold"),italic:m("font-style","italic"),nowrap:m("white-space","nowrap"),preserveWhitespace:m("white-space","pre-wrap"),m:i("margin",S,["top","bottom","left","right"]),mx:i("margin",S,["left","right"]),my:i("margin",S,["top","bottom"]),mt:c("margin-top",S),mb:c("margin-bottom",S),ml:c("margin-left",S),mr:c("margin-right",S),p:i("padding",S,["top","bottom","left","right"]),px:i("padding",S,["left","right"]),py:i("padding",S,["top","bottom"]),pt:c("padding-top",S),pb:c("padding-bottom",S),pl:c("padding-left",S),pr:c("padding-right",S),color:d("color"),textColor:d("color"),backgroundColor:d("background-color"),fillPositionedParent:function(){function v(h,N){N&&(h.position="absolute",h.top=0,h.bottom=0,h.left=0,h.right=0)}return v}()},s=r.computeBoxProps=function(){function v(h){for(var N={},b={},B=0,L=Object.keys(h);B<L.length;B++){var w=L[B];if(w!=="style"){if(Byond.IS_LTE_IE8&&w==="onClick"){N.onclick=h[w];continue}var T=h[w],A=u[w];A?A(b,T):N[w]=T}}for(var x="",E=0,P=Object.keys(b);E<P.length;E++){var R=P[E],M=b[R];x+=R+":"+M+";"}if(h.style)for(var D=0,j=Object.keys(h.style);D<j.length;D++){var F=j[D],W=h.style[F];x+=F+":"+W+";"}return x.length>0&&(N.style=x),N}return v}(),C=r.computeBoxClassName=function(){function v(h){var N=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(N)&&"color-"+N,p(b)&&"color-bg-"+b])}return v}(),g=r.Box=function(){function v(h){var N=h.as,b=N===void 0?"div":N,B=h.className,L=h.children,w=V(h,f);if(typeof L=="function")return L(s(h));var T=typeof B=="string"?B+" "+C(w):C(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,L,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),f=n(93843),V=n(69433),k=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */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(){function N(b,B){return b.__proto__=B,b}return N}(),m(C,h)}function i(C,h){if(C==null)return{};var N={},b=Object.keys(C),B,L;for(L=0;L<b.length;L++)B=b[L],!(h.indexOf(B)>=0)&&(N[B]=C[B]);return N}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function C(h){var N=h.className,b=h.fluid,B=h.icon,L=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,P=h.tooltip,R=h.tooltipPosition,M=h.ellipsis,D=h.compact,j=h.circular,F=h.content,W=h.iconColor,K=h.iconRight,_=h.iconStyle,$=h.children,z=h.onclick,Y=h.onClick,Z=h.multiLine,ie=i(h,S),ae=!!(F||$);z&&d.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(he){!x&&Y&&Y(he)},Byond.IS_LTE_IE8&&(ie.unselectable=!0);var se=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ae&&"Button--hasContent",M&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",Z&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function he(ye){var Le=window.event?ye.which:ye.keyCode;if(Le===t.KEY_SPACE||Le===t.KEY_ENTER){ye.preventDefault(),!x&&Y&&Y(ye);return}if(Le===t.KEY_ESCAPE){ye.preventDefault();return}}return he}()},ie,{children:[B&&!K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:_}),F,$,B&&K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:_})]})));return P&&(se=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:se})),se}return C}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function C(h){var N=h.checked,b=i(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},b)))}return C}();u.Checkbox=s;var v=r.ButtonConfirm=function(C){c(h,C);function h(){var b;return b=C.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var N=h.prototype;return N.setClickedOnce=function(){function b(B){var L=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",L.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),N.render=function(){function b(){var B=this,L=this.props,w=L.confirmContent,T=w===void 0?"Confirm?":w,A=L.confirmColor,x=A===void 0?"bad":A,E=L.confirmIcon,P=L.icon,R=L.color,M=L.content,D=L.onClick,j=i(L,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:R,onClick:function(){function F(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return F}()},j)))}return b}(),h}(e.Component);u.Confirm=v;var g=r.ButtonInput=function(C){c(h,C);function h(){var b;return b=C.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var N=h.prototype;return N.setInInput=function(){function b(B){var L=this.props.disabled;if(!L&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var L=this.inputRef.current,w=L.value!=="";if(w){this.props.onCommit(B,L.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),N.render=function(){function b(){var B=this,L=this.props,w=L.fluid,T=L.content,A=L.icon,x=L.iconRotation,E=L.iconSpin,P=L.tooltip,R=L.tooltipPosition,M=L.color,D=M===void 0?"default":M,j=L.disabled,F=L.placeholder,W=L.maxLength,K=L.multiLine,_=i(L,l),$=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+D,K+"Button--multiLine"])},_,{onClick:function(){function z(){return B.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,V.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,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){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return z}(),onKeyDown:function(){function z(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&($=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:$})),$}return b}(),h}(e.Component);u.Input=g},75614:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),f=n(93843),V=["params"],k=["params"],S=["parent","params"];function y(v,g){if(v==null)return{};var C={},h=Object.keys(v),N,b;for(b=0;b<h.length;b++)N=h[b],!(g.indexOf(N)>=0)&&(C[N]=v[N]);return C}function p(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,l(v,g)}function l(v,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(h,N){return h.__proto__=N,h}return C}(),l(v,g)}/** + */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,m(v,h)}function m(v,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(b,B){return b.__proto__=B,b}return N}(),m(v,h)}function i(v,h){if(v==null)return{};var N={},b=Object.keys(v),B,L;for(L=0;L<b.length;L++)B=b[L],!(h.indexOf(B)>=0)&&(N[B]=v[B]);return N}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function v(h){var N=h.className,b=h.fluid,B=h.icon,L=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,P=h.tooltip,R=h.tooltipPosition,M=h.ellipsis,D=h.compact,j=h.circular,F=h.content,W=h.iconColor,K=h.iconRight,_=h.iconStyle,$=h.children,z=h.onclick,Y=h.onClick,Z=h.multiLine,ie=i(h,S),ae=!!(F||$);z&&d.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(he){!x&&Y&&Y(he)},Byond.IS_LTE_IE8&&(ie.unselectable=!0);var se=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ae&&"Button--hasContent",M&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",Z&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function he(ye){var Le=window.event?ye.which:ye.keyCode;if(Le===t.KEY_SPACE||Le===t.KEY_ENTER){ye.preventDefault(),!x&&Y&&Y(ye);return}if(Le===t.KEY_ESCAPE){ye.preventDefault();return}}return he}()},ie,{children:[B&&!K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:_}),F,$,B&&K&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:_})]})));return P&&(se=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:se})),se}return v}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(h){var N=h.checked,b=i(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},b)))}return v}();u.Checkbox=s;var C=r.ButtonConfirm=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var N=h.prototype;return N.setClickedOnce=function(){function b(B){var L=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",L.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),N.render=function(){function b(){var B=this,L=this.props,w=L.confirmContent,T=w===void 0?"Confirm?":w,A=L.confirmColor,x=A===void 0?"bad":A,E=L.confirmIcon,P=L.icon,R=L.color,M=L.content,D=L.onClick,j=i(L,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:R,onClick:function(){function F(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return F}()},j)))}return b}(),h}(e.Component);u.Confirm=C;var g=r.ButtonInput=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var N=h.prototype;return N.setInInput=function(){function b(B){var L=this.props.disabled;if(!L&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var L=this.inputRef.current,w=L.value!=="";if(w){this.props.onCommit(B,L.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),N.render=function(){function b(){var B=this,L=this.props,w=L.fluid,T=L.content,A=L.icon,x=L.iconRotation,E=L.iconSpin,P=L.tooltip,R=L.tooltipPosition,M=L.color,D=M===void 0?"default":M,j=L.disabled,F=L.placeholder,W=L.maxLength,K=L.multiLine,_=i(L,l),$=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+D,K+"Button--multiLine"])},_,{onClick:function(){function z(){return B.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,V.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,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){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return z}(),onKeyDown:function(){function z(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&($=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:$})),$}return b}(),h}(e.Component);u.Input=g},75614:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),f=n(93843),V=["params"],k=["params"],S=["parent","params"];function y(C,g){if(C==null)return{};var v={},h=Object.keys(C),N,b;for(b=0;b<h.length;b++)N=h[b],!(g.indexOf(N)>=0)&&(v[N]=C[N]);return v}function p(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,l(C,g)}function l(C,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(h,N){return h.__proto__=N,h}return v}(),l(C,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],i=function(g){var C=m.length;m.push(null);var h=g||"byondui_"+C;return c.log("allocated '"+h+"'"),{render:function(){function N(b){c.log("rendering '"+h+"'"),m[C]=h,Byond.winset(h,b)}return N}(),unmount:function(){function N(){c.log("unmounting '"+h+"'"),m[C]=null,Byond.winset(h,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var v=0;v<m.length;v++){var g=m[v];typeof g=="string"&&(c.log("unmounting '"+g+"' (beforeunload)"),m[v]=null,Byond.winset(g,{parent:""}))}});var d=function(g){var C=g.getBoundingClientRect();return{pos:[C.left,C.top],size:[C.right-C.left,C.bottom-C.top]}},u=r.ByondUi=function(v){p(g,v);function g(h){var N,b;return b=v.call(this,h)||this,b.containerRef=(0,e.createRef)(),b.byondUiElement=i((N=h.params)==null?void 0:N.id),b.handleResize=(0,t.debounce)(function(){b.forceUpdate()},100),b}var C=g.prototype;return C.shouldComponentUpdate=function(){function h(N){var b=this.props,B=b.params,L=B===void 0?{}:B,w=y(b,V),T=N.params,A=T===void 0?{}:T,x=y(N,k);return(0,a.shallowDiffers)(L,A)||(0,a.shallowDiffers)(w,x)}return h}(),C.componentDidMount=function(){function h(){Byond.IS_LTE_IE10||(window.addEventListener("resize",this.handleResize),this.componentDidUpdate(),this.handleResize())}return h}(),C.componentDidUpdate=function(){function h(){if(!Byond.IS_LTE_IE10){var N=this.props.params,b=N===void 0?{}:N,B=d(this.containerRef.current);c.debug("bounding box",B),this.byondUiElement.render(Object.assign({parent:Byond.windowId},b,{pos:B.pos[0]+","+B.pos[1],size:B.size[0]+"x"+B.size[1]}))}}return h}(),C.componentWillUnmount=function(){function h(){Byond.IS_LTE_IE10||(window.removeEventListener("resize",this.handleResize),this.byondUiElement.unmount())}return h}(),C.render=function(){function h(){var N=this.props,b=N.parent,B=N.params,L=y(N,S),w=(0,f.computeBoxProps)(L);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(1,"div",null,null,1,{style:{"min-height":"22px"}}),0,Object.assign({},w),null,this.containerRef))}return h}(),g}(e.Component),s=function(){return(0,e.createVNode)(1,"div",null,null,1,{style:{"min-height":"22px"}})}},2909:function(I,r,n){"use strict";r.__esModule=!0,r.Chart=void 0;var e=n(28823),a=n(72026),t=n(66586),o=n(93843),f=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"];function V(i,d){if(i==null)return{};var u={},s=Object.keys(i),v,g;for(g=0;g<s.length;g++)v=s[g],!(d.indexOf(v)>=0)&&(u[v]=i[v]);return u}function k(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,S(i,d)}function S(i,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,v){return s.__proto__=v,s}return u}(),S(i,d)}/** +*/var c=(0,o.createLogger)("ByondUi"),m=[],i=function(g){var v=m.length;m.push(null);var h=g||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function N(b){c.log("rendering '"+h+"'"),m[v]=h,Byond.winset(h,b)}return N}(),unmount:function(){function N(){c.log("unmounting '"+h+"'"),m[v]=null,Byond.winset(h,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var C=0;C<m.length;C++){var g=m[C];typeof g=="string"&&(c.log("unmounting '"+g+"' (beforeunload)"),m[C]=null,Byond.winset(g,{parent:""}))}});var d=function(g){var v=g.getBoundingClientRect();return{pos:[v.left,v.top],size:[v.right-v.left,v.bottom-v.top]}},u=r.ByondUi=function(C){p(g,C);function g(h){var N,b;return b=C.call(this,h)||this,b.containerRef=(0,e.createRef)(),b.byondUiElement=i((N=h.params)==null?void 0:N.id),b.handleResize=(0,t.debounce)(function(){b.forceUpdate()},100),b}var v=g.prototype;return v.shouldComponentUpdate=function(){function h(N){var b=this.props,B=b.params,L=B===void 0?{}:B,w=y(b,V),T=N.params,A=T===void 0?{}:T,x=y(N,k);return(0,a.shallowDiffers)(L,A)||(0,a.shallowDiffers)(w,x)}return h}(),v.componentDidMount=function(){function h(){Byond.IS_LTE_IE10||(window.addEventListener("resize",this.handleResize),this.componentDidUpdate(),this.handleResize())}return h}(),v.componentDidUpdate=function(){function h(){if(!Byond.IS_LTE_IE10){var N=this.props.params,b=N===void 0?{}:N,B=d(this.containerRef.current);c.debug("bounding box",B),this.byondUiElement.render(Object.assign({parent:Byond.windowId},b,{pos:B.pos[0]+","+B.pos[1],size:B.size[0]+"x"+B.size[1]}))}}return h}(),v.componentWillUnmount=function(){function h(){Byond.IS_LTE_IE10||(window.removeEventListener("resize",this.handleResize),this.byondUiElement.unmount())}return h}(),v.render=function(){function h(){var N=this.props,b=N.parent,B=N.params,L=y(N,S),w=(0,f.computeBoxProps)(L);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(1,"div",null,null,1,{style:{"min-height":"22px"}}),0,Object.assign({},w),null,this.containerRef))}return h}(),g}(e.Component),s=function(){return(0,e.createVNode)(1,"div",null,null,1,{style:{"min-height":"22px"}})}},2909:function(I,r,n){"use strict";r.__esModule=!0,r.Chart=void 0;var e=n(28823),a=n(72026),t=n(66586),o=n(93843),f=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"];function V(i,d){if(i==null)return{};var u={},s=Object.keys(i),C,g;for(g=0;g<s.length;g++)C=s[g],!(d.indexOf(C)>=0)&&(u[C]=i[C]);return u}function k(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,S(i,d)}function S(i,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,C){return s.__proto__=C,s}return u}(),S(i,d)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=function(d,u,s,v){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),C=(0,a.zipWith)(Math.max).apply(void 0,d);s!==void 0&&(g[0]=s[0],C[0]=s[1]),v!==void 0&&(g[1]=v[0],C[1]=v[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,L,w){return(b-B)/(L-B)*w})(N,g,C,u)})(d);return h},p=function(d){for(var u="",s=0;s<d.length;s++){var v=d[s];u+=v[0]+","+v[1]+" "}return u},l=function(i){k(d,i);function d(s){var v;return v=i.call(this,s)||this,v.ref=(0,e.createRef)(),v.state={viewBox:[600,200]},v.handleResize=function(){var g=v.ref.current;v.setState({viewBox:[g.offsetWidth,g.offsetHeight]})},v}var u=d.prototype;return u.componentDidMount=function(){function s(){window.addEventListener("resize",this.handleResize),this.handleResize()}return s}(),u.componentWillUnmount=function(){function s(){window.removeEventListener("resize",this.handleResize)}return s}(),u.render=function(){function s(){var v=this,g=this.props,C=g.data,h=C===void 0?[]:C,N=g.rangeX,b=g.rangeY,B=g.fillColor,L=B===void 0?"none":B,w=g.strokeColor,T=w===void 0?"#ffffff":w,A=g.strokeWidth,x=A===void 0?2:A,E=V(g,f),P=this.state.viewBox,R=y(h,P,N,b);if(R.length>0){var M=R[0],D=R[R.length-1];R.push([P[0]+x,D[1]]),R.push([P[0]+x,-x]),R.push([-x,-x]),R.push([-x,M[1]])}var j=p(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(W){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:L,stroke:T,"stroke-width":x,points:j}),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({},W),null,v.ref))}return F}()})))}return s}(),d}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:Byond.IS_LTE_IE8?c:l}},52760:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function f(y,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i<c.length;i++)m=c[i],!(p.indexOf(m)>=0)&&(l[m]=y[m]);return l}function V(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),k(y,p)}/** +*/var y=function(d,u,s,C){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);s!==void 0&&(g[0]=s[0],v[0]=s[1]),C!==void 0&&(g[1]=C[0],v[1]=C[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,L,w){return(b-B)/(L-B)*w})(N,g,v,u)})(d);return h},p=function(d){for(var u="",s=0;s<d.length;s++){var C=d[s];u+=C[0]+","+C[1]+" "}return u},l=function(i){k(d,i);function d(s){var C;return C=i.call(this,s)||this,C.ref=(0,e.createRef)(),C.state={viewBox:[600,200]},C.handleResize=function(){var g=C.ref.current;C.setState({viewBox:[g.offsetWidth,g.offsetHeight]})},C}var u=d.prototype;return u.componentDidMount=function(){function s(){window.addEventListener("resize",this.handleResize),this.handleResize()}return s}(),u.componentWillUnmount=function(){function s(){window.removeEventListener("resize",this.handleResize)}return s}(),u.render=function(){function s(){var C=this,g=this.props,v=g.data,h=v===void 0?[]:v,N=g.rangeX,b=g.rangeY,B=g.fillColor,L=B===void 0?"none":B,w=g.strokeColor,T=w===void 0?"#ffffff":w,A=g.strokeWidth,x=A===void 0?2:A,E=V(g,f),P=this.state.viewBox,R=y(h,P,N,b);if(R.length>0){var M=R[0],D=R[R.length-1];R.push([P[0]+x,D[1]]),R.push([P[0]+x,-x]),R.push([-x,-x]),R.push([-x,M[1]])}var j=p(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(W){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:L,stroke:T,"stroke-width":x,points:j}),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({},W),null,C.ref))}return F}()})))}return s}(),d}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:Byond.IS_LTE_IE8?c:l}},52760:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function f(y,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i<c.length;i++)m=c[i],!(p.indexOf(m)>=0)&&(l[m]=y[m]);return l}function V(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),k(y,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(y){V(p,y);function p(c){var m;m=y.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}var l=p.prototype;return l.render=function(){function c(){var m=this,i=this.props,d=this.state.open,u=i.children,s=i.color,v=s===void 0?"default":s,g=i.title,C=i.buttons,h=f(i,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:d?"chevron-down":"chevron-right",onClick:function(){function N(){return m.setState({open:!d})}return N}()},h,{children:g}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:u})]})}return c}(),p}(e.Component)},25762:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** +*/var S=r.Collapsible=function(y){V(p,y);function p(c){var m;m=y.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}var l=p.prototype;return l.render=function(){function c(){var m=this,i=this.props,d=this.state.open,u=i.children,s=i.color,C=s===void 0?"default":s,g=i.title,v=i.buttons,h=f(i,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function N(){return m.setState({open:!d})}return N}()},h,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:u})]})}return c}(),p}(e.Component)},25762:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -113,11 +113,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function f(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,V(p,l)}function V(p,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),V(p,l)}var k=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},y=r.DraggableControl=function(p){f(l,p);function l(m){var i;return i=p.call(this,m)||this,i.inputRef=(0,e.createRef)(),i.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var d=i.props.suppressFlicker;d>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},d))},i.handleDragStart=function(d){var u=i.props,s=u.value,v=u.dragMatrix,g=u.disabled,C=i.state.editing;C||g||(document.body.style["pointer-events"]="none",i.ref=d.currentTarget,i.setState({originalValue:s,dragging:!1,value:s,origin:S(d,v)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var h=i.state,N=h.dragging,b=h.value,B=i.props.onDrag;N&&B&&B(d,b)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var u,s=i.props,v=s.minValue,g=s.maxValue,C=s.step,h=s.dragMatrix,N=s.disabled;if(!N){var b=i.ref.offsetWidth/((g-v)/C),B=(u=i.props.stepPixelSize)!=null?u:b;typeof B=="function"&&(B=B(b)),i.setState(function(L){var w=Object.assign({},L),T=L.origin,A=S(d,h)-T;if(L.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/C)*C+x*C,v,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(d){var u=i.props,s=u.onChange,v=u.onDrag,g=i.state,C=g.dragging,h=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),C)i.suppressFlicker(),s&&s(d,h),v&&v(d,h);else if(i.inputRef){var N=i.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(b){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,v=d.value,g=d.suppressingFlicker,C=this.props,h=C.animated,N=C.value,b=C.unit,B=C.minValue,L=C.maxValue,w=C.format,T=C.onChange,A=C.onDrag,x=C.children,E=C.height,P=C.lineHeight,R=C.fontSize,M=C.disabled,D=N;(u||g)&&(D=v);var j=function(){function K(_){return _+(b?" "+b:"")}return K}(),F=h&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||M?"none":void 0,height:E,"line-height":P,"font-size":R},onBlur:function(){function K(_){if(s){var $=(0,a.clamp)(parseFloat(_.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(_,$),A&&A(_,$)}}return K}(),onKeyDown:function(){function K(_){if(_.keyCode===13){var $=(0,a.clamp)(parseFloat(_.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(_,$),A&&A(_,$);return}if(_.keyCode===27){i.setState({editing:!1});return}}return K}(),disabled:M},null,this.inputRef);return x({dragging:u,editing:s,value:N,displayValue:D,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return m}(),l}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),f=n(69433),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(s,v){if(s==null)return{};var g={},C=Object.keys(s),h,N;for(N=0;N<C.length;N++)h=C[N],!(v.indexOf(h)>=0)&&(g[h]=s[h]);return g}function p(s,v){s.prototype=Object.create(v.prototype),s.prototype.constructor=s,l(s,v)}function l(s,v){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(C,h){return C.__proto__=h,C}return g}(),l(s,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function s(){return null}return s}()},i="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",u=r.Dropdown=function(s){p(v,s);function v(C){var h;return h=s.call(this,C)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=v.prototype;return g.getDOMNode=function(){function C(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return C}(),g.componentDidMount=function(){function C(){var h=this.getDOMNode()}return C}(),g.openMenu=function(){function C(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=i,document.body.appendChild(h),v.renderedMenu=h);var N=this.getDOMNode();v.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=v.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return C}(),g.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),g.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),g.renderMenuContent=function(){function C(){var h=this,N=v.renderedMenu;if(N){N.offsetHeight>200?N.className=d:N.className=i;var b=this.props.options,B=b===void 0?[]:b,L=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=L.length?L:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return C}(),g.setOpen=function(){function C(h){var N=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),g.setSelected=function(){function C(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return C}(),g.render=function(){function C(){var h=this,N=this.props,b=N.icon,B=N.iconRotation,L=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,P=N.over,R=N.nochevron,M=N.width,D=N.onClick,j=N.onSelected,F=N.selected,W=N.disabled,K=N.displayText,_=y(N,V),$=_.className,z=y(_,k),Y=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,W&&"Button--disabled",$]),onClick:function(){function Z(ie){W&&!h.state.open||(h.setOpen(!h.state.open),D&&D(ie))}return Z}()},z,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:L,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Y?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var v,g;return(v=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?v:m}return s}()}},92462:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** + */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function f(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,V(p,l)}function V(p,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),V(p,l)}var k=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},y=r.DraggableControl=function(p){f(l,p);function l(m){var i;return i=p.call(this,m)||this,i.inputRef=(0,e.createRef)(),i.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var d=i.props.suppressFlicker;d>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},d))},i.handleDragStart=function(d){var u=i.props,s=u.value,C=u.dragMatrix,g=u.disabled,v=i.state.editing;v||g||(document.body.style["pointer-events"]="none",i.ref=d.currentTarget,i.setState({originalValue:s,dragging:!1,value:s,origin:S(d,C)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var h=i.state,N=h.dragging,b=h.value,B=i.props.onDrag;N&&B&&B(d,b)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var u,s=i.props,C=s.minValue,g=s.maxValue,v=s.step,h=s.dragMatrix,N=s.disabled;if(!N){var b=i.ref.offsetWidth/((g-C)/v),B=(u=i.props.stepPixelSize)!=null?u:b;typeof B=="function"&&(B=B(b)),i.setState(function(L){var w=Object.assign({},L),T=L.origin,A=S(d,h)-T;if(L.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,C,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(d){var u=i.props,s=u.onChange,C=u.onDrag,g=i.state,v=g.dragging,h=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),v)i.suppressFlicker(),s&&s(d,h),C&&C(d,h);else if(i.inputRef){var N=i.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(b){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,h=v.animated,N=v.value,b=v.unit,B=v.minValue,L=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,R=v.fontSize,M=v.disabled,D=N;(u||g)&&(D=C);var j=function(){function K(_){return _+(b?" "+b:"")}return K}(),F=h&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||M?"none":void 0,height:E,"line-height":P,"font-size":R},onBlur:function(){function K(_){if(s){var $=(0,a.clamp)(parseFloat(_.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(_,$),A&&A(_,$)}}return K}(),onKeyDown:function(){function K(_){if(_.keyCode===13){var $=(0,a.clamp)(parseFloat(_.target.value),B,L);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),T&&T(_,$),A&&A(_,$);return}if(_.keyCode===27){i.setState({editing:!1});return}}return K}(),disabled:M},null,this.inputRef);return x({dragging:u,editing:s,value:N,displayValue:D,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return m}(),l}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),f=n(69433),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(s,C){if(s==null)return{};var g={},v=Object.keys(s),h,N;for(N=0;N<v.length;N++)h=v[N],!(C.indexOf(h)>=0)&&(g[h]=s[h]);return g}function p(s,C){s.prototype=Object.create(C.prototype),s.prototype.constructor=s,l(s,C)}function l(s,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),l(s,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function s(){return null}return s}()},i="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",u=r.Dropdown=function(s){p(C,s);function C(v){var h;return h=s.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=C.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=i,document.body.appendChild(h),C.renderedMenu=h);var N=this.getDOMNode();C.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=C.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var h=this,N=C.renderedMenu;if(N){N.offsetHeight>200?N.className=d:N.className=i;var b=this.props.options,B=b===void 0?[]:b,L=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=L.length?L:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(h){var N=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),g.render=function(){function v(){var h=this,N=this.props,b=N.icon,B=N.iconRotation,L=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,P=N.over,R=N.nochevron,M=N.width,D=N.onClick,j=N.onSelected,F=N.selected,W=N.disabled,K=N.displayText,_=y(N,V),$=_.className,z=y(_,k),Y=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,W&&"Button--disabled",$]),onClick:function(){function Z(ie){W&&!h.state.open||(h.setOpen(!h.state.open),D&&D(ie))}return Z}()},z,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:L,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Y?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var C,g;return(C=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?C:m}return s}()}},92462:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(d,u){if(d==null)return{};var s={},v=Object.keys(d),g,C;for(C=0;C<v.length;C++)g=v[C],!(u.indexOf(g)>=0)&&(s[g]=d[g]);return s}var y=r.computeFlexClassName=function(){function d(u){return(0,a.classes)(["Flex",u.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&u.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(u)])}return d}(),p=r.computeFlexProps=function(){function d(u){var s=u.className,v=u.direction,g=u.wrap,C=u.align,h=u.justify,N=u.inline,b=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":v,"flex-wrap":g===!0?"wrap":g,"align-items":C,"justify-content":h})},b))}return d}(),l=r.Flex=function(){function d(u){var s=u.className,v=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(v)]),null,1,Object.assign({},p(v))))}return d}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(u){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(u)])}return d}(),m=r.computeFlexItemProps=function(){function d(u){var s=u.className,v=u.style,g=u.grow,C=u.order,h=u.shrink,N=u.basis,b=N===void 0?u.width:N,B=u.align,L=S(u,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:C,"align-self":B})},L))}return d}(),i=function(u){var s=u.className,v=S(u,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(v))))};i.defaultHooks=a.pureComponentHooks,l.Item=i},81753:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],f=["size","style"];/** + */function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v<C.length;v++)g=C[v],!(u.indexOf(g)>=0)&&(s[g]=d[g]);return s}var y=r.computeFlexClassName=function(){function d(u){return(0,a.classes)(["Flex",u.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&u.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(u)])}return d}(),p=r.computeFlexProps=function(){function d(u){var s=u.className,C=u.direction,g=u.wrap,v=u.align,h=u.justify,N=u.inline,b=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":C,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":h})},b))}return d}(),l=r.Flex=function(){function d(u){var s=u.className,C=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(C)]),null,1,Object.assign({},p(C))))}return d}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(u){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(u)])}return d}(),m=r.computeFlexItemProps=function(){function d(u){var s=u.className,C=u.style,g=u.grow,v=u.order,h=u.shrink,N=u.basis,b=N===void 0?u.width:N,B=u.align,L=S(u,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:v,"align-self":B})},L))}return d}(),i=function(u){var s=u.className,C=S(u,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(C))))};i.defaultHooks=a.pureComponentHooks,l.Item=i},81753:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -125,15 +125,15 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var k=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,m=l.size,i=l.spin,d=l.className,u=l.style,s=u===void 0?{}:u,v=l.rotation,g=l.inverse,C=V(l,o);m&&(s["font-size"]=m*100+"%"),typeof v=="number"&&(s.transform="rotate("+v+"deg)");var h=k.test(c),N=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+N,i&&"fa-spin"]),style:s},C)))}return p}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function p(l){var c=l.className,m=l.style,i=m===void 0?{}:m,d=l.children,u=V(l,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:i},u,{children:d})))}return p}();S.Stack=y},51190:function(I,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function k(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,y(c,m)}function y(c,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),y(c,m)}/** + */function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var k=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,m=l.size,i=l.spin,d=l.className,u=l.style,s=u===void 0?{}:u,C=l.rotation,g=l.inverse,v=V(l,o);m&&(s["font-size"]=m*100+"%"),typeof C=="number"&&(s.transform="rotate("+C+"deg)");var h=k.test(c),N=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+N,i&&"fa-spin"]),style:s},v)))}return p}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function p(l){var c=l.className,m=l.style,i=m===void 0?{}:m,d=l.children,u=V(l,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:i},u,{children:d})))}return p}();S.Stack=y},51190:function(I,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function k(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,y(c,m)}function y(c,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),y(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),l=r.Input=function(c){S(m,c);function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(u){var s=d.state.editing,v=d.props.onInput;s||d.setEditing(!0),v&&v(u,u.target.value)},d.handleFocus=function(u){var s=d.state.editing;s||d.setEditing(!0)},d.handleBlur=function(u){var s=d.state.editing,v=d.props.onChange;s&&(d.setEditing(!1),v&&v(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,v=s.onInput,g=s.onChange,C=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),v&&v(u,u.target.value),C&&C(u,u.target.value),d.props.selfClear?u.target.value="":u.target.blur();return}if(u.keyCode===o.KEY_ESCAPE){d.setEditing(!1),u.target.value=p(d.props.value),u.target.blur();return}},d}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,v=this.inputRef.current;v&&(v.value=p(s),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),u.props.autoSelect&&v.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var v=this.state.editing,g=u.value,C=this.props.value,h=this.inputRef.current;h&&!v&&g!==C&&(h.value=p(C))}return d}(),i.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),i.render=function(){function d(){var u=this.props,s=u.selfClear,v=u.onInput,g=u.onChange,C=u.onEnter,h=u.value,N=u.maxLength,b=u.placeholder,B=u.autofocus,L=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,P=k(u,f),R=P.className,M=P.fluid,D=P.monospace,j=k(P,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",D&&"Input--monospace",L&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:A,rows:E,disabled:L},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:L},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),V=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var p=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),l=r.Input=function(c){S(m,c);function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(u){var s=d.state.editing,C=d.props.onInput;s||d.setEditing(!0),C&&C(u,u.target.value)},d.handleFocus=function(u){var s=d.state.editing;s||d.setEditing(!0)},d.handleBlur=function(u){var s=d.state.editing,C=d.props.onChange;s&&(d.setEditing(!1),C&&C(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,C=s.onInput,g=s.onChange,v=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),C&&C(u,u.target.value),v&&v(u,u.target.value),d.props.selfClear?u.target.value="":u.target.blur();return}if(u.keyCode===o.KEY_ESCAPE){d.setEditing(!1),u.target.value=p(d.props.value),u.target.blur();return}},d}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.inputRef.current;C&&(C.value=p(s),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var C=this.state.editing,g=u.value,v=this.props.value,h=this.inputRef.current;h&&!C&&g!==v&&(h.value=p(v))}return d}(),i.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),i.render=function(){function d(){var u=this.props,s=u.selfClear,C=u.onInput,g=u.onChange,v=u.onEnter,h=u.value,N=u.maxLength,b=u.placeholder,B=u.autofocus,L=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,P=k(u,f),R=P.className,M=P.fluid,D=P.monospace,j=k(P,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",D&&"Input--monospace",L&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:A,rows:E,disabled:L},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:L},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),V=n(43023),k=["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 S(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var y=r.Knob=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,v=l.step,g=l.stepPixelSize,C=l.suppressFlicker,h=l.unit,N=l.value,b=l.className,B=l.style,L=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,P=l.bipolar,R=l.children,M=l.popUpPosition,D=S(l,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:i,minValue:d,onChange:u,onDrag:s,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N},{children:function(){function j(F){var W=F.dragging,K=F.editing,_=F.value,$=F.displayValue,z=F.displayElement,Y=F.inputElement,Z=F.handleDragStart,ie=(0,a.scale)(L!=null?L:$,d,i),ae=(0,a.scale)($,d,i),se=w||(0,a.keyOfMatchingRange)(L!=null?L:_,A)||"default",he=(ae-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",b,(0,o.computeBoxClassName)(D)]),[(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("+he+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),z,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)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:Z})))}return j}()})))}return p}()},36563:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** + */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var y=r.Knob=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,C=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,N=l.value,b=l.className,B=l.style,L=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,P=l.bipolar,R=l.children,M=l.popUpPosition,D=S(l,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:i,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:N},{children:function(){function j(F){var W=F.dragging,K=F.editing,_=F.value,$=F.displayValue,z=F.displayElement,Y=F.inputElement,Z=F.handleDragStart,ie=(0,a.scale)(L!=null?L:$,d,i),ae=(0,a.scale)($,d,i),se=w||(0,a.keyOfMatchingRange)(L!=null?L:_,A)||"default",he=(ae-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",b,(0,o.computeBoxClassName)(D)]),[(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("+he+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),z,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)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:Z})))}return j}()})))}return p}()},36563:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -141,11 +141,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=r.LabeledList=function(){function S(y){var p=y.children;return(0,e.createVNode)(1,"table","LabeledList",p,0)}return S}();f.defaultHooks=a.pureComponentHooks;var V=function(y){var p=y.className,l=y.label,c=y.labelColor,m=c===void 0?"label":c,i=y.color,d=y.textAlign,u=y.buttons,s=y.content,v=y.children;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",p]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:m,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:l?l+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,textAlign:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[s,v]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};V.defaultHooks=a.pureComponentHooks;var k=function(y){var p=y.size?(0,t.unit)(Math.max(0,y.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":p,"padding-bottom":p}}),2)};k.defaultHooks=a.pureComponentHooks,f.Item=V,f.Divider=k},59743:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),f=["className","children","onEnter"];/** + */var f=r.LabeledList=function(){function S(y){var p=y.children;return(0,e.createVNode)(1,"table","LabeledList",p,0)}return S}();f.defaultHooks=a.pureComponentHooks;var V=function(y){var p=y.className,l=y.label,c=y.labelColor,m=c===void 0?"label":c,i=y.color,d=y.textAlign,u=y.buttons,s=y.content,C=y.children;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",p]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:m,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:l?l+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,textAlign:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[s,C]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};V.defaultHooks=a.pureComponentHooks;var k=function(y){var p=y.size?(0,t.unit)(Math.max(0,y.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":p,"padding-bottom":p}}),2)};k.defaultHooks=a.pureComponentHooks,f.Item=V,f.Divider=k},59743:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(S,y){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m<l.length;m++)c=l[m],!(y.indexOf(c)>=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(y){var p=y.className,l=y.children,c=y.onEnter,m=V(y,f),i;return c&&(i=function(){function d(u){u.keyCode===13&&c(u)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),f=n(83611),V=n(96820);function k(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,y(u,s)}function y(u,s){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(g,C){return g.__proto__=C,g}return v}(),y(u,s)}var p=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},l=r.NanoMap=function(u){S(s,u);function s(g){var C;C=u.call(this,g)||this;var h=window.innerWidth/2-256,N=window.innerHeight/2-256;return C.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},C.handleDragStart=function(b){C.ref=b.target,C.setState({dragging:!1,originX:b.screenX,originY:b.screenY}),document.addEventListener("mousemove",C.handleDragMove),document.addEventListener("mouseup",C.handleDragEnd),p(b)},C.handleDragMove=function(b){C.setState(function(B){var L=Object.assign({},B),w=b.screenX-L.originX,T=b.screenY-L.originY;return B.dragging?(L.offsetX+=w,L.offsetY+=T,L.originX=b.screenX,L.originY=b.screenY):L.dragging=!0,L}),p(b)},C.handleDragEnd=function(b){C.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",C.handleDragMove),document.removeEventListener("mouseup",C.handleDragEnd),p(b)},C.handleZoom=function(b,B){C.setState(function(L){var w=Math.min(Math.max(B,1),8),T=(w-L.zoom)*1.5;return L.zoom=w,L.offsetX=L.offsetX-262*T,L.offsetY=L.offsetY-256*T,g.onZoom&&g.onZoom(L.zoom),L})},C}var v=s.prototype;return v.render=function(){function g(){var C=(0,t.useBackend)(this.context),h=C.config,N=this.state,b=N.dragging,B=N.offsetX,L=N.offsetY,w=N.zoom,T=w===void 0?1:w,A=this.props.children,x=h.map+"_nanomap_z1.png",E=510*T+"px",P={width:E,height:E,"margin-top":L+"px","margin-left":B+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:b?"move":"auto"},R={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,V.resolveAsset)(x),style:R}),(0,e.createComponentVNode)(2,a.Box,{children:A})]}),(0,e.createComponentVNode)(2,m,{zoom:T,onZoom:this.handleZoom})]})}return g}(),s}(e.Component),c=function(s,v){var g=s.x,C=s.y,h=s.zoom,N=h===void 0?1:h,b=s.icon,B=s.tooltip,L=s.color,w=g*2*N-N-3,T=C*2*N-N-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:B,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:T+"px",left:w+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:b,color:L,fontSize:"6px"})})}),2)};l.Marker=c;var m=function(s,v){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",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(C){return C+"x"}return g}(),value:s.zoom,onDrag:function(){function g(C,h){return s.onZoom(C,h)}return g}()})})})})};l.Zoomer=m;var i,d=function(u){S(s,u);function s(g){var C;C=u.call(this,g)||this;var h=(0,t.useBackend)(C.props.context),N=h.act;return C.state={color:C.props.color},C.handleClick=function(b){i!==void 0&&i.setState({color:"blue"}),N("switch_camera",{name:C.props.name}),i=k(C),C.setState({color:"green"})},C}var v=s.prototype;return v.render=function(){function g(){var C=this.props.x*2*this.props.zoom-this.props.zoom-3,h=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:h+"px",left:C+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return g}(),s}(e.Component);l.NanoButton=d},19153:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** + */function V(S,y){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m<l.length;m++)c=l[m],!(y.indexOf(c)>=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(y){var p=y.className,l=y.children,c=y.onEnter,m=V(y,f),i;return c&&(i=function(){function d(u){u.keyCode===13&&c(u)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),f=n(83611),V=n(96820);function k(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,y(u,s)}function y(u,s){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,v){return g.__proto__=v,g}return C}(),y(u,s)}var p=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},l=r.NanoMap=function(u){S(s,u);function s(g){var v;v=u.call(this,g)||this;var h=window.innerWidth/2-256,N=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(b){v.ref=b.target,v.setState({dragging:!1,originX:b.screenX,originY:b.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),p(b)},v.handleDragMove=function(b){v.setState(function(B){var L=Object.assign({},B),w=b.screenX-L.originX,T=b.screenY-L.originY;return B.dragging?(L.offsetX+=w,L.offsetY+=T,L.originX=b.screenX,L.originY=b.screenY):L.dragging=!0,L}),p(b)},v.handleDragEnd=function(b){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),p(b)},v.handleZoom=function(b,B){v.setState(function(L){var w=Math.min(Math.max(B,1),8),T=(w-L.zoom)*1.5;return L.zoom=w,L.offsetX=L.offsetX-262*T,L.offsetY=L.offsetY-256*T,g.onZoom&&g.onZoom(L.zoom),L})},v}var C=s.prototype;return C.render=function(){function g(){var v=(0,t.useBackend)(this.context),h=v.config,N=this.state,b=N.dragging,B=N.offsetX,L=N.offsetY,w=N.zoom,T=w===void 0?1:w,A=this.props.children,x=h.map+"_nanomap_z1.png",E=510*T+"px",P={width:E,height:E,"margin-top":L+"px","margin-left":B+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:b?"move":"auto"},R={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,V.resolveAsset)(x),style:R}),(0,e.createComponentVNode)(2,a.Box,{children:A})]}),(0,e.createComponentVNode)(2,m,{zoom:T,onZoom:this.handleZoom})]})}return g}(),s}(e.Component),c=function(s,C){var g=s.x,v=s.y,h=s.zoom,N=h===void 0?1:h,b=s.icon,B=s.tooltip,L=s.color,w=g*2*N-N-3,T=v*2*N-N-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:B,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:T+"px",left:w+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:b,color:L,fontSize:"6px"})})}),2)};l.Marker=c;var m=function(s,C){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",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(v){return v+"x"}return g}(),value:s.zoom,onDrag:function(){function g(v,h){return s.onZoom(v,h)}return g}()})})})})};l.Zoomer=m;var i,d=function(u){S(s,u);function s(g){var v;v=u.call(this,g)||this;var h=(0,t.useBackend)(v.props.context),N=h.act;return v.state={color:v.props.color},v.handleClick=function(b){i!==void 0&&i.setState({color:"blue"}),N("switch_camera",{name:v.props.name}),i=k(v),v.setState({color:"green"})},v}var C=s.prototype;return C.render=function(){function g(){var v=this.props.x*2*this.props.zoom-this.props.zoom-3,h=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:h+"px",left:v+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return g}(),s}(e.Component);l.NanoButton=d},19153:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -153,23 +153,23 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,y=r.NumberInput=function(p){V(l,p);function l(m){var i;i=p.call(this,m)||this;var d=m.value;return i.inputRef=(0,e.createRef)(),i.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var u=i.props.suppressFlicker;u>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},u))},i.handleDragStart=function(u){var s=i.props.value,v=i.state.editing;v||(document.body.style["pointer-events"]="none",i.ref=u.target,i.setState({dragging:!1,origin:u.screenY,value:s,internalValue:s}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var g=i.state,C=g.dragging,h=g.value,N=i.props.onDrag;C&&N&&N(u,h)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s=i.props,v=s.minValue,g=s.maxValue,C=s.step,h=s.stepPixelSize;i.setState(function(N){var b=Object.assign({},N),B=b.origin-u.screenY;if(N.dragging){var L=Number.isFinite(v)?v%C:0;b.internalValue=(0,a.clamp)(b.internalValue+B*C/h,v-C,g+C),b.value=(0,a.clamp)(b.internalValue-b.internalValue%C+L,v,g),b.origin=u.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},i.handleDragEnd=function(u){var s=i.props,v=s.onChange,g=s.onDrag,C=i.state,h=C.dragging,N=C.value,b=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),h)i.suppressFlicker(),v&&v(u,N),g&&g(u,N);else if(i.inputRef){var B=i.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(L){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,v=d.value,g=d.suppressingFlicker,C=this.props,h=C.className,N=C.fluid,b=C.animated,B=C.value,L=C.unit,w=C.minValue,T=C.maxValue,A=C.height,x=C.width,E=C.lineHeight,P=C.fontSize,R=C.format,M=C.onChange,D=C.onDrag,j=B;(u||g)&&(j=v);var F=function(){function K(_){return(0,e.createVNode)(1,"div","NumberInput__content",_+(L?" "+L:""),0,{unselectable:Byond.IS_LTE_IE8})}return K}(),W=b&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R,children:F})||F(R?R(j):j);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),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)((j-w)/(T-w)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function K(_){if(s){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$)}}return K}(),onKeyDown:function(){function K(_){if(_.keyCode===13){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$);return}if(_.keyCode===27){i.setState({editing:!1});return}}return K}()},null,this.inputRef)]})}return m}(),l}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(V,k)}var f=r.Popper=function(V){t(k,V);function k(){var y;return y=V.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}var S=k.prototype;return S.componentDidMount=function(){function y(){var p=this,l=this.props,c=l.additionalStyles,m=l.options;if(this.renderedContent=document.createElement("div"),c)for(var i=0,d=Object.entries(c);i<d.length;i++){var u=d[i],s=u[0],v=u[1];this.renderedContent.style[s]=v}this.renderPopperContent(function(){document.body.appendChild(p.renderedContent),p.popperInstance=(0,e.createPopper)((0,a.findDOMfromVNode)(p.$LI,!0),p.renderedContent,m)})}return y}(),S.componentDidUpdate=function(){function y(){var p=this;this.renderPopperContent(function(){var l;return(l=p.popperInstance)==null?void 0:l.update()})}return y}(),S.componentWillUnmount=function(){function y(){var p,l=this;(p=this.popperInstance)==null||p.destroy(),(0,a.render)(null,this.renderedContent,function(){l.renderedContent.remove()})}return y}(),S.renderPopperContent=function(){function y(p){(0,a.render)(this.props.popperContent,this.renderedContent,p)}return y}(),S.render=function(){function y(){return this.props.children}return y}(),k}(a.Component);f.id=0},24273:function(I,r,n){"use strict";r.__esModule=!0,r.ProgressBarCountdown=r.ProgressBar=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=["className","value","minValue","maxValue","color","ranges","children","fractionDigits"],V=["start","current","end"];/** +*/var S=400,y=r.NumberInput=function(p){V(l,p);function l(m){var i;i=p.call(this,m)||this;var d=m.value;return i.inputRef=(0,e.createRef)(),i.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var u=i.props.suppressFlicker;u>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},u))},i.handleDragStart=function(u){var s=i.props.value,C=i.state.editing;C||(document.body.style["pointer-events"]="none",i.ref=u.target,i.setState({dragging:!1,origin:u.screenY,value:s,internalValue:s}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var g=i.state,v=g.dragging,h=g.value,N=i.props.onDrag;v&&N&&N(u,h)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s=i.props,C=s.minValue,g=s.maxValue,v=s.step,h=s.stepPixelSize;i.setState(function(N){var b=Object.assign({},N),B=b.origin-u.screenY;if(N.dragging){var L=Number.isFinite(C)?C%v:0;b.internalValue=(0,a.clamp)(b.internalValue+B*v/h,C-v,g+v),b.value=(0,a.clamp)(b.internalValue-b.internalValue%v+L,C,g),b.origin=u.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},i.handleDragEnd=function(u){var s=i.props,C=s.onChange,g=s.onDrag,v=i.state,h=v.dragging,N=v.value,b=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),h)i.suppressFlicker(),C&&C(u,N),g&&g(u,N);else if(i.inputRef){var B=i.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(L){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,h=v.className,N=v.fluid,b=v.animated,B=v.value,L=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,R=v.format,M=v.onChange,D=v.onDrag,j=B;(u||g)&&(j=C);var F=function(){function K(_){return(0,e.createVNode)(1,"div","NumberInput__content",_+(L?" "+L:""),0,{unselectable:Byond.IS_LTE_IE8})}return K}(),W=b&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R,children:F})||F(R?R(j):j);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),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)((j-w)/(T-w)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function K(_){if(s){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$)}}return K}(),onKeyDown:function(){function K(_){if(_.keyCode===13){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$);return}if(_.keyCode===27){i.setState({editing:!1});return}}return K}()},null,this.inputRef)]})}return m}(),l}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(V,k)}var f=r.Popper=function(V){t(k,V);function k(){var y;return y=V.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}var S=k.prototype;return S.componentDidMount=function(){function y(){var p=this,l=this.props,c=l.additionalStyles,m=l.options;if(this.renderedContent=document.createElement("div"),c)for(var i=0,d=Object.entries(c);i<d.length;i++){var u=d[i],s=u[0],C=u[1];this.renderedContent.style[s]=C}this.renderPopperContent(function(){document.body.appendChild(p.renderedContent),p.popperInstance=(0,e.createPopper)((0,a.findDOMfromVNode)(p.$LI,!0),p.renderedContent,m)})}return y}(),S.componentDidUpdate=function(){function y(){var p=this;this.renderPopperContent(function(){var l;return(l=p.popperInstance)==null?void 0:l.update()})}return y}(),S.componentWillUnmount=function(){function y(){var p,l=this;(p=this.popperInstance)==null||p.destroy(),(0,a.render)(null,this.renderedContent,function(){l.renderedContent.remove()})}return y}(),S.renderPopperContent=function(){function y(p){(0,a.render)(this.props.popperContent,this.renderedContent,p)}return y}(),S.render=function(){function y(){return this.props.children}return y}(),k}(a.Component);f.id=0},24273:function(I,r,n){"use strict";r.__esModule=!0,r.ProgressBarCountdown=r.ProgressBar=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=["className","value","minValue","maxValue","color","ranges","children","fractionDigits"],V=["start","current","end"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,S(c,m)}function S(c,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),S(c,m)}function y(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}var p=r.ProgressBar=function(){function c(m){var i=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,v=m.maxValue,g=v===void 0?1:v,C=m.color,h=m.ranges,N=h===void 0?{}:h,b=m.children,B=m.fractionDigits,L=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=b!==void 0,x=C||(0,a.keyOfMatchingRange)(d,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,i,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?b:(0,a.toFixed)(T*100,L)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){k(m,c);function m(d){var u;return u=c.call(this,d)||this,u.timer=null,u.state={value:Math.max(d.current*100,0)},u}var i=m.prototype;return i.tick=function(){function d(){var u=Math.max(this.state.value+this.props.rate,0);u<=0&&clearInterval(this.timer),this.setState(function(s){return{value:u}})}return d}(),i.componentDidMount=function(){function d(){var u=this;this.timer=setInterval(function(){return u.tick()},this.props.rate)}return d}(),i.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),i.render=function(){function d(){var u=this.props,s=u.start,v=u.current,g=u.end,C=y(u,V),h=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},C)))}return d}(),m}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49421:function(I,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),f=n(31068),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},v=Object.keys(d),g,C;for(C=0;C<v.length;C++)g=v[C],!(u.indexOf(g)>=0)&&(s[g]=d[g]);return s}function y(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,p(d,u)}function p(d,u){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(v,g){return v.__proto__=g,v}return s}(),p(d,u)}var l=0,c=1e4,m=function(u,s,v,g){var C=s||l,h=v||v===0?v:c;if(!u||!u.length)return String(C);var N=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(C):String((0,t.clamp)(N,C,h))},i=r.RestrictedInput=function(d){y(u,d);function u(){var v;return v=d.call(this)||this,v.inputRef=(0,e.createRef)(),v.state={editing:!1},v.handleBlur=function(g){var C=v.state.editing;C&&v.setEditing(!1)},v.handleChange=function(g){var C=v.props,h=C.maxValue,N=C.minValue,b=C.onChange,B=C.allowFloats;g.target.value=m(g.target.value,N,h,B),b&&b(g,+g.target.value)},v.handleFocus=function(g){var C=v.state.editing;C||v.setEditing(!0)},v.handleInput=function(g){var C=v.state.editing,h=v.props.onInput;C||v.setEditing(!0),h&&h(g,+g.target.value)},v.handleKeyDown=function(g){var C=v.props,h=C.maxValue,N=C.minValue,b=C.onChange,B=C.onEnter,L=C.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,N,h,L);v.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(v.props.onEscape){v.props.onEscape(g);return}v.setEditing(!1),g.target.value=v.props.value,g.target.blur();return}},v}var s=u.prototype;return s.componentDidMount=function(){function v(){var g,C=this,h=this.props,N=h.maxValue,b=h.minValue,B=h.allowFloats,L=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(L,b,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),C.props.autoSelect&&w.select()},1)}return v}(),s.componentDidUpdate=function(){function v(g,C){var h,N,b=this.props,B=b.maxValue,L=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,L,B,w))}return v}(),s.setEditing=function(){function v(g){this.setState({editing:g})}return v}(),s.render=function(){function v(){var g=this.props,C=g.onChange,h=g.onEnter,N=g.onInput,b=g.value,B=S(g,V),L=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",L])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return v}(),u}(e.Component)},37479:function(I,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + */function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,S(c,m)}function S(c,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),S(c,m)}function y(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}var p=r.ProgressBar=function(){function c(m){var i=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,C=m.maxValue,g=C===void 0?1:C,v=m.color,h=m.ranges,N=h===void 0?{}:h,b=m.children,B=m.fractionDigits,L=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=b!==void 0,x=v||(0,a.keyOfMatchingRange)(d,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,i,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?b:(0,a.toFixed)(T*100,L)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){k(m,c);function m(d){var u;return u=c.call(this,d)||this,u.timer=null,u.state={value:Math.max(d.current*100,0)},u}var i=m.prototype;return i.tick=function(){function d(){var u=Math.max(this.state.value+this.props.rate,0);u<=0&&clearInterval(this.timer),this.setState(function(s){return{value:u}})}return d}(),i.componentDidMount=function(){function d(){var u=this;this.timer=setInterval(function(){return u.tick()},this.props.rate)}return d}(),i.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),i.render=function(){function d(){var u=this.props,s=u.start,C=u.current,g=u.end,v=y(u,V),h=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},v)))}return d}(),m}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49421:function(I,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),f=n(31068),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v<C.length;v++)g=C[v],!(u.indexOf(g)>=0)&&(s[g]=d[g]);return s}function y(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,p(d,u)}function p(d,u){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),p(d,u)}var l=0,c=1e4,m=function(u,s,C,g){var v=s||l,h=C||C===0?C:c;if(!u||!u.length)return String(v);var N=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(v):String((0,t.clamp)(N,v,h))},i=r.RestrictedInput=function(d){y(u,d);function u(){var C;return C=d.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(g){var v=C.state.editing;v&&C.setEditing(!1)},C.handleChange=function(g){var v=C.props,h=v.maxValue,N=v.minValue,b=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,N,h,B),b&&b(g,+g.target.value)},C.handleFocus=function(g){var v=C.state.editing;v||C.setEditing(!0)},C.handleInput=function(g){var v=C.state.editing,h=C.props.onInput;v||C.setEditing(!0),h&&h(g,+g.target.value)},C.handleKeyDown=function(g){var v=C.props,h=v.maxValue,N=v.minValue,b=v.onChange,B=v.onEnter,L=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,N,h,L);C.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(g);return}C.setEditing(!1),g.target.value=C.props.value,g.target.blur();return}},C}var s=u.prototype;return s.componentDidMount=function(){function C(){var g,v=this,h=this.props,N=h.maxValue,b=h.minValue,B=h.allowFloats,L=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(L,b,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return C}(),s.componentDidUpdate=function(){function C(g,v){var h,N,b=this.props,B=b.maxValue,L=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,L,B,w))}return C}(),s.setEditing=function(){function C(g){this.setState({editing:g})}return C}(),s.render=function(){function C(){var g=this.props,v=g.onChange,h=g.onEnter,N=g.onInput,b=g.value,B=S(g,V),L=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",L])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),u}(e.Component)},37479:function(I,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function k(y,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i<c.length;i++)m=c[i],!(p.indexOf(m)>=0)&&(l[m]=y[m]);return l}var S=r.RoundGauge=function(){function y(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var l=p.value,c=p.minValue,m=c===void 0?1:c,i=p.maxValue,d=i===void 0?1:i,u=p.ranges,s=p.alertAfter,v=p.format,g=p.size,C=g===void 0?1:g,h=p.className,N=p.style,b=k(p,V),B=(0,a.scale)(l,m,d),L=(0,a.clamp01)(B),w=u?{}:{primary:[0,1]};u&&Object.keys(u).forEach(function(A){var x=u[A];w[A]=[(0,a.scale)(x[0],m,d),(0,a.scale)(x[1],m,d)]});var T=null;return s<l&&(T=(0,a.keyOfMatchingRange)(L,w)),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["RoundGauge",h,(0,f.computeBoxClassName)(b)]),(0,e.createVNode)(32,"svg",null,[s&&(0,e.createVNode)(32,"g",(0,t.classes)(["RoundGauge__alert",T?"active RoundGauge__alert--"+T:""]),(0,e.createVNode)(32,"path",null,null,1,{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"}),2),(0,e.createVNode)(32,"g",null,(0,e.createVNode)(32,"circle","RoundGauge__ringTrack",null,1,{cx:"50",cy:"50",r:"45"}),2),(0,e.createVNode)(32,"g",null,Object.keys(w).map(function(A,x){var E=w[A];return(0,e.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+A,null,1,{style:{"stroke-dashoffset":Math.max((2-(E[1]-E[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*E[0])+" 50 50)",cx:"50",cy:"50",r:"45"},x)}),0),(0,e.createVNode)(32,"g","RoundGauge__needle",[(0,e.createVNode)(32,"polygon","RoundGauge__needleLine",null,1,{points:"46,50 50,0 54,50"}),(0,e.createVNode)(32,"circle","RoundGauge__needleMiddle",null,1,{cx:"50",cy:"50",r:"8"})],4,{transform:"rotate("+(L*180-90)+" 50 50)"})],0,{viewBox:"0 0 100 50"}),2,Object.assign({},(0,f.computeBoxProps)(Object.assign({style:Object.assign({"font-size":C+"em"},N)},b))))),(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:l,format:v,size:C})]})}return y}()},43308:function(I,r,n){"use strict";r.__esModule=!0,r.Section=void 0;var e=n(28823),a=n(66586),t=n(33053),o=n(93843),f=["className","title","buttons","fill","fitted","scrollable","children"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}function k(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),S(p,l)}/** + */function k(y,p){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i<c.length;i++)m=c[i],!(p.indexOf(m)>=0)&&(l[m]=y[m]);return l}var S=r.RoundGauge=function(){function y(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var l=p.value,c=p.minValue,m=c===void 0?1:c,i=p.maxValue,d=i===void 0?1:i,u=p.ranges,s=p.alertAfter,C=p.format,g=p.size,v=g===void 0?1:g,h=p.className,N=p.style,b=k(p,V),B=(0,a.scale)(l,m,d),L=(0,a.clamp01)(B),w=u?{}:{primary:[0,1]};u&&Object.keys(u).forEach(function(A){var x=u[A];w[A]=[(0,a.scale)(x[0],m,d),(0,a.scale)(x[1],m,d)]});var T=null;return s<l&&(T=(0,a.keyOfMatchingRange)(L,w)),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["RoundGauge",h,(0,f.computeBoxClassName)(b)]),(0,e.createVNode)(32,"svg",null,[s&&(0,e.createVNode)(32,"g",(0,t.classes)(["RoundGauge__alert",T?"active RoundGauge__alert--"+T:""]),(0,e.createVNode)(32,"path",null,null,1,{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"}),2),(0,e.createVNode)(32,"g",null,(0,e.createVNode)(32,"circle","RoundGauge__ringTrack",null,1,{cx:"50",cy:"50",r:"45"}),2),(0,e.createVNode)(32,"g",null,Object.keys(w).map(function(A,x){var E=w[A];return(0,e.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+A,null,1,{style:{"stroke-dashoffset":Math.max((2-(E[1]-E[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*E[0])+" 50 50)",cx:"50",cy:"50",r:"45"},x)}),0),(0,e.createVNode)(32,"g","RoundGauge__needle",[(0,e.createVNode)(32,"polygon","RoundGauge__needleLine",null,1,{points:"46,50 50,0 54,50"}),(0,e.createVNode)(32,"circle","RoundGauge__needleMiddle",null,1,{cx:"50",cy:"50",r:"8"})],4,{transform:"rotate("+(L*180-90)+" 50 50)"})],0,{viewBox:"0 0 100 50"}),2,Object.assign({},(0,f.computeBoxProps)(Object.assign({style:Object.assign({"font-size":v+"em"},N)},b))))),(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:l,format:C,size:v})]})}return y}()},43308:function(I,r,n){"use strict";r.__esModule=!0,r.Section=void 0;var e=n(28823),a=n(66586),t=n(33053),o=n(93843),f=["className","title","buttons","fill","fitted","scrollable","children"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}function k(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),S(p,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=r.Section=function(p){k(l,p);function l(m){var i;return i=p.call(this,m)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.scrollableRef=(0,e.createRef)(),i.scrollable=m.scrollable,i}var c=l.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var i=this.props,d=i.className,u=i.title,s=i.buttons,v=i.fill,g=i.fitted,C=i.scrollable,h=i.children,N=V(i,f),b=(0,a.canRender)(u)||(0,a.canRender)(s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",v&&"Section--fill",g&&"Section--fitted",C&&"Section--scrollable",d,(0,o.computeBoxClassName)(N)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",u,0),(0,e.createVNode)(1,"div","Section__buttons",s,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return m}(),l}(e.Component)},83611:function(I,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),V=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** +*/var y=r.Section=function(p){k(l,p);function l(m){var i;return i=p.call(this,m)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.scrollableRef=(0,e.createRef)(),i.scrollable=m.scrollable,i}var c=l.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var i=this.props,d=i.className,u=i.title,s=i.buttons,C=i.fill,g=i.fitted,v=i.scrollable,h=i.children,N=V(i,f),b=(0,a.canRender)(u)||(0,a.canRender)(s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",C&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(N)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",u,0),(0,e.createVNode)(1,"div","Section__buttons",s,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return m}(),l}(e.Component)},83611:function(I,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),V=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var y=r.Slider=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,v=l.step,g=l.stepPixelSize,C=l.suppressFlicker,h=l.unit,N=l.value,b=l.className,B=l.fillValue,L=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,k),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:i,minValue:d,onChange:u,onDrag:s,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N,disabled:x},{children:function(){function R(M){var D=M.dragging,j=M.editing,F=M.value,W=M.displayValue,K=M.displayElement,_=M.inputElement,$=M.handleDragStart,z=B!=null,Y=(0,a.scale)(F,d,i),Z=(0,a.scale)(B!=null?B:W,d,i),ie=(0,a.scale)(W,d,i),ae=L||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ae,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",z&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(Z)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(Z,ie))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),D&&(0,e.createVNode)(1,"div","Slider__popupValue",K,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:K,0),_],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:$})))}return R}()})))}return p}()},78581:function(I,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** + */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var y=r.Slider=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,C=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,N=l.value,b=l.className,B=l.fillValue,L=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,k),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:i,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:N,disabled:x},{children:function(){function R(M){var D=M.dragging,j=M.editing,F=M.value,W=M.displayValue,K=M.displayElement,_=M.inputElement,$=M.handleDragStart,z=B!=null,Y=(0,a.scale)(F,d,i),Z=(0,a.scale)(B!=null?B:W,d,i),ie=(0,a.scale)(W,d,i),ae=L||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ae,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",z&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(Z)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(Z,ie))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),D&&(0,e.createVNode)(1,"div","Slider__popupValue",K,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:K,0),_],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:$})))}return R}()})))}return p}()},78581:function(I,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -181,16 +181,16 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,m=l.vertical,i=l.fill,d=l.fluid,u=l.children,s=k(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",d&&"Tabs--fluid",c,(0,t.computeBoxClassName)(s)]),u,0,Object.assign({},(0,t.computeBoxProps)(s))))}return p}(),y=function(l){var c=l.className,m=l.selected,i=l.color,d=l.icon,u=l.leftSlot,s=l.rightSlot,v=l.children,g=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(u)&&(0,e.createVNode)(1,"div","Tab__left",u,0)||!!d&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:d}),2),(0,e.createVNode)(1,"div","Tab__text",v,0),(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__right",s,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=y},12764:function(I,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),f=n(31068),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["className","fluid"];function S(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}function y(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),p(c,m)}/** + */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,m=l.vertical,i=l.fill,d=l.fluid,u=l.children,s=k(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",d&&"Tabs--fluid",c,(0,t.computeBoxClassName)(s)]),u,0,Object.assign({},(0,t.computeBoxProps)(s))))}return p}(),y=function(l){var c=l.className,m=l.selected,i=l.color,d=l.icon,u=l.leftSlot,s=l.rightSlot,C=l.children,g=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(u)&&(0,e.createVNode)(1,"div","Tab__left",u,0)||!!d&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:d}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__right",s,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=y},12764:function(I,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),f=n(31068),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["className","fluid"];function S(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}function y(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),p(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var l=r.TextArea=function(c){y(m,c);function m(d,u){var s;s=c.call(this,d,u)||this,s.textareaRef=d.innerRef||(0,e.createRef)(),s.fillerRef=(0,e.createRef)(),s.state={editing:!1};var v=d.dontUseTabForIndent,g=v===void 0?!1:v;return s.handleOnInput=function(C){var h=s.state.editing,N=s.props.onInput;h||s.setEditing(!0),N&&N(C,C.target.value)},s.handleOnChange=function(C){var h=s.state.editing,N=s.props.onChange;h&&s.setEditing(!1),N&&N(C,C.target.value)},s.handleKeyPress=function(C){var h=s.state.editing,N=s.props.onKeyPress;h||s.setEditing(!0),N&&N(C,C.target.value)},s.handleKeyDown=function(C){var h=s.state.editing,N=s.props,b=N.onChange,B=N.onInput,L=N.onEnter,w=N.onKeyDown;if(C.keyCode===f.KEY_ENTER){s.setEditing(!1),b&&b(C,C.target.value),B&&B(C,C.target.value),L&&L(C,C.target.value),s.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===f.KEY_ESCAPE){s.props.onEscape&&s.props.onEscape(C),s.setEditing(!1),s.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(s.props.value),C.target.blur());return}if(h||s.setEditing(!0),w&&w(C,C.target.value),!g){var T=C.keyCode||C.which;if(T===f.KEY_TAB){C.preventDefault();var A=C.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;C.target.value=x.substring(0,E)+" "+x.substring(P),C.target.selectionEnd=E+1}}},s.handleFocus=function(C){var h=s.state.editing;h||s.setEditing(!0)},s.handleBlur=function(C){var h=s.state.editing,N=s.props.onChange;h&&(s.setEditing(!1),N&&N(C,C.target.value))},s}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),u.props.autoSelect&&v.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var v=u.value,g=this.props.value,C=this.textareaRef.current;C&&typeof g=="string"&&v!==g&&(C.value=(0,o.toInputValue)(g))}return d}(),i.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),i.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),i.render=function(){function d(){var u=this.props,s=u.onChange,v=u.onKeyDown,g=u.onKeyPress,C=u.onInput,h=u.onFocus,N=u.onBlur,b=u.onEnter,B=u.value,L=u.maxLength,w=u.placeholder,T=S(u,V),A=T.className,x=T.fluid,E=S(T,k);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:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:L},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(I,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(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},30341:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(y,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){o(p,y);function p(){return y.apply(this,arguments)||this}var l=p.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var m=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var d=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=i,d.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,i=p.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,i,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:k}return y}()}},2971:function(I,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.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=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(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var f=n(93843);r.Box=f.Box;var V=n(16699);r.Button=V.Button;var k=n(75614);r.ByondUi=k.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var p=n(25762);r.ColorBox=p.ColorBox;var l=n(73712);r.Countdown=l.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var m=n(81878);r.Divider=m.Divider;var i=n(41584);r.DraggableControl=i.DraggableControl;var d=n(99936);r.Dropdown=d.Dropdown;var u=n(92462);r.Flex=u.Flex;var s=n(81753);r.Grid=s.Grid;var v=n(69433);r.Icon=v.Icon;var g=n(51190);r.Input=g.Input;var C=n(35095);r.Knob=C.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var N=n(88488);r.LabeledList=N.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var L=n(19153);r.NoticeBox=L.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var R=n(83611);r.Slider=R.Slider;var M=n(78581);r.Stack=M.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var F=n(12764);r.TextArea=F.TextArea;var W=n(71218);r.TimeDisplay=W.TimeDisplay;var K=n(30341);r.Tooltip=K.Tooltip},30381:function(I,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"],V=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"}],k=[{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"}],S=r.getGasLabel=function(){function l(c,m){var i=String(c).toLowerCase(),d=k.find(function(u){return u.id===i||u.name.toLowerCase()===i});return d&&d.label||m||c}return l}(),y=r.getGasColor=function(){function l(c){var m=String(c).toLowerCase(),i=k.find(function(d){return d.id===m||d.name.toLowerCase()===m});return i&&i.color}return l}(),p=r.timeAgo=function(){function l(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var i=m-c;if(i>3600){var d=Math.round(i/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(i>60){var u=Math.round(i/60);return u+" minute"+(u===1?"":"s")+" ago"}else{var s=Math.round(i);return s+" second"+(s===1?"":"s")+" ago"}return"just now"}return l}()},28766:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** +*/var l=r.TextArea=function(c){y(m,c);function m(d,u){var s;s=c.call(this,d,u)||this,s.textareaRef=d.innerRef||(0,e.createRef)(),s.fillerRef=(0,e.createRef)(),s.state={editing:!1};var C=d.dontUseTabForIndent,g=C===void 0?!1:C;return s.handleOnInput=function(v){var h=s.state.editing,N=s.props.onInput;h||s.setEditing(!0),N&&N(v,v.target.value)},s.handleOnChange=function(v){var h=s.state.editing,N=s.props.onChange;h&&s.setEditing(!1),N&&N(v,v.target.value)},s.handleKeyPress=function(v){var h=s.state.editing,N=s.props.onKeyPress;h||s.setEditing(!0),N&&N(v,v.target.value)},s.handleKeyDown=function(v){var h=s.state.editing,N=s.props,b=N.onChange,B=N.onInput,L=N.onEnter,w=N.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),b&&b(v,v.target.value),B&&B(v,v.target.value),L&&L(v,v.target.value),s.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){s.props.onEscape&&s.props.onEscape(v),s.setEditing(!1),s.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(s.props.value),v.target.blur());return}if(h||s.setEditing(!0),w&&w(v,v.target.value),!g){var T=v.keyCode||v.which;if(T===f.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var h=s.state.editing;h||s.setEditing(!0)},s.handleBlur=function(v){var h=s.state.editing,N=s.props.onChange;h&&(s.setEditing(!1),N&&N(v,v.target.value))},s}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var C=u.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&C!==g&&(v.value=(0,o.toInputValue)(g))}return d}(),i.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),i.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),i.render=function(){function d(){var u=this.props,s=u.onChange,C=u.onKeyDown,g=u.onKeyPress,v=u.onInput,h=u.onFocus,N=u.onBlur,b=u.onEnter,B=u.value,L=u.maxLength,w=u.placeholder,T=S(u,V),A=T.className,x=T.fluid,E=S(T,k);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:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:L},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(I,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(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},30341:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(y,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){o(p,y);function p(){return y.apply(this,arguments)||this}var l=p.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var m=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var d=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=i,d.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,i=p.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,i,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:k}return y}()}},2971:function(I,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.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=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(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var f=n(93843);r.Box=f.Box;var V=n(16699);r.Button=V.Button;var k=n(75614);r.ByondUi=k.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var p=n(25762);r.ColorBox=p.ColorBox;var l=n(73712);r.Countdown=l.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var m=n(81878);r.Divider=m.Divider;var i=n(41584);r.DraggableControl=i.DraggableControl;var d=n(99936);r.Dropdown=d.Dropdown;var u=n(92462);r.Flex=u.Flex;var s=n(81753);r.Grid=s.Grid;var C=n(69433);r.Icon=C.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var N=n(88488);r.LabeledList=N.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var L=n(19153);r.NoticeBox=L.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var R=n(83611);r.Slider=R.Slider;var M=n(78581);r.Stack=M.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var F=n(12764);r.TextArea=F.TextArea;var W=n(71218);r.TimeDisplay=W.TimeDisplay;var K=n(30341);r.Tooltip=K.Tooltip},30381:function(I,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"],V=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"}],k=[{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"}],S=r.getGasLabel=function(){function l(c,m){var i=String(c).toLowerCase(),d=k.find(function(u){return u.id===i||u.name.toLowerCase()===i});return d&&d.label||m||c}return l}(),y=r.getGasColor=function(){function l(c){var m=String(c).toLowerCase(),i=k.find(function(d){return d.id===m||d.name.toLowerCase()===m});return i&&i.color}return l}(),p=r.timeAgo=function(){function l(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var i=m-c;if(i>3600){var d=Math.round(i/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(i>60){var u=Math.round(i/60);return u+" minute"+(u===1?"":"s")+" ago"}else{var s=Math.round(i);return s+" second"+(s===1?"":"s")+" ago"}return"just now"}return l}()},28766:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(69321),V=function(){return f.keys().map(function(y){return f(y)})},k=r.KitchenSink=function(){function S(y,p){var l=y.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(p,"pageIndex",0),d=i[0],u=i[1],s=V(),v=s[d],g=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{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:s.map(function(C,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function N(){return u(h)}return N}(),children:C.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:v.meta.render()})})]})})}return S}()},20697:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** + */var f=n(69321),V=function(){return f.keys().map(function(y){return f(y)})},k=r.KitchenSink=function(){function S(y,p){var l=y.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(p,"pageIndex",0),d=i[0],u=i[1],s=V(),C=s[d],g=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{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:s.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function N(){return u(h)}return N}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},20697:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -214,13 +214,13 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,l=[0,0],c,m,i,d,u,s=r.setWindowKey=function(){function j(F){S=F}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),C=r.setWindowPosition=function(){function j(F){var W=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return j}(),h=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,W,K){K===void 0&&(K=50);for(var _=[W],$,z=0;z<F.length;z++){var Y=F[z];Y!==W&&(_.length<K?_.push(Y):$=Y)}return[_,$]},L=r.storeWindowGeometry=function(){var j=V(o().mark(function(){function F(){var W,K,_,$;return o().wrap(function(){function z(Y){for(;;)switch(Y.prev=Y.next){case 0:return k.log("storing geometry"),W={pos:v(),size:g()},e.storage.set(S,W),Y.t0=B,Y.next=6,e.storage.get("geometries");case 6:if(Y.t1=Y.sent,Y.t1){Y.next=9;break}Y.t1=[];case 9:Y.t2=Y.t1,Y.t3=S,K=(0,Y.t0)(Y.t2,Y.t3),_=K[0],$=K[1],$&&e.storage.remove($),e.storage.set("geometries",_);case 16:case"end":return Y.stop()}}return z}(),F)}return F}()));return function(){function F(){return j.apply(this,arguments)}return F}()}(),w=r.recallWindowGeometry=function(){var j=V(o().mark(function(){function F(W){var K,_,$,z;return o().wrap(function(){function Y(Z){for(;;)switch(Z.prev=Z.next){case 0:if(W===void 0&&(W={}),Z.t0=W.fancy,!Z.t0){Z.next=6;break}return Z.next=5,e.storage.get(S);case 5:Z.t0=Z.sent;case 6:return K=Z.t0,K&&k.log("recalled geometry:",K),_=(K==null?void 0:K.pos)||W.pos,$=W.size,Z.next=12,c;case 12:z=[window.screen.availWidth,window.screen.availHeight],$&&($=[Math.min(z[0],$[0]),Math.min(z[1],$[1])],h($)),_?($&&W.locked&&(_=A(_,$)[1]),C(_)):$&&(_=(0,a.vecAdd)((0,a.vecScale)(z,.5),(0,a.vecScale)($,-.5),(0,a.vecScale)(l,-1)),C(_));case 15:case"end":return Z.stop()}}return Y}(),F)}return F}()));return function(){function F(W){return j.apply(this,arguments)}return F}()}(),T=r.setupDrag=function(){var j=V(o().mark(function(){function F(){return o().wrap(function(){function W(K){for(;;)switch(K.prev=K.next){case 0:return c=Byond.winget(Byond.windowId,"pos").then(function(_){return[_.x-window.screenLeft,_.y-window.screenTop]}),K.next=3,c;case 3:l=K.sent,k.debug("screen offset",l);case 5:case"end":return K.stop()}}return W}(),F)}return F}()));return function(){function F(){return j.apply(this,arguments)}return F}()}(),A=function(F,W){for(var K=N(),_=b(),$=[F[0],F[1]],z=!1,Y=0;Y<2;Y++){var Z=K[Y],ie=K[Y]+_[Y];F[Y]<Z?($[Y]=Z,z=!0):F[Y]+W[Y]>ie&&($[Y]=ie-W[Y],z=!0)}return[z,$]},x=r.dragStartHandler=function(){function j(F){k.log("drag start"),y=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return j}(),E=function j(F){k.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",j),y=!1,L()},P=function(F){y&&(F.preventDefault(),C((0,a.vecAdd)([F.screenX,F.screenY],m)))},R=r.resizeStartHandler=function(){function j(F,W){return function(K){i=[F,W],k.log("resize start",i),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",M),D(K)}}return j}(),M=function j(F){k.log("resize end",u),D(F),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),p=!1,L()},D=function(F){p&&(F.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(i,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),u[0]=Math.max(u[0],150),u[1]=Math.max(u[1],50),h(u))}},33053:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** +*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,l=[0,0],c,m,i,d,u,s=r.setWindowKey=function(){function j(F){S=F}return j}(),C=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),v=r.setWindowPosition=function(){function j(F){var W=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return j}(),h=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,W,K){K===void 0&&(K=50);for(var _=[W],$,z=0;z<F.length;z++){var Y=F[z];Y!==W&&(_.length<K?_.push(Y):$=Y)}return[_,$]},L=r.storeWindowGeometry=function(){var j=V(o().mark(function(){function F(){var W,K,_,$;return o().wrap(function(){function z(Y){for(;;)switch(Y.prev=Y.next){case 0:return k.log("storing geometry"),W={pos:C(),size:g()},e.storage.set(S,W),Y.t0=B,Y.next=6,e.storage.get("geometries");case 6:if(Y.t1=Y.sent,Y.t1){Y.next=9;break}Y.t1=[];case 9:Y.t2=Y.t1,Y.t3=S,K=(0,Y.t0)(Y.t2,Y.t3),_=K[0],$=K[1],$&&e.storage.remove($),e.storage.set("geometries",_);case 16:case"end":return Y.stop()}}return z}(),F)}return F}()));return function(){function F(){return j.apply(this,arguments)}return F}()}(),w=r.recallWindowGeometry=function(){var j=V(o().mark(function(){function F(W){var K,_,$,z;return o().wrap(function(){function Y(Z){for(;;)switch(Z.prev=Z.next){case 0:if(W===void 0&&(W={}),Z.t0=W.fancy,!Z.t0){Z.next=6;break}return Z.next=5,e.storage.get(S);case 5:Z.t0=Z.sent;case 6:return K=Z.t0,K&&k.log("recalled geometry:",K),_=(K==null?void 0:K.pos)||W.pos,$=W.size,Z.next=12,c;case 12:z=[window.screen.availWidth,window.screen.availHeight],$&&($=[Math.min(z[0],$[0]),Math.min(z[1],$[1])],h($)),_?($&&W.locked&&(_=A(_,$)[1]),v(_)):$&&(_=(0,a.vecAdd)((0,a.vecScale)(z,.5),(0,a.vecScale)($,-.5),(0,a.vecScale)(l,-1)),v(_));case 15:case"end":return Z.stop()}}return Y}(),F)}return F}()));return function(){function F(W){return j.apply(this,arguments)}return F}()}(),T=r.setupDrag=function(){var j=V(o().mark(function(){function F(){return o().wrap(function(){function W(K){for(;;)switch(K.prev=K.next){case 0:return c=Byond.winget(Byond.windowId,"pos").then(function(_){return[_.x-window.screenLeft,_.y-window.screenTop]}),K.next=3,c;case 3:l=K.sent,k.debug("screen offset",l);case 5:case"end":return K.stop()}}return W}(),F)}return F}()));return function(){function F(){return j.apply(this,arguments)}return F}()}(),A=function(F,W){for(var K=N(),_=b(),$=[F[0],F[1]],z=!1,Y=0;Y<2;Y++){var Z=K[Y],ie=K[Y]+_[Y];F[Y]<Z?($[Y]=Z,z=!0):F[Y]+W[Y]>ie&&($[Y]=ie-W[Y],z=!0)}return[z,$]},x=r.dragStartHandler=function(){function j(F){k.log("drag start"),y=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return j}(),E=function j(F){k.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",j),y=!1,L()},P=function(F){y&&(F.preventDefault(),v((0,a.vecAdd)([F.screenX,F.screenY],m)))},R=r.resizeStartHandler=function(){function j(F,W){return function(K){i=[F,W],k.log("resize start",i),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",M),D(K)}}return j}(),M=function j(F){k.log("resize end",u),D(F),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),p=!1,L()},D=function(F){p&&(F.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(i,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),u[0]=Math.max(u[0],150),u[1]=Math.max(u[1],50),h(u))}},33053:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** * 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 h(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return h}(),V,k=!0,S=function h(N,b){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),b){V=setTimeout(function(){return h(N)});return}k!==N&&(k=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},y=null,p=r.canStealFocus=function(){function h(N){var b=String(N.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),l=function(N){c(),y=N,y.addEventListener("blur",c)},c=function h(){y&&(y.removeEventListener("blur",h),y=null)},m=null,i=null,d=[],u=r.addScrollableNode=function(){function h(N){d.push(N)}return h}(),s=r.removeScrollableNode=function(){function h(N){var b=d.indexOf(N);b>=0&&d.splice(b,1)}return h}(),v=function(N){if(!(y||!k))for(var b=document.body;N&&N!==b;){if(d.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(h){var N=h.target;N!==i&&(i=N,v(N))}),window.addEventListener("focusin",function(h){if(i=null,m=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){i=null,S(!1,!0)}),window.addEventListener("blur",function(h){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},C=r.KeyEvent=function(){function h(b,B,L){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!L}var N=h.prototype;return N.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),N.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),N.isDown=function(){function b(){return this.type==="keydown"}return b}(),N.isUp=function(){function b(){return this.type==="keyup"}return b}(),N.toString=function(){function b(){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 b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var N=h.keyCode,b=new C(h,"keydown",g[N]);t.emit("keydown",b),t.emit("key",b),g[N]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var N=h.keyCode,b=new C(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[N]=!1}})},16671:function(I,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 h(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return h}(),V,k=!0,S=function h(N,b){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),b){V=setTimeout(function(){return h(N)});return}k!==N&&(k=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},y=null,p=r.canStealFocus=function(){function h(N){var b=String(N.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),l=function(N){c(),y=N,y.addEventListener("blur",c)},c=function h(){y&&(y.removeEventListener("blur",h),y=null)},m=null,i=null,d=[],u=r.addScrollableNode=function(){function h(N){d.push(N)}return h}(),s=r.removeScrollableNode=function(){function h(N){var b=d.indexOf(N);b>=0&&d.splice(b,1)}return h}(),C=function(N){if(!(y||!k))for(var b=document.body;N&&N!==b;){if(d.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(h){var N=h.target;N!==i&&(i=N,C(N))}),window.addEventListener("focusin",function(h){if(i=null,m=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){i=null,S(!1,!0)}),window.addEventListener("blur",function(h){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},v=r.KeyEvent=function(){function h(b,B,L){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!L}var N=h.prototype;return N.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),N.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),N.isDown=function(){function b(){return this.type==="keydown"}return b}(),N.isUp=function(){function b(){return this.type==="keyup"}return b}(),N.toString=function(){function b(){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 b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var N=h.keyCode,b=new v(h,"keydown",g[N]);t.emit("keydown",b),t.emit("key",b),g[N]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var N=h.keyCode,b=new v(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[N]=!1}})},16671:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -230,11 +230,11 @@ * @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 S(y,p,l){if(p===void 0&&(p=-t),l===void 0&&(l=""),typeof y!="number"||!Number.isFinite(y))return y;var c=Math.floor(Math.log10(y)),m=Math.floor(Math.max(p*3,c)),i=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],v=y/Math.pow(1e3,d),g=i>p?2+d*3-m:0,C=(0,e.toFixed)(v,g)+" "+s+l;return C.trim()}return S}(),f=r.formatPower=function(){function S(y,p){return p===void 0&&(p=0),o(y,p,"W")}return S}(),V=r.formatMoney=function(){function S(y,p){if(p===void 0&&(p=0),!Number.isFinite(y))return y;var l=(0,e.round)(y,p);p>0&&(l=(0,e.toFixed)(y,p)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var i="",d=0;d<c;d++)d>0&&d<m&&(m-d)%3===0&&(i+="\u2009"),i+=l.charAt(d);return i}return S}(),k=r.formatDb=function(){function S(y){var p=20*Math.log(y)/Math.log(10),l=p>=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39891:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(31068)),a=n(33053),t=n(50175);function o(u){if(typeof WeakMap!="function")return null;var s=new WeakMap,v=new WeakMap;return(o=function(C){return C?v:s})(u)}function f(u,s){if(!s&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var v=o(s);if(v&&v.has(u))return v.get(u);var g={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var N=C?Object.getOwnPropertyDescriptor(u,h):null;N&&(N.get||N.set)?Object.defineProperty(g,h,N):g[h]=u[h]}return g.default=u,v&&v.set(u,g),g}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(y,p,l){if(p===void 0&&(p=-t),l===void 0&&(l=""),typeof y!="number"||!Number.isFinite(y))return y;var c=Math.floor(Math.log10(y)),m=Math.floor(Math.max(p*3,c)),i=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],C=y/Math.pow(1e3,d),g=i>p?2+d*3-m:0,v=(0,e.toFixed)(C,g)+" "+s+l;return v.trim()}return S}(),f=r.formatPower=function(){function S(y,p){return p===void 0&&(p=0),o(y,p,"W")}return S}(),V=r.formatMoney=function(){function S(y,p){if(p===void 0&&(p=0),!Number.isFinite(y))return y;var l=(0,e.round)(y,p);p>0&&(l=(0,e.toFixed)(y,p)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var i="",d=0;d<c;d++)d>0&&d<m&&(m-d)%3===0&&(i+="\u2009"),i+=l.charAt(d);return i}return S}(),k=r.formatDb=function(){function S(y){var p=20*Math.log(y)/Math.log(10),l=p>=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39891:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(31068)),a=n(33053),t=n(50175);function o(u){if(typeof WeakMap!="function")return null;var s=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:s})(u)}function f(u,s){if(!s&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var C=o(s);if(C&&C.has(u))return C.get(u);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var N=v?Object.getOwnPropertyDescriptor(u,h):null;N&&(N.get||N.set)?Object.defineProperty(g,h,N):g[h]=u[h]}return g.default=u,C&&C.set(u,g),g}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=(0,t.createLogger)("hotkeys"),k={},S=[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],y={},p=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},l=function(s){var v=String(s);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){v==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=p(s.code);if(g){var C=k[g];if(C)return V.debug("macro",C),Byond.command(C);if(s.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return V.debug(h),Byond.command(h)}if(s.isUp()&&y[g]){y[g]=!1;var N='Key_Up "'+g+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var v=S.indexOf(s);v>=0&&S.splice(v,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,v=Object.keys(y);s<v.length;s++){var g=v[s];y[g]&&(y[g]=!1,V.log('releasing key "'+g+'"'),Byond.command('Key_Up "'+g+'"'))}}return u}(),d=r.setupHotKeys=function(){function u(){Byond.winget("default.*").then(function(s){for(var v={},g=0,C=Object.keys(s);g<C.length;g++){var h=C[g],N=h.split("."),b=N[1],B=N[2];b&&B&&(v[b]||(v[b]={}),v[b][B]=s[h])}for(var L=/\\"/g,w=function(){function R(M){return M.substring(1,M.length-1).replace(L,'"')}return R}(),T=0,A=Object.keys(v);T<A.length;T++){var x=A[T],E=v[x],P=w(E.name);k[P]=w(E.command)}V.debug("loaded macros",k)}),a.globalEvents.on("window-blur",function(){i()}),a.globalEvents.on("key",function(s){l(s)})}return u}()},89163:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AICard=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.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 l.integrity>=75?c="green":l.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:l.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:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.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:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,i){return(0,e.createComponentVNode)(2,t.Box,{children:m},i)})})||(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:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return p("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:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},46817:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.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;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var i=!0;return l.integrity>=100&&l.stat!==2&&(i=!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:l.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:l.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:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(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:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||l.active,content:!i||l.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},20420:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.APC=function(){function p(l,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,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,v=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],C=d.powerChannels||[],h=S[d.malfStatus]||S[0],N=d.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:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return i("breaker")}return b}()}),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:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return i("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return i("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return i("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],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:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function b(){return i("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function b(){return i("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.view_screen,C=v.authenticated_account,h=v.ticks_left_locked_down,N=v.linked_db,b;if(h>0)b=(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)b=(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(C)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);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,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.machine_id,C=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:C,icon:"eject",onClick:function(){function h(){return s("insert_card")}return h}()})})})]})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=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:g===0,onClick:function(){function C(){return s("change_security_level",{new_security_level:1})}return C}()})}),(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:g===2,onClick:function(){function C(){return s("change_security_level",{new_security_level:2})}return C}()})}),(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)]})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),C=g[0],h=g[1],N=(0,a.useLocalState)(d,"fundsAmount",0),b=N[0],B=N[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[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 h(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 B(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 T(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 s("transfer",{target_acc_number:C,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),C=g[0],h=g[1],N=v.owner_name,b=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 B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:C})}return B}()})})]})}),(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 B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=(0,a.useLocalState)(d,"accountID",null),C=g[0],h=g[1],N=(0,a.useLocalState)(d,"accountPin",null),b=N[0],B=N[1],L=v.machine_id,w=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 T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:C,account_pin:b})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=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"})]}),g.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return s("view_screen",{view_screen:0})}return g}()})}},90698:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),V=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function v(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,u):L===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return v}(),p=function(g,C){var h=(0,t.useBackend)(C),N=h.data,b=(0,t.useLocalState)(C,"tabIndex",0),B=b[0],L=b[1],w=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:B===0,onClick:function(){function T(){return L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,C){var h=(0,t.useLocalState)(C,"tabIndex",0),N=h[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(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(C,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(C,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(C,"sortOrder",!0),R=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(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,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var F=R?1:-1;return D[x].localeCompare(j[x])*F}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.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"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},i=function(g,C){var h=(0,t.useLocalState)(C,"sortId","name"),N=h[0],b=h[1],B=(0,t.useLocalState)(C,"sortOrder",!0),L=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function x(){N===T?w(!L):(b(T),w(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(C,"searchText",""),w=L[0],T=L[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 T(E)}return A}()})})]})},u=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.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:"#"+B+" / "+L,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:["#",B]}),!!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:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"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)})]})})})]})},s=function(g,C){var h=(0,t.useBackend)(C),N=h.act,b=h.data,B=(0,t.useLocalState)(C,"accName",""),L=B[0],w=B[1],T=(0,t.useLocalState)(C,"accDeposit",""),A=T[0],x=T[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,R){return w(R)}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,R){return x(R)}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:L,starting_funds:A})}return E}()})]})}},66895:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AgentCard=function(){function S(y,p){var l=(0,a.useLocalState)(p,"tabIndex",0),c=l[0],m=l[1],i=function(){function d(u){switch(u){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);default:return(0,e.createComponentVNode)(2,V)}}return d}();return(0,e.createComponentVNode)(2,o.Window,{width:425,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:c===0,onClick:function(){function d(){return m(0)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function d(){return m(1)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),i(c)]})})})}return S}(),V=r.AgentCardInfo=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.registered_name,d=m.sex,u=m.age,s=m.assignment,v=m.associated_account_number,g=m.blood_type,C=m.dna_hash,h=m.fingerprint_hash,N=m.photo,b=m.ai_tracking;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,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:i||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:d||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:h||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(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,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),k=r.AgentCardAppearances=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=(0,a.useLocalState)(p,"selectedAppearance",null),d=i[0],u=i[1],s=m.appearances;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:s.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:v===d,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+v.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function g(){u(v),c("change_appearance",{new_appearance:v.name})}return g}()})},v.name)})})})}return S}()},26354:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],d=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 u(){return l("disrupt-main")}return u}()}),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:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return l("disrupt-backup")}return u}()}),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:d.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 u(){return l("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return l("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return l("shock-perm")}return u}()})],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 u(){return l("idscan-toggle")}return u}()}),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 u(){return l("emergency-toggle")}return u}()})}),(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 u(){return l("bolt-toggle")}return u}()}),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 u(){return l("light-toggle")}return u}()}),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 u(){return l("safe-toggle")}return u}()}),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 u(){return l("speed-toggle")}return u}()}),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 u(){return l("open-close")}return u}()}),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 k}()},26673:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.AirAlarm=function(){function d(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.air,N=C.mode,b=C.atmos_alarm,B=C.locked,L=C.alarmActivated,w=C.rcon,T=C.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(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 g("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:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return g(L?"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:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var v=(0,a.useLocalState)(s,"tabIndex",0),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var v=(0,a.useLocalState)(s,"tabIndex",0),g=v[0],C=v[1];switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},l=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.vents;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},c=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.scrubbers;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return b}()})}),(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 b(){return g("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},m=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.modes,N=C.presets,b=C.emagged,B=C.mode,L=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(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(w){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===L,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.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"})]}),h.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(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},N.name)})]})})}},98565:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.exterior_status,m=l.interior_status,i=l.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function s(){return p("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function s(){return p("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:m==="open"?"red":i?"yellow":null,onClick:function(){function s(){return p("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function s(){return p("cycle_int_door")}return s}()}),(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:[d,u]})})]})})}return V}()},76385:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(i,d){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,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=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:g&S?"selected":null,onClick:function(){function C(){return s("unrestricted_access",{unres_dir:S})}return C}()})}),(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:g&k?"selected":null,onClick:function(){function C(){return s("unrestricted_access",{unres_dir:k})}return C}()})}),(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:g&y?"selected":null,onClick:function(){function C(){return s("unrestricted_access",{unres_dir:y})}return C}()})}),(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:g&V?"selected":null,onClick:function(){function C(){return s("unrestricted_access",{unres_dir:V})}return C}()})})]})]})})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function N(){return s("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function N(){return s("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:g,accessMod:function(){function N(b){return s("set",{access:b})}return N}(),grantAll:function(){function N(){return s("grant_all")}return N}(),denyAll:function(){function N(){return s("clear_all")}return N}(),grantDep:function(){function N(b){return s("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return s("deny_region",{region:b})}return N}()})}},55666:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),V=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=s.autofocus,g=s.buttons,C=g===void 0?[]:g,h=s.large_buttons,N=s.message,b=N===void 0?"":N,B=s.timeout,L=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(C.length>2?100:0),P=function(){function R(M){T===0&&M===k?A(C.length-1):T===C.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,V.Window,{title:L,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:C[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),P(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return R}(),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:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,v=s===void 0?[]:s,g=u.large_buttons,C=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,b){return g&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:N,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:N,id:b.toString(),selected:h===b})},b)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=s.large_buttons,g=m.button,C=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:g,fluid:!!v,onClick:function(){function N(){return u("choose",{choice:g})}return N}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},16504:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,v=c.has_gender,g=c.change_eye_color,C=c.change_skin_tone,h=c.change_skin_color,N=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=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,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,F=c.change_hair_gradient,W=c.change_facial_hair,K=c.facial_hair_styles,_=c.facial_hair_style,$=c.change_head_markings,z=c.head_marking_styles,Y=c.head_marking_style,Z=c.change_body_markings,ie=c.body_marking_styles,ae=c.body_marking_style,se=c.change_tail_markings,he=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,oe=c.body_accessory_style,Q=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,me=!1;return(g||C||h||N||b||B||L||w||T||A||x)&&(me=!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:i.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.specimen,selected:ne.specimen===d,onClick:function(){function be(){return l("race",{race:ne.specimen})}return be}()},ne.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function ne(){return l("gender",{gender:"male"})}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function ne(){return l("gender",{gender:"female"})}return ne}()}),!v&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function ne(){return l("gender",{gender:"plural"})}return ne}()})]}),!!me&&(0,e.createComponentVNode)(2,V),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headaccessorystyle,selected:ne.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:ne.headaccessorystyle})}return be}()},ne.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.hairstyle,selected:ne.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:ne.hairstyle})}return be}()},ne.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 ne(){return l("hair_gradient")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ne(){return l("hair_gradient_offset")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ne(){return l("hair_gradient_colour")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ne(){return l("hair_gradient_alpha")}return ne}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.facialhairstyle,selected:ne.facialhairstyle===_,onClick:function(){function be(){return l("facial_hair",{facial_hair:ne.facialhairstyle})}return be}()},ne.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:z.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headmarkingstyle,selected:ne.headmarkingstyle===Y,onClick:function(){function be(){return l("head_marking",{head_marking:ne.headmarkingstyle})}return be}()},ne.headmarkingstyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodymarkingstyle,selected:ne.bodymarkingstyle===ae,onClick:function(){function be(){return l("body_marking",{body_marking:ne.bodymarkingstyle})}return be}()},ne.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:he.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.tailmarkingstyle,selected:ne.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:ne.tailmarkingstyle})}return be}()},ne.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodyaccessorystyle,selected:ne.bodyaccessorystyle===oe,onClick:function(){function be(){return l("body_accessory",{body_accessory:ne.bodyaccessorystyle})}return be}()},ne.bodyaccessorystyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.altheadstyle,selected:ne.altheadstyle===ue,onClick:function(){function be(){return l("alt_head",{alt_head:ne.altheadstyle})}return be}()},ne.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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_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(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function d(){return l(i.action)}return d}()},i.key)})})}},77280:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.priority||[],m=l.minor||[];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(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return V}()},66274:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),V=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"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=(0,a.useLocalState)(m,"tabIndex",0),v=s[0],g=s[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();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 h(){return g(0)}return h}(),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 h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.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"})]}),s.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:V(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:v.ref})}return g}()})})]},v.name)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],v=u[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function C(h){return v(h)}return C}(),children:g.filter(function(C){return C.z===3}).map(function(C){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:C.x,y:C.y,zoom:s,icon:"circle",tooltip:C.name,color:k(C.danger)},C.ref)})})})}},90588:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.pressure,i=l.max_pressure,d=l.filter_type,u=l.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 s(){return p("power")}return s}()})}),(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 s(){return p("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:m,onDrag:function(){function s(v,g){return p("custom_pressure",{pressure:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function v(){return p("set_filter",{filter:s.gas_type})}return v}()},s.label)})})]})})})})}return V}()},87486:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.on,i=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=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 l("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:i===0,width:2.2,onClick:function(){function v(){return l("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:d,value:i,onDrag:function(){function v(g,C){return l("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function v(){return l("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.node_name,i=S.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:i===0,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function d(u,s){return l("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i+10)/100})}return d}()})]})}},46714:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.rate,i=l.max_rate,d=l.gas_unit,u=l.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 s(){return p("power")}return s}()})}),(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 s(){return p("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:i,value:m,onDrag:function(){function s(v,g){return p("custom_rate",{rate:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_rate")}return s}()})]})]})})})})}return V}()},66032:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),V=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[d].pressure," kpa"]}):"",Object.keys(i[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(i[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:i[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(i[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),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 d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(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 d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",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 d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(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 d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=function(l,c,m,i){return l.requirements===null?!0:!(l.requirements.metal*i>c||l.requirements.glass*i>m)},y=r.Autolathe=function(){function p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,v=d.metal_amount,g=d.glass_amount,C=d.busyname,h=d.busyamt,N=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],F=(0,k.createSearch)(D,function($){return $.name}),W="";B>0&&(W=b.map(function($,z){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[z][0],onClick:function(){function Y(){return i("remove_from_queue",{remove_from_queue:b.indexOf($)+1})}return Y}()},$)},z)}));var K=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||D)&&(d.showhacked||!$.hacked)}),D&&(0,t.filter)(F),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(L),_="Build";return D?_="Results for: '"+D+"':":A&&(_="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.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:_,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function $(z){return x(z)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(z,Y){return j(Y)}return $}(),mb:1}),K.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:d.busyname===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:1})}return z}(),children:(0,k.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:10})}return z}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:25})}return z}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:$.max_multiplier})}return z}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(z){return(0,k.toTitleCase)(z)+": "+$.requirements[z]}).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:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return i("clear_queue")}return $}()})]})]})]})})})}return p}()},13940:function(I,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.implant,m=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",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})]})],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!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function i(){return p("eject_case")}return i}()})]})})})}return V}()},55295:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.Biogenerator=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.data,u=i.config,s=d.container,v=d.processing,g=u.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:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=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."]})})})},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,v=u.container,g=u.container_curr_reagents,C=u.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:s}),(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:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.has_plants,v=u.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:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(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 g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,v=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),C=g[0],h=g[1],N=Object.entries(v).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.map(function(w){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:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*C,(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:s<w.cost*C,icon:"arrow-circle-down",onClick:function(){function T(){return d("create",{id:w.id,amount:C})}return T}()})})]},w)})},b[0])});return(0,e.createComponentVNode)(2,t.Section,{title:"Products",fill:!0,scrollable:!0,height:32,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Amount to vend:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:C,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function b(B,L){return h(L)}return b}()})],4),children:N})}},92247:function(I,r,n){"use strict";r.__esModule=!0,r.BlueSpaceArtilleryControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BlueSpaceArtilleryControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c;return l.ready?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"green",children:"Ready"}):l.reloadtime_text?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reloading In",color:"red",children:l.reloadtime_text}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:"No cannon connected!"}),(0,e.createComponentVNode)(2,o.Window,{width:400,height:125,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.notice&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Button,{icon:"crosshairs",content:l.target?l.target:"None",onClick:function(){function m(){return p("recalibrate")}return m}()})}),l.ready===1&&!!l.target&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Firing",children:(0,e.createComponentVNode)(2,t.Button,{icon:"skull",content:"FIRE!",color:"red",onClick:function(){function m(){return p("fire")}return m}()})}),!l.connected&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Complete Deployment",onClick:function(){function m(){return p("build")}return m}()})})]})})})})}return V}()},74594:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),V=r.BluespaceTap=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.product||[],i=c.desiredLevel,d=c.inputLevel,u=c.points,s=c.totalPoints,v=c.powerUse,g=c.availablePower,C=c.maxLevel,h=c.emagged,N=c.safeLevels,b=c.nextLevelPower,B=i>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:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(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.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",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,tooltip:"Set to 0",onClick:function(){function L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function L(){return l("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:d,minValue:0,color:B,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function L(w,T){return l("set",{set_level:T})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:C})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(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:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],y={average:[.25,.5],bad:[.5,1/0]},p=function(b,B){for(var L=[],w=0;w<b.length;w+=2)L.push(B(b[w],b[w+1],w));return L},l=function(b){return b.length>0?b.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,o.Box,{children:L},L)],0)},null):null},c=function(b){if(b>100){if(b<300)return"mild infection";if(b<400)return"mild infection+";if(b<500)return"mild infection++";if(b<700)return"acute infection";if(b<800)return"acute infection+";if(b<900)return"acute infection++";if(b>=900)return"septic"}return""},m=r.BodyScanner=function(){function N(b,B){var L=(0,t.useBackend)(B),w=L.data,T=w.occupied,A=w.occupant,x=A===void 0?{}:A,E=T?(0,e.createComponentVNode)(2,i,{occupant:x}):(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:E})})}return N}(),i=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,d,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,g,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,C,{organs:B.intOrgan})]})},d=function(b,B){var L=(0,t.useBackend)(B),w=L.act,T=L.data,A=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function x(){return w("print_p")}return x}(),children:"Print Report"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function x(){return w("ejectify")}return x}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[A.stat][0],children:V[A.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,o.Box,{children:A.implant.map(function(x){return x.name}).join(", ")}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"None"})})]})})},u=function(b){var B=b.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,o.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},s=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:p(S,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,v,{value:B[L[1]],marginBottom:T<S.length-2})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&(0,e.createComponentVNode)(2,v,{value:B[w[1]]})})]})],4)})})})},v=function(b){return(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:b.value/100,mt:"0.5rem",mb:!!b.marginBottom&&"0.5rem",ranges:y,children:(0,a.round)(b.value,0)})},g=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"External Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"External Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.status.dead&&"bad"||(!!B.internalBleeding||!!B.burnWound||!!B.lungRuptured||!!B.status.broken||!!B.open||B.germ_level>100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:y,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!B.bruteLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(B.bruteLoss,0),"\xA0"]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(B.fireLoss,0)]})})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(B.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,c(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},C=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:y,children:(0,a.round)(B.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([c(B.germ_level)])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},h=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",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."]})})})}},73440:function(I,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=n(92462),k=r.BookBinder=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.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 s(){return c("print_book")}return s}()}),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:i.title,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_author")}return s}()})}),(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:d.map(function(s){return s.description}),onSelected:function(){function s(v){return c("toggle_binder_category",{category_id:u[v]})}return s}()})})}),(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 s(){return(0,f.modalOpen)(p,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return i.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:s.category_id})}return v}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,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:i,onClick:function(){function b(){return l("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,v=c.make,g=c.fixfloor,C=c.nag_empty,h=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:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function b(){return l("eattiles")}return b}()}),(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 b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return l("anchored")}return b}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},39805:function(I,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=c.heal_threshold,w=c.injection_amount,T=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:i,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:i,onClick:function(){function E(){return l("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:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:i,onChange:function(){function E(P,R){return l("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:i,onChange:function(){function E(P,R){return l("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return l("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:i,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,v=c.arrest_mode,g=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:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return l("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return l("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return l("authwarrant")}return C}()})]}),(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 C(){return l("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return l("arrdeclare")}return C}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function C(){return l("ejectpai")}return C}()})})]})})}return k}()},71169:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,p){var l=y.cell,c=(0,o.useBackend)(p),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,v=l.time_left_seconds,g=l.time_set_seconds,C=l.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(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:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(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"})})]})},V=function(y){var p=y.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"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(y,p){var l=(0,o.useBackend)(p),c=l.act,m=l.data,i=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,V,{cells:i})})})})})}return S}()},19070:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;i<l.spns.length;i++)m.push(l.spns[i]);return(0,e.createComponentVNode)(2,o.Window,{width:500,height:l.timing?237:396,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cell Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell ID",children:l.cell_id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:l.nameText}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crimes",children:l.crimes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brigged By",children:l.brigged_by}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Brigged For",children:l.time_set}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:l.time_left}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Flash",disabled:!l.isAllowed,onClick:function(){function d(){return p("flash")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Reset Timer",disabled:!l.timing||!l.isAllowed,onClick:function(){function d(){return p("restart_timer")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Release Prisoner",disabled:!l.timing||!l.isAllowed,onClick:function(){function d(){return p("stop")}return d}()})],4)})]})}),!l.timing&&(0,e.createComponentVNode)(2,t.Section,{title:"New Prisoner",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prisoner Name",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c,content:l.prisoner_name?l.prisoner_name:"-----",disabled:!l.isAllowed,onClick:function(){function d(){return p("prisoner_name")}return d}()}),!!l.spns.length&&(0,e.createComponentVNode)(2,t.Dropdown,{disabled:!l.isAllowed||!l.spns.length,options:l.spns,width:"250px",onSelected:function(){function d(u){return p("prisoner_name",{prisoner_name:u})}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prisoner Crimes",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:l.prisoner_charge?l.prisoner_charge:"-----",disabled:!l.isAllowed,onClick:function(){function d(){return p("prisoner_charge")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prisoner Time",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:l.prisoner_time?l.prisoner_time:"-----",disabled:!l.isAllowed,onClick:function(){function d(){return p("prisoner_time")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start",children:(0,e.createComponentVNode)(2,t.Button,{icon:"gavel",content:"Start Sentence",disabled:!l.prisoner_name||!l.prisoner_charge||!l.prisoner_time||!l.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return V}()},59681:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleContent=r.CameraConsole=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),f=n(37843),V=n(91819),k=n(2971),S=n(84947);String.prototype.trimLongStr=function(m){return this.length>m?this.substring(0,m)+"...":this};var y=function(i,d){var u,s;if(!d)return[];var v=i.findIndex(function(g){return g.name===d.name});return[(u=i[v-1])==null?void 0:u.name,(s=i[v+1])==null?void 0:s.name]},p=function(i,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(i)},l=r.CameraConsole=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,v=u.data,g=u.config,C=v.mapRef,h=v.activeCamera,N=p(v.cameras),b=y(N,h),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.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),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,v=u.data,g=(0,V.useLocalState)(d,"searchText",""),C=g[0],h=g[1],N=v.activeCamera,b=p(v.cameras,C);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&B.name===N.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},64487:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),f=n(37843),V=n(91819),k=n(2971),S=n(84947),y=function(d,u){var s,v;if(!u)return[];var g=d.findIndex(function(C){return C.name===u.name});return[(s=d[g-1])==null?void 0:s.name,(v=d[g+1])==null?void 0:v.name]},p=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(v){return v.name});return(0,t.flow)([(0,a.filter)(function(v){return v==null?void 0:v.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(v){return v.name})])(d)},l=r.CameraConsole220=function(){function i(d,u){var s=(0,V.useLocalState)(u,"tabIndex",0),v=s[0],g=s[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{children:(0,e.createComponentVNode)(2,k.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{width:v===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,k.Tabs,{fluid:!0,ml:v===1?1:0,mt:v===1?1:0,children:[(0,e.createComponentVNode)(2,k.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,k.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,k.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,k.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),C(v)]})})})})}return i}(),c=r.CameraConsoleMapContent=function(){function i(d,u){var s=(0,V.useBackend)(u),v=s.act,g=s.data,C=s.config,h=p(g.cameras),N=(0,V.useLocalState)(u,"zoom",1),b=N[0],B=N[1],L=g.mapRef,w=g.activeCamera,T=g.stationLevel,A=y(h,w),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,k.NanoMap,{onZoom:function(){function P(R){return B(R)}return P}(),children:h.filter(function(P){return P.z===T}).map(function(P){return(0,e.createComponentVNode)(2,k.NanoMap.NanoButton,{activeCamera:w,x:P.x,y:P.y,context:u,zoom:b,icon:"circle",tooltip:P.name,name:P.name,color:"blue",status:P.status},P.ref)})})}),(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function P(){return v("switch_camera",{name:x})}return P}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function P(){return v("switch_camera",{name:E})}return P}()})],4)],4),(0,e.createComponentVNode)(2,k.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:L,type:"map"}})]})]})}return i}(),m=r.CameraConsoleOldContent=function(){function i(d,u){var s=(0,V.useBackend)(u),v=s.act,g=s.data,C=s.config,h=g.mapRef,N=g.activeCamera,b=(0,V.useLocalState)(u,"searchText",""),B=b[0],L=b[1],w=p(g.cameras,B),T=y(w,N),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,k.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,R){return L(R)}return E}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",N&&E.name===N.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return v("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return v("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return v("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return i}()},21348:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),V=n(84947),k=r.Canister=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,v=m.minReleasePressure,g=m.maxReleasePressure,C=m.valveOpen,h=m.name,N=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var P=[],R=[],M=[],D=[],j=0;for(j=0;j<b.prim.options.length;j++)P.push(b.prim.options[j].name);for(j=0;j<b.sec.options.length;j++)R.push(b.sec.options[j].name);for(j=0;j<b.ter.options.length;j++)M.push(b.ter.options[j].name);for(j=0;j<b.quart.options.length;j++)D.push(b.quart.options[j].name);var F="";return N&&(F=(0,e.createComponentVNode)(2,o.Section,{title:"Paint",children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.prim.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:T,disabled:!N,options:P,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:P.indexOf(K),ctype:"prim"})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.sec.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:A,disabled:!N,options:R,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:R.indexOf(K),ctype:"sec"})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.ter.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:x,disabled:!N,options:M,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:M.indexOf(K),ctype:"ter"})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.quart.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:E,disabled:!N,options:D,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:D.indexOf(K),ctype:"quart"})}return W}()})})]})})),(0,e.createComponentVNode)(2,V.Window,{width:600,height:N?300:230,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:h,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Relabel",disabled:!N,onClick:function(){function W(){return c("relabel")}return W}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"66px",label:"Pressure",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d,format:function(){function W(K){return K<1e4?(0,a.toFixed)(K)+" kPa":(0,f.formatSiUnit)(K*1e3,1,"Pa")}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Regulator",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",left:"-8px",children:[(0,e.createComponentVNode)(2,o.Knob,{size:1.25,color:!!C&&"yellow",value:u,unit:"kPa",minValue:v,maxValue:g,step:5,stepPixelSize:1,onDrag:function(){function W(K,_){return c("pressure",{pressure:_})}return W}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",tooltip:"Max Release Pressure",onClick:function(){function W(){return c("pressure",{pressure:g})}return W}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",tooltip:"Reset Release Pressure",onClick:function(){function W(){return c("pressure",{pressure:s})}return W}()})]})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Valve",children:(0,e.createComponentVNode)(2,o.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:C?L?"caution":"danger":null,content:C?"Open":"Closed",onClick:function(){function W(){return c("valve")}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{mr:1,label:"Port",children:(0,e.createComponentVNode)(2,o.Tooltip,{content:i?"Connected":"Disconnected",position:"top",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",children:(0,e.createComponentVNode)(2,o.Icon,{size:1.25,name:i?"plug":"times",color:i?"good":"bad"})})})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Holding Tank",buttons:!!L&&(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function W(){return c("eject")}return W}()}),children:[!!L&&(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Label",children:w.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:w.tankPressure})," kPa"]})]}),!L&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No Holding Tank"})]}),F]})})}return S}()},13944:function(I,r,n){"use strict";r.__esModule=!0,r.CardComputerNoRecords=r.CardComputerNoCard=r.CardComputerLoginWarning=r.CardComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=n(30381),k=V.COLORS.department,S=r.CardComputerLoginWarning=function(){function c(){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Warning",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Not logged in"]})})})}return c}(),y=r.CardComputerNoCard=function(){function c(){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Missing",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No card to modify"]})})})}return c}(),p=r.CardComputerNoRecords=function(){function c(){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Records",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,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 records"]})})})}return c}(),l=r.CardComputer=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:s.mode===0,onClick:function(){function h(){return u("mode",{mode:0})}return h}(),children:"Job Transfers"}),!s.target_dept&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:s.mode===2,onClick:function(){function h(){return u("mode",{mode:2})}return h}(),children:"Access Modification"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"folder-open",selected:s.mode===1,onClick:function(){function h(){return u("mode",{mode:1})}return h}(),children:"Job Management"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:s.mode===3,onClick:function(){function h(){return u("mode",{mode:3})}return h}(),children:"Records"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"users",selected:s.mode===4,onClick:function(){function h(){return u("mode",{mode:4})}return h}(),children:"Department"})]}),g=(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Login/Logout",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.scan_name?"sign-out-alt":"id-card",selected:s.scan_name,content:s.scan_name?"Log Out: "+s.scan_name:"-----",onClick:function(){function h(){return u("scan")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card To Modify",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.modify_name?"eject":"id-card",selected:s.modify_name,content:s.modify_name?"Remove Card: "+s.modify_name:"-----",onClick:function(){function h(){return u("modify")}return h}()})})]})}),C;switch(s.mode){case 0:!s.authenticated||!s.scan_name?C=(0,e.createComponentVNode)(2,S):s.modify_name?C=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Card Information",children:[!s.target_dept&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Registered Name",children:(0,e.createComponentVNode)(2,t.Button,{icon:!s.modify_owner||s.modify_owner==="Unknown"?"exclamation-triangle":"pencil-alt",selected:s.modify_name,content:s.modify_owner,onClick:function(){function h(){return u("reg")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Number",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.account_number?"pencil-alt":"exclamation-triangle",selected:s.account_number,content:s.account_number?s.account_number:"None",onClick:function(){function h(){return u("account")}return h}()})})],4),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Latest Transfer",children:s.modify_lastlog||"---"})]}),(0,e.createComponentVNode)(2,t.Section,{title:s.target_dept?"Department Job Transfer":"Job Transfer",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.target_dept?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department",children:s.jobs_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special",children:s.jobs_top.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",labelColor:k.engineering,children:s.jobs_engineering.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",labelColor:k.medical,children:s.jobs_medical.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Science",labelColor:k.science,children:s.jobs_science.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",labelColor:k.security,children:s.jobs_security.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Service",labelColor:k.service,children:s.jobs_service.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supply",labelColor:k.supply,children:s.jobs_supply.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})})],4),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Retirement",children:s.jobs_assistant.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"CentCom",labelColor:k.centcom,children:s.jobs_centcom.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"purple",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Demotion",children:(0,e.createComponentVNode)(2,t.Button,{disabled:s.modify_assignment==="Demoted"||s.modify_assignment==="Terminated",content:"Demoted",tooltip:"Assistant access, 'demoted' title.",color:"red",icon:"times",onClick:function(){function h(){return u("demote")}return h}()},"Demoted")}),!!s.canterminate&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Non-Crew",children:(0,e.createComponentVNode)(2,t.Button,{disabled:s.modify_assignment==="Terminated",content:"Terminated",tooltip:"Zero access. Not crew.",color:"red",icon:"eraser",onClick:function(){function h(){return u("terminate")}return h}()},"Terminate")})]})}),!s.target_dept&&(0,e.createComponentVNode)(2,t.Section,{title:"Card Skins",children:[s.card_skins.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.current_skin===h.skin,content:h.display_name,onClick:function(){function N(){return u("skin",{skin_target:h.skin})}return N}()},h.skin)}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:s.all_centcom_skins.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.current_skin===h.skin,content:h.display_name,color:"purple",onClick:function(){function N(){return u("skin",{skin_target:h.skin})}return N}()},h.skin)})})]})],0):C=(0,e.createComponentVNode)(2,y);break;case 1:s.auth_or_ghost?C=(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{color:s.cooldown_time?"red":"",children:["Next Change Available:",s.cooldown_time?s.cooldown_time:"Now"]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Job Slots",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,textAlign:"center",children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Used Slots"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Total Slots"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Free Slots"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Close Slot"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Open Slot"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Priority"})]}),s.job_slots.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:h.is_priority?"green":"",children:h.title})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:h.current_positions}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:h.total_positions}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:h.total_positions>h.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.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:s.cooldown_time||!h.can_close,onClick:function(){function N(){return u("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function N(){return u("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return u("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?C=(0,e.createComponentVNode)(2,S):s.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function h(N){return u("set",{access:N})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(N){return u("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return u("deny_region",{region:N})}return h}()}):C=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?C=(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:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function h(){return u("wipe_all_logs")}return h}()}),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"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function h(){return u("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?C=(0,e.createComponentVNode)(2,S):C=(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"})]}),s.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return u("remote_demote",{remote_demote:h.name})}return N}()})})]},h.title)})]})});break;default:C=(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:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return c}()},62486:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var v=(0,o.useLocalState)(s,"contentsModal",null),g=v[0],C=v[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),N=h[0],b=h[1];if(g!==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:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),b(null)}return B}()})})]})},p=function(u,s){var v=(0,o.useBackend)(s),g=v.act,C=v.data,h=C.is_public,N=C.timeleft,b=C.moving,B=C.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",N!==1?L="Shuttle is en route (ETA: "+N+" minutes)":L="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:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},l=function(u,s){var v,g=(0,o.useBackend)(s),C=g.act,h=g.data,N=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return N.map(function(T){return w[T.name]=T.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(T){return T.name}),selected:(v=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){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:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var v=(0,o.useBackend)(s),g=v.act,C=v.data,h=C.categories,N=C.supply_packs,b=(0,o.useSharedState)(s,"category","Emergency"),B=b[0],L=b[1],w=(0,o.useSharedState)(s,"search_text",""),T=w[0],A=w[1],x=(0,o.useLocalState)(s,"contentsModal",null),E=x[0],P=x[1],R=(0,o.useLocalState)(s,"contentsModalTitle",null),M=R[0],D=R[1],j=(0,k.createSearch)(T,function(z){return z.name}),F=(0,o.useLocalState)(s,"selectedAccount"),W=F[0],K=F[1],_=(0,a.flow)([(0,t.filter)(function(z){return z.cat===h.filter(function(Y){return Y.name===B})[0].category||T}),T&&(0,t.filter)(j),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(N),$="Crate Catalogue";return T?$="Results for '"+T+"':":B&&($="Browsing "+B),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:h.map(function(z){return z.name}),selected:B,onSelected:function(){function z(Y){return L(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,Z){return A(Z)}return z}(),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(z){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[z.name," (",z.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:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!1,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!0,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Y(){P(z.contents),D(z.name)}return Y}()})]})]},z.name)})})})]})})},m=function(u,s){var v=u.request,g,C;switch(v.department){case"Engineering":C="CE",g="orange";break;case"Medical":C="CMO",g="teal";break;case"Science":C="RD",g="purple";break;case"Supply":C="CT",g="brown";break;case"Service":C="HOP",g="olive";break;case"Security":C="HOS",g="red";break;case"Command":C="CAP",g="blue";break;case"Assistant":C="Any Head",g="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:g,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},i=function(u,s){var v=(0,o.useBackend)(s),g=v.act,C=v.data,h=C.requests,N=C.orders,b=C.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:h.map(function(B){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 #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function L(){return g("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return g("deny",{ordernum:B.ordernum})}return L}()})]})]},B.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(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(I,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],i=c[1],d=l.cl_data,u=l.last_cl,s={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 g(C){return C in s?s[C]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();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 g(){return i(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function C(){return p("open_pr",{pr_number:g.num})}return C}()}),children:g.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},g)})})})})}return V}()},56975:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.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,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.amount,g=s.energy,C=s.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:g,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[g," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,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===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},N)})})})]})})})},p=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.chemicals,g=v===void 0?[]:v,C=[],h=0;h<(g.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(N,b){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 B(){return u("dispense",{reagent:N.id})}return B}()},b)}),C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.isBeakerLoaded,g=s.beakerCurrentVolume,C=s.beakerMaxVolume,h=s.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.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:[g," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),V=n(84947),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,v=d.autoEject,g=d.isActive,C=d.currentTemp,h=d.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 i("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function N(){return i("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)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function N(b,B){return i("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,v=d.beakerMaxVolume,g=d.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:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return i("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:g})})})}},35918:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),V=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var P={},R=Object.keys(x),M,D;for(D=0;D<R.length;D++)M=R[D],!(E.indexOf(M)>=0)&&(P[M]=x[M]);return P}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(R,M){return R.__proto__=M,R}return P}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.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:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return F}()})]})})})})},u=r.ChemMaster=function(){function x(E,P){var R=(0,a.useBackend)(P),M=R.data,D=M.condi,j=M.beaker,F=M.beaker_reagents,W=F===void 0?[]:F,K=M.buffer_reagents,_=K===void 0?[]:K,$=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.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,{beaker:j,beakerReagents:W,bufferNonEmpty:_.length>0}),(0,e.createComponentVNode)(2,v,{mode:$,bufferReagents:_}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:_.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.beaker,j=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(K,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_<j.length-1&&"2px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Analyze",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"analyze",{idx:_+1,beaker:1})}return $}()}),i.map(function($,z){return(0,e.createComponentVNode)(2,t.Button,{content:$,mb:"0",onClick:function(){function Y(){return M("add",{id:K.id,amount:$})}return Y}()},z)}),(0,e.createComponentVNode)(2,t.Button,{content:"All",mb:"0",onClick:function(){function $(){return M("add",{id:K.id,amount:K.volume})}return $}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Custom..",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"addcustom",{id:K.id})}return $}()})]})}return W}()}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No beaker loaded."})})})},v=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.mode,j=E.bufferReagents,F=j===void 0?[]:j;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Buffer",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["Transferring to\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:D?"flask":"trash",color:!D&&"bad",content:D?"Beaker":"Disposal",onClick:function(){function W(){return M("toggle")}return W}()})]}),children:F.length>0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function W(K,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_<F.length-1&&"2px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Analyze",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"analyze",{idx:_+1,beaker:0})}return $}()}),i.map(function($,z){return(0,e.createComponentVNode)(2,t.Button,{content:$,mb:"0",onClick:function(){function Y(){return M("remove",{id:K.id,amount:$})}return Y}()},z)}),(0,e.createComponentVNode)(2,t.Button,{content:"All",mb:"0",onClick:function(){function $(){return M("remove",{id:K.id,amount:K.volume})}return $}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Custom..",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"removecustom",{id:K.id})}return $}()})]})}return W}()}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Buffer is empty."})})})},g=function(E,P){var R=(0,a.useBackend)(P),M=R.act;return!E.bufferNonEmpty&&E.isCondiment?(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Production",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:"tint-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"Buffer is empty."]})})})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Production",children:E.isCondiment?(0,e.createComponentVNode)(2,T):(0,e.createComponentVNode)(2,C)})})},C=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=[{name:"Pills",icon:"pills"},{name:"Patches",icon:"plus-square"},{name:"Bottles",icon:"wine-bottle"}],F=function(K){switch(K){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,L);case 3:return(0,e.createComponentVNode)(2,w);default:return"UNKNOWN INTERFACE"}};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Tabs,{children:j.map(function(W,K){return K+=1,(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:W.icon,selected:D.production_mode===K,onClick:function(){function _(){return M("set_production_mode",{mode:K})}return _}(),children:W.name},K)})}),F(D.production_mode)],0)},h=function(x){l(E,x);function E(){var R;return R=x.call(this)||this,R.handleMouseUp=function(M){var D=R.props,j=D.placeholder,F=D.onMouseUp;M.button===1&&(M.target.value=j,M.target.select()),F&&F(M)},R}var P=E.prototype;return P.render=function(){function R(){var M=(0,a.useBackend)(this.context),D=M.data,j=D.maxnamelength;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Input,Object.assign({maxLength:j,onMouseUp:this.handleMouseUp},this.props)))}return R}(),E}(e.Component),N=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.children,F=E.maxQuantity,W=E.medicineName,K=E.placeholderName,_=E.productionType,$=E.quantity,z=D.buffer_reagents,Y=z===void 0?[]:z;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[j,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Quantity",children:(0,e.createComponentVNode)(2,t.Slider,{value:$,minValue:1,maxValue:F,onChange:function(){function Z(ie,ae){return M("set_"+_+"_amount",{amount:ae})}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,h,{fluid:!0,value:W,placeholder:K,onChange:function(){function Z(ie,ae){return M("set_"+_+"_name",{name:ae})}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Create",color:"green",disabled:Y.length<=0,onClick:function(){function Z(){return M("create_"+_)}return Z}()})})]})},b=function(E,P){var R=E.icon,M=p(E,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({style:{padding:0,"line-height":0}},M,{children:(0,e.createComponentVNode)(2,t.Box,{className:(0,k.classes)(["chem_master32x32",R])})})))},B=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.maxpills,F=D.pillamount,W=D.pillname,K=D.pillplaceholdername,_=D.pillsprite,$=D.pillstyles,z=$.map(function(Y){var Z=Y.id,ie=Y.sprite;return(0,e.createComponentVNode)(2,b,{icon:ie,color:"translucent",onClick:function(){function ae(){return M("set_pills_style",{style:Z})}return ae}(),selected:_===Z},Z)});return(0,e.createComponentVNode)(2,N,{maxQuantity:j,medicineName:W,placeholderName:K,productionType:"pills",quantity:F,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:z})})},L=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.maxpatches,F=D.patchamount,W=D.patchname,K=D.patchplaceholdername;return(0,e.createComponentVNode)(2,N,{maxQuantity:j,medicineName:W,placeholderName:K,productionType:"patches",quantity:F})},w=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.bottlesprite,F=D.maxbottles,W=D.bottleamount,K=D.bottlename,_=D.bottleplaceholdername,$=D.bottlestyles,z=$.map(function(Y){var Z=Y.id,ie=Y.sprite;return(0,e.createComponentVNode)(2,b,{icon:ie,color:"translucent",onClick:function(){function ae(){return M("set_bottles_style",{style:Z})}return ae}(),selected:j===Z},Z)});return(0,e.createComponentVNode)(2,N,{maxQuantity:F,medicineName:K,placeholderName:_,productionType:"bottles",quantity:W,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:z})})},T=function(E,P){var R=(0,a.useBackend)(P),M=R.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"box",content:"Create condiment pack (10u max)",mb:"0.5rem",onClick:function(){function D(){return(0,V.modalOpen)(P,"create_condi_pack")}return D}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"wine-bottle",content:"Create bottle (50u max)",mb:"0",onClick:function(){function D(){return M("create_condi_bottle")}return D}()})],4)},A=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.loaded_pill_bottle_style,F=D.containerstyles,W=D.loaded_pill_bottle,K={width:"20px",height:"20px"},_=F.map(function($){var z=$.color,Y=$.name,Z=j===z;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:K.width,height:K.height},onClick:function(){function ie(){return M("set_container_style",{style:z})}return ie}(),icon:Z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:Y,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:K.width,height:K.height,"background-color":z,opacity:.6,filter:"alpha(opacity=60)"}})]},z)});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:!W,content:"Eject Container",onClick:function(){function $(){return M("ejectp")}return $}()}),children:W?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",style:{position:"relative"},children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:K.width,height:K.height},icon:"tint-slash",onClick:function(){function $(){return M("clear_container_style")}return $}(),selected:!j,tooltip:"Default",tooltipPosition:"top"}),_]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",d)},8573:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(30381),V=n(22677),k=n(84947),S=n(96820),y=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=v.args,B=b.activerecord,L=b.realname,w=b.health,T=b.unidentity,A=b.strucenzymes,x=w.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Records of "+L,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:x.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:x[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:x[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:x[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:x[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!N.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:B})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function s(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.menu;return(0,V.modalRegisterBodyOverride)("view_rec",y),(0,e.createComponentVNode)(2,k.Window,{width:535,height:440,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l),(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,c)})})]})})]})}return s}(),l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.menu;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===1,icon:"home",onClick:function(){function B(){return h("menu",{num:1})}return B}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===2,icon:"folder",onClick:function(){function B(){return h("menu",{num:2})}return B}(),children:"Records"})]})})},c=function(v,g){var C=(0,t.useBackend)(g),h=C.data,N=h.menu,b;return N===1?b=(0,e.createComponentVNode)(2,m):N===2&&(b=(0,e.createComponentVNode)(2,i)),b},m=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.loading,B=N.scantemp,L=N.occupant,w=N.locked,T=N.can_brainscan,A=N.scan_mode,x=N.numberofpods,E=N.pods,P=N.selected_pod,R=w&&!!L;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function M(){return h("lock")}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!L,icon:"user-slash",content:"Eject Occupant",onClick:function(){function M(){return h("eject")}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:B.color,children:B.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function M(){return h("toggle_mode")}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L||b,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function M(){return h("scan")}return M}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",children:x?E.map(function(M,D){var j;return M.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:P===M.pod,icon:P===M.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function F(){return h("selectpod",{ref:M.pod})}return F}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+M.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",D+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:.75,color:M.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.biomass>=150?"circle":"circle-o"}),"\xA0",M.biomass]}),j]},D)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},i=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.records;return b.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:b.map(function(B,L){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:B.realname,onClick:function(){function w(){return h("view_rec",{ref:B.record})}return w}()},L)})}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(v,g){var C,h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.temp;if(!(!B||!B.text||B.text.length<=0)){var L=(C={},C[B.style]=!0,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",children:B.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function w(){return N("cleartemp")}return w}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.scanner,B=N.numberofpods,L=N.autoallowed,w=N.autoprocess,T=N.disk;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)(!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:w?0:1})}return A}()})],4),0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:B?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[B," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})})}},14283:function(I,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:i.map(function(d){return(0,e.createFragment)([d.name,(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{value:c[d.idx],step:.05,minValue:-5,maxValue:5,onDrag:function(){function u(s,v){return p("setvalue",{idx:d.idx+1,value:v})}return u}()})],0,d.name)})},i)})})})})}return V}()},98577:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);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,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function d(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.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,k),f(h)]})})})}return d}(),k=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.authenticated,N=C.noauthbutton,b=C.esc_section,B=C.esc_callable,L=C.esc_recallable,w=C.esc_status,T=C.authhead,A=C.is_ai,x=C.lastCallLoc,E=!1,P;return h?h===1?P="Command":h===2?P="Captain":h===3?P="CentComm Officer":h===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:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+P+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return g("callshuttle")}return R}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return g("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.is_admin,N=C.gamma_armory_location,b=C.admin_levels,B=C.authenticated,L=C.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:b,required_access:h,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:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),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:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(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:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.msg_cooldown,N=C.emagged,b=C.cc_cooldown,B=C.security_level_color,L=C.str_security_level,w=C.levels,T=C.authcapt,A=C.authhead,x=C.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var P=N?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(P+=" ("+b+"s)",R+=" ("+b+"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:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return g("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:!T||b>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("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:!T||b>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function M(){return g("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 g("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 g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},l=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.stat_display,N=C.authhead,b=C.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.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 w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!N,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.authhead,N=C.current_message_title,b=C.current_message,B=C.messages,L=C.security_level,w;if(N)w=(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:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.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:!h||N===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(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 g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=u.levels,N=u.required_access,b=u.use_confirm,B=C.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)})},i=function(u,s){var v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.is_admin,N=C.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],P=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[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 j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,W){return L(W)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,W){return A(W)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(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 j(F){return D(F)}return j}(),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 j(){return g("test_sound",{sound:M})}return j}()})}),(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 j(){return P(!E)}return j}()})})]})]})})}},70611:function(I,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.biomass,m=l.compost,i=l.biomass_capacity,d=l.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],v=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,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:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," 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:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(C,h){return v(h)}return g}()})],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*s,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:s})}return g}()})})})]})})})}return V}()},73744:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),V=n(84947);function k(g,C){g.prototype=Object.create(C.prototype),g.prototype.constructor=g,S(g,C)}function S(g,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,b){return N.__proto__=b,N}return h}(),S(g,C)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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"],l=r.Contractor=function(){function g(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L;B.unauthorized?L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?L=(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:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return g}(),c=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.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"]})},C,{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:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," 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:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),P=E[0],R=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:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},C,{children:L.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;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 j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[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 j(){return b("abort")}return j}()})]}),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",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:M.uid,difficulty:F+1})}return W}()},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)})})))},d=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,N=C.objective.locs.user_coords,b=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(C,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:L<T.cost||T.stock===0,icon:"shopping-cart",content:"Buy ("+T.cost+" Rep)",mt:"0.5rem",onClick:function(){function A(){return b("purchase",{uid:T.uid})}return A}()}),T.stock>-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(g){k(C,g);function C(N){var b;return b=g.call(this,N)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=C.prototype;return h.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return N}(),C}(e.Component),v=function(C,h){var N=(0,t.useLocalState)(h,"viewingPhoto",""),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.slowFactor,m=l.oneWay,i=l.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:i>0?"forward":i<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 d(){return p("toggleOneWay")}return d}()})}),(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 d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(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 d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return p("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return V}()},91413:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),V=n(99753),k=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function i(d,u){var s=(0,o.useBackend)(u),v=s.act,g=s.data,C=(0,o.useLocalState)(u,"tabIndex",0),h=C[0],N=C[1],b=function(){function B(L){switch(L){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.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:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),v=s.act,g=s.data,C=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,N=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,function(A){return A.name+"|"+A.assignment+"|"+A.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 A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return v("switch_level",{new_level:x})}return A}()}):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:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),C.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return v("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),v=s.data,g=(0,o.useLocalState)(u,"zoom",1),C=g[0],h=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function N(b){return h(b)}return N}(),children:v.crewmembers.filter(function(N){return N.sensor_type===3}).map(function(N){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:N.x,y:N.y,zoom:C,icon:"circle",tooltip:N.name+" ("+N.assignment+")",color:p(N,v.critThreshold)},N.ref)})})})}},55104:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(l,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,S)})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,v=d.occupant,g=v===void 0?[]:v,C=d.cellTemperature,h=d.cellTemperatureStatus,N=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=d.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 w(){return i("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.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 w(){return i("ejectBeaker")}return w}(),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 w(){return i(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(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:b,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:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return i(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"On":"Off"})})]})})})],4)},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,v=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"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 g(C){return Math.round(C)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=r.CryopodConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.account_name,d=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, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(v){var g=v.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:s.uid})}return v}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(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,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.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:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("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:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.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:w.occupant.uniqueEnzymes?w.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."})})},l=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.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 T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(P,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return L("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},R)})}),E]})},c=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.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(R){return R.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(R,M){return L("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return L("pulseUIRadiation")}return P}()})]})},m=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},i=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.radiationIntensity,A=w.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:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return L("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 L("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 L("pulseRadiation")}return x}()})]})},d=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{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,s)})]})},u=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=N.id,A=N.name,x=N.buffer,E=w.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 R(){return L("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return L("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return L("bufferOption",{option:"saveDisk",id:T})}return R}()})],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 R(){return L("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!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 R(){return L("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("ejectDisk")}return x}()})],4),children:T?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,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return L("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("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)]})})})},g=function(N,b){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)})]})},C=function(N,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,P=N.action,R=T.split(""),M=0,D=[],j=function(){for(var K=F/E+1,_=[],$=function(){var Z=z+1;_.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Z,content:R[F+z],mb:"0",onClick:function(){function ie(){return L(P,{block:K,subblock:Z})}return ie}()}))},z=0;z<E;z++)$();D.push((0,e.createComponentVNode)(2,t.Stack.Item,{mb:"1rem",mr:"1rem",width:7.8,textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"0.5rem",fontFamily:"monospace",children:K}),_]}))},F=0;F<R.length;F+=E)j();return(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:D})}},94406:function(I,r,n){"use strict";r.__esModule=!0,r.DestinationTagger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.DestinationTagger=function(){function V(k,S){var y,p=(0,a.useBackend)(S),l=p.act,c=p.data,m=c.destinations,i=c.selected_destination_id,d=m[i-1];return(0,e.createComponentVNode)(2,o.Window,{width:355,height:330,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,textAlign:"center",title:"TagMaster 3.1",children:[(0,e.createComponentVNode)(2,t.Box,{width:"100%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:"Selected:"})," ",(y=d.name)!=null?y:"None"]}),(0,e.createComponentVNode)(2,t.Box,{mt:1.5,children:(0,e.createComponentVNode)(2,t.Stack,{overflowY:"auto",wrap:"wrap",align:"center",justify:"space-evenly",direction:"row",children:m.map(function(u,s){return(0,e.createComponentVNode)(2,t.Stack.Item,{m:"2px",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",width:"105px",textAlign:"center",content:u.name,selected:u.id===i,onClick:function(){function v(){return l("select_destination",{destination:u.id})}return v}()})},s)})})})]})})})})}return V}()},17585:function(I,r,n){"use strict";r.__esModule=!0,r.DisposalBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.DisposalBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c,m;return l.mode===2?(c="good",m="Ready"):l.mode<=0?(c="bad",m="N/A"):l.mode===1?(c="average",m="Pressurizing"):(c="average",m="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",color:c,children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:l.pressure,minValue:0,maxValue:100})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l.isAI||l.panel_open,content:"Disengaged",selected:l.flushing?null:"selected",onClick:function(){function i(){return p("disengageHandle")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l.isAI||l.panel_open,content:"Engaged",selected:l.flushing?"selected":null,onClick:function(){function i(){return p("engageHandle")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l.mode===-1,content:"Off",selected:l.mode?null:"selected",onClick:function(){function i(){return p("pumpOff")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l.mode===-1,content:"On",selected:l.mode?"selected":null,onClick:function(){function i(){return p("pumpOn")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",disabled:l.isAI,content:"Eject Contents",onClick:function(){function i(){return p("eject")}return i}()})})]})})]})})}return V}()},64636:function(I,r,n){"use strict";r.__esModule=!0,r.DnaVault=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.DnaVault=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.completed;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,V),!!i&&(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.dna,d=m.dna_max,u=m.plants,s=m.plants_max,v=m.animals,g=m.animals_max,C=.66,h=.33;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"DNA Vault Database",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Human DNA",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i/d,ranges:{good:[C,1/0],average:[h,C],bad:[-1/0,h]},children:i+" / "+d+" Samples"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant DNA",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u/s,ranges:{good:[C,1/0],average:[h,C],bad:[-1/0,h]},children:u+" / "+s+" Samples"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Animal DNA",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v/g,ranges:{good:[C,1/0],average:[h,C],bad:[-1/0,h]},children:v+" / "+g+" Samples"})})]})})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.choiceA,d=m.choiceB,u=m.used;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Personal Gene Therapy",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),!u&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:i,textAlign:"center",onClick:function(){function s(){return c("gene",{choice:i})}return s}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:d,textAlign:"center",onClick:function(){function s(){return c("gene",{choice:d})}return s}()})})]})||(0,e.createComponentVNode)(2,t.Box,{bold:!0,textAlign:"center",mb:1,children:"Users DNA deemed unstable. Unable to provide more upgrades."})]})})}},13015:function(I,r,n){"use strict";r.__esModule=!0,r.DroneConsole=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=r.DroneConsole=function(){function y(p,l){return(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,k),(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.drone_fab,u=i.fab_power,s=i.drone_prod,v=i.drone_progress,g=function(){return d?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"External Power",children:(0,e.createComponentVNode)(2,o.Box,{color:u?"good":"bad",children:["[ ",u?"Online":"Offline"," ]"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Drone Production",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v/100,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})})]}):(0,e.createComponentVNode)(2,o.NoticeBox,{textAlign:"center",danger:1,children:(0,e.createComponentVNode)(2,o.Flex,{inline:1,direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:"FABRICATOR NOT DETECTED."}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Search",onClick:function(){function h(){return m("find_fab")}return h}()})})]})})};return(0,e.createComponentVNode)(2,o.Section,{title:"Drone Fabricator",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:s?"Online":"Offline",color:s?"green":"red",onClick:function(){function C(){return m("toggle_fab")}return C}()}),children:g()})},S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.drones,u=i.area_list,s=i.selected_area,v=i.ping_cd,g=function(N,b){var B,L;return N===2?(B="bad",L="Disabled"):N===1||!b?(B="average",L="Inactive"):(B="good",L="Active"),(0,e.createComponentVNode)(2,o.Box,{color:B,children:L})},C=function(){if(d.length)return(0,e.createComponentVNode)(2,o.Box,{py:.2,children:(0,e.createComponentVNode)(2,o.Divider)})};return(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance Units",children:[(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:"Request Drone presence in area:\xA0"}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:s,width:"125px",onSelected:function(){function h(N){return m("set_area",{area:N})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Button,{content:"Send Ping",icon:"broadcast-tower",disabled:v||!d.length,title:d.length?null:"No active drones!",fluid:1,textAlign:"center",py:.4,mt:.6,onClick:function(){function h(){return m("ping")}return h}()}),(0,e.createComponentVNode)(2,C),d.map(function(h){return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.toTitleCase)(h.name),buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Resync",disabled:h.stat===2||h.sync_cd,onClick:function(){function N(){return m("resync",{uid:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"power-off",content:"Recall",disabled:h.stat===2||h.pathfinding,tooltip:h.pathfinding?"This drone is currently pathfinding, please wait.":null,tooltipPosition:"left",color:"bad",onClick:function(){function N(){return m("recall",{uid:h.uid})}return N}()})})]}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:g(h.stat,h.client)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:h.health,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:h.charge,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:h.location})]})},h.name)})]})}},97673:function(I,r,n){"use strict";r.__esModule=!0,r.EFTPOS=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=r.EFTPOS=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.transaction_locked,u=i.machine_name;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:250,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"POS Terminal "+u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:d?"Unlock EFTPOS":"Lock EFTPOS",tooltip:"Enter pin to modify transactions and EFTPOS settings",icon:d?"lock-open":"lock",onClick:function(){function s(){return m("toggle_lock")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset EFTPOS",tooltip:"Requires Captain, HoP or CC access",icon:"sync",onClick:function(){function s(){return m("reset")}return s}()})],4),children:d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,S)})})})}return y}(),k=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.transaction_amount,u=i.transaction_paid;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{mt:2,bold:!0,width:"100%",fontSize:"3rem",color:u?"green":"red",align:"center",justify:"center",children:["Payment ",u?"Accepted":"Due",": $",d]}),(0,e.createComponentVNode)(2,o.Box,{mt:.5,fontSize:"1.25rem",align:"center",justify:"center",children:u?"This transaction has been processed successfully ":"Swipe your card to finish this transaction."})],4)},S=function(p,l){var c,m=(0,t.useBackend)(l),i=m.act,d=m.data,u=(0,t.useLocalState)(l,"searchText",""),s=u[0],v=u[1],g=d.transaction_purpose,C=d.transaction_amount,h=d.linked_account,N=d.available_accounts,b=[];return N.map(function(B){return b[B.name]=B.UID}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,o.Button,{content:g,icon:"edit",onClick:function(){function B(){return i("trans_purpose")}return B}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Value",children:(0,e.createComponentVNode)(2,o.Button,{content:C?"$"+C:"$0",icon:"edit",onClick:function(){function B(){return i("trans_value")}return B}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Linked Account",children:[(0,e.createComponentVNode)(2,o.Box,{mb:.5,children:h.name}),(0,e.createComponentVNode)(2,o.Input,{width:"190px",placeholder:"Search by name",onInput:function(){function B(L,w){return v(w)}return B}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(s,function(B){return B.name})).map(function(B){return B.name}),selected:(c=N.filter(function(B){return B.UID===h.UID})[0])==null?void 0:c.name,onSelected:function(){function B(L){return i("link_account",{account:b[L]})}return B}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{content:"Change access code",icon:"key",onClick:function(){function B(){return i("change_code")}return B}()})})]})}},29206:function(I,r,n){"use strict";r.__esModule=!0,r.ERTOverview=r.ERTManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=function(m){switch(m){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP, WAIT YOU'RE AN ADMIN, OH FUUUUCK! call a coder or something"}},k=r.ERTManager=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:505,children:(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,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){C(0)}return h}(),icon:"ambulance",children:"Send ERT"},"SendERT"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){C(1)}return h}(),icon:"book",children:"Read ERT Requests"},"ReadERTRequests"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){C(2)}return h}(),icon:"times",children:"Deny ERT"},"DenyERT")]})}),V(g)]})})})}return c}(),S=r.ERTOverview=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.security_level_color,g=s.str_security_level,C=s.ert_request_answered;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Overview",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:v,children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT Request",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,textColor:C?null:"bad",content:C?"Answered":"Unanswered",onClick:function(){function h(){return u("toggle_ert_request_answered")}return h}(),tooltip:"Checking this box will disable the next ERT reminder notification",selected:null})})]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=[0,1,2,3,4,5],g=(0,a.useLocalState)(i,"silentERT",!1),C=g[0],h=g[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Send ERT",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{width:5,content:"Amber",textAlign:"center",color:s.ert_type==="Amber"?"orange":"",onClick:function(){function N(){return u("ert_type",{ert_type:"Amber"})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,content:"Red",textAlign:"center",color:s.ert_type==="Red"?"red":"",onClick:function(){function N(){return u("ert_type",{ert_type:"Red"})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,content:"Gamma",textAlign:"center",color:s.ert_type==="Gamma"?"purple":"",onClick:function(){function N(){return u("ert_type",{ert_type:"Gamma"})}return N}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commander",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.com?"toggle-on":"toggle-off",selected:s.com,content:s.com?"Yes":"No",onClick:function(){function N(){return u("toggle_com")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.sec===N,content:N,onClick:function(){function B(){return u("set_sec",{set_sec:N})}return B}()},"sec"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.med===N,content:N,onClick:function(){function B(){return u("set_med",{set_med:N})}return B}()},"med"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.eng===N,content:N,onClick:function(){function B(){return u("set_eng",{set_eng:N})}return B}()},"eng"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.par===N,content:N,onClick:function(){function B(){return u("set_par",{set_par:N})}return B}()},"par"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.jan===N,content:N,onClick:function(){function B(){return u("set_jan",{set_jan:N})}return B}()},"jan"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.cyb===N,content:N,onClick:function(){function B(){return u("set_cyb",{set_cyb:N})}return B}()},"cyb"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security Module",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,disabled:s.ert_type!=="Red"||!s.cyb,icon:s.secborg?"toggle-on":"toggle-off",color:s.secborg?"red":"",content:s.secborg?"Enabled":s.ert_type!=="Red"?"Unavailable":"Disabled",textAlign:"center",onClick:function(){function N(){return u("toggle_secborg")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Silent ERT",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,icon:C?"microphone-slash":"microphone",content:C?"Silenced":"Public",textAlign:"center",selected:C,onClick:function(){function N(){return h(!C)}return N}(),tooltip:C?"This ERT will not be announced to the station":"This ERT will be announced to the station on dispatch",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:s.total>s.spawnpoints?"red":"green",children:[s.total," total, versus ",s.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 u("dispatch_ert",{silent:C})}return N}()})})]})})})},p=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.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(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function C(){return u("view_player_panel",{uid:g.sender_uid})}return C}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.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."]})})})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=(0,a.useLocalState)(i,"text",""),g=v[0],C=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:g,onChange:function(){function h(N,b){return C(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:g})}return h}()})]})})}},77877:function(I,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,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,k)})]})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=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 d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(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 d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(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 d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(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 d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(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)}},10707:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.data,m=c.power,i=c.code,d=c.frequency,u=c.minFrequency,s=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 l("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 l("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onChange:function(){function v(g,C){return l("freq",{freq:C})}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 l("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function v(g,C){return l("code",{code:C})}return v}()})})]})})})})}return k}()},85307:function(I,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(37843),V=r.EmotePanel=function(){function S(y,p){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k)})})})}return S}(),k=r.EmotePanelContent=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.emotes,d=(0,a.useLocalState)(p,"searchText",""),u=d[0],s=d[1],v=(0,a.useLocalState)(p,"filterVisible",""),g=v[0],C=v[1],h=(0,a.useLocalState)(p,"filterAudible",""),N=h[0],b=h[1],B=(0,a.useLocalState)(p,"filterSound",""),L=B[0],w=B[1],T=(0,a.useLocalState)(p,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(p,"filterTargettable",""),P=E[0],R=E[1],M=(0,a.useLocalState)(p,"useTarget",""),D=M[0],j=M[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function W(K,_){return s(_)}return W}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function W(){return C(!g)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:N,onClick:function(){function W(){return b(!N)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:L,onClick:function(){function W(){return w(!L)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function W(){return x(!A)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function W(){return R(!P)}return W}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:D,onClick:function(){function W(){return j(!D)}return W}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:i.filter(function(W){return W.key&&(u.length>0?W.key.toLowerCase().includes(u.toLowerCase())||W.name.toLowerCase().includes(u.toLowerCase()):!0)&&(g?W.visible:!0)&&(N?W.audible:!0)&&(L?W.sound:!0)&&(A?W.hands:!0)&&(P?W.targettable:!0)}).map(function(W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return c("play_emote",{emote_key:W.key,useTarget:D})}return K}(),children:[W.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",W.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",W.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",W.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",W.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",W.name]},W.name)})})})})})],4)}return S}()},52640:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(90955),k=n(72026),S=r.EvolutionMenu=function(){function l(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,y),(0,e.createComponentVNode)(2,p)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,v=u.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:s}),(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 g(){return d("readapt")}return g}()}),(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"})]})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,v=u.ability_tabs,g=u.purchased_abilities,C=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",v[0]),N=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var F=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(F),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(D)},P=function(D){if(w(D),D==="")return x(N.abilities);x(E(v.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(D),x(D.abilities),w("")};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(D,j){P(j)}return M}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function M(){return d("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:L===""&&N===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){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}),g.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>s||g.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),V=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,C){if(g==null)return{};var h={},N=Object.keys(g),b,B;for(B=0;B<N.length;B++)b=N[B],!(C.indexOf(b)>=0)&&(h[b]=g[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",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.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),L&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(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,u)})]})})]})})})}return g}(),m=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.materials,w=B.capacity,T=Object.values(L).reduce(function(A,x){return A+x},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:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},i=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],P=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:L,options:w,onSelected:function(){function D(j){return b("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return b("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,F){return P(F)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,v,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,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 ",L,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},u=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.reduce(function(x,E){return x+E.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:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.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:L.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E})}return P}()}),E<L.length-1&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-down",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E+2})}return P}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"times",color:"red",onClick:function(){function P(){return b("unqueue",{index:E+1})}return P}()})]},E)})}),A>0&&(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(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).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:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=C.id,w=C.amount,T=C.lineDisplay,A=C.onClick,x=y(C,S),E=B.materials[L]||0,P=w||E;if(!(P<=0&&!(L==="metal"||L==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:P.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:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=C.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[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"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,v=m.occupant_status,g=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(v)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),C=g();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:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function h(){return c("door")}return h}()}),children:C})]})})}return S}()},14172:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,V=1013,k=function(p){var l="good",c=80,m=95,i=110,d=120;return p<c?l="bad":p<m||p>i?l="average":p>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.chamber_pressure,u=i.exterior_status,s=i.interior_status,v=i.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:k(d),value:d,minValue:f,maxValue:V,children:[d," 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 g(){return m("abort")}return g}()}),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 g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":v?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":v?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.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:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("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:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},80031:function(I,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=y.config,m=l.contents,i=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 ",i," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return V}()},39552:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.image,i=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:d})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.availableStyles,i=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;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.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return l("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(g){return l("select_style",{style:g})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return l("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[v],isSelected:i===v,onSelect:function(){function g(){return l("select_style",{style:v})}return g}()})},"{style}")})})}),(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:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[g],isSelected:g===d,onSelect:function(){function C(){return l("select_direction",{direction:g})}return C}()})},g)})},v)})})})})]})})})}return k}()},5090:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=function(i){return i?"("+i.join(", ")+")":"ERROR"},k=function(i,d){if(!(!i||!d)){if(i[2]!==d[2])return null;var u=Math.atan2(d[1]-i[1],d[0]-i[0]),s=Math.sqrt(Math.pow(d[1]-i[1],2)+Math.pow(d[0]-i[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(i,d){var u=(0,t.useBackend)(d),s=u.data,v=s.emped,g=s.active,C=s.area,h=s.position,N=s.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,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:C,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{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,y)],0)})})})}return m}(),y=function(i,d){var u=i.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:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(i,d){var u=(0,t.useBackend)(d),s=u.act,v=u.data,g=v.active,C=v.tag,h=v.same_z,N=(0,t.useLocalState)(d,"newTag",C),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return s("toggle")}return L}()}),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:C,onEnter:function(){function L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),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:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},l=function(i,d){var u=i.title,s=i.area,v=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),V(v)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,v=s.position,g=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(C){return Object.assign({},C,k(v,C.position))}).map(function(C,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(C.position)})]},h)})})})))}},1055:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),V=r.GeneModder=function(){function i(d,u){var s=(0,a.useBackend)(u),v=s.data,g=v.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(d,u){var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!C||!C.can_insert||C.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return v("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){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."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=g.has_seed,h=g.seed,N=g.has_disk,b=g.disk,B,L;return C?B=(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,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return v("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return v("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return v("eject_seed")}return w}()})}),N?L=b.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:B}),(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,onClick:function(){function w(){return v("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function b(){return v("extract",{id:N.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!C.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return v("replace",{id:N.id})}return b}()})})]},N)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),v=s.data,g=v.reagent_genes,C=v.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:C})},c=function(d,u){var s=(0,a.useBackend)(u),v=s.data,g=v.trait_genes,C=v.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:C})},m=function(d,u){var s=d.title,v=d.gene_set,g=d.do_we_show,C=(0,a.useBackend)(u),h=C.act,N=C.data,b=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?v.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.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 h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function V(k,S){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 V}()},86268:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.security,m=l.medical,i=l.diagnostic,d=l.radioactivity,u=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=S.label,m=S.type,i=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,v=S.act_off,g=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:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function C(){return l(d?g:s,{hud_type:i})}return C}()})})]})}},8977:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function d(){return p("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return V}()},70309:function(I,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function v(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return v}(),s=function(){function v(g){if(g>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:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function v(){return p("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(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 V}()},64769:function(I,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 l("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 l("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 l("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 l("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 l("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 l("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 l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return l("access",{access:i})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(i){return l("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return l("deny_region",{region:i})}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 l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},i)})})||(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 k}()},12219:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(l,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,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,v=d.maxEnergy,g=d.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:s,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[s," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===C,content:C,onClick:function(){function N(){return i("amount",{amount:C})}return N}()})},h)})})}),(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:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return i("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return i("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return i("mode",{mode:"isolate"})}return C}()})]})})]})})})},y=function(l,c){for(var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,v=d.current_reagent,g=[],C=0;C<(s.length+1)%3;C++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},N)}),g.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},53917:function(I,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.HealthSensor=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=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:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:v,format:function(){function g(C){return(0,a.toFixed)(C,1)}return g}(),width:"80px",onDrag:function(){function g(C,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],v=u[1],g=c.decks,C=c.ai_override,h=c.emagged,N=function(){function b(B){l("select_deck",{deck:B}),d(B),v(!0),setTimeout(function(){v(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,V),(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)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return N(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=function(S,y){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)})]})}},77209:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Instrument=function(){function l(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),k=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.help;if(s)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.createTextVNode)(" "),(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.createTextVNode)(" "),(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 d("help")}return v}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,v=u.playing,g=u.repeat,C=u.maxRepeats,h=u.tempo,N=u.minTempo,b=u.maxTempo,B=u.tickLag,L=u.volume,w=u.minVolume,T=u.maxVolume,A=u.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 d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("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:s.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:L,stepPixelSize:6,onDrag:function(){function x(E,P){return d("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,y)]})},y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.allowedInstrumentNames,v=u.instrumentLoaded,g=u.instrument,C=u.canNoteShift,h=u.noteShift,N=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.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:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&C)&&(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:b,value:h,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),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 R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(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 R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,v=u.lines,g=u.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:!g||s,icon:"plus",content:"Add Line",onClick:function(){function C(){return d("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function C(){return d("edit")}return C}()})],4),children:!!g&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function N(){return d("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function N(){return d("deleteline",{line:h+1})}return N}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},28847:function(I,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(91819),f=n(2971),V=n(84947),k=r.Jukebox=function(){function p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.looping,v=d.track_selected,g=d.volume,C=d.max_volume,h=d.songs,N=d.startTime,b=d.endTime,B=d.worldTime,L=d.need_coin,w=d.payment,T=d.advanced_admin,A=35,x=!w&&L&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(h),P=h.find(function(F){return F.name===v}),R=E.length,M=P?E.findIndex(function(F){return F.name===P.name})+1:0,D=function(){function F(W){var K=Math.floor(W/60),_=W%60,$=String(K).padStart(2,"0")+":"+String(_).padStart(2,"0");return $}return F}(),j=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[u?s?"\u221E":D(Math.round((B-N)/10)):s?"\u221E":D(P.length)," ","/ ",s?"\u221E":D(P.length)]});return(0,e.createComponentVNode)(2,V.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,y):null,(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:u?"pause":"play",color:"transparent",content:u?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:u,onClick:function(){function F(){return i("toggle")}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:u||L&&!T,tooltip:L&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:s,onClick:function(){function F(){return i("loop",{looping:!s})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:N,current:s?b:B,end:b,children:j})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[u?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return i("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return i("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return i("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:g<=25?"green":g<=50?"":g<=75?"orange":"red",value:g,unit:"%",minValue:0,maxValue:C,step:1,stepPixelSize:5,onDrag:function(){function F(W,K){return i("set_volume",{volume:K})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,f.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+R,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var W=Math.floor(Math.random()*R),K=E[W];i("select_track",{track:K.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:P.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:D(F.length)})]}),onClick:function(){function W(){i("select_track",{track:F.name})}return W}()})},F.name)})})})]})})]})}return p}(),S=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},y=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},64261:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.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(!l.swiping&&!l.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:!l.redAvailable,onClick:function(){function i(){return p("triggerevent",{triggerevent:"Red Alert"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.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,l.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:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function i(){return p("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function i(){return p("reset")}return i}()}),children:m})]})})}return V}()},34898:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.KitchenMachine=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=l.config,i=c.ingredients,d=c.operating,u=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:d,name:u}),(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,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(s){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:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.inactive,d=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:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,v=i.isAIMalf,g=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),g===0&&(0,e.createComponentVNode)(2,V),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_zeroth_laws,u=i.zeroth_laws,s=i.has_ion_laws,v=i.ion_laws,g=i.ion_law_nr,C=i.has_inherent_laws,h=i.inherent_laws,N=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,L=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,P=i.supplied_law,R=i.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:l}),!!s&&(0,e.createComponentVNode)(2,S,{title:g,laws:v,ctx:l}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(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:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},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}()})})]})}),!!w&&(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"})]}),!!(T&&!d)&&(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:R,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)},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.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?"})]}),p.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryComputer=function(){function g(C,h){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,l),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=C.args,w=B.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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=C.args,w=B.selected_report,T=B.report_categories,A=B.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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return b("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 b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=C.args,w=B.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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.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:L.total_ratings?L.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(C,h){var N=(0,a.useBackend)(h),b=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.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:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(C,h){var N=(0,a.useLocalState)(h,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);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(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.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:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.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 b("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 b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.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:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("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"})]}),L.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 b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.programmatic_booklist,w=B.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"})]}),L.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.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:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.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:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("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:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.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"})]}),L.map(function(w,T){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"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.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:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},v=function(C,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.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"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryManager=function(){function l(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,k)})]})}return l}(),k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.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 s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.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 d("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"})]}),s.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 g(){return d("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,v=u.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 ",s,(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 g(){return d("return")}return g}()}),(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(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.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 C(){return d("delete_book",{bookid:g.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return d("view_book",{bookid:g.id})}return C}()})]})]},g.id)})]})})}},68e3:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),V=n(31068),k=n(84947),S=r.ListInputModal=function(){function l(c,m){var i=(0,f.useBackend)(m),d=i.act,u=i.data,s=u.items,v=s===void 0?[]:s,g=u.message,C=g===void 0?"":g,h=u.init_value,N=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],R=E[1],M=function(){function z(Y){var Z=_.length-1;if(Y===V.KEY_DOWN)if(L===null||L===Z){var ie;w(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ae;w(L+1),(ae=document.getElementById((L+1).toString()))==null||ae.scrollIntoView()}else if(Y===V.KEY_UP)if(L===null||L===0){var se;w(Z),(se=document.getElementById(Z.toString()))==null||se.scrollIntoView()}else{var he;w(L-1),(he=document.getElementById((L-1).toString()))==null||he.scrollIntoView()}}return z}(),D=function(){function z(Y){Y!==L&&w(Y)}return z}(),j=function(){function z(){x(!1),x(!0)}return z}(),F=function(){function z(Y){var Z=String.fromCharCode(Y),ie=v.find(function(he){return he==null?void 0:he.toLowerCase().startsWith(Z==null?void 0:Z.toLowerCase())});if(ie){var ae,se=v.indexOf(ie);w(se),(ae=document.getElementById(se.toString()))==null||ae.scrollIntoView()}}return z}(),W=function(){function z(Y){var Z;Y!==P&&(R(Y),w(0),(Z=document.getElementById("0"))==null||Z.scrollIntoView())}return z}(),K=function(){function z(){x(!A),R("")}return z}(),_=v.filter(function(z){return z==null?void 0:z.toLowerCase().includes(P.toLowerCase())}),$=330+Math.ceil(C.length/3);return A||setTimeout(function(){var z;return(z=document.getElementById(L.toString()))==null?void 0:z.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:$,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function z(Y){var Z=window.event?Y.which:Y.keyCode;(Z===V.KEY_DOWN||Z===V.KEY_UP)&&(Y.preventDefault(),M(Z)),Z===V.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:_[L]})),!A&&Z>=V.KEY_A&&Z<=V.KEY_Z&&(Y.preventDefault(),F(Z)),Z===V.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return z}(),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 z(){return K()}return z}()}),className:"ListInput__Section",fill:!0,title:C,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,y,{filteredItems:_,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:_,onSearch:W,searchQuery:P,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:_[L]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,v=c.onFocusSearch,g=c.searchBarVisible,C=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return s(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[C]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;g&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),v())}return b}(),selected:N===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},p=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,v=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),d("submit",{entry:u[g]})}return C}(),onInput:function(){function C(h,N){return s(N)}return C}(),placeholder:"Search...",value:v})}},75965:function(I,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return P("configure",{key:T,value:D,ref:x})}return R}()})},V=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return P("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return P("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,P=(0,a.useBackend)(w),R=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,P=L.values,R=L.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,P=L.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:T&&A?"bad":"good",children:T&&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:T?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:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},l=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,P=L.userburn,R=L.usertoxin,M=L.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R: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:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,P=L.statusmaxhealth,R=L.statusbrute,M=L.statusburn,D=L.statustoxin,j=L.statusoxy,F=L.statustemp,W=L.statusnutrition,K=L.statusfingerprints,_=L.statusdna,$=L.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:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R: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:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(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:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(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:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?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:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?_:"???"})]})}),!!T&&!!$&&(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(z){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[z.stage,"/",z.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.cure})]},z.name)})]})})],0)},m={rad_counter:p,health_analyzer:l,status_readout:c},i=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"})]})},d=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.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"})})})},u=function(L,w){var T=L.configuration_data,A=L.module_ref,x=Object.keys(T);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=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{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:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,F=x.complexity_max,W=x.wearer_name,K=x.wearer_job,_=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:_}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function $(){return A("lock")}return $}()}),children:R?"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:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},g=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,F=x.core,W=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:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"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:W/100,content:W+"%",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"})})]})},C=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,R=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:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[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(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return D(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:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.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:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return D(j.ref)}return F}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.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 B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.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,i)||(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,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.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 B}()},86322:function(I,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=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"}]]),S=r.MagnetController=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,v=i.linkedMagnets,g=i.magnetConfiguration,C=i.path,h=i.pathPosition,N=i.probing,b=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(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 L(){return m("probe_magnets")}return L}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),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:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,V.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),v.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+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:T})}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:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return y}()},54374:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.recharge_port,m=c&&c.mech,i=m&&m.cell,d=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:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return p("reconnect")}return u}()}),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."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return V}()},14823:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.beacons,d=m.stored_data;return d.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 u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],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:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),V=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(w,T){(0,f.modalOpen)(w,"edit",{field:T.edit,value:T.value})},m=function(w,T){var A=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:A.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:A.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[A.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:A.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:A.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[A.severity],children:A.severity})]})})})},i=r.MedicalRecords=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.loginState,P=x.screen;if(!E.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,u):P===4?R=(0,e.createComponentVNode)(2,s):P===5?R=(0,e.createComponentVNode)(2,C):P===6&&(R=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.records,R=(0,t.useLocalState)(T,"searchText",""),M=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId","name"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder",!0),_=K[0],$=K[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 z(){return x("screen",{screen:3})}return z}()})}),(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 z(Y,Z){return D(Z)}return z}()})})]})}),(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,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(M,function(z){return z.name+"|"+z.id+"|"+z.rank+"|"+z.p_stat+"|"+z.m_stat})).sort(function(z,Y){var Z=_?1:-1;return z[F].localeCompare(Y[F])*Z}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[z.p_stat],onClick:function(){function Y(){return x("view_record",{view_record:z.ref})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.m_stat})]},z.id)})]})})})],4)},u=function(w,T){var A=(0,t.useBackend)(T),x=A.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,lineHeight:3,color:"translucent",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,lineHeight:3,color:"translucent",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,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function E(){return x("del_all_med_records")}return E}()})})]})})},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.medical,R=E.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 M(){return x("print_record")}return M}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.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 M(){return x("new_med_record")}return M}()}),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:!!P.empty,content:"Delete Medical Record",onClick:function(){function M(){return x("del_med_record")}return M}()})})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.general;return!E||!E.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:E.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function M(){return c(T,P)}return M}()})]},R)})})}),!!E.has_photos&&E.photos.map(function(P,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:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.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)(T,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,M){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,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 D(){return x("del_comment",{del_comment:M+1})}return D}()})]},M)})})})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.virus,R=(0,t.useLocalState)(T,"searchText",""),M=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId2","name"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder2",!0),_=K[0],$=K[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 z(Y,Z){return D(Z)}return z}()})}),(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,b,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,b,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,b,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(M,function(z){return z.name+"|"+z.max_stages+"|"+z.severity})).sort(function(z,Y){var Z=_?1:-1;return z[F].localeCompare(Y[F])*Z}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+z.severity,onClick:function(){function Y(){return x("vir",{vir:z.D})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[z.severity],children:z.severity})]},z.id)})]})})})})],4)},h=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.medbots;return P.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"})]}),P.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)})]})})})},N=function(w,T){var A=(0,t.useLocalState)(T,"sortId","name"),x=A[0],E=A[1],P=(0,t.useLocalState)(T,"sortOrder",!0),R=P[0],M=P[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function F(){x===D?M(!R):(E(D),M(!0))}return F}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},b=function(w,T){var A=(0,t.useLocalState)(T,"sortId2","name"),x=A[0],E=A[1],P=(0,t.useLocalState)(T,"sortOrder2",!0),R=P[0],M=P[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function F(){x===D?M(!R):(E(D),M(!0))}return F}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.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:P===2,onClick:function(){function M(){x("screen",{screen:2})}return M}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function M(){x("screen",{screen:5})}return M}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function M(){return x("screen",{screen:6})}return M}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.product,u=p.productImage,s=p.productCategory,v=i.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,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>v,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},V=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=m.products,s=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[v[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:v[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.user_cash,u=i.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,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],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.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||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,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return y}(),S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=i[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function v(){return u(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function v(){return u(2)}return v}(),children:"Decorations"})]})}},53551:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=["title","items"];function k(i,d){if(i==null)return{};var u={},s=Object.keys(i),v,g;for(g=0;g<s.length;g++)v=s[g],!(d.indexOf(v)>=0)&&(u[v]=i[v]);return u}var S={Alphabetical:function(){function i(d,u){return d-u}return i}(),Availability:function(){function i(d,u){return-(d.affordable-u.affordable)}return i}(),Price:function(){function i(d,u){return d.price-u.price}return i}()},y=r.MiningVendor=function(){function i(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),p=function(d,u){var s=(0,t.useBackend)(u),v=s.act,g=s.data,C=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.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."})},l=function(d,u){var s=(0,t.useBackend)(u),v=s.act,g=s.data,C=g.has_id,h=g.id,N=g.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],P=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(N).map(function(j,F){var W=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=C&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},j[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:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),v=s[0],g=s[1],C=(0,t.useLocalState)(u,"sort",""),h=C[0],N=C[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[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 w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),v=s.act,g=s.data,C=d.title,h=d.items,N=k(d,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},N,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points<b.price,content:b.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function B(){return v("purchase",{cat:C,name:b.name})}return B}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},b.name)})})))}},71545:function(I,r,n){"use strict";r.__esModule=!0,r.ModpacksListContent=r.ModpacksList=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=r.ModpacksList=function(){function k(S,y){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return k}(),V=r.ModpacksListContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.modpacks,i=(0,a.useLocalState)(y,"searchText",""),d=i[0],u=i[1],s=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u043C\u043E\u0434\u043F\u0430\u043A \u043F\u043E \u0438\u043C\u0435\u043D\u0438, \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044E \u0438\u043B\u0438 \u0430\u0432\u0442\u043E\u0440\u0443...",fluid:!0,onInput:function(){function v(g,C){return u(C)}return v}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:s})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:d.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+d+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(v){return v.name&&(d.length>0?v.name.toLowerCase().includes(d.toLowerCase())||v.desc.toLowerCase().includes(d.toLowerCase())||v.author.toLowerCase().includes(d.toLowerCase()):!0)}).map(function(v){return(0,e.createComponentVNode)(2,o.Collapsible,{title:v.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:v.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:v.desc})]},v.name)})})})})})],4)}return k}()},61100:function(I,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NTRecruiter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.gamestatus,m=l.cand_name,i=l.cand_gender,d=l.cand_age,u=l.cand_species,s=l.cand_planet,v=l.cand_job,g=l.cand_records,C=l.cand_curriculum,h=l.total_curriculums,N=l.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function b(){return p("start_game")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function b(){return p("instructions")}return b}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,h,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",C]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,m,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,v,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,g,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function b(){return p("dismiss")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function b(){return p("hire")}return b}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",C-1,"/",h]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:2,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()})})]})})})}return V}()},6802:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(30381),V=n(84947),k=n(22677),S=n(76519),y=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function l(L,w){if(L==null)return{};var T={},A=Object.keys(L),x,E;for(E=0;E<A.length;E++)x=A[E],!(w.indexOf(x)>=0)&&(T[x]=L[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],i={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,F=E.channels,W=E.channel_idx,K=W===void 0?-1:W,_=(0,t.useLocalState)(T,"menuOpen",!1),$=_[0],z=_[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),Z=Y[0],ie=Y[1],ae=(0,t.useLocalState)(T,"censorMode",!1),se=ae[0],he=ae[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,v));var Le=F.reduce(function(pe,oe){return pe+oe.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:P&&"security",width:800,height:600,children:[Z?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",$&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return z(!$)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&F[K-1]===pe,onClick:function(){function oe(){return x("channel",{uid:pe.uid})}return oe}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return he(!se)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,F=j===void 0?!1:j,W=w.onClick,K=w.title,_=w.children,$=l(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:W},$,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),_]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,F=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"censorMode",!1),Y=z[0],Z=z[1],ie=P===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,g,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ae){return!_.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,se){return(0,e.createComponentVNode)(2,g,{story:ae},se)}):(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."]})}),!!ie&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!R,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:ie.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.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(ae,se){return ae+se.view_count},0).toLocaleString()]})]})})]})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,R=E.wanted,M=Object.entries(P).reduce(function(D,j){var F=j[0],W=j[1];return D+W.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,g,{story:R,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(D){return Object.assign({},i[D],{id:D,jobs:P[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.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."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),_=K[0],$=K[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&&_&&(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 z(){return x("censor_story",{uid:P.uid})}return z}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!D&&(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)(" "),(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,C,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(z,Y){return(0,e.createComponentVNode)(2,o.Box,{children:z||(0,e.createVNode)(1,"br")},Y)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function z(){return W([].concat(F,[P.uid]))}return z}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],R=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 R(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"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(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||D||"Unknown"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),Y=z[0],Z=z[1],ie=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ae=ie[0],se=ie[1],he=(0,t.useLocalState)(T,"isPublic",R?!!(P!=null&&P.public):!1),ye=he[0],Le=he[1],pe=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=pe[0],Q=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"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 q(ue,me){return W(me)}return q}()})}),(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:_,onInput:function(){function q(ue,me){return $(me)}return q}()})}),(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:Y,onInput:function(){function q(ue,me){return Z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,me){return se(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,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:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Le(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Q(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||_.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:_.substr(0,49),description:Y.substr(0,128),icon:ae,public:ye?1:0,admin_locked:oe?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,F=w.args.scanned_user,W=R.slice().sort(function(q,ue){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===ue.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===F||!!q.public)}),K=(0,t.useLocalState)(T,"author",F||"Unknown"),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),Y=z[0],Z=z[1],ie=(0,t.useLocalState)(T,"title",""),ae=ie[0],se=ie[1],he=(0,t.useLocalState)(T,"body",""),ye=he[0],Le=he[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),oe=pe[0],Q=pe[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:!j,width:"100%",value:_,onInput:function(){function q(ue,me){return $(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return Z(ue)}return q}()})}),(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:ae,onInput:function(){function q(ue,me){return se(me)}return q}()})}),(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:ye,onInput:function(){function q(ue,me){return Le(me)}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 story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Q(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||Y.trim().length===0||ae.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:_,channel:Y,title:ae.substr(0,127),body:ye.substr(0,1023),admin_locked:oe?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),Y=z[0],Z=z[1],ie=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ae=ie[0],se=ie[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 he(ye,Le){return W(Le)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:_,maxLength:"128",onInput:function(){function he(ye,Le){return $(Le)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function he(ye,Le){return Z(Le)}return he}()})}),(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 he(){return x(P?"eject_photo":"attach_photo")}return he}()}),!!P&&(0,e.createComponentVNode)(2,C,{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:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function he(){return se(!ae)}return he}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function he(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return he}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||_.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function he(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:_.substr(0,127),description:Y.substr(0,511),admin_locked:ae?1:0})}return he}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",N),(0,k.modalRegisterBodyOverride)("manage_channel",N),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return l.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:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("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:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("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 p("deploy")}return c}()})})})})}return V}()},45523:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),V=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,v=d.message,g=v===void 0?"":v,C=d.timeout,h=d.title,N=(0,f.useLocalState)(c,"input",u),b=N[0],B=N[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,v=d.init_value,g=d.round_value,C=l.input,h=l.onClick,N=l.onChange,b=Math.round(C!==u?Math.max(C/2,u):s/2),B=C===u&&u>0||C===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===u,icon:"angle-double-left",onClick:function(){function L(){return h(u)}return L}(),tooltip:C===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:u,maxValue:s,onChange:function(){function L(w,T){return N(T)}return L}(),onEnter:function(){function L(w,T){return i("submit",{entry:T})}return L}(),value:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===s,icon:"angle-double-right",onClick:function(){function L(){return h(s)}return L}(),tooltip:C===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===v,icon:"redo",onClick:function(){function L(){return h(v)}return L}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},48314:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),v=s.act,g=s.data,C=g.hasOccupant,h=g.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=C?(0,e.createComponentVNode)(2,l):(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:!h,icon:"user",onClick:function(){function b(){return v("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return v("choiceOn")}return b}(),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 i}(),l=function(d,u){var s=(0,t.useBackend)(u),v=s.data,g=v.occupant;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:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[C[1]]/100,ranges:S,children:(0,a.round)(g[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(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(d,u){var s=(0,t.useBackend)(u),v=s.act,g=s.data,C=g.verbose,h=g.health,N=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,L=g.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:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function w(){return v(C?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return v(h?"healthOff":"healthOn")}return w}()})}),(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 w(T,A){return v("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return v(b?"oxyOff":"oxyOn")}return w}()})}),(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:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return v(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function V(u,s){var v=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(v)return(v=v.call(u)).next.bind(v);if(Array.isArray(u)||(v=k(u))||s&&u&&typeof u.length=="number"){v&&(u=v);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[g++]}}}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 k(u,s){if(u){if(typeof u=="string")return S(u,s);var v=Object.prototype.toString.call(u).slice(8,-1);if(v==="Object"&&u.constructor&&(v=u.constructor.name),v==="Map"||v==="Set")return Array.from(u);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var v=0,g=new Array(s);v<s;v++)g[v]=u[v];return g}var y=/ \(([0-9]+)\)$/,p=function(s){return(0,a.createSearch)(s,function(v){return v.name})},l=function(s,v){return s<v?-1:s>v},c=function(s,v){var g=s.name,C=v.name;if(!g||!C)return 0;var h=g.match(y),N=C.match(y);if(h&&N&&g.replace(y,"")===C.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(N[1],10);return b-B}return l(g,C)},m=function(s,v){var g=s.searchText,C=s.source,h=s.title,N=s.color,b=s.sorted,B=C.filter(p(g));return b&&B.sort(c),C.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+C.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,i,{thing:L,color:N},L.name)})})},i=function(s,v){var g=(0,t.useBackend)(v),C=g.act,h=s.color,N=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return C("orbit",{ref:N.ref})}return b}(),children:[N.name,N.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",N.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,v){for(var g=(0,t.useBackend)(v),C=g.act,h=g.data,N=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,P=(0,t.useLocalState)(v,"searchText",""),R=P[0],M=P[1],D={},j=V(b),F;!(F=j()).done;){var W=F.value;D[W.antag]===void 0&&(D[W.antag]=[]),D[W.antag].push(W)}var K=Object.entries(D);K.sort(function($,z){return l($[0],z[0])});var _=function(){function $(z){for(var Y=0,Z=[K.map(function(se){var he=se[0],ye=se[1];return ye}),B,N,A,T,E,x];Y<Z.length;Y++){var ie=Z[Y],ae=ie.filter(p(z)).sort(c)[0];if(ae!==void 0){C("orbit",{ref:ae.ref});break}}}return $}();return(0,e.createComponentVNode)(2,f.Window,{width:700,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:"search"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:R,onInput:function(){function $(z,Y){return M(Y)}return $}(),onEnter:function(){function $(z,Y){return _(Y)}return $}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{inline:!0,color:"transparent",tooltip:"Refresh",tooltipPosition:"bottom-start",icon:"sync-alt",onClick:function(){function $(){return C("refresh")}return $}()})})]})}),b.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function($){var z=$[0],Y=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:z+" - ("+Y.length+")",level:2,children:Y.filter(p(R)).sort(c).map(function(Z){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:Z},Z.name)})},z)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:N,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,V.createLogger)("OreRedemption"),y=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(v,g){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,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.id,B=N.points,L=N.disk,w=Object.assign({},(k(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{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:"ID card",children:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(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:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.sheets,B=Object.assign({},(k(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"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.alloys,B=Object.assign({},(k(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"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},i=function(v,g){var C;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}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(v,g){var C=(0,t.useBackend)(g),h=C.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 b(B,L){return h(N.value?"sheet":"alloy",{id:N.id,amount:L})}return b}()})})]})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.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 b(B,L){return h(N.value?"sheet":"alloy",{id:N.id,amount:L})}return b}()})})]})})}},55686:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(33115),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.app_template,u=i.app_icon,s=i.app_title,v=k(d);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:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return y}()},58717:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(75168),k=function(c){var m;try{m=V("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var i=m[c];return i||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app,v=u.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 g=k(s.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,y)}),(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:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,v=u.idLink,g=u.stationTime,C=u.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 h(){return d("Authenticate")}return h}(),content:s?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 h(){return d("Eject")}return h}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.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:[!!s.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:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return d("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){d("Home")}return v}()})})]})})}},78062:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,v=c.fuel_usage,g=c.fuel_stored,C=c.fuel_cap,h=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/C,E=N/b,P=T*w,R=Math.round(g/v),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!i&&(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 j(){return l("toggle_power")}return j}()}),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:T,minValue:1,maxValue:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,W){return l("change_power",{change_power:W})}return j}()}),"(",(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:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===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||h||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),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:s}),(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(g/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?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.assembled,m=l.power,i=l.strength,d=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return p("scan")}return u}()}),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:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function u(){return p("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return V}()},67572:function(I,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),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 i(){return m("insert_pda")}return i}()})]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.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,S)}),(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(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.current_appearance,u=i.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,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",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"}})})]})}},12456:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,v=m.prev_cat,g=m.next_cat,C=m.subcategory,h=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:[!!i&&(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:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:s.ref})}return v}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:s.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.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 i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(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 i(){return c("removedocument")}return i}()})})]}),(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 i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=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 d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!i&&(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 d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.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 d(){return c("filecopy",{uid:i.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:i.uid})}return d}()})]})},i.name)})})}},82020:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(72026),V=n(90955),k=n(37843);function S(m,i){var d=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d)return(d=d.call(m)).next.bind(d);if(Array.isArray(m)||(d=y(m))||i&&m&&typeof m.length=="number"){d&&(m=d);var u=0;return function(){return u>=m.length?{done:!0}:{done:!1,value:m[u++]}}}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 y(m,i){if(m){if(typeof m=="string")return p(m,i);var d=Object.prototype.toString.call(m).slice(8,-1);if(d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set")return Array.from(m);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return p(m,i)}}function p(m,i){(i==null||i>m.length)&&(i=m.length);for(var d=0,u=new Array(i);d<i;d++)u[d]=m[d];return u}String.prototype.trimLongStr=function(m){return this.length>m?this.substring(0,m)+"...":this};var l=function(i,d){d===void 0&&(d="");var u=(0,k.createSearch)(d,function(s){return s.altername});return(0,V.flow)([(0,f.filter)(function(s){return s==null?void 0:s.altername}),d&&(0,f.filter)(u),(0,f.sortBy)(function(s){return s.id})])(i)},c=r.Photocopier220=function(){function m(i,d){for(var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.copies,C=v.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),N=h[0],b=h[1],B=l((0,f.sortBy)(function(M){return M.category})(v.forms||[]),N),L=[],w=S(B),T;!(T=w()).done;){var A=T.value;L.includes(A.category)||L.push(A.category)}var x=(0,a.useLocalState)(d,"number",0),E=x[0],P=x[1],R;return v.category===""?R=B:R=B.filter(function(M){return M.category===v.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:v.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:v.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:v.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":v.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.copyitem&&!v.mob,icon:v.copyitem||v.mob?"eject":"times",content:v.copyitem?v.copyitem:v.mob?"\u0416\u043E\u043F\u0430 "+v.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return s("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.folder,icon:v.folder?"eject":"times",content:v.folder?v.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return s("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:v.toner===0||v.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return s("print_form")}return M}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:v.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return s("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:v.toner===0||!v.copyitem&&!v.mob,onClick:function(){function M(){return s("copy")}return M}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:v.toner===0,onClick:function(){function M(){return s("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:C,value:g,stepPixelSize:10,onChange:function(){function M(D,j){return s("copies",{new:j})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",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.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!v.category,onClick:function(){function M(){return s("choose_category",{category:""})}return M}()})}),L.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:M,selected:v.category===M,onClick:function(){function D(){return s("choose_category",{category:M})}return D}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(D,j){return b(j)}return M}()}),children:R.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:v.form_id===M.id,onClick:function(){function D(){return s("choose_form",{path:M.path,id:M.id})}return D}()})},M.path)})})})]})})})}return m}()},47051:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var k={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}},S=function(l,c){var m=l.tempKey,i=V(l,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,v=u.act,g=s.currentTemp,C=d.label,h=d.icon,N=m===g,b=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},y=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=k[u]||k.normal,v=s.label,g=s.color,C=[],h=0,N=Object.entries(k);h<N.length;h++){var b=N[h],B=b[0],L=b[1].requireEmag;(!L||L&&d)&&C.push(B)}return(0,e.createComponentVNode)(2,o.Window,{width:350,height:285,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,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:g,children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Status",children:d?(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"WARNING: OVERRIDDEN"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Nominal"})})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Temperature Selection",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.map(function(w){return(0,e.createComponentVNode)(2,S,{fluid:!0,tempKey:w},w)})})})]})})})}return p}()},5424:function(I,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PortablePump=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_holding_tank;return(0,e.createComponentVNode)(2,o.Window,{width:435,height:330,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",children:(0,e.createComponentVNode)(2,t.Box,{color:"average",bold:1,textAlign:"center",mt:2.5,children:"No Holding Tank Inserted."})})]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.on,u=i.direction,s=i.port_connected;return(0,e.createComponentVNode)(2,t.Section,{title:"Pump Settings",buttons:(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function v(){return m("power")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pump Direction",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"sign-in-alt",content:"In",selected:!u,onClick:function(){function v(){return m("set_direction",{direction:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"sign-out-alt",content:"Out",selected:u,onClick:function(){function v(){return m("set_direction",{direction:1})}return v}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Port status",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"green":"average",bold:1,ml:.5,children:s?"Connected":"Disconnected"})})]})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.tank_pressure,u=i.target_pressure,s=i.max_target_pressure,v=s*.7,g=s*.25;return(0,e.createComponentVNode)(2,t.Section,{title:"Pressure Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stored pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:s,ranges:{good:[v,1/0],average:[g,v],bad:[-1/0,g]},children:[d," kPa"]})})}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,color:"label",mt:.3,children:"Target pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){function C(){return m("set_pressure",{pressure:101.325})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){function C(){return m("set_pressure",{pressure:0})}return C}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,unit:"kPa",width:16.5,stepPixelSize:.22,minValue:0,maxValue:s,value:u,onChange:function(){function C(h,N){return m("set_pressure",{pressure:N})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){function C(){return m("set_pressure",{pressure:s})}return C}()})})]})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.holding_tank,u=i.max_target_pressure,s=u*.7,v=u*.25;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function g(){return m("remove_tank")}return g}(),icon:"eject",children:"Eject"}),children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",children:"Tank Label:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"silver",ml:4.5,children:d.name})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",mt:2,children:"Tank Pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1.5,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.tank_pressure,minValue:0,maxValue:u,ranges:{good:[s,1/0],average:[v,s],bad:[-1/0,v]},children:[d.tank_pressure," kPa"]})})]})]})}},70673:function(I,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PortableScrubber=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_holding_tank;return(0,e.createComponentVNode)(2,o.Window,{width:435,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,V),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",children:(0,e.createComponentVNode)(2,t.Box,{color:"average",bold:1,textAlign:"center",mt:2.5,children:"No Holding Tank Inserted."})})]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.on,u=i.port_connected;return(0,e.createComponentVNode)(2,t.Section,{title:"Pump Settings",buttons:(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function s(){return m("power")}return s}()}),children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",children:"Port Status:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:u?"green":"average",bold:1,ml:6,children:u?"Connected":"Disconnected"})]})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.tank_pressure,u=i.rate,s=i.max_rate,v=s*.7,g=s*.25;return(0,e.createComponentVNode)(2,t.Section,{title:"Pressure Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stored pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:s,ranges:{good:[v,1/0],average:[g,v],bad:[-1/0,g]},children:[d," kPa"]})})}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,color:"label",mt:.3,children:"Target pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){function C(){return m("set_rate",{rate:101.325})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){function C(){return m("set_rate",{rate:0})}return C}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,unit:"kPa",width:16.5,stepPixelSize:.22,minValue:0,maxValue:s,value:u,onChange:function(){function C(h,N){return m("set_rate",{rate:N})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){function C(){return m("set_rate",{rate:s})}return C}()})})]})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.holding_tank,u=i.max_rate,s=u*.7,v=u*.25;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function g(){return m("remove_tank")}return g}(),icon:"eject",children:"Eject"}),children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",children:"Tank Label:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"silver",ml:4.5,children:d.name})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",mt:2,children:"Tank Pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1.5,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.tank_pressure,minValue:0,maxValue:u,ranges:{good:[s,1/0],average:[v,s],bad:[-1/0,v]},children:[d.tank_pressure," kPa"]})})]})]})}},22015:function(I,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=r.PortableTurret=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.on,d=c.lethal,u=c.lethal_is_configurable,s=c.targetting_is_configurable,v=c.check_weapons,g=c.neutralize_noaccess,C=c.access_is_configurable,h=c.regions,N=c.selectedAccess,b=c.one_access,B=c.neutralize_norecord,L=c.neutralize_criminals,w=c.neutralize_all,T=c.neutralize_unidentified,A=c.neutralize_cyborgs;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:750,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.NoticeBox,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Stack.Item,{m:0,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:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:m,onClick:function(){function x(){return l("power")}return x}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"exclamation-triangle":"times",content:d?"On":"Off",color:d?"bad":"",disabled:m,onClick:function(){function x(){return l("lethal")}return x}()})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"One Access Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"address-card":"exclamation-triangle",content:b?"On":"Off",selected:b,disabled:m,onClick:function(){function x(){return l("one_access")}return x}()})})]})})}),!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:L,content:"Wanted Criminals",disabled:m,onClick:function(){function x(){return l("autharrest")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"No Sec Record",disabled:m,onClick:function(){function x(){return l("authnorecord")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Unauthorized Weapons",disabled:m,onClick:function(){function x(){return l("authweapon")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Unauthorized Access",disabled:m,onClick:function(){function x(){return l("authaccess")}return x}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:T,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){function x(){return l("authxeno")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:A,content:"Cyborgs",disabled:m,onClick:function(){function x(){return l("authborgs")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:w,content:"All Non-Synthetics",disabled:m,onClick:function(){function x(){return l("authsynth")}return x}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:!!C&&(0,e.createComponentVNode)(2,f.AccessList,{accesses:h,selectedList:N,accessMod:function(){function x(E){return l("set",{access:E})}return x}(),grantAll:function(){function x(){return l("grant_all")}return x}(),denyAll:function(){function x(){return l("clear_all")}return x}(),grantDep:function(){function x(E){return l("grant_region",{region:E})}return x}(),denyDep:function(){function x(E){return l("deny_region",{region:E})}return x}()})})]})})})}return k}()},75199:function(I,r,n){"use strict";r.__esModule=!0,r.PowerMonitorMainContent=r.PowerMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(66586),V=n(37843),k=n(91819),S=n(2971),y=n(84947),p=6e5,l=r.PowerMonitor=function(){function s(v,g){return(0,e.createComponentVNode)(2,y.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})}return s}(),c=r.PowerMonitorMainContent=function(){function s(v,g){var C=(0,k.useBackend)(g),h=C.act,N=C.data,b=N.powermonitor,B=N.select_monitor;return(0,e.createComponentVNode)(2,S.Box,{m:0,children:[!b&&B&&(0,e.createComponentVNode)(2,m),b&&(0,e.createComponentVNode)(2,i)]})}return s}(),m=function(v,g){var C=(0,k.useBackend)(g),h=C.act,N=C.data,b=N.powermonitors;return(0,e.createComponentVNode)(2,S.Section,{title:"Select Power Monitor",children:b.map(function(B){return(0,e.createComponentVNode)(2,S.Box,{children:(0,e.createComponentVNode)(2,S.Button,{content:B.Area,icon:"arrow-right",onClick:function(){function L(){return h("selectmonitor",{selectmonitor:B.uid})}return L}()})},B)})})},i=function(v,g){var C=(0,k.useBackend)(g),h=C.act,N=C.data,b=N.powermonitor,B=N.history,L=N.apcs,w=N.select_monitor,T=N.no_powernet,A;if(T)A=(0,e.createComponentVNode)(2,S.Box,{color:"bad",textAlign:"center",children:[(0,e.createComponentVNode)(2,S.Icon,{name:"exclamation-triangle",size:"2",my:"0.5rem"}),(0,e.createVNode)(1,"br"),"Warning: The monitor is not connected to power grid via cable!"]});else{var x=(0,k.useLocalState)(g,"sortByField",null),E=x[0],P=x[1],R=B.supply[B.supply.length-1]||0,M=B.demand[B.demand.length-1]||0,D=B.supply.map(function(K,_){return[_,K]}),j=B.demand.map(function(K,_){return[_,K]}),F=Math.max.apply(Math,[p].concat(B.supply,B.demand)),W=(0,t.flow)([(0,a.map)(function(K,_){return Object.assign({},K,{id:K.name+_})}),E==="name"&&(0,a.sortBy)(function(K){return K.Name}),E==="charge"&&(0,a.sortBy)(function(K){return-K.CellPct}),E==="draw"&&(0,a.sortBy)(function(K){return-K.Load})])(L);A=(0,e.createFragment)([(0,e.createComponentVNode)(2,S.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,S.Flex.Item,{width:"200px",children:(0,e.createComponentVNode)(2,S.Section,{children:(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,S.ProgressBar,{value:R,minValue:0,maxValue:F,color:"green",children:(0,o.toFixed)(R/1e3)+" kW"})}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,S.ProgressBar,{value:M,minValue:0,maxValue:F,color:"red",children:(0,o.toFixed)(M/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,S.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,ml:1,children:[(0,e.createComponentVNode)(2,S.Chart.Line,{fillPositionedParent:!0,data:D,rangeX:[0,D.length-1],rangeY:[0,F],strokeColor:"rgba(32, 177, 66, 1)",fillColor:"rgba(32, 177, 66, 0.25)"}),(0,e.createComponentVNode)(2,S.Chart.Line,{fillPositionedParent:!0,data:j,rangeX:[0,j.length-1],rangeY:[0,F],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,S.Box,{mb:1,children:[(0,e.createComponentVNode)(2,S.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,S.Button.Checkbox,{checked:E==="name",content:"Name",onClick:function(){function K(){return P(E!=="name"&&"name")}return K}()}),(0,e.createComponentVNode)(2,S.Button.Checkbox,{checked:E==="charge",content:"Charge",onClick:function(){function K(){return P(E!=="charge"&&"charge")}return K}()}),(0,e.createComponentVNode)(2,S.Button.Checkbox,{checked:E==="draw",content:"Draw",onClick:function(){function K(){return P(E!=="draw"&&"draw")}return K}()})]}),(0,e.createComponentVNode)(2,S.Table,{children:[(0,e.createComponentVNode)(2,S.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,S.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,S.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),W.map(function(K,_){return(0,e.createComponentVNode)(2,S.Table.Row,{className:"Table__row candystripe",children:[(0,e.createComponentVNode)(2,S.Table.Cell,{children:(0,V.decodeHtmlEntities)(K.Name)}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-right text-nowrap",children:(0,e.createComponentVNode)(2,d,{charging:K.CellStatus,charge:K.CellPct})}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-right text-nowrap",children:K.Load}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-center text-nowrap",children:(0,e.createComponentVNode)(2,u,{status:K.Equipment})}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-center text-nowrap",children:(0,e.createComponentVNode)(2,u,{status:K.Lights})}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-center text-nowrap",children:(0,e.createComponentVNode)(2,u,{status:K.Environment})})]},K.id)})]})],4)}return(0,e.createComponentVNode)(2,S.Section,{title:b,buttons:(0,e.createComponentVNode)(2,S.Box,{m:0,children:w&&(0,e.createComponentVNode)(2,S.Button,{content:"Back",icon:"arrow-up",onClick:function(){function K(){return h("return")}return K}()})}),children:A})},d=function(v){var g=v.charging,C=v.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S.Icon,{width:"18px",textAlign:"center",name:g==="N"&&(C>50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(C>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(v){var g,C,h=v.status;switch(h){case"AOn":g=!0,C=!0;break;case"AOff":g=!0,C=!1;break;case"On":g=!1,C=!0;break;case"Off":g=!1,C=!1;break}var N=(C?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:g?void 0:"M",title:N})};u.defaultHooks=f.pureComponentHooks},15164:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),V=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,v=d.chemicalInfo,g=d.trackingInfo,C;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.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:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function N(){return i("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function N(){return i("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.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:s.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:g.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 b(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return b}()})})]})]},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})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volume<b,icon:"syringe",content:"Inject "+b+"u",onClick:function(){function B(){return i("inject",{uid:N.uid,amount:b})}return B}()},b)})]},N.name)]}),(0,e.createVNode)(1,"br")],4)})})})]})})]})}return p}()},99646:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PrisonerShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.can_go_home,m=l.emagged,i=l.id_inserted,d=l.id_name,u=l.id_points,s=l.id_goal,v=m?0:1,g=c?"Completed!":"Insufficient";m&&(g="ERR0R");var C="No ID inserted";return i?C=(0,e.createComponentVNode)(2,t.ProgressBar,{value:u/s,ranges:{good:[v,1/0],bad:[-1/0,v]},children:u+" / "+s+" "+g}):m&&(C="ERR0R COMPLETED?!@"),(0,e.createComponentVNode)(2,o.Window,{width:315,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Move shuttle",disabled:!c,onClick:function(){function h(){return p("move_shuttle")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:i?d:"-------------",onClick:function(){function h(){return p("handle_id")}return h}()})})]})})})}return V}()},82443:function(I,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=n(14635),k=r.RCD=function(){function i(d,u){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,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return i}(),S=function(d,u){var s=(0,a.useBackend)(u),v=s.data,g=v.matter,C=v.max_matter,h=C*.7,N=C*.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:[h,1/0],average:[N,h],bad:[-1/0,N]},value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+C+" units"})})})})},y=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,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(d,u){var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=d.mode_type,h=g.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:C,selected:h===C?1:0,onClick:function(){function N(){return v("mode",{mode:C})}return N}()})})},l=function(d,u){var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=g.door_name,h=g.electrochromic,N=g.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,C,0)],0),onClick:function(){function b(){return(0,f.modalOpen)(u,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return v("electrochromic")}return b}()})})]})})})},c=function(d,u){var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=g.tab,h=g.locked,N=g.one_access,b=g.selected_accesses,B=g.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:C===1,onClick:function(){function L(){return v("set_tab",{tab:1})}return L}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function L(){return v("set_tab",{tab:2})}return L}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===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})})]})}):C===2&&h?(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 L(){return v("set_lock",{new_lock:"unlock"})}return L}()}),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,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function L(){return v("set_lock",{new_lock:"lock"})}return L}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function L(){return v("set_one_access",{access:"one"})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function L(){return v("set_one_access",{access:"all"})}return L}()})],4),accesses:B,selectedList:b,accessMod:function(){function L(w){return v("set",{access:w})}return L}(),grantAll:function(){function L(){return v("grant_all")}return L}(),denyAll:function(){function L(){return v("clear_all")}return L}(),grantDep:function(){function L(w){return v("grant_region",{region:w})}return L}(),denyDep:function(){function L(w){return v("deny_region",{region:w})}return L}()})})],4)},m=function(d,u){for(var s=(0,a.useBackend)(u),v=s.act,g=s.data,C=g.door_types_ui_list,h=g.door_type,N=d.check_number,b=[],B=0;B<C.length;B++)B%2===N&&b.push(C[B]);return(0,e.createComponentVNode)(2,t.Stack.Item,{children:b.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack,{mb:.5,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:null,color:"translucent",checked:h===L.type,content:(0,e.createFragment)([(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+L.image,style:{"vertical-align":"middle",width:"32px",margin:"3px","margin-right":"6px","margin-left":"-3px"}}),L.name],0),onClick:function(){function T(){return v("door_type",{door_type:L.type})}return T}()})})},w)})})}},61566:function(I,r,n){"use strict";r.__esModule=!0,r.RPD=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(66586),V=r.RPD=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.mainmenu,g=s.mode,C=function(){function h(N){switch(N){case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);case 3:return(0,e.createComponentVNode)(2,y);case 4:return(0,e.createComponentVNode)(2,p);case 5:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:450,height:415,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,{fluid:!0,children:v.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:h.icon,selected:h.mode===g,onClick:function(){function N(){return u("mode",{mode:h.mode})}return N}(),children:h.category},h.category)})})}),C(g)]})})})}return c}(),k=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.pipemenu,g=s.pipe_category,C=s.pipelist,h=s.whatpipe,N=s.iconrotation;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{textAlign:"center",selected:b.pipemode===g,onClick:function(){function B(){return u("pipe_category",{pipe_category:b.pipemode})}return B}(),children:b.category},b.category)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:C.filter(function(b){return b.pipe_type===1}).filter(function(b){return b.pipe_category===g}).map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",content:b.pipe_name,icon:"cog",selected:b.pipe_id===h,onClick:function(){function B(){return u("whatpipe",{whatpipe:b.pipe_id})}return B}(),style:{"margin-bottom":"2px"}})},b.pipe_name)})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:C.filter(function(b){return b.pipe_type===1&&b.pipe_id===h&&b.orientations!==1}).map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Orient automatically",selected:N===0,onClick:function(){function B(){return u("iconrotation",{iconrotation:0})}return B}(),style:{"margin-bottom":"5px"}})}),b.bendy?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===4,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","southeast-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:4})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===2,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","southwest-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:2})}return B}(),style:{"margin-bottom":"5px"}})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===1,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","northeast-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:1})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===8,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","northwest-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:8})}return B}(),style:{"margin-bottom":"5px"}})})]})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===1,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","north-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:1})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===4,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","east-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:4})}return B}(),style:{"margin-bottom":"5px"}})})]}),b.orientations===4&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===2,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","south-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:2})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===8,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","west-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:8})}return B}(),style:{"margin-bottom":"5px"}})})]})],0)]},b.pipe_id)})})})})})]})})],4)},S=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,v=s.pipe_category,g=s.pipelist,C=s.whatdpipe,h=s.iconrotation;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:g.filter(function(N){return N.pipe_type===2}).map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",content:N.pipe_name,icon:"cog",selected:N.pipe_id===C,onClick:function(){function b(){return u("whatdpipe",{whatdpipe:N.pipe_id})}return b}(),style:{"margin-bottom":"2px"}})},N.pipe_name)})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:g.filter(function(N){return N.pipe_type===2&&N.pipe_id===C&&N.orientations!==1}).map(function(N){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Orient automatically",selected:h===0,onClick:function(){function b(){return u("iconrotation",{iconrotation:0})}return b}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===1,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","north-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:1})}return b}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===4,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","east-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:4})}return b}(),style:{"margin-bottom":"5px"}})})]}),N.orientations===4&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===2,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","south-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:2})}return b}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===8,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","west-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:8})}return b}(),style:{"margin-bottom":"5px"}})})]})]},N.pipe_id)})})})})})]})})},y=function(m,i){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.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sync-alt",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Device ready to rotate loose pipes..."]})})})})},p=function(m,i){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.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt-h",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Device ready to flip loose pipes..."]})})})})},l=function(m,i){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.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"recycle",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Device ready to eat loose pipes..."]})})})})}},24618:function(I,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(28823),a=n(72026),t=n(58331),o=n(91819),f=n(2971),V=n(30381),k=n(84947),S=r.Radio=function(){function y(p,l){var c=(0,o.useBackend)(l),m=c.act,i=c.data,d=i.freqlock,u=i.frequency,s=i.minFrequency,v=i.maxFrequency,g=i.canReset,C=i.listening,h=i.broadcasting,N=i.loudspeaker,b=i.has_loudspeaker,B=V.RADIO_CHANNELS.find(function(P){return P.freq===u}),L=!!(B&&B.name),w=[],T=[],A=0;for(A=0;A<V.RADIO_CHANNELS.length;A++)T=V.RADIO_CHANNELS[A],w[T.name]=T.color;var x=(0,a.map)(function(P,R){return{name:R,status:!!P}})(i.schannels),E=(0,a.map)(function(P,R){return{name:R,freq:P}})(i.ichannels);return(0,e.createComponentVNode)(2,k.Window,{width:375,height:130+x.length*21.2+E.length*11,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Frequency",children:[d&&(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"light-gray",children:(0,t.toFixed)(u/10,1)+" kHz"})||(0,e.createFragment)([(0,e.createComponentVNode)(2,f.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:s/10,maxValue:v/10,value:u/10,format:function(){function P(R){return(0,t.toFixed)(R,1)}return P}(),onChange:function(){function P(R,M){return m("frequency",{adjust:M-u/10})}return P}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"undo",content:"",disabled:!g,tooltip:"Reset",onClick:function(){function P(){return m("frequency",{tune:"reset"})}return P}()})],4),L&&(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,color:C?"":"bad",tooltip:C?"Disable Incoming":"Enable Incoming",onClick:function(){function P(){return m("listen")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,tooltip:h?"Disable Hotmic":"Enable Hotmic",onClick:function(){function P(){return m("broadcast")}return P}()}),!!b&&(0,e.createComponentVNode)(2,f.Button,{ml:1,icon:"bullhorn",selected:N,content:"Loudspeaker",tooltip:N?"Disable Loudspeaker":"Enable Loudspeaker",onClick:function(){function P(){return m("loudspeaker")}return P}()})]}),x.length!==0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Keyed Channels",children:x.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{icon:P.status?"check-square-o":"square-o",selected:P.status,content:"",onClick:function(){function R(){return m("channel",{channel:P.name})}return R}()}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:w[P.name],children:P.name})]},P.name)})}),E.length!==0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Standard Channel",children:E.map(function(P){return(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-right",content:P.name,selected:L&&B.name===P.name,onClick:function(){function R(){return m("ichannel",{ichannel:P.freq})}return R}()},"i_"+P.name)})})]})})})})}return y}()},85183:function(I,r,n){"use strict";r.__esModule=!0,r.ReagentGrinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),V=n(48154),k=r.ReagentGrinder=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=i.config,v=u.operating,g=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,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,V.Operating,{operating:v,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return l}(),S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.inactive;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:"mortar-pestle",disabled:s,tooltip:s?"There are no contents":"Grind the contents",tooltipPosition:"bottom",content:"Grind",onClick:function(){function v(){return d("grind")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"blender",disabled:s,tooltip:s?"There are no contents":"Juice the contents",tooltipPosition:"bottom",content:"Juice",onClick:function(){function v(){return d("juice")}return v}()})})]})})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.contents,v=u.limit,g=u.count,C=u.inactive;return(0,e.createComponentVNode)(2,t.Section,{title:"Contents",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," items"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Contents",onClick:function(){function h(){return d("eject")}return h}(),disabled:C,tooltip:C?"There are no contents":""})]}),children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:s.map(function(h){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:h.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[h.amount," ",h.units]}),2)]},h.name)})})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.beaker_loaded,v=u.beaker_current_volume,g=u.beaker_max_volume,C=u.beaker_contents;return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,height:"40%",buttons:!!s&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[v," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Detach Beaker",onClick:function(){function h(){return d("detach")}return h}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:C})})}},94890:function(I,r,n){"use strict";r.__esModule=!0,r.RemoteSignaler=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(92149),V=r.RemoteSignaler=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.on;return(0,e.createComponentVNode)(2,o.Window,{width:300,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:"Receiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function i(){return l("recv_power")}return i}()})})}),(0,e.createComponentVNode)(2,f.Signaler,{data:c})]})})})}return k}()},6301:function(I,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RequestConsole=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.screen,C=v.announcementConsole,h=function(){function N(b){switch(b){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k,{purpose:"ASSISTANCE"});case 2:return(0,e.createComponentVNode)(2,k,{purpose:"SUPPLIES"});case 3:return(0,e.createComponentVNode)(2,k,{purpose:"INFO"});case 4:return(0,e.createComponentVNode)(2,S,{type:"SUCCESS"});case 5:return(0,e.createComponentVNode)(2,S,{type:"FAIL"});case 6:return(0,e.createComponentVNode)(2,y,{type:"MESSAGES"});case 7:return(0,e.createComponentVNode)(2,p);case 8:return(0,e.createComponentVNode)(2,l);case 9:return(0,e.createComponentVNode)(2,c);case 10:return(0,e.createComponentVNode)(2,y,{type:"SHIPPING"});default:return"WE SHOULDN'T BE HERE!"}}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:450,height:C?385:345,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:h(g)})})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.newmessagepriority,C=v.announcementConsole,h=v.silent,N;return g===1?N=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):g===2?N=(0,e.createComponentVNode)(2,t.Blink,{children:(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"NEW PRIORITY MESSAGES"})}):N=(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:h?"Speaker Off":"Speaker On",selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function b(){return s("toggleSilent")}return b}()}),children:[N,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Messages",icon:g>0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function b(){return s("setScreen",{setScreen:1})}return b}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(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,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!C&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.department,C=[],h;switch(i.purpose){case"ASSISTANCE":C=v.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":C=v.supply_dept,h="Request supplies from another department";break;case"INFO":C=v.info_dept,h="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:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return s("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.filter(function(N){return N!==g}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:N,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:N,priority:"2"})}return b}()})]},N)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g;switch(i.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function C(){return s("setScreen",{setScreen:0})}return C}()})})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g,C;switch(i.type){case"MESSAGES":g=v.message_log,C="Message Log";break;case"SHIPPING":g=v.shipping_log,C="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),children:g.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(N,b){return(0,e.createVNode)(1,"div",null,N,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.recipient,C=v.message,h=v.msgVerified,N=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 b(){return s("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]})})}),(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 b(){return s("department",{department:g})}return b}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.message,C=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 h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[C?(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:!(C&&g),onClick:function(){function h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,v=u.data,g=v.shipDest,C=v.msgVerified,h=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 N(){return s("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:C})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&C),onClick:function(){function N(){return s("printLabel")}return N}()})]})}),(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:h.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===N?"Selected":"Select",selected:g===N,onClick:function(){function b(){return s("shipSelect",{shipSelect:N})}return b}()})},N)})})})})],4)}},51939:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.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,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===V.LATHE||u===V.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),i?(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:i})})}):null]})})})}return y}()},50239:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var m=l.name,i=l.level,d=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V="design",k="tech",S=function(u,s){var v=(0,a.useBackend)(s),g=v.data,C=v.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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 N(){return C("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return C("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var v=(0,a.useBackend)(s),g=v.data,C=v.act,h=g.disk_data;if(!h)return null;var N=h.name,b=h.lathe_types,B=h.materials,L=b.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:N}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.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 w(){return C("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return C("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(u,s){var v=(0,a.useBackend)(s),g=v.data,C=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:C===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var v=(0,a.useBackend)(s),g=v.data,C=v.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=h===k?"eject_tech":"eject_design";C(b)}return N}()}):null},c=function(u,s){var v=(0,a.useBackend)(s),g=v.data,C=g.disk_data,h=g.disk_type,N=function(){if(!C)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},m=function(u,s){var v=(0,a.useBackend)(s),g=v.data,C=v.act,h=g.disk_type,N=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?C("copy_tech",{id:L}):C("copy_design",{id:L})}return w}()})},L)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var v=(0,a.useBackend)(s),g=v.data,C=g.disk_type;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_item,c=y.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.category,m=p.matching_designs,i=p.menu,d=i===4,u=d?"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(s){var v=s.id,g=s.name,C=s.can_build,h=s.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:g,disabled:C<1,onClick:function(){function N(){return l(u,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return l(u,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return l(u,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.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 V}()},47349:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_chemicals,c=y.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 i=c?"disposeallP":"disposeallI";p(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var i=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var v=c?"disposeP":"disposeI";p(v,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.menu,m=p.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){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:d,onClick:function(){function u(){l("setCategory",{category:d})}return u}()})},d)})})]})}return V}()},87115:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,i=c.amount,d=c.name,u=function(){function C(h){var N=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(N,{id:m,amount:h})}return C}(),s=Math.floor(i/2e3),v=i<1,g=s===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:["* ",i," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return u(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return u("custom")}return C}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return u(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return u(50)}return C}()})],0):null})]},m)})})})}return f}()},2345:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,l=y.max_materials,c=y.max_chemicals,m=y.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:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):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}()},45805:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),V=n(51939),k=r.LatheMenu=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=c.menu,i=c.linked_lathe,d=c.linked_imprinter;return m===4&&!i?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.disk_type,m=l.linked_destroy,i=l.linked_lathe,d=l.linked_imprinter,u=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var v=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:g},v)})})]})}return k}()},29933:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,y=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,v=u;return V.menu!==null&&V.menu!==void 0&&(s=V.menu),V.submenu!==null&&V.submenu!==void 0&&(v=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function g(){i("nav",{menu:s,submenu:v})}return g}(),children:y})}return f}()},59959:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},28078:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,l=function(){function m(i,d){return i==null?!0:typeof i=="function"?i(d):i===d}return m}(),c=l(o.menu,y)&&l(o.submenu,p);return c?V():null}return t}()},59991:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=p.act,m=l.sync,i=l.admin,d=l.linked_destroy,u=l.linked_lathe,s=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function v(){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,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return k}()},63752:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(73492);r.LatheMainMenu=V.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var l=n(25242);r.MainMenu=l.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=function(y,p){var l=y/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.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(i,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(i.name),children:i.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:i.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:V(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(i.electronic_damage,i.max_damage),children:i.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:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},d)})})})}return S}()},48356:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.can_hack,i=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function v(){return l("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return l("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:s,can_hack:m})]})})}return k}(),V=function(S,y){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(y),m=c.act,i=c.data,d="Detonate";return i.detonate_cooldown>0&&(d+=" ("+i.detonate_cooldown+"s)"),p.length?p.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],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:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.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"})}),!!u.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:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,v=i.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,V),(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"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,v=function(C,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+C,iconRight:h,onClick:function(){function N(){return m(h?"turnleft":"turnright",{num:C})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(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:d})]})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:s+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(p,l){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."})]})}},46748:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.satellites,m=l.notice,i=l.meteor_shield,d=l.meteor_shield_coverage,u=l.meteor_shield_coverage_max,s=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:v.id})}return g}()})]},v.id)})]})})]})})}return V}()},46504:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(99753),k=n(31068),S=r.SecureStorage=function(){function c(m,i){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,p)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=s.locked,g=s.no_passcode,C=s.emagged,h=s.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,i)}return B}(),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--"+b]),height:"100%",children:C?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.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 g(){return u("keypad",{digit:v})}return g}()})}},54529:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function C(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.loginState,T=L.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,s));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,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return C}(),m=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.currentPage,T=L.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:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),P=E[0],R=E[1],M=(0,t.useLocalState)(N,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(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,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,W){var K=D?1:-1;return F[P].localeCompare(W[P])*K}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function W(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return W}(),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)},d=function(h,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(L(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[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 B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.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,R){return x(R)}return E}()})})]})},s=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.security;return!T||!T.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:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("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 B("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 B("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 B("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,prewrap:!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 l(N,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(h,N){var b=(0,t.useBackend)(N),B=b.data,L=B.general;return!L||!L.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:L.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(N,w)}return A}()})]},T)})})}),!!L.has_photos&&L.photos.map(function(w,T){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:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.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 T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,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:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return l("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,V):"No Seeds"})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return l("vend",{seedid:i.id,seedvariant:i.variant})}return u}()})]})]},d)})]})}},58578:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.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:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("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"})}),!!l.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:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},11154:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],i=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();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 u(){return i(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return i(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return i(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.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 s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.templates_tabs,u=i.existing_shuttle,s=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:v})}return g}(),children:v},v)})}),!!u&&s[u.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 g(){return m("select_template",{shuttle_id:v.shuttle_id})}return g}()})})]})},v.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.existing_shuttle,u=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.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 s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.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 s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,u);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:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return s}(),l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant,B=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:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.data,N=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[b[1]]/100,ranges:S,children:(0,a.round)(N[b[1]],0)},B)},B)})})})},i=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.hasOccupant,B=N.isBeakerLoaded,L=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(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:L,value:w/L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,b=N.occupant,B=N.chemicals,L=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.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:T.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:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(P,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>L||b.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:P})}return M}()},R)})]})})},A)})})},u=function(v,g){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."]})})})}},42439:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.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 l.plays===1?c=l.plays+" player has tried their luck today!":c=l.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:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},280:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.secure,m=l.can_dry,i=l.drying,d=l.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:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function u(){return p("drying")}return u}()}),children:[!d&&(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."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.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 s(){return p("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(v,g){return p("vend",{index:u.vend,amount:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return V}()},47606:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),V=1e3,k=r.Smes=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,v=m.inputting,g=m.inputLevel,C=m.inputLevelMax,h=m.inputAvailable,N=m.outputAttempt,b=m.outputting,B=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,T=i>=100&&"good"||v&&"average"||"bad",A=b&&"good"||u>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:i*.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:s?"sync-alt":"times",selected:s,onClick:function(){function x(){return c("tryinput")}return x}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:i>=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:g===0,onClick:function(){function x(){return c("input",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function x(){return c("input",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/V,fillValue:h/V,minValue:0,maxValue:C/V,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*V,1)}return x}(),onChange:function(){function x(E,P){return c("input",{target:P*V})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===C,onClick:function(){function x(){return c("input",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===C,onClick:function(){function x(){return c("input",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(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:N?"power-off":"times",selected:N,onClick:function(){function x(){return c("tryoutput")}return x}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:b?"Sending":u>0?"Not Sending":"No Charge"})}),(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:B===0,onClick:function(){function x(){return c("output",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function x(){return c("output",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/V,minValue:0,maxValue:L/V,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*V,1)}return x}(),onChange:function(){function x(E,P){return c("output",{target:P*V})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function x(){return c("output",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function x(){return c("output",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},66527:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,v=l.tracking_rate,g=l.connected_panels,C=l.connected_tracker,h=l.cdir,N=l.direction,b=l.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 B(){return p("refresh")}return B}()}),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:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(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:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",b,")"," "]}),s===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:[s!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(L,w){return p("cdir",{cdir:w})}return B}()}),s===i&&(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:s===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===i,disabled:!C,onClick:function(){function B(){return p("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},27478:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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 i(){return p("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("spawn",{ID:m.uids})}return i}()})],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 V}()},15565:function(I,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function p(l,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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("hemomancer")}return s}()}),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)]})})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("umbrae")}return s}()}),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)]})})},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("gargantua")}return s}()}),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)]})})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("dantalion")}return s}()}),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)]})})}},31752:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function k(){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,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],d=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(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return k}()},64323:function(I,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),V=n(84947),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=v[0],C=v[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(h);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:!g&&"Select trait to add...",onSelected:C,options:N,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(b){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:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.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 b(){return d("clear_future_traits")}return b}(),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 b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){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:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return d("revert",{ref:s.ref})}return v}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.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:d===k.ViewStationTraits,onClick:function(){function v(){return u(k.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function v(){return u(k.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(I,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,S)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,v=i.mask,g=i.storage,C=i.open,h=i.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function N(){return m("cook")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:C,onClick:function(){function N(){return m("toggle_lock")}return N}()})],4),children:C&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:v,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{object:g,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,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:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.object,u=p.label,s=p.missingText,v=p.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function g(){return m(v)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.open,u=i.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(I,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),V=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),v=s.act,g=s.data;return g.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),l=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),v=s.act,g=s.data,C=g.supermatters,h=C===void 0?[]:C;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"sync",content:"Refresh",onClick:function(){function N(){return v("refresh")}return N}()}),children:(0,e.createComponentVNode)(2,V.Table,{children:h.map(function(N){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:N.supermatter_id+". "+N.area_name}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:N.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,V.Button,{content:"Details",onClick:function(){function b(){return v("view",{view:N.supermatter_id})}return b}()})})]},N.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),v=s.act,g=s.data,C=g.active,h=g.SM_integrity,N=g.SM_power,b=g.SM_ambienttemp,B=g.SM_ambientpressure,L=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(L.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.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,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return v("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.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 p(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 V}()},61225:function(I,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 l("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 k}()},61424:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},V={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},k={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},S=function(c,m,i,d){return d===void 0&&(d=null),c.map(function(u){var s,v=(s=u[d])!=null?s:u;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:m.includes(u),content:v,onClick:function(){function g(){m.includes(u)?i(m.filter(function(C){var h;return((h=C[d])!=null?h:C)!==u})):i([u].concat(m))}return g}()},v)})},y=r.TTSSeedsExplorer=function(){function l(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,p)})})})}return l}(),p=r.TTSSeedsExplorerContent=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.providers,v=u.seeds,g=u.selected_seed,C=u.phrases,h=u.donator_level,N=u.character_gender,b=v.map(function(Q){return Q.category}).filter(function(Q,q,ue){return ue.indexOf(Q)===q}),B=v.map(function(Q){return Q.gender}).filter(function(Q,q,ue){return ue.indexOf(Q)===q}),L=v.map(function(Q){return Q.required_donator_level}).filter(function(Q,q,ue){return ue.indexOf(Q)===q}).sort(function(Q,q){return Q-q}).map(function(Q){return f[Q]}),w=(0,a.useLocalState)(m,"selectedProviders",s),T=w[0],A=w[1],x=(0,a.useLocalState)(m,"selectedGenders",B.includes(V[N])?[V[N]]:B),E=x[0],P=x[1],R=(0,a.useLocalState)(m,"selectedCategories",b),M=R[0],D=R[1],j=(0,a.useLocalState)(m,"selectedDonatorLevels",L.includes(f[h])?L.slice(0,L.indexOf(f[h])+1):L),F=j[0],W=j[1],K=(0,a.useLocalState)(m,"selectedPhrase",C[0]),_=K[0],$=K[1],z=(0,a.useLocalState)(m,"searchtext",""),Y=z[0],Z=z[1],ie=S(s,T,A,"name"),ae=S(B,E,P),se=S(b,M,D),he=S(L,F,W),ye=(0,e.createComponentVNode)(2,t.Dropdown,{options:C,selected:_.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Q(q){return $(q)}return Q}()}),Le=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Q(q,ue){return Z(ue)}return Q}()}),pe=v.sort(function(Q,q){var ue=Q.name.toLowerCase(),me=q.name.toLowerCase();return ue>me?1:ue<me?-1:0}).filter(function(Q){return T.some(function(q){return q.name===Q.provider})&&E.includes(Q.gender)&&M.includes(Q.category)&&F.includes(f[Q.required_donator_level])&&Q.name.toLowerCase().includes(Y.toLowerCase())}),oe=pe.map(function(Q){return(0,e.createComponentVNode)(2,t.Table.Row,{backgroundColor:g===Q.name?"green":"transparent",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:g===Q.name?"green":"transparent",content:g===Q.name?"\u0412\u044B\u0431\u0440\u0430\u043D\u043E":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",tooltip:h<Q.required_donator_level&&"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u0435\u0435 \u0432\u044B\u0441\u043E\u043A\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",onClick:function(){function q(){return d("select",{seed:Q.name})}return q}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"music",color:g===Q.name?"green":"transparent",content:"",tooltip:"\u041F\u0440\u043E\u0441\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u0438\u043C\u0435\u0440",onClick:function(){function q(){return d("listen",{seed:Q.name,phrase:_})}return q}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textColor:Q.required_donator_level>0&&g!==Q.name?"orange":"white",children:Q.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:g===Q.name?.5:.25,textAlign:"left",children:Q.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:g===Q.name?"white":k[Q.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:k[Q.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Q.required_donator_level>0&&(0,e.createFragment)([f[Q.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Q.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:ie}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ae}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ye}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Le})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===0,onClick:function(){function Q(){return D([])}return Q}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===b.length,onClick:function(){function Q(){return D(b)}return Q}()})],4),children:se})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+pe.length+"/"+v.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:oe})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:2,italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})],4)}return l}()},97552:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=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:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||s,align:"center",onClick:function(){function v(){return l("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function v(){return l("delete_logs")}return v}()})]})]})}),i.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=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"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.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 u(){return l("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return k}()},33291:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return p("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:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(i,d){return p("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},75480:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.o_tanks,m=l.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 i(){return p("oxygen")}return i}()})}),(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 i(){return p("plasma")}return i}()})})]})})})}return V}()},62291:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),v=s[0],g=s[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return p}(),V=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."})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,v=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,C=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,N=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.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:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function L(){return i("toggle_active")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(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 L(){return i("nttc_toggle_jobs")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function L(){return i("nttc_toggle_job_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return i("nttc_toggle_command_bold")}return L}()})})]})}),(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 L(){return i("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return i("nttc_setting_language")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function L(){return i("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return i("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return i("export")}return L}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.link_password,s=d.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:u||"Unset",selected:u,icon:"lock",onClick:function(){function v(){return i("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"})]}),s.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 g(){return i("unlink",{addr:v.addr})}return g}()})})]},v.addr)})]})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("add_filter")}return s}()}),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"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return i("remove_filter",{user:s})}return v}()})})]},s)})]})})}},82905:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked,d=m.active,u=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:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked_core_id,d=m.linked_core_addr,u=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:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(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 s(){return c("unlink")}return s}()})})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=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"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,v=l.powerstation,g=l.regime,C=l.teleporterhub,h=l.target,N=l.locked;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||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",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:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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:g===i?"good":null,onClick:function(){function b(){return p("setregime",{regime:i})}return b}()})}),(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:g===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(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:g===d?"good":null,disabled:!N,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(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:[h!=="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:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(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:!!(u||s),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&C&&g===d)&&(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 b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},40759:function(I,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,v=d.max_temp,g=d.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:g,maxValue:v,value:u,format:function(){function C(h){return(0,a.toFixed)(h,2)}return C}(),width:"50px",onDrag:function(){function C(h,N){return i("target_temperature",{target_temperature:N})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return p}(),k=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},y=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},32369:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),V=n(2971),k=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,v=s.max_length,g=s.message,C=g===void 0?"":g,h=s.multiline,N=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(i,"input",N||""),w=L[0],T=L[1],A=function(){function P(R){if(R!==w){var M=h?S(R):y(R);T(M)}}return P}(),x=h||w.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function P(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return P}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+v})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,v=s.max_length,g=s.multiline,C=m.input,h=m.onType,N=g||C.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:g||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){N&&B.shiftKey||(B.preventDefault(),u("submit",{entry:C}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:C})}},82296:function(I,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.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(i){return(0,a.toFixed)(i,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(i){return(0,a.toFixed)(i,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 l("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 l("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 l("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(i,d){return l("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("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 l("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},68488:function(I,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.tank_one,m=l.tank_two,i=l.attached_device,d=l.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:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return p("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function u(){return p("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function u(){return p("remove_device")}return u}()}):(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 u(){return p("tankone")}return u}()}):(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 u(){return p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},26868:function(I,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),V=r.TurbineComputer=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,v=i.turbine_broken,g=i.online,C=!!(d&&!u&&s&&!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:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!C,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=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:!i||d?"bad":"good",children:d?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(I,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),V=n(2971),k=n(84947),S=n(22677),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function v(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(C,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return v}(),l=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(C,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(C,"searchText",""),E=x[0],P=x[1],R=function(K,_){_===void 0&&(_="");var $=(0,o.createSearch)(_,function(z){var Y=z.hijack_only===1?"|hijack":"";return z.name+"|"+z.desc+"|"+z.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(z){return z==null?void 0:z.name}),_&&(0,a.filter)($),(0,a.sortBy)(function(z){return z==null?void 0:z.name})])(K)},M=function(K){if(P(K),K==="")return A(L[0].items);A(R(L.map(function(_){return _.items}).flat(),K))},D=(0,f.useLocalState)(C,"showDesc",1),j=D[0],F=D[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return F(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,_){M(_)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),P("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(C,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(g,C){var h=g.i,N=g.showDecription,b=N===void 0?1:N,B=g.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=g.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=g.i,L=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(g,C){var h=(0,f.useBackend)(C),N=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(C,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1],P=function(D,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(W){return W.name})])(D)},R=P(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(I,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,v=c.usermoney,g=c.inserted_cash,C=c.vend_ready,h=c.inserted_item_name,N=!u||m.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!C||i===0||!N&&m.price>v&&m.price>g;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,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(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:i<=0&&"bad"||i<=m.max_amount/2&&"average"||"good",children:[i," 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:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,v=s===void 0?[]:s,g=c.hidden_records,C=g===void 0?[]:g,h=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(v),c.extended_inventory&&(T=[].concat(T,C)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.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:[!!u&&(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:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("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,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"check":"volume-mute",selected:L,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("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:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>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 d(){return p("volume",{channel:m.num,volume:0})}return d}()})})}),(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 d(u,s){return p("volume",{channel:m.num,volume:s})}return d}()})}),(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 d(){return p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return V}()},26564:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.remaining,m=l.question,i=l.choices,d=l.user_vote,u=l.counts,s=l.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"]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:v,content:v+(s?" ("+(u[v]||0)+")":""),onClick:function(){function g(){return p("vote",{target:v})}return g}(),selected:v===d})},v)})]})})})}return V}()},496:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.wires||[],m=l.status||[],i=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,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(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return V}()},28919:function(I,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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 p("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 p("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 p("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 p("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 p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},14635:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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 V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c<l;c++)m[c]=p[c];return m}var S={0:{icon:"times-circle",color:"bad"},1:{icon:"stop-circle",color:null},2:{icon:"check-circle",color:"good"}},y=r.AccessList=function(){function p(l,c){var m,i=l.sectionButtons,d=i===void 0?null:i,u=l.usedByRcd,s=l.rcdButtons,v=l.accesses,g=v===void 0?[]:v,C=l.selectedList,h=C===void 0?[]:C,N=l.grantableList,b=N===void 0?[]:N,B=l.accessMod,L=l.grantAll,w=l.denyAll,T=l.grantDep,A=l.denyDep,x=(0,t.useLocalState)(c,"accessName",(m=g[0])==null?void 0:m.name),E=x[0],P=x[1],R=g.find(function(j){return j.name===E}),M=(0,a.sortBy)(function(j){return j.desc})((R==null?void 0:R.accesses)||[]),D=function(){function j(F){for(var W=!1,K=!1,_=f(F),$;!($=_()).done;){var z=$.value;h.includes(z.ref)?W=!0:K=!0}return!W&&K?0:W&&K?1:2}return j}();return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Access",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"check-double",content:"Select All",color:"good",onClick:function(){function j(){return L()}return j}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Deselect All",color:"bad",onClick:function(){function j(){return w()}return j}()}),d],0),children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:g.map(function(j){var F=j.accesses||[],W=S[D(F)].icon,K=S[D(F)].color;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{altSelection:!0,color:K,icon:W,selected:j.name===E,onClick:function(){function _(){return P(j.name)}return _}(),children:j.name},j.name)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"80%",children:[(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"check",content:"Select All In Region",color:"good",onClick:function(){function j(){return T(R.regid)}return j}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"times",content:"Deselect All In Region",color:"bad",onClick:function(){function j(){return A(R.regid)}return j}()})})]}),!!u&&(0,e.createComponentVNode)(2,o.Box,{my:1.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Require",children:s})})}),M.map(function(j){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:j.desc,disabled:b.length>0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return p}()},29136:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,p,l,c){return S<y?"bad":S<p||S>l?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,l=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.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),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(I,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,i=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,v=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"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:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!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:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(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 g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function p(l,c,m){var i=(0,a.useBackend)(l),d=i.act,u=i.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var v=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,v=d.type,g,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,N,b="auto";if(o[u])h=o[u](i.modal,c);else if(v==="input"){var B=i.modal.value;g=function(){function w(T){return k(c,u,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),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 w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var L=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):v==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&C,h,N]})}}return p}()},692:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=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(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:y(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},l=r.CrewManifest=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s;if(m.data)s=m.data;else{var v=(0,a.useBackend)(i),g=v.data;s=g}var C=s,h=C.manifest,N=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(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:p(x)})]})}return c}()},98658:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,i=V.message,d=V.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function v(){return y("submit",{entry:m})}return v}(),textAlign:"center",tooltip:l&&i,disabled:d,width:!l&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function v(){return y("cancel")}return v}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!l&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,i=m===void 0?p.locked:m,d=V.normallyLocked,u=d===void 0?p.normallyLocked:d,s=V.onLockStatusChange,v=s===void 0?function(){return y("lock")}:s,g=V.accessText,C=g===void 0?"an ID card":g;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:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function h(){v&&v(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState;if(p)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: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,i=p.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:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)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 ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=k.data,c=l.code,m=l.frequency,i=l.minFrequency,d=l.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:i/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,v){return p("freq",{freq:v})}return u}()})}),(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 u(s,v){return p("code",{code:v})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return p("signal")}return u}()})]})}return V}()},79969:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),V=n(2971),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],v=u[1],g=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.Name})])(d)},C=g(d,s);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,b){return v(b)}return h}()}),C.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return i("Records",{target:h.uid})}return N}()})},h)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,v=d.security,g;switch(l.recordType){case"MED":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:v.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(V,k){var S,y=(0,a.useBackend)(k),p=y.act,l=y.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);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 i(){return p("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,v=l.burn,g=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:i/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.master,m=l.dna,i=l.prime,d=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.cable,m=l.machine,i=l.inprogress,d=l.progress,u=l.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),v]})}return f}()},94648:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.available_software,m=l.installed_software,i=l.installed_toggles,d=l.available_ram,u=l.emotions,s=l.current_emotion,v=l.speech_verbs,g=l.current_speech_verb,C=l.available_chassises,h=l.current_chassis,N=[];return m.map(function(b){return N[b.key]=b.name}),i.map(function(b){return N[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!N[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!N[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.app_data,m=c.minFrequency,i=c.maxFrequency,d=c.frequency,u=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:i/10,value:d/10,format:function(){function s(v){return(0,t.toFixed)(v,1)}return s}(),onChange:function(){function s(v,g){return p("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return V}()},76020:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,i=l.buckets,d=l.cleanbots,u=l.carts;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(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - ",s.status]},s)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - [",s.volume,"/",s.max_volume,"]"]},s)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - ",s.status]},s)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:[s.x,",",s.y," (",s.dir,") - [",s.volume,"/",s.max_volume,"]"]},s)})})]})}return f}()},57725:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=y.data,c=l.owner,m=l.ownjob,i=l.idInserted,d=l.categories,u=l.pai,s=l.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:!i,onClick:function(){function v(){return p("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:d.map(function(v){var g=l.apps[v];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:g.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in s?C.notify_icon:C.icon,iconSpin:C.uid in s,color:C.uid in s?"red":"transparent",content:C.name,onClick:function(){function h(){return p("StartProgram",{program:C.uid})}return h}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(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 p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return V}()},29978:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,V,{data:i}):(0,e.createComponentVNode)(2,k,{data:i})}return y}(),V=r.ActiveConversation=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convo_name,u=i.convo_job,s=i.messages,v=i.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),C=g[0],h=g[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!C)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:v})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===v})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return C&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!C)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:v})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===v})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(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 b(){return m("Clear",{option:"Convo"})}return b}()})})})}),N]})}return y}(),k=r.MessengerList=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convopdas,u=i.pdas,s=i.charges,v=i.silent,g=i.toff,C=i.ringtone_list,h=i.ringtone,N=(0,t.useLocalState)(l,"searchTerm",""),b=N[0],B=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 L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(C),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(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:[s," charges left."]})})}),!d.length&&!u.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:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:b})]})}return y}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=p.pdas,u=p.title,s=p.msgAct,v=p.searchTerm,g=i.charges,C=i.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(h){return h.Name.toLowerCase().includes(v.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function N(){return m(s,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&C.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return b}()},N.uid)})})]},h.uid)})})}},54291:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.connected,m=l.wild_captures,i=l.no_collection,d=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return p("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return p("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("Next")}return u}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return V}()},31112:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,v=i.load,g=i.powr,C=i.dest,h=i.home,N=i.retn,b=i.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function L(){return l("target")}return L}()})}),(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 L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(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 L(){return l("set_auto_return",{autoret:N?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},2817:function(I,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=s.logged_in,g=s.owner_name,C=s.money;return v?(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:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",C]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),v=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function C(){return g(1)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===2,onClick:function(){function C(){return g(2)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===3,onClick:function(){function C(){return g(3)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),v=s.data,g=v.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,i){var d,u=(0,t.useBackend)(i),s=u.act,v=u.data,g=v.requests,C=v.available_accounts,h=v.money,N=(0,t.useLocalState)(i,"selectedAccount"),b=N[0],B=N[1],L=(0,t.useLocalState)(i,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],P=[];return C.map(function(R){return P[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(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:C.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=C.filter(function(R){return R.UID===b})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(P[M])}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(M,D){return T(D)}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:h<w||!b,content:"Send",onClick:function(){function R(){return s("transfer",{amount:w,transfer_to_account:b})}return R}()}),(0,e.createComponentVNode)(2,o.Button,{bold:!0,icon:"hand-holding-usd",width:"auto",disabled:!b,content:"Request",onClick:function(){function R(){return s("transfer_request",{amount:w,transfer_to_account:b})}return R}()})]})]}),(0,e.createComponentVNode)(2,o.Section,{level:3,title:"Requests",children:g.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{mt:1,ml:1,children:[(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Request from "),R.requester],0),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:R.amount}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time",children:[R.time," Minutes ago"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"thumbs-up",color:"good",disabled:h<R.amount,content:"Accept",onClick:function(){function M(){return s("resolve_transfer_request",{accepted:1,requestUID:R.request_id})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"thumbs-down",color:"bad",content:"Deny",onClick:function(){function M(){return s("resolve_transfer_request",{requestUID:R.request_id})}return M}()})]})]})]},R.UID)})})],4)},y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=s.security_level,g=s.department_members,C=s.auto_approve,h=s.auto_approve_amount,N=s.is_department_account;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Security",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"user-lock",selected:v===1,content:"Account Number Only",tooltip:"Set Account security so that only having the account number is required for transactions",onClick:function(){function b(){return u("set_security",{new_security_level:1})}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-lock",selected:v===2,content:"Require Pin Entry",tooltip:"Set Account security so that pin entry is required for transactions",onClick:function(){function b(){return u("set_security",{new_security_level:2})}return b}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Logout",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sign-out-alt",width:"auto",content:"Logout",onClick:function(){function b(){return u("logout")}return b}()})})]}),!!N&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto Approve Orders",children:(0,e.createComponentVNode)(2,o.Button,{color:C?"good":"bad",content:C?"Yes":"No",onClick:function(){function b(){return u("toggle_auto_approve")}return b}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto Approve Purchases when",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"# Credits",value:h,onInput:function(){function b(B,L){return u("set_approve_amount",{approve_amount:L})}return b}()})})]}),(0,e.createComponentVNode)(2,o.Divider),(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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Occupation"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Can Approve Crates"})]}),g.map(function(b){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:b.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:b.job}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b.can_approve?"good":"bad",content:b.can_approve?"Yes":"No",onClick:function(){function B(){return u("toggle_member_approval",{member:b.name})}return B}()})})]},b)})]})],4)],0)},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=s.transaction_log;return(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"})]}),v.map(function(g){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:g.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:g.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:g.target_name})]},g)})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,v=(0,t.useLocalState)(i,"accountID",null),g=v[0],C=v[1],h=(0,t.useLocalState)(i,"accountPin",null),N=h[0],b=h[1],B=s.card_account_num,L=g||B;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Account ID",onInput:function(){function w(T,A){return C(A)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Account Pin",onInput:function(){function w(T,A){return b(A)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Login",icon:"sign-in-alt",disabled:!g&&!B,onClick:function(){function w(){return u("login",{account_num:L,account_pin:N})}return w}()})})]})}},66621:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_notes=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:l}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function c(){return y("Edit")}return c}(),content:"Edit"})]})}return f}()},96490:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(28823),a=n(91819),t=n(75199),o=r.pda_power=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return f}()},36436:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_secbot=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.beepsky,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.beepsky,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.beepsky,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,v;switch(u){case 0:v="Ready";break;case 1:v="Apprehending target";break;case 2:case 3:v="Arresting target";break;case 4:v="Starting patrol";break;case 5:v="On patrol";break;case 6:v="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function g(){return l("go")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function g(){return l("stop")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function g(){return l("summon")}return g}()})]})]})]})}},55244:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_security=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"SEC"})}return f}()},23470:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pda_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return f}()},43085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_status_display=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function c(){return y("Status",{statdisp:0})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return y("Status",{statdisp:1})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return y("Status",{statdisp:2})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"redalert"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"biohazard"})}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:l.message1+" (set)",icon:"pen",onClick:function(){function c(){return y("SetMessage",{msgnum:1})}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:l.message2+" (set)",icon:"pen",onClick:function(){function c(){return y("SetMessage",{msgnum:2})}return c}()})})]})})}return f}()},26948:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_supplyrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.supply,c=l.shuttle_loc,m=l.shuttle_time,i=l.shuttle_moving,d=l.approved,u=l.approved_count,s=l.requests,v=l.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:i?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",m]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:v>0&&s.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},73786:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],V=["className","scrollable","children"];/** + */var V=(0,t.createLogger)("hotkeys"),k={},S=[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],y={},p=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},l=function(s){var C=String(s);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){C==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=p(s.code);if(g){var v=k[g];if(v)return V.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return V.debug(h),Byond.command(h)}if(s.isUp()&&y[g]){y[g]=!1;var N='Key_Up "'+g+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var C=S.indexOf(s);C>=0&&S.splice(C,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,C=Object.keys(y);s<C.length;s++){var g=C[s];y[g]&&(y[g]=!1,V.log('releasing key "'+g+'"'),Byond.command('Key_Up "'+g+'"'))}}return u}(),d=r.setupHotKeys=function(){function u(){Byond.winget("default.*").then(function(s){for(var C={},g=0,v=Object.keys(s);g<v.length;g++){var h=v[g],N=h.split("."),b=N[1],B=N[2];b&&B&&(C[b]||(C[b]={}),C[b][B]=s[h])}for(var L=/\\"/g,w=function(){function R(M){return M.substring(1,M.length-1).replace(L,'"')}return R}(),T=0,A=Object.keys(C);T<A.length;T++){var x=A[T],E=C[x],P=w(E.name);k[P]=w(E.command)}V.debug("loaded macros",k)}),a.globalEvents.on("window-blur",function(){i()}),a.globalEvents.on("key",function(s){l(s)})}return u}()},89163:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AICard=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.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 l.integrity>=75?c="green":l.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:l.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:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.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:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,i){return(0,e.createComponentVNode)(2,t.Box,{children:m},i)})})||(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:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return p("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:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},46817:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.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;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var i=!0;return l.integrity>=100&&l.stat!==2&&(i=!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:l.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:l.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:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(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:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||l.active,content:!i||l.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},20420:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.APC=function(){function p(l,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,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,C=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],N=d.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:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return i("breaker")}return b}()}),children:["[ ",C.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:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return i("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return i("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return i("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],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:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function b(){return i("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function b(){return i("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.view_screen,v=C.authenticated_account,h=C.ticks_left_locked_down,N=C.linked_db,b;if(h>0)b=(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)b=(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(v)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);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,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.machine_id,v=C.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:v,icon:"eject",onClick:function(){function h(){return s("insert_card")}return h}()})})})]})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.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:g===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(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:g===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(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)]})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],N=(0,a.useLocalState)(d,"fundsAmount",0),b=N[0],B=N[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[1],A=C.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 h(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 B(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 T(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 s("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],N=C.owner_name,b=C.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 B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(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 B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],N=(0,a.useLocalState)(d,"accountPin",null),b=N[0],B=N[1],L=C.machine_id,w=C.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 T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.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"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return s("view_screen",{view_screen:0})}return g}()})}},90698:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),V=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function C(g,v){var h=(0,t.useBackend)(v),N=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,u):L===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),p=function(g,v){var h=(0,t.useBackend)(v),N=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],L=b[1],w=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:B===0,onClick:function(){function T(){return L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),N=h[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(g,v){var h=(0,t.useBackend)(v),N=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),R=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(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,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var F=R?1:-1;return D[x].localeCompare(j[x])*F}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(g,v){var h=(0,t.useBackend)(v),N=h.act,b=h.data,B=b.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"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),N=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),L=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function x(){N===T?w(!L):(b(T),w(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),N=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[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 T(E)}return A}()})})]})},u=function(g,v){var h=(0,t.useBackend)(v),N=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.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:"#"+B+" / "+L,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:["#",B]}),!!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:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"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)})]})})})]})},s=function(g,v){var h=(0,t.useBackend)(v),N=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),L=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[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,R){return w(R)}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,R){return x(R)}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:L,starting_funds:A})}return E}()})]})}},66895:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AgentCard=function(){function S(y,p){var l=(0,a.useLocalState)(p,"tabIndex",0),c=l[0],m=l[1],i=function(){function d(u){switch(u){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);default:return(0,e.createComponentVNode)(2,V)}}return d}();return(0,e.createComponentVNode)(2,o.Window,{width:425,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:c===0,onClick:function(){function d(){return m(0)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function d(){return m(1)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),i(c)]})})})}return S}(),V=r.AgentCardInfo=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.registered_name,d=m.sex,u=m.age,s=m.assignment,C=m.associated_account_number,g=m.blood_type,v=m.dna_hash,h=m.fingerprint_hash,N=m.photo,b=m.ai_tracking;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,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:i||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:d||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:h||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(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,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),k=r.AgentCardAppearances=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=(0,a.useLocalState)(p,"selectedAppearance",null),d=i[0],u=i[1],s=m.appearances;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:s.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:C===d,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+C.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function g(){u(C),c("change_appearance",{new_appearance:C.name})}return g}()})},C.name)})})})}return S}()},26354:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],d=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 u(){return l("disrupt-main")}return u}()}),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:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return l("disrupt-backup")}return u}()}),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:d.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 u(){return l("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return l("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return l("shock-perm")}return u}()})],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 u(){return l("idscan-toggle")}return u}()}),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 u(){return l("emergency-toggle")}return u}()})}),(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 u(){return l("bolt-toggle")}return u}()}),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 u(){return l("light-toggle")}return u}()}),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 u(){return l("safe-toggle")}return u}()}),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 u(){return l("speed-toggle")}return u}()}),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 u(){return l("open-close")}return u}()}),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 k}()},26673:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.AirAlarm=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.air,N=v.mode,b=v.atmos_alarm,B=v.locked,L=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(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 g("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:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return g(L?"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:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.vents;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.scrubbers;return h.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 b(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return b}()})]}),(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 b(){return g("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return b}()})}),(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 b(){return g("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.modes,N=v.presets,b=v.emagged,B=v.mode,L=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(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(w){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===L,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.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"})]}),h.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(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},N.name)})]})})}},98565:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.exterior_status,m=l.interior_status,i=l.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function s(){return p("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function s(){return p("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:m==="open"?"red":i?"yellow":null,onClick:function(){function s(){return p("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function s(){return p("cycle_int_door")}return s}()}),(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:[d,u]})})]})})}return V}()},76385:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(i,d){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,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.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:g&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(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:g&k?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:k})}return v}()})}),(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:g&y?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:y})}return v}()})}),(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:g&V?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:V})}return v}()})})]})]})})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function N(){return s("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function N(){return s("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:g,accessMod:function(){function N(b){return s("set",{access:b})}return N}(),grantAll:function(){function N(){return s("grant_all")}return N}(),denyAll:function(){function N(){return s("clear_all")}return N}(),grantDep:function(){function N(b){return s("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return s("deny_region",{region:b})}return N}()})}},55666:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),V=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.autofocus,g=s.buttons,v=g===void 0?[]:g,h=s.large_buttons,N=s.message,b=N===void 0?"":N,B=s.timeout,L=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),P=function(){function R(M){T===0&&M===k?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,V.Window,{title:L,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),P(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return R}(),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:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,C=s===void 0?[]:s,g=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(N,b){return g&&C.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:N,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:N,id:b.toString(),selected:h===b})},b)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.large_buttons,g=m.button,v=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function N(){return u("choose",{choice:g})}return N}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},16504:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,N=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=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,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,F=c.change_hair_gradient,W=c.change_facial_hair,K=c.facial_hair_styles,_=c.facial_hair_style,$=c.change_head_markings,z=c.head_marking_styles,Y=c.head_marking_style,Z=c.change_body_markings,ie=c.body_marking_styles,ae=c.body_marking_style,se=c.change_tail_markings,he=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,oe=c.body_accessory_style,Q=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,me=!1;return(g||v||h||N||b||B||L||w||T||A||x)&&(me=!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:i.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.specimen,selected:ne.specimen===d,onClick:function(){function be(){return l("race",{race:ne.specimen})}return be}()},ne.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function ne(){return l("gender",{gender:"male"})}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function ne(){return l("gender",{gender:"female"})}return ne}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function ne(){return l("gender",{gender:"plural"})}return ne}()})]}),!!me&&(0,e.createComponentVNode)(2,V),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headaccessorystyle,selected:ne.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:ne.headaccessorystyle})}return be}()},ne.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.hairstyle,selected:ne.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:ne.hairstyle})}return be}()},ne.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 ne(){return l("hair_gradient")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ne(){return l("hair_gradient_offset")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ne(){return l("hair_gradient_colour")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ne(){return l("hair_gradient_alpha")}return ne}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.facialhairstyle,selected:ne.facialhairstyle===_,onClick:function(){function be(){return l("facial_hair",{facial_hair:ne.facialhairstyle})}return be}()},ne.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:z.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headmarkingstyle,selected:ne.headmarkingstyle===Y,onClick:function(){function be(){return l("head_marking",{head_marking:ne.headmarkingstyle})}return be}()},ne.headmarkingstyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodymarkingstyle,selected:ne.bodymarkingstyle===ae,onClick:function(){function be(){return l("body_marking",{body_marking:ne.bodymarkingstyle})}return be}()},ne.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:he.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.tailmarkingstyle,selected:ne.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:ne.tailmarkingstyle})}return be}()},ne.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodyaccessorystyle,selected:ne.bodyaccessorystyle===oe,onClick:function(){function be(){return l("body_accessory",{body_accessory:ne.bodyaccessorystyle})}return be}()},ne.bodyaccessorystyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.altheadstyle,selected:ne.altheadstyle===ue,onClick:function(){function be(){return l("alt_head",{alt_head:ne.altheadstyle})}return be}()},ne.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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_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(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function d(){return l(i.action)}return d}()},i.key)})})}},77280:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.priority||[],m=l.minor||[];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(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return V}()},66274:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),V=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"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=(0,a.useLocalState)(m,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:C===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:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.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"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],C=u[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return C(h)}return v}(),children:g.filter(function(v){return v.z===3}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},90588:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.pressure,i=l.max_pressure,d=l.filter_type,u=l.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 s(){return p("power")}return s}()})}),(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 s(){return p("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:m,onDrag:function(){function s(C,g){return p("custom_pressure",{pressure:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function C(){return p("set_filter",{filter:s.gas_type})}return C}()},s.label)})})]})})})})}return V}()},87486:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.on,i=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=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 C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:i===0,width:2.2,onClick:function(){function C(){return l("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:i,onDrag:function(){function C(g,v){return l("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function C(){return l("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.node_name,i=S.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:i===0,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function d(u,s){return l("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i+10)/100})}return d}()})]})}},46714:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.rate,i=l.max_rate,d=l.gas_unit,u=l.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 s(){return p("power")}return s}()})}),(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 s(){return p("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:i,value:m,onDrag:function(){function s(C,g){return p("custom_rate",{rate:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_rate")}return s}()})]})]})})})})}return V}()},66032:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),V=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[d].pressure," kpa"]}):"",Object.keys(i[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(i[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:i[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(i[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),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 d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(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 d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",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 d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(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 d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=function(l,c,m,i){return l.requirements===null?!0:!(l.requirements.metal*i>c||l.requirements.glass*i>m)},y=r.Autolathe=function(){function p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,N=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],F=(0,k.createSearch)(D,function($){return $.name}),W="";B>0&&(W=b.map(function($,z){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[z][0],onClick:function(){function Y(){return i("remove_from_queue",{remove_from_queue:b.indexOf($)+1})}return Y}()},$)},z)}));var K=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||D)&&(d.showhacked||!$.hacked)}),D&&(0,t.filter)(F),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(L),_="Build";return D?_="Results for: '"+D+"':":A&&(_="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.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:_,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function $(z){return x(z)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(z,Y){return j(Y)}return $}(),mb:1}),K.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:d.busyname===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:1})}return z}(),children:(0,k.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:10})}return z}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:25})}return z}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function z(){return i("make",{make:$.uid,multiplier:$.max_multiplier})}return z}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(z){return(0,k.toTitleCase)(z)+": "+$.requirements[z]}).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:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return i("clear_queue")}return $}()})]})]})]})})})}return p}()},13940:function(I,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.implant,m=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",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})]})],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!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function i(){return p("eject_case")}return i}()})]})})})}return V}()},55295:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.Biogenerator=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.data,u=i.config,s=d.container,C=d.processing,g=u.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:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=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."]})})})},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,C=u.container,g=u.container_curr_reagents,v=u.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:s}),(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:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.has_plants,C=u.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:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,C=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],h=g[1],N=Object.entries(C).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.map(function(w){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:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(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:s<w.cost*v,icon:"arrow-circle-down",onClick:function(){function T(){return d("create",{id:w.id,amount:v})}return T}()})})]},w)})},b[0])});return(0,e.createComponentVNode)(2,t.Section,{title:"Products",fill:!0,scrollable:!0,height:32,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Amount to vend:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:v,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function b(B,L){return h(L)}return b}()})],4),children:N})}},92247:function(I,r,n){"use strict";r.__esModule=!0,r.BlueSpaceArtilleryControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BlueSpaceArtilleryControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c;return l.ready?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"green",children:"Ready"}):l.reloadtime_text?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reloading In",color:"red",children:l.reloadtime_text}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:"No cannon connected!"}),(0,e.createComponentVNode)(2,o.Window,{width:400,height:125,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.notice&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Button,{icon:"crosshairs",content:l.target?l.target:"None",onClick:function(){function m(){return p("recalibrate")}return m}()})}),l.ready===1&&!!l.target&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Firing",children:(0,e.createComponentVNode)(2,t.Button,{icon:"skull",content:"FIRE!",color:"red",onClick:function(){function m(){return p("fire")}return m}()})}),!l.connected&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Complete Deployment",onClick:function(){function m(){return p("build")}return m}()})})]})})})})}return V}()},74594:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),V=r.BluespaceTap=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.product||[],i=c.desiredLevel,d=c.inputLevel,u=c.points,s=c.totalPoints,C=c.powerUse,g=c.availablePower,v=c.maxLevel,h=c.emagged,N=c.safeLevels,b=c.nextLevelPower,B=i>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:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(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.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",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,tooltip:"Set to 0",onClick:function(){function L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function L(){return l("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function L(w,T){return l("set",{set_level:T})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:v})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(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:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],y={average:[.25,.5],bad:[.5,1/0]},p=function(b,B){for(var L=[],w=0;w<b.length;w+=2)L.push(B(b[w],b[w+1],w));return L},l=function(b){return b.length>0?b.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,o.Box,{children:L},L)],0)},null):null},c=function(b){if(b>100){if(b<300)return"mild infection";if(b<400)return"mild infection+";if(b<500)return"mild infection++";if(b<700)return"acute infection";if(b<800)return"acute infection+";if(b<900)return"acute infection++";if(b>=900)return"septic"}return""},m=r.BodyScanner=function(){function N(b,B){var L=(0,t.useBackend)(B),w=L.data,T=w.occupied,A=w.occupant,x=A===void 0?{}:A,E=T?(0,e.createComponentVNode)(2,i,{occupant:x}):(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:E})})}return N}(),i=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,d,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,g,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,v,{organs:B.intOrgan})]})},d=function(b,B){var L=(0,t.useBackend)(B),w=L.act,T=L.data,A=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function x(){return w("print_p")}return x}(),children:"Print Report"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function x(){return w("ejectify")}return x}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[A.stat][0],children:V[A.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,o.Box,{children:A.implant.map(function(x){return x.name}).join(", ")}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"None"})})]})})},u=function(b){var B=b.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,o.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},s=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:p(S,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:B[L[1]],marginBottom:T<S.length-2})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&(0,e.createComponentVNode)(2,C,{value:B[w[1]]})})]})],4)})})})},C=function(b){return(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:b.value/100,mt:"0.5rem",mb:!!b.marginBottom&&"0.5rem",ranges:y,children:(0,a.round)(b.value,0)})},g=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"External Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"External Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.status.dead&&"bad"||(!!B.internalBleeding||!!B.burnWound||!!B.lungRuptured||!!B.status.broken||!!B.open||B.germ_level>100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:y,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!B.bruteLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(B.bruteLoss,0),"\xA0"]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(B.fireLoss,0)]})})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(B.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,c(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},v=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:y,children:(0,a.round)(B.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([c(B.germ_level)])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},h=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",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."]})})})}},73440:function(I,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=n(92462),k=r.BookBinder=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.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 s(){return c("print_book")}return s}()}),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:i.title,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_author")}return s}()})}),(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:d.map(function(s){return s.description}),onSelected:function(){function s(C){return c("toggle_binder_category",{category_id:u[C]})}return s}()})})}),(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 s(){return(0,f.modalOpen)(p,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return i.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:s.category_id})}return C}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,N=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,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:i,onClick:function(){function b(){return l("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,h=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:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return l("anchored")}return b}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 k}()},39805:function(I,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=c.heal_threshold,w=c.injection_amount,T=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:i,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:i,onClick:function(){function E(){return l("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:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:i,onChange:function(){function E(P,R){return l("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:i,onChange:function(){function E(P,R){return l("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return l("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:i,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,C=c.arrest_mode,g=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:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return l("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return l("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return l("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return l("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return l("arrdeclare")}return v}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function v(){return l("ejectpai")}return v}()})})]})})}return k}()},71169:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,p){var l=y.cell,c=(0,o.useBackend)(p),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,C=l.time_left_seconds,g=l.time_set_seconds,v=l.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(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:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(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.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(y){var p=y.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"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(y,p){var l=(0,o.useBackend)(p),c=l.act,m=l.data,i=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,V,{cells:i})})})})})}return S}()},19070:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;i<l.spns.length;i++)m.push(l.spns[i]);return(0,e.createComponentVNode)(2,o.Window,{width:500,height:l.timing?237:396,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cell Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell ID",children:l.cell_id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:l.nameText}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crimes",children:l.crimes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brigged By",children:l.brigged_by}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Brigged For",children:l.time_set}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:l.time_left}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Flash",disabled:!l.isAllowed,onClick:function(){function d(){return p("flash")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Reset Timer",disabled:!l.timing||!l.isAllowed,onClick:function(){function d(){return p("restart_timer")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Release Prisoner",disabled:!l.timing||!l.isAllowed,onClick:function(){function d(){return p("stop")}return d}()})],4)})]})}),!l.timing&&(0,e.createComponentVNode)(2,t.Section,{title:"New Prisoner",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prisoner Name",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c,content:l.prisoner_name?l.prisoner_name:"-----",disabled:!l.isAllowed,onClick:function(){function d(){return p("prisoner_name")}return d}()}),!!l.spns.length&&(0,e.createComponentVNode)(2,t.Dropdown,{disabled:!l.isAllowed||!l.spns.length,options:l.spns,width:"250px",onSelected:function(){function d(u){return p("prisoner_name",{prisoner_name:u})}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prisoner Crimes",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:l.prisoner_charge?l.prisoner_charge:"-----",disabled:!l.isAllowed,onClick:function(){function d(){return p("prisoner_charge")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prisoner Time",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:l.prisoner_time?l.prisoner_time:"-----",disabled:!l.isAllowed,onClick:function(){function d(){return p("prisoner_time")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start",children:(0,e.createComponentVNode)(2,t.Button,{icon:"gavel",content:"Start Sentence",disabled:!l.prisoner_name||!l.prisoner_charge||!l.prisoner_time||!l.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return V}()},59681:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleContent=r.CameraConsole=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),f=n(37843),V=n(91819),k=n(2971),S=n(84947);String.prototype.trimLongStr=function(m){return this.length>m?this.substring(0,m)+"...":this};var y=function(i,d){var u,s;if(!d)return[];var C=i.findIndex(function(g){return g.name===d.name});return[(u=i[C-1])==null?void 0:u.name,(s=i[C+1])==null?void 0:s.name]},p=function(i,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(i)},l=r.CameraConsole=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,C=u.data,g=u.config,v=C.mapRef,h=C.activeCamera,N=p(C.cameras),b=y(N,h),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.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),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,C=u.data,g=(0,V.useLocalState)(d,"searchText",""),v=g[0],h=g[1],N=C.activeCamera,b=p(C.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&B.name===N.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},64487:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),f=n(37843),V=n(91819),k=n(2971),S=n(84947),y=function(d,u){var s,C;if(!u)return[];var g=d.findIndex(function(v){return v.name===u.name});return[(s=d[g-1])==null?void 0:s.name,(C=d[g+1])==null?void 0:C.name]},p=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(C){return C.name});return(0,t.flow)([(0,a.filter)(function(C){return C==null?void 0:C.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(C){return C.name})])(d)},l=r.CameraConsole220=function(){function i(d,u){var s=(0,V.useLocalState)(u,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{children:(0,e.createComponentVNode)(2,k.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{width:C===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,k.Tabs,{fluid:!0,ml:C===1?1:0,mt:C===1?1:0,children:[(0,e.createComponentVNode)(2,k.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,k.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,k.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,k.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(C)]})})})})}return i}(),c=r.CameraConsoleMapContent=function(){function i(d,u){var s=(0,V.useBackend)(u),C=s.act,g=s.data,v=s.config,h=p(g.cameras),N=(0,V.useLocalState)(u,"zoom",1),b=N[0],B=N[1],L=g.mapRef,w=g.activeCamera,T=g.stationLevel,A=y(h,w),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,k.NanoMap,{onZoom:function(){function P(R){return B(R)}return P}(),children:h.filter(function(P){return P.z===T}).map(function(P){return(0,e.createComponentVNode)(2,k.NanoMap.NanoButton,{activeCamera:w,x:P.x,y:P.y,context:u,zoom:b,icon:"circle",tooltip:P.name,name:P.name,color:"blue",status:P.status},P.ref)})})}),(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function P(){return C("switch_camera",{name:x})}return P}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function P(){return C("switch_camera",{name:E})}return P}()})],4)],4),(0,e.createComponentVNode)(2,k.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:L,type:"map"}})]})]})}return i}(),m=r.CameraConsoleOldContent=function(){function i(d,u){var s=(0,V.useBackend)(u),C=s.act,g=s.data,v=s.config,h=g.mapRef,N=g.activeCamera,b=(0,V.useLocalState)(u,"searchText",""),B=b[0],L=b[1],w=p(g.cameras,B),T=y(w,N),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,k.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,R){return L(R)}return E}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",N&&E.name===N.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return C("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return C("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return C("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return i}()},21348:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),V=n(84947),k=r.Canister=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,C=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,h=m.name,N=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var P=[],R=[],M=[],D=[],j=0;for(j=0;j<b.prim.options.length;j++)P.push(b.prim.options[j].name);for(j=0;j<b.sec.options.length;j++)R.push(b.sec.options[j].name);for(j=0;j<b.ter.options.length;j++)M.push(b.ter.options[j].name);for(j=0;j<b.quart.options.length;j++)D.push(b.quart.options[j].name);var F="";return N&&(F=(0,e.createComponentVNode)(2,o.Section,{title:"Paint",children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.prim.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:T,disabled:!N,options:P,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:P.indexOf(K),ctype:"prim"})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.sec.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:A,disabled:!N,options:R,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:R.indexOf(K),ctype:"sec"})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.ter.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:x,disabled:!N,options:M,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:M.indexOf(K),ctype:"ter"})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"110px",label:b.quart.name,children:(0,e.createComponentVNode)(2,o.Dropdown,{over:!0,selected:E,disabled:!N,options:D,width:"110px",onSelected:function(){function W(K){return c("recolor",{nc:D.indexOf(K),ctype:"quart"})}return W}()})})]})})),(0,e.createComponentVNode)(2,V.Window,{width:600,height:N?300:230,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:h,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Relabel",disabled:!N,onClick:function(){function W(){return c("relabel")}return W}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"66px",label:"Pressure",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d,format:function(){function W(K){return K<1e4?(0,a.toFixed)(K)+" kPa":(0,f.formatSiUnit)(K*1e3,1,"Pa")}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Regulator",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",left:"-8px",children:[(0,e.createComponentVNode)(2,o.Knob,{size:1.25,color:!!v&&"yellow",value:u,unit:"kPa",minValue:C,maxValue:g,step:5,stepPixelSize:1,onDrag:function(){function W(K,_){return c("pressure",{pressure:_})}return W}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",tooltip:"Max Release Pressure",onClick:function(){function W(){return c("pressure",{pressure:g})}return W}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",tooltip:"Reset Release Pressure",onClick:function(){function W(){return c("pressure",{pressure:s})}return W}()})]})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Valve",children:(0,e.createComponentVNode)(2,o.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:v?L?"caution":"danger":null,content:v?"Open":"Closed",onClick:function(){function W(){return c("valve")}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{mr:1,label:"Port",children:(0,e.createComponentVNode)(2,o.Tooltip,{content:i?"Connected":"Disconnected",position:"top",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",children:(0,e.createComponentVNode)(2,o.Icon,{size:1.25,name:i?"plug":"times",color:i?"good":"bad"})})})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Holding Tank",buttons:!!L&&(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function W(){return c("eject")}return W}()}),children:[!!L&&(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Label",children:w.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:w.tankPressure})," kPa"]})]}),!L&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No Holding Tank"})]}),F]})})}return S}()},13944:function(I,r,n){"use strict";r.__esModule=!0,r.CardComputerNoRecords=r.CardComputerNoCard=r.CardComputerLoginWarning=r.CardComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=n(30381),k=V.COLORS.department,S=r.CardComputerLoginWarning=function(){function c(){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Warning",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Not logged in"]})})})}return c}(),y=r.CardComputerNoCard=function(){function c(){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Missing",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No card to modify"]})})})}return c}(),p=r.CardComputerNoRecords=function(){function c(){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Records",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,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 records"]})})})}return c}(),l=r.CardComputer=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:s.mode===0,onClick:function(){function h(){return u("mode",{mode:0})}return h}(),children:"Job Transfers"}),!s.target_dept&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:s.mode===2,onClick:function(){function h(){return u("mode",{mode:2})}return h}(),children:"Access Modification"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"folder-open",selected:s.mode===1,onClick:function(){function h(){return u("mode",{mode:1})}return h}(),children:"Job Management"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:s.mode===3,onClick:function(){function h(){return u("mode",{mode:3})}return h}(),children:"Records"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"users",selected:s.mode===4,onClick:function(){function h(){return u("mode",{mode:4})}return h}(),children:"Department"})]}),g=(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Login/Logout",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.scan_name?"sign-out-alt":"id-card",selected:s.scan_name,content:s.scan_name?"Log Out: "+s.scan_name:"-----",onClick:function(){function h(){return u("scan")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card To Modify",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.modify_name?"eject":"id-card",selected:s.modify_name,content:s.modify_name?"Remove Card: "+s.modify_name:"-----",onClick:function(){function h(){return u("modify")}return h}()})})]})}),v;switch(s.mode){case 0:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Card Information",children:[!s.target_dept&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Registered Name",children:(0,e.createComponentVNode)(2,t.Button,{icon:!s.modify_owner||s.modify_owner==="Unknown"?"exclamation-triangle":"pencil-alt",selected:s.modify_name,content:s.modify_owner,onClick:function(){function h(){return u("reg")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Number",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.account_number?"pencil-alt":"exclamation-triangle",selected:s.account_number,content:s.account_number?s.account_number:"None",onClick:function(){function h(){return u("account")}return h}()})})],4),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Latest Transfer",children:s.modify_lastlog||"---"})]}),(0,e.createComponentVNode)(2,t.Section,{title:s.target_dept?"Department Job Transfer":"Job Transfer",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.target_dept?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department",children:s.jobs_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special",children:s.jobs_top.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",labelColor:k.engineering,children:s.jobs_engineering.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",labelColor:k.medical,children:s.jobs_medical.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Science",labelColor:k.science,children:s.jobs_science.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",labelColor:k.security,children:s.jobs_security.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Service",labelColor:k.service,children:s.jobs_service.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supply",labelColor:k.supply,children:s.jobs_supply.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})})],4),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Retirement",children:s.jobs_assistant.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"CentCom",labelColor:k.centcom,children:s.jobs_centcom.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.modify_rank===h,content:h,color:s.jobFormats[h]?s.jobFormats[h]:"purple",onClick:function(){function N(){return u("assign",{assign_target:h})}return N}()},h)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Demotion",children:(0,e.createComponentVNode)(2,t.Button,{disabled:s.modify_assignment==="Demoted"||s.modify_assignment==="Terminated",content:"Demoted",tooltip:"Assistant access, 'demoted' title.",color:"red",icon:"times",onClick:function(){function h(){return u("demote")}return h}()},"Demoted")}),!!s.canterminate&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Non-Crew",children:(0,e.createComponentVNode)(2,t.Button,{disabled:s.modify_assignment==="Terminated",content:"Terminated",tooltip:"Zero access. Not crew.",color:"red",icon:"eraser",onClick:function(){function h(){return u("terminate")}return h}()},"Terminate")})]})}),!s.target_dept&&(0,e.createComponentVNode)(2,t.Section,{title:"Card Skins",children:[s.card_skins.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.current_skin===h.skin,content:h.display_name,onClick:function(){function N(){return u("skin",{skin_target:h.skin})}return N}()},h.skin)}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:s.all_centcom_skins.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{selected:s.current_skin===h.skin,content:h.display_name,color:"purple",onClick:function(){function N(){return u("skin",{skin_target:h.skin})}return N}()},h.skin)})})]})],0):v=(0,e.createComponentVNode)(2,y);break;case 1:s.auth_or_ghost?v=(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{color:s.cooldown_time?"red":"",children:["Next Change Available:",s.cooldown_time?s.cooldown_time:"Now"]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Job Slots",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,textAlign:"center",children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Used Slots"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Total Slots"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Free Slots"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Close Slot"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Open Slot"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textAlign:"center",children:"Priority"})]}),s.job_slots.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:h.is_priority?"green":"",children:h.title})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:h.current_positions}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:h.total_positions}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:h.total_positions>h.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.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:s.cooldown_time||!h.can_close,onClick:function(){function N(){return u("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function N(){return u("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return u("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function h(N){return u("set",{access:N})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(N){return u("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return u("deny_region",{region:N})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?v=(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:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function h(){return u("wipe_all_logs")}return h}()}),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"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(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"})]}),s.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return u("remote_demote",{remote_demote:h.name})}return N}()})})]},h.title)})]})});break;default:v=(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:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var C=(0,o.useLocalState)(s,"contentsModal",null),g=C[0],v=C[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),N=h[0],b=h[1];if(g!==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:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.is_public,N=v.timeleft,b=v.moving,B=v.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",N!==1?L="Shuttle is en route (ETA: "+N+" minutes)":L="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:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},l=function(u,s){var C,g=(0,o.useBackend)(s),v=g.act,h=g.data,N=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return N.map(function(T){return w[T.name]=T.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(T){return T.name}),selected:(C=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){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:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.categories,N=v.supply_packs,b=(0,o.useSharedState)(s,"category","Emergency"),B=b[0],L=b[1],w=(0,o.useSharedState)(s,"search_text",""),T=w[0],A=w[1],x=(0,o.useLocalState)(s,"contentsModal",null),E=x[0],P=x[1],R=(0,o.useLocalState)(s,"contentsModalTitle",null),M=R[0],D=R[1],j=(0,k.createSearch)(T,function(z){return z.name}),F=(0,o.useLocalState)(s,"selectedAccount"),W=F[0],K=F[1],_=(0,a.flow)([(0,t.filter)(function(z){return z.cat===h.filter(function(Y){return Y.name===B})[0].category||T}),T&&(0,t.filter)(j),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(N),$="Crate Catalogue";return T?$="Results for '"+T+"':":B&&($="Browsing "+B),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:h.map(function(z){return z.name}),selected:B,onSelected:function(){function z(Y){return L(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,Z){return A(Z)}return z}(),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(z){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[z.name," (",z.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:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!1,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W,onClick:function(){function Y(){return g("order",{crate:z.ref,multiple:!0,account:W})}return Y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Y(){P(z.contents),D(z.name)}return Y}()})]})]},z.name)})})})]})})},m=function(u,s){var C=u.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.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"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},i=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.requests,N=v.orders,b=v.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:h.map(function(B){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 #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function L(){return g("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return g("deny",{ordernum:B.ordernum})}return L}()})]})]},B.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(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(I,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],i=c[1],d=l.cl_data,u=l.last_cl,s={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"})},C=function(){function g(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();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 g(){return i(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return V}()},56975:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+C.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,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.amount,g=s.energy,v=s.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:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,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:C===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},N)})})})]})})})},p=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.chemicals,g=C===void 0?[]:C,v=[],h=0;h<(g.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(N,b){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 B(){return u("dispense",{reagent:N.id})}return B}()},b)}),v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:N,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),V=n(84947),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,h=d.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:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function N(){return i("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function N(){return i("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)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function N(b,B){return i("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.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:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return i("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:g})})})}},35918:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),V=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var P={},R=Object.keys(x),M,D;for(D=0;D<R.length;D++)M=R[D],!(E.indexOf(M)>=0)&&(P[M]=x[M]);return P}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(R,M){return R.__proto__=M,R}return P}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.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:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return F}()})]})})})})},u=r.ChemMaster=function(){function x(E,P){var R=(0,a.useBackend)(P),M=R.data,D=M.condi,j=M.beaker,F=M.beaker_reagents,W=F===void 0?[]:F,K=M.buffer_reagents,_=K===void 0?[]:K,$=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.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,{beaker:j,beakerReagents:W,bufferNonEmpty:_.length>0}),(0,e.createComponentVNode)(2,C,{mode:$,bufferReagents:_}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:_.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.beaker,j=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(K,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_<j.length-1&&"2px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Analyze",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"analyze",{idx:_+1,beaker:1})}return $}()}),i.map(function($,z){return(0,e.createComponentVNode)(2,t.Button,{content:$,mb:"0",onClick:function(){function Y(){return M("add",{id:K.id,amount:$})}return Y}()},z)}),(0,e.createComponentVNode)(2,t.Button,{content:"All",mb:"0",onClick:function(){function $(){return M("add",{id:K.id,amount:K.volume})}return $}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Custom..",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"addcustom",{id:K.id})}return $}()})]})}return W}()}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No beaker loaded."})})})},C=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.mode,j=E.bufferReagents,F=j===void 0?[]:j;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Buffer",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["Transferring to\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:D?"flask":"trash",color:!D&&"bad",content:D?"Beaker":"Disposal",onClick:function(){function W(){return M("toggle")}return W}()})]}),children:F.length>0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function W(K,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_<F.length-1&&"2px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Analyze",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"analyze",{idx:_+1,beaker:0})}return $}()}),i.map(function($,z){return(0,e.createComponentVNode)(2,t.Button,{content:$,mb:"0",onClick:function(){function Y(){return M("remove",{id:K.id,amount:$})}return Y}()},z)}),(0,e.createComponentVNode)(2,t.Button,{content:"All",mb:"0",onClick:function(){function $(){return M("remove",{id:K.id,amount:K.volume})}return $}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Custom..",mb:"0",onClick:function(){function $(){return(0,V.modalOpen)(P,"removecustom",{id:K.id})}return $}()})]})}return W}()}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Buffer is empty."})})})},g=function(E,P){var R=(0,a.useBackend)(P),M=R.act;return!E.bufferNonEmpty&&E.isCondiment?(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Production",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:"tint-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"Buffer is empty."]})})})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Production",children:E.isCondiment?(0,e.createComponentVNode)(2,T):(0,e.createComponentVNode)(2,v)})})},v=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=[{name:"Pills",icon:"pills"},{name:"Patches",icon:"plus-square"},{name:"Bottles",icon:"wine-bottle"}],F=function(K){switch(K){case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,L);case 3:return(0,e.createComponentVNode)(2,w);default:return"UNKNOWN INTERFACE"}};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Tabs,{children:j.map(function(W,K){return K+=1,(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:W.icon,selected:D.production_mode===K,onClick:function(){function _(){return M("set_production_mode",{mode:K})}return _}(),children:W.name},K)})}),F(D.production_mode)],0)},h=function(x){l(E,x);function E(){var R;return R=x.call(this)||this,R.handleMouseUp=function(M){var D=R.props,j=D.placeholder,F=D.onMouseUp;M.button===1&&(M.target.value=j,M.target.select()),F&&F(M)},R}var P=E.prototype;return P.render=function(){function R(){var M=(0,a.useBackend)(this.context),D=M.data,j=D.maxnamelength;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Input,Object.assign({maxLength:j,onMouseUp:this.handleMouseUp},this.props)))}return R}(),E}(e.Component),N=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.children,F=E.maxQuantity,W=E.medicineName,K=E.placeholderName,_=E.productionType,$=E.quantity,z=D.buffer_reagents,Y=z===void 0?[]:z;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[j,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Quantity",children:(0,e.createComponentVNode)(2,t.Slider,{value:$,minValue:1,maxValue:F,onChange:function(){function Z(ie,ae){return M("set_"+_+"_amount",{amount:ae})}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,h,{fluid:!0,value:W,placeholder:K,onChange:function(){function Z(ie,ae){return M("set_"+_+"_name",{name:ae})}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Create",color:"green",disabled:Y.length<=0,onClick:function(){function Z(){return M("create_"+_)}return Z}()})})]})},b=function(E,P){var R=E.icon,M=p(E,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({style:{padding:0,"line-height":0}},M,{children:(0,e.createComponentVNode)(2,t.Box,{className:(0,k.classes)(["chem_master32x32",R])})})))},B=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.maxpills,F=D.pillamount,W=D.pillname,K=D.pillplaceholdername,_=D.pillsprite,$=D.pillstyles,z=$.map(function(Y){var Z=Y.id,ie=Y.sprite;return(0,e.createComponentVNode)(2,b,{icon:ie,color:"translucent",onClick:function(){function ae(){return M("set_pills_style",{style:Z})}return ae}(),selected:_===Z},Z)});return(0,e.createComponentVNode)(2,N,{maxQuantity:j,medicineName:W,placeholderName:K,productionType:"pills",quantity:F,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:z})})},L=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.maxpatches,F=D.patchamount,W=D.patchname,K=D.patchplaceholdername;return(0,e.createComponentVNode)(2,N,{maxQuantity:j,medicineName:W,placeholderName:K,productionType:"patches",quantity:F})},w=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.bottlesprite,F=D.maxbottles,W=D.bottleamount,K=D.bottlename,_=D.bottleplaceholdername,$=D.bottlestyles,z=$.map(function(Y){var Z=Y.id,ie=Y.sprite;return(0,e.createComponentVNode)(2,b,{icon:ie,color:"translucent",onClick:function(){function ae(){return M("set_bottles_style",{style:Z})}return ae}(),selected:j===Z},Z)});return(0,e.createComponentVNode)(2,N,{maxQuantity:F,medicineName:K,placeholderName:_,productionType:"bottles",quantity:W,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:z})})},T=function(E,P){var R=(0,a.useBackend)(P),M=R.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"box",content:"Create condiment pack (10u max)",mb:"0.5rem",onClick:function(){function D(){return(0,V.modalOpen)(P,"create_condi_pack")}return D}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"wine-bottle",content:"Create bottle (50u max)",mb:"0",onClick:function(){function D(){return M("create_condi_bottle")}return D}()})],4)},A=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=D.loaded_pill_bottle_style,F=D.containerstyles,W=D.loaded_pill_bottle,K={width:"20px",height:"20px"},_=F.map(function($){var z=$.color,Y=$.name,Z=j===z;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:K.width,height:K.height},onClick:function(){function ie(){return M("set_container_style",{style:z})}return ie}(),icon:Z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:Y,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:K.width,height:K.height,"background-color":z,opacity:.6,filter:"alpha(opacity=60)"}})]},z)});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:!W,content:"Eject Container",onClick:function(){function $(){return M("ejectp")}return $}()}),children:W?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",style:{position:"relative"},children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:K.width,height:K.height},icon:"tint-slash",onClick:function(){function $(){return M("clear_container_style")}return $}(),selected:!j,tooltip:"Default",tooltipPosition:"top"}),_]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",d)},8573:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(30381),V=n(22677),k=n(84947),S=n(96820),y=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=C.args,B=b.activerecord,L=b.realname,w=b.health,T=b.unidentity,A=b.strucenzymes,x=w.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Records of "+L,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:x.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:x[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:x[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:x[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:x[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!N.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:B})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function s(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.menu;return(0,V.modalRegisterBodyOverride)("view_rec",y),(0,e.createComponentVNode)(2,k.Window,{width:535,height:440,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l),(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,c)})})]})})]})}return s}(),l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.menu;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===1,icon:"home",onClick:function(){function B(){return h("menu",{num:1})}return B}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===2,icon:"folder",onClick:function(){function B(){return h("menu",{num:2})}return B}(),children:"Records"})]})})},c=function(C,g){var v=(0,t.useBackend)(g),h=v.data,N=h.menu,b;return N===1?b=(0,e.createComponentVNode)(2,m):N===2&&(b=(0,e.createComponentVNode)(2,i)),b},m=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.loading,B=N.scantemp,L=N.occupant,w=N.locked,T=N.can_brainscan,A=N.scan_mode,x=N.numberofpods,E=N.pods,P=N.selected_pod,R=w&&!!L;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function M(){return h("lock")}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!L,icon:"user-slash",content:"Eject Occupant",onClick:function(){function M(){return h("eject")}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:B.color,children:B.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function M(){return h("toggle_mode")}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L||b,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function M(){return h("scan")}return M}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",children:x?E.map(function(M,D){var j;return M.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:P===M.pod,icon:P===M.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function F(){return h("selectpod",{ref:M.pod})}return F}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+M.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",D+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:.75,color:M.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.biomass>=150?"circle":"circle-o"}),"\xA0",M.biomass]}),j]},D)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.records;return b.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:b.map(function(B,L){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:B.realname,onClick:function(){function w(){return h("view_rec",{ref:B.record})}return w}()},L)})}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(C,g){var v,h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.temp;if(!(!B||!B.text||B.text.length<=0)){var L=(v={},v[B.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",children:B.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function w(){return N("cleartemp")}return w}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.scanner,B=N.numberofpods,L=N.autoallowed,w=N.autoprocess,T=N.disk;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)(!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:w?0:1})}return A}()})],4),0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:B?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[B," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})})}},14283:function(I,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:i.map(function(d){return(0,e.createFragment)([d.name,(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{value:c[d.idx],step:.05,minValue:-5,maxValue:5,onDrag:function(){function u(s,C){return p("setvalue",{idx:d.idx+1,value:C})}return u}()})],0,d.name)})},i)})})})})}return V}()},98577:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);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,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.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,k),f(h)]})})})}return d}(),k=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.authenticated,N=v.noauthbutton,b=v.esc_section,B=v.esc_callable,L=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return h?h===1?P="Command":h===2?P="Captain":h===3?P="CentComm Officer":h===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:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+P+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return g("callshuttle")}return R}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return g("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin,N=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,L=v.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:b,required_access:h,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:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),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:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(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:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.msg_cooldown,N=v.emagged,b=v.cc_cooldown,B=v.security_level_color,L=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var P=N?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(P+=" ("+b+"s)",R+=" ("+b+"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:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return g("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:!T||b>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("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:!T||b>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function M(){return g("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 g("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 g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.stat_display,N=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.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 w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!N,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.authhead,N=v.current_message_title,b=v.current_message,B=v.messages,L=v.security_level,w;if(N)w=(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:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.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:!h||N===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(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 g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=u.levels,N=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)})},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin,N=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],P=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[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 j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,W){return L(W)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,W){return A(W)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(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 j(F){return D(F)}return j}(),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 j(){return g("test_sound",{sound:M})}return j}()})}),(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 j(){return P(!E)}return j}()})})]})]})})}},70611:function(I,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.biomass,m=l.compost,i=l.biomass_capacity,d=l.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],C=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,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:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," 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:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,h){return C(h)}return g}()})],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*s,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:s})}return g}()})})})]})})})}return V}()},73744:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),V=n(84947);function k(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,b){return N.__proto__=b,N}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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"],l=r.Contractor=function(){function g(v,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L;B.unauthorized?L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?L=(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:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return g}(),c=function(v,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.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"]})},v,{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:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," 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:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),P=E[0],R=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:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},v,{children:L.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;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 j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[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 j(){return b("abort")}return j}()})]}),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",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:M.uid,difficulty:F+1})}return W}()},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)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,N=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(v,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,L=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:L<T.cost||T.stock===0,icon:"shopping-cart",content:"Buy ("+T.cost+" Rep)",mt:"0.5rem",onClick:function(){function A(){return b("purchase",{uid:T.uid})}return A}()}),T.stock>-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(g){k(v,g);function v(N){var b;return b=g.call(this,N)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return N}(),v}(e.Component),C=function(v,h){var N=(0,t.useLocalState)(h,"viewingPhoto",""),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.slowFactor,m=l.oneWay,i=l.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:i>0?"forward":i<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 d(){return p("toggleOneWay")}return d}()})}),(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 d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(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 d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return p("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return V}()},91413:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),V=n(99753),k=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function i(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],N=v[1],b=function(){function B(L){switch(L){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.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:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,N=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,function(A){return A.name+"|"+A.assignment+"|"+A.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 A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):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:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),C=s.data,g=(0,o.useLocalState)(u,"zoom",1),v=g[0],h=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function N(b){return h(b)}return N}(),children:C.crewmembers.filter(function(N){return N.sensor_type===3}).map(function(N){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:N.x,y:N.y,zoom:v,icon:"circle",tooltip:N.name+" ("+N.assignment+")",color:p(N,C.critThreshold)},N.ref)})})})}},55104:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(l,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,S)})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,h=d.cellTemperatureStatus,N=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=d.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 w(){return i("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.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 w(){return i("ejectBeaker")}return w}(),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 w(){return i(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(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:b,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:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return i(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"On":"Off"})})]})})})],4)},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,C=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=r.CryopodConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.account_name,d=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, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return m("one_item",{item:s.uid})}return C}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(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,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.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:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("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:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.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:w.occupant.uniqueEnzymes?w.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."})})},l=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.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 T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(P,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return L("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},R)})}),E]})},c=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.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(R){return R.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(R,M){return L("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return L("pulseUIRadiation")}return P}()})]})},m=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},i=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.radiationIntensity,A=w.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:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return L("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 L("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 L("pulseRadiation")}return x}()})]})},d=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{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,s)})]})},u=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=N.id,A=N.name,x=N.buffer,E=w.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 R(){return L("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return L("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return L("bufferOption",{option:"saveDisk",id:T})}return R}()})],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 R(){return L("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!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 R(){return L("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("ejectDisk")}return x}()})],4),children:T?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."]})})},C=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return L("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("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)]})})})},g=function(N,b){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)})]})},v=function(N,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,P=N.action,R=T.split(""),M=0,D=[],j=function(){for(var K=F/E+1,_=[],$=function(){var Z=z+1;_.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Z,content:R[F+z],mb:"0",onClick:function(){function ie(){return L(P,{block:K,subblock:Z})}return ie}()}))},z=0;z<E;z++)$();D.push((0,e.createComponentVNode)(2,t.Stack.Item,{mb:"1rem",mr:"1rem",width:7.8,textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"0.5rem",fontFamily:"monospace",children:K}),_]}))},F=0;F<R.length;F+=E)j();return(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:D})}},94406:function(I,r,n){"use strict";r.__esModule=!0,r.DestinationTagger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.DestinationTagger=function(){function V(k,S){var y,p=(0,a.useBackend)(S),l=p.act,c=p.data,m=c.destinations,i=c.selected_destination_id,d=m[i-1];return(0,e.createComponentVNode)(2,o.Window,{width:355,height:330,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,textAlign:"center",title:"TagMaster 3.1",children:[(0,e.createComponentVNode)(2,t.Box,{width:"100%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:"Selected:"})," ",(y=d.name)!=null?y:"None"]}),(0,e.createComponentVNode)(2,t.Box,{mt:1.5,children:(0,e.createComponentVNode)(2,t.Stack,{overflowY:"auto",wrap:"wrap",align:"center",justify:"space-evenly",direction:"row",children:m.map(function(u,s){return(0,e.createComponentVNode)(2,t.Stack.Item,{m:"2px",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",width:"105px",textAlign:"center",content:u.name,selected:u.id===i,onClick:function(){function C(){return l("select_destination",{destination:u.id})}return C}()})},s)})})})]})})})})}return V}()},17585:function(I,r,n){"use strict";r.__esModule=!0,r.DisposalBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.DisposalBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c,m;return l.mode===2?(c="good",m="Ready"):l.mode<=0?(c="bad",m="N/A"):l.mode===1?(c="average",m="Pressurizing"):(c="average",m="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",color:c,children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:l.pressure,minValue:0,maxValue:100})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l.isAI||l.panel_open,content:"Disengaged",selected:l.flushing?null:"selected",onClick:function(){function i(){return p("disengageHandle")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l.isAI||l.panel_open,content:"Engaged",selected:l.flushing?"selected":null,onClick:function(){function i(){return p("engageHandle")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l.mode===-1,content:"Off",selected:l.mode?null:"selected",onClick:function(){function i(){return p("pumpOff")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l.mode===-1,content:"On",selected:l.mode?"selected":null,onClick:function(){function i(){return p("pumpOn")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",disabled:l.isAI,content:"Eject Contents",onClick:function(){function i(){return p("eject")}return i}()})})]})})]})})}return V}()},64636:function(I,r,n){"use strict";r.__esModule=!0,r.DnaVault=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.DnaVault=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.completed;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,V),!!i&&(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.dna,d=m.dna_max,u=m.plants,s=m.plants_max,C=m.animals,g=m.animals_max,v=.66,h=.33;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"DNA Vault Database",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Human DNA",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i/d,ranges:{good:[v,1/0],average:[h,v],bad:[-1/0,h]},children:i+" / "+d+" Samples"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant DNA",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u/s,ranges:{good:[v,1/0],average:[h,v],bad:[-1/0,h]},children:u+" / "+s+" Samples"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Animal DNA",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C/g,ranges:{good:[v,1/0],average:[h,v],bad:[-1/0,h]},children:C+" / "+g+" Samples"})})]})})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.choiceA,d=m.choiceB,u=m.used;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Personal Gene Therapy",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),!u&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:i,textAlign:"center",onClick:function(){function s(){return c("gene",{choice:i})}return s}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:d,textAlign:"center",onClick:function(){function s(){return c("gene",{choice:d})}return s}()})})]})||(0,e.createComponentVNode)(2,t.Box,{bold:!0,textAlign:"center",mb:1,children:"Users DNA deemed unstable. Unable to provide more upgrades."})]})})}},13015:function(I,r,n){"use strict";r.__esModule=!0,r.DroneConsole=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=r.DroneConsole=function(){function y(p,l){return(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,k),(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.drone_fab,u=i.fab_power,s=i.drone_prod,C=i.drone_progress,g=function(){return d?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"External Power",children:(0,e.createComponentVNode)(2,o.Box,{color:u?"good":"bad",children:["[ ",u?"Online":"Offline"," ]"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Drone Production",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:C/100,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})})]}):(0,e.createComponentVNode)(2,o.NoticeBox,{textAlign:"center",danger:1,children:(0,e.createComponentVNode)(2,o.Flex,{inline:1,direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:"FABRICATOR NOT DETECTED."}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Search",onClick:function(){function h(){return m("find_fab")}return h}()})})]})})};return(0,e.createComponentVNode)(2,o.Section,{title:"Drone Fabricator",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:s?"Online":"Offline",color:s?"green":"red",onClick:function(){function v(){return m("toggle_fab")}return v}()}),children:g()})},S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.drones,u=i.area_list,s=i.selected_area,C=i.ping_cd,g=function(N,b){var B,L;return N===2?(B="bad",L="Disabled"):N===1||!b?(B="average",L="Inactive"):(B="good",L="Active"),(0,e.createComponentVNode)(2,o.Box,{color:B,children:L})},v=function(){if(d.length)return(0,e.createComponentVNode)(2,o.Box,{py:.2,children:(0,e.createComponentVNode)(2,o.Divider)})};return(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance Units",children:[(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:"Request Drone presence in area:\xA0"}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:s,width:"125px",onSelected:function(){function h(N){return m("set_area",{area:N})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Button,{content:"Send Ping",icon:"broadcast-tower",disabled:C||!d.length,title:d.length?null:"No active drones!",fluid:1,textAlign:"center",py:.4,mt:.6,onClick:function(){function h(){return m("ping")}return h}()}),(0,e.createComponentVNode)(2,v),d.map(function(h){return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.toTitleCase)(h.name),buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Resync",disabled:h.stat===2||h.sync_cd,onClick:function(){function N(){return m("resync",{uid:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"power-off",content:"Recall",disabled:h.stat===2||h.pathfinding,tooltip:h.pathfinding?"This drone is currently pathfinding, please wait.":null,tooltipPosition:"left",color:"bad",onClick:function(){function N(){return m("recall",{uid:h.uid})}return N}()})})]}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:g(h.stat,h.client)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:h.health,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:h.charge,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:h.location})]})},h.name)})]})}},97673:function(I,r,n){"use strict";r.__esModule=!0,r.EFTPOS=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=r.EFTPOS=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.transaction_locked,u=i.machine_name;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:250,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"POS Terminal "+u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:d?"Unlock EFTPOS":"Lock EFTPOS",tooltip:"Enter pin to modify transactions and EFTPOS settings",icon:d?"lock-open":"lock",onClick:function(){function s(){return m("toggle_lock")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset EFTPOS",tooltip:"Requires Captain, HoP or CC access",icon:"sync",onClick:function(){function s(){return m("reset")}return s}()})],4),children:d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,S)})})})}return y}(),k=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.transaction_amount,u=i.transaction_paid;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{mt:2,bold:!0,width:"100%",fontSize:"3rem",color:u?"green":"red",align:"center",justify:"center",children:["Payment ",u?"Accepted":"Due",": $",d]}),(0,e.createComponentVNode)(2,o.Box,{mt:.5,fontSize:"1.25rem",align:"center",justify:"center",children:u?"This transaction has been processed successfully ":"Swipe your card to finish this transaction."})],4)},S=function(p,l){var c,m=(0,t.useBackend)(l),i=m.act,d=m.data,u=(0,t.useLocalState)(l,"searchText",""),s=u[0],C=u[1],g=d.transaction_purpose,v=d.transaction_amount,h=d.linked_account,N=d.available_accounts,b=[];return N.map(function(B){return b[B.name]=B.UID}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,o.Button,{content:g,icon:"edit",onClick:function(){function B(){return i("trans_purpose")}return B}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Value",children:(0,e.createComponentVNode)(2,o.Button,{content:v?"$"+v:"$0",icon:"edit",onClick:function(){function B(){return i("trans_value")}return B}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Linked Account",children:[(0,e.createComponentVNode)(2,o.Box,{mb:.5,children:h.name}),(0,e.createComponentVNode)(2,o.Input,{width:"190px",placeholder:"Search by name",onInput:function(){function B(L,w){return C(w)}return B}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(s,function(B){return B.name})).map(function(B){return B.name}),selected:(c=N.filter(function(B){return B.UID===h.UID})[0])==null?void 0:c.name,onSelected:function(){function B(L){return i("link_account",{account:b[L]})}return B}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{content:"Change access code",icon:"key",onClick:function(){function B(){return i("change_code")}return B}()})})]})}},29206:function(I,r,n){"use strict";r.__esModule=!0,r.ERTOverview=r.ERTManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=function(m){switch(m){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP, WAIT YOU'RE AN ADMIN, OH FUUUUCK! call a coder or something"}},k=r.ERTManager=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=(0,a.useLocalState)(i,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:505,children:(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,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){v(0)}return h}(),icon:"ambulance",children:"Send ERT"},"SendERT"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){v(1)}return h}(),icon:"book",children:"Read ERT Requests"},"ReadERTRequests"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){v(2)}return h}(),icon:"times",children:"Deny ERT"},"DenyERT")]})}),V(g)]})})})}return c}(),S=r.ERTOverview=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.security_level_color,g=s.str_security_level,v=s.ert_request_answered;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Overview",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:C,children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT Request",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,textColor:v?null:"bad",content:v?"Answered":"Unanswered",onClick:function(){function h(){return u("toggle_ert_request_answered")}return h}(),tooltip:"Checking this box will disable the next ERT reminder notification",selected:null})})]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=[0,1,2,3,4,5],g=(0,a.useLocalState)(i,"silentERT",!1),v=g[0],h=g[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Send ERT",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{width:5,content:"Amber",textAlign:"center",color:s.ert_type==="Amber"?"orange":"",onClick:function(){function N(){return u("ert_type",{ert_type:"Amber"})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,content:"Red",textAlign:"center",color:s.ert_type==="Red"?"red":"",onClick:function(){function N(){return u("ert_type",{ert_type:"Red"})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,content:"Gamma",textAlign:"center",color:s.ert_type==="Gamma"?"purple":"",onClick:function(){function N(){return u("ert_type",{ert_type:"Gamma"})}return N}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commander",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.com?"toggle-on":"toggle-off",selected:s.com,content:s.com?"Yes":"No",onClick:function(){function N(){return u("toggle_com")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.sec===N,content:N,onClick:function(){function B(){return u("set_sec",{set_sec:N})}return B}()},"sec"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.med===N,content:N,onClick:function(){function B(){return u("set_med",{set_med:N})}return B}()},"med"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.eng===N,content:N,onClick:function(){function B(){return u("set_eng",{set_eng:N})}return B}()},"eng"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.par===N,content:N,onClick:function(){function B(){return u("set_par",{set_par:N})}return B}()},"par"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.jan===N,content:N,onClick:function(){function B(){return u("set_jan",{set_jan:N})}return B}()},"jan"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:C.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{selected:s.cyb===N,content:N,onClick:function(){function B(){return u("set_cyb",{set_cyb:N})}return B}()},"cyb"+N)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security Module",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,disabled:s.ert_type!=="Red"||!s.cyb,icon:s.secborg?"toggle-on":"toggle-off",color:s.secborg?"red":"",content:s.secborg?"Enabled":s.ert_type!=="Red"?"Unavailable":"Disabled",textAlign:"center",onClick:function(){function N(){return u("toggle_secborg")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Silent ERT",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,icon:v?"microphone-slash":"microphone",content:v?"Silenced":"Public",textAlign:"center",selected:v,onClick:function(){function N(){return h(!v)}return N}(),tooltip:v?"This ERT will not be announced to the station":"This ERT will be announced to the station on dispatch",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:s.total>s.spawnpoints?"red":"green",children:[s.total," total, versus ",s.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 u("dispatch_ert",{silent:v})}return N}()})})]})})})},p=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return u("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.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."]})})})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=(0,a.useLocalState)(i,"text",""),g=C[0],v=C[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:g,onChange:function(){function h(N,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:g})}return h}()})]})})}},77877:function(I,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,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,k)})]})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=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 d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(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 d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(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 d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(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 d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(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)}},10707:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.data,m=c.power,i=c.code,d=c.frequency,u=c.minFrequency,s=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 C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return l("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function C(g,v){return l("code",{code:v})}return C}()})})]})})})})}return k}()},85307:function(I,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(37843),V=r.EmotePanel=function(){function S(y,p){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k)})})})}return S}(),k=r.EmotePanelContent=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.emotes,d=(0,a.useLocalState)(p,"searchText",""),u=d[0],s=d[1],C=(0,a.useLocalState)(p,"filterVisible",""),g=C[0],v=C[1],h=(0,a.useLocalState)(p,"filterAudible",""),N=h[0],b=h[1],B=(0,a.useLocalState)(p,"filterSound",""),L=B[0],w=B[1],T=(0,a.useLocalState)(p,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(p,"filterTargettable",""),P=E[0],R=E[1],M=(0,a.useLocalState)(p,"useTarget",""),D=M[0],j=M[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function W(K,_){return s(_)}return W}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function W(){return v(!g)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:N,onClick:function(){function W(){return b(!N)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:L,onClick:function(){function W(){return w(!L)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function W(){return x(!A)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function W(){return R(!P)}return W}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:D,onClick:function(){function W(){return j(!D)}return W}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:i.filter(function(W){return W.key&&(u.length>0?W.key.toLowerCase().includes(u.toLowerCase())||W.name.toLowerCase().includes(u.toLowerCase()):!0)&&(g?W.visible:!0)&&(N?W.audible:!0)&&(L?W.sound:!0)&&(A?W.hands:!0)&&(P?W.targettable:!0)}).map(function(W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return c("play_emote",{emote_key:W.key,useTarget:D})}return K}(),children:[W.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",W.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",W.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",W.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",W.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",W.name]},W.name)})})})})})],4)}return S}()},52640:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(90955),k=n(72026),S=r.EvolutionMenu=function(){function l(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,y),(0,e.createComponentVNode)(2,p)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,C=u.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:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(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"})]})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,C=u.ability_tabs,g=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",C[0]),N=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var F=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(F),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(D)},P=function(D){if(w(D),D==="")return x(N.abilities);x(E(C.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(D),x(D.abilities),w("")};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(D,j){P(j)}return M}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&N===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){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}),g.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>s||g.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),V=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},N=Object.keys(g),b,B;for(B=0;B<N.length;B++)b=N[B],!(v.indexOf(b)>=0)&&(h[b]=g[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",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.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),L&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(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,u)})]})})]})})})}return g}(),m=function(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.materials,w=B.capacity,T=Object.values(L).reduce(function(A,x){return A+x},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:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},i=function(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],P=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:L,options:w,onSelected:function(){function D(j){return b("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return b("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,F){return P(F)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,C,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,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 ",L,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.reduce(function(x,E){return x+E.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:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.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:L.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E})}return P}()}),E<L.length-1&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-down",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E+2})}return P}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"times",color:"red",onClick:function(){function P(){return b("unqueue",{index:E+1})}return P}()})]},E)})}),A>0&&(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(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).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:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[L]||0,P=w||E;if(!(P<=0&&!(L==="metal"||L==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:P.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:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,L=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[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"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,C=m.occupant_status,g=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(C)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),v=g();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:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,V=1013,k=function(p){var l="good",c=80,m=95,i=110,d=120;return p<c?l="bad":p<m||p>i?l="average":p>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.chamber_pressure,u=i.exterior_status,s=i.interior_status,C=i.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:k(d),value:d,minValue:f,maxValue:V,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return m("abort")}return g}()}),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:C,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.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:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("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:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},80031:function(I,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=y.config,m=l.contents,i=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 ",i," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return V}()},39552:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.image,i=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:d})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.availableStyles,i=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;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.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return l("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return l("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return l("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:i===C,onSelect:function(){function g(){return l("select_style",{style:C})}return g}()})},"{style}")})})}),(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:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[g],isSelected:g===d,onSelect:function(){function v(){return l("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return k}()},5090:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=function(i){return i?"("+i.join(", ")+")":"ERROR"},k=function(i,d){if(!(!i||!d)){if(i[2]!==d[2])return null;var u=Math.atan2(d[1]-i[1],d[0]-i[0]),s=Math.sqrt(Math.pow(d[1]-i[1],2)+Math.pow(d[0]-i[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(i,d){var u=(0,t.useBackend)(d),s=u.data,C=s.emped,g=s.active,v=s.area,h=s.position,N=s.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:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{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,y)],0)})})})}return m}(),y=function(i,d){var u=i.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:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(i,d){var u=(0,t.useBackend)(d),s=u.act,C=u.data,g=C.active,v=C.tag,h=C.same_z,N=(0,t.useLocalState)(d,"newTag",v),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return s("toggle")}return L}()}),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:v,onEnter:function(){function L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),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:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},l=function(i,d){var u=i.title,s=i.area,C=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),V(C)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,C=s.position,g=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,k(C,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(v.position)})]},h)})})})))}},1055:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),V=r.GeneModder=function(){function i(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return C("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){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."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.has_seed,h=g.seed,N=g.has_disk,b=g.disk,B,L;return v?B=(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,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.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}()})]}):B=(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}()})}),N?L=b.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:B}),(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,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:N.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:N.id})}return b}()})})]},N)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:v})},m=function(d,u){var s=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,N=v.data,b=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.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 h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function V(k,S){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 V}()},86268:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.security,m=l.medical,i=l.diagnostic,d=l.radioactivity,u=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=S.label,m=S.type,i=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,C=S.act_off,g=C===void 0?"hud_off":C;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:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return l(d?g:s,{hud_type:i})}return v}()})})]})}},8977:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function d(){return p("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return V}()},70309:function(I,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),s=function(){function C(g){if(g>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 C}();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:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function C(){return p("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(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 V}()},64769:function(I,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 l("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 l("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 l("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 l("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 l("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 l("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 l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return l("access",{access:i})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(i){return l("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return l("deny_region",{region:i})}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 l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},i)})})||(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 k}()},12219:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(l,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,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,C=d.maxEnergy,g=d.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:s,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[s," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===v,content:v,onClick:function(){function N(){return i("amount",{amount:v})}return N}()})},h)})})}),(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:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(l,c){for(var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,C=d.current_reagent,g=[],v=0;v<(s.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},N)}),g.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},53917:function(I,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.HealthSensor=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,C=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:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],C=u[1],g=c.decks,v=c.ai_override,h=c.emagged,N=function(){function b(B){l("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,V),(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)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return N(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=function(S,y){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)})]})}},77209:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Instrument=function(){function l(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),k=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.help;if(s)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.createTextVNode)(" "),(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.createTextVNode)(" "),(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 C(){return d("help")}return C}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,C=u.playing,g=u.repeat,v=u.maxRepeats,h=u.tempo,N=u.minTempo,b=u.maxTempo,B=u.tickLag,L=u.volume,w=u.minVolume,T=u.maxVolume,A=u.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 d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("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:C,disabled:s.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:L,stepPixelSize:6,onDrag:function(){function x(E,P){return d("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,y)]})},y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.allowedInstrumentNames,C=u.instrumentLoaded,g=u.instrument,v=u.canNoteShift,h=u.noteShift,N=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.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:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(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:b,value:h,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),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 R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(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 R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,C=u.lines,g=u.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:!g||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function N(){return d("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function N(){return d("deleteline",{line:h+1})}return N}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},28847:function(I,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(91819),f=n(2971),V=n(84947),k=r.Jukebox=function(){function p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.looping,C=d.track_selected,g=d.volume,v=d.max_volume,h=d.songs,N=d.startTime,b=d.endTime,B=d.worldTime,L=d.need_coin,w=d.payment,T=d.advanced_admin,A=35,x=!w&&L&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(h),P=h.find(function(F){return F.name===C}),R=E.length,M=P?E.findIndex(function(F){return F.name===P.name})+1:0,D=function(){function F(W){var K=Math.floor(W/60),_=W%60,$=String(K).padStart(2,"0")+":"+String(_).padStart(2,"0");return $}return F}(),j=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[u?s?"\u221E":D(Math.round((B-N)/10)):s?"\u221E":D(P.length)," ","/ ",s?"\u221E":D(P.length)]});return(0,e.createComponentVNode)(2,V.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,y):null,(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:u?"pause":"play",color:"transparent",content:u?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:u,onClick:function(){function F(){return i("toggle")}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:u||L&&!T,tooltip:L&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:s,onClick:function(){function F(){return i("loop",{looping:!s})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:N,current:s?b:B,end:b,children:j})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[u?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return i("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return i("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return i("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:g<=25?"green":g<=50?"":g<=75?"orange":"red",value:g,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function F(W,K){return i("set_volume",{volume:K})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,f.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+R,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var W=Math.floor(Math.random()*R),K=E[W];i("select_track",{track:K.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:P.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:D(F.length)})]}),onClick:function(){function W(){i("select_track",{track:F.name})}return W}()})},F.name)})})})]})})]})}return p}(),S=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},y=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},64261:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.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(!l.swiping&&!l.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:!l.redAvailable,onClick:function(){function i(){return p("triggerevent",{triggerevent:"Red Alert"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.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,l.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:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function i(){return p("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function i(){return p("reset")}return i}()}),children:m})]})})}return V}()},34898:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.KitchenMachine=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=l.config,i=c.ingredients,d=c.operating,u=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:d,name:u}),(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,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(s){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:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.inactive,d=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:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,C=i.isAIMalf,g=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,V),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_zeroth_laws,u=i.zeroth_laws,s=i.has_ion_laws,C=i.ion_laws,g=i.ion_law_nr,v=i.has_inherent_laws,h=i.inherent_laws,N=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,L=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,P=i.supplied_law,R=i.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:l}),!!s&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(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:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},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}()})})]})}),!!w&&(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"})]}),!!(T&&!d)&&(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:R,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)},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.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?"})]}),p.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryComputer=function(){function g(v,h){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,l),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=v.args,w=B.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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=v.args,w=B.selected_report,T=B.report_categories,A=B.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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return b("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 b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=v.args,w=B.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:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.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:L.total_ratings?L.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(v,h){var N=(0,a.useBackend)(h),b=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.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:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var N=(0,a.useLocalState)(h,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.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:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.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 b("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 b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.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:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("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"})]}),L.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 b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.programmatic_booklist,w=B.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"})]}),L.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.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:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.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:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"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:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("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:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.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"})]}),L.map(function(w,T){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"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.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:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,L=B.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"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryManager=function(){function l(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,k)})]})}return l}(),k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.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 s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.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 C(){return d("return")}return C}()}),(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"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(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:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,C=u.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 ",s,(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 g(){return d("return")}return g}()}),(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"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.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 v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},68e3:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),V=n(31068),k=n(84947),S=r.ListInputModal=function(){function l(c,m){var i=(0,f.useBackend)(m),d=i.act,u=i.data,s=u.items,C=s===void 0?[]:s,g=u.message,v=g===void 0?"":g,h=u.init_value,N=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",C.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],R=E[1],M=function(){function z(Y){var Z=_.length-1;if(Y===V.KEY_DOWN)if(L===null||L===Z){var ie;w(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ae;w(L+1),(ae=document.getElementById((L+1).toString()))==null||ae.scrollIntoView()}else if(Y===V.KEY_UP)if(L===null||L===0){var se;w(Z),(se=document.getElementById(Z.toString()))==null||se.scrollIntoView()}else{var he;w(L-1),(he=document.getElementById((L-1).toString()))==null||he.scrollIntoView()}}return z}(),D=function(){function z(Y){Y!==L&&w(Y)}return z}(),j=function(){function z(){x(!1),x(!0)}return z}(),F=function(){function z(Y){var Z=String.fromCharCode(Y),ie=C.find(function(he){return he==null?void 0:he.toLowerCase().startsWith(Z==null?void 0:Z.toLowerCase())});if(ie){var ae,se=C.indexOf(ie);w(se),(ae=document.getElementById(se.toString()))==null||ae.scrollIntoView()}}return z}(),W=function(){function z(Y){var Z;Y!==P&&(R(Y),w(0),(Z=document.getElementById("0"))==null||Z.scrollIntoView())}return z}(),K=function(){function z(){x(!A),R("")}return z}(),_=C.filter(function(z){return z==null?void 0:z.toLowerCase().includes(P.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var z;return(z=document.getElementById(L.toString()))==null?void 0:z.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:$,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function z(Y){var Z=window.event?Y.which:Y.keyCode;(Z===V.KEY_DOWN||Z===V.KEY_UP)&&(Y.preventDefault(),M(Z)),Z===V.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:_[L]})),!A&&Z>=V.KEY_A&&Z<=V.KEY_Z&&(Y.preventDefault(),F(Z)),Z===V.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return z}(),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 z(){return K()}return z}()}),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,y,{filteredItems:_,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:_,onSearch:W,searchQuery:P,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:_[L]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return s(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;g&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:N===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},p=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[g]})}return v}(),onInput:function(){function v(h,N){return s(N)}return v}(),placeholder:"Search...",value:C})}},75965:function(I,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return P("configure",{key:T,value:D,ref:x})}return R}()})},V=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return P("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return P("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,P=(0,a.useBackend)(w),R=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,P=L.values,R=L.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,P=L.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:T&&A?"bad":"good",children:T&&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:T?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:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},l=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,P=L.userburn,R=L.usertoxin,M=L.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R: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:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,P=L.statusmaxhealth,R=L.statusbrute,M=L.statusburn,D=L.statustoxin,j=L.statusoxy,F=L.statustemp,W=L.statusnutrition,K=L.statusfingerprints,_=L.statusdna,$=L.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:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R: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:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?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:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(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:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(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:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?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:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?_:"???"})]})}),!!T&&!!$&&(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(z){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[z.stage,"/",z.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:z.cure})]},z.name)})]})})],0)},m={rad_counter:p,health_analyzer:l,status_readout:c},i=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"})]})},d=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.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"})})})},u=function(L,w){var T=L.configuration_data,A=L.module_ref,x=Object.keys(T);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=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{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:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,F=x.complexity_max,W=x.wearer_name,K=x.wearer_job,_=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:_}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function $(){return A("lock")}return $}()}),children:R?"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:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},g=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,F=x.core,W=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:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"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:W/100,content:W+"%",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"})})]})},v=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,R=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:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[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(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return D(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:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.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:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return D(j.ref)}return F}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.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 B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.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,i)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(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,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.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 B}()},86322:function(I,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=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"}]]),S=r.MagnetController=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,C=i.linkedMagnets,g=i.magnetConfiguration,v=i.path,h=i.pathPosition,N=i.probing,b=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(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 L(){return m("probe_magnets")}return L}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),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:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,V.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),C.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+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:T})}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:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return y}()},54374:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.recharge_port,m=c&&c.mech,i=m&&m.cell,d=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:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return p("reconnect")}return u}()}),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."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return V}()},14823:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.beacons,d=m.stored_data;return d.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 u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],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:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),V=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(w,T){(0,f.modalOpen)(w,"edit",{field:T.edit,value:T.value})},m=function(w,T){var A=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:A.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:A.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[A.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:A.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:A.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[A.severity],children:A.severity})]})})})},i=r.MedicalRecords=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.loginState,P=x.screen;if(!E.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,u):P===4?R=(0,e.createComponentVNode)(2,s):P===5?R=(0,e.createComponentVNode)(2,v):P===6&&(R=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.records,R=(0,t.useLocalState)(T,"searchText",""),M=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId","name"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder",!0),_=K[0],$=K[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 z(){return x("screen",{screen:3})}return z}()})}),(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 z(Y,Z){return D(Z)}return z}()})})]})}),(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,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(M,function(z){return z.name+"|"+z.id+"|"+z.rank+"|"+z.p_stat+"|"+z.m_stat})).sort(function(z,Y){var Z=_?1:-1;return z[F].localeCompare(Y[F])*Z}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[z.p_stat],onClick:function(){function Y(){return x("view_record",{view_record:z.ref})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.m_stat})]},z.id)})]})})})],4)},u=function(w,T){var A=(0,t.useBackend)(T),x=A.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,lineHeight:3,color:"translucent",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,lineHeight:3,color:"translucent",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,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function E(){return x("del_all_med_records")}return E}()})})]})})},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.medical,R=E.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 M(){return x("print_record")}return M}()}),children:(0,e.createComponentVNode)(2,C)})}),!P||!P.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 M(){return x("new_med_record")}return M}()}),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:!!P.empty,content:"Delete Medical Record",onClick:function(){function M(){return x("del_med_record")}return M}()})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(w,T){var A=(0,t.useBackend)(T),x=A.data,E=x.general;return!E||!E.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:E.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function M(){return c(T,P)}return M}()})]},R)})})}),!!E.has_photos&&E.photos.map(function(P,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:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.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)(T,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,M){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,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 D(){return x("del_comment",{del_comment:M+1})}return D}()})]},M)})})})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.virus,R=(0,t.useLocalState)(T,"searchText",""),M=R[0],D=R[1],j=(0,t.useLocalState)(T,"sortId2","name"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"sortOrder2",!0),_=K[0],$=K[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 z(Y,Z){return D(Z)}return z}()})}),(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,b,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,b,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,b,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(M,function(z){return z.name+"|"+z.max_stages+"|"+z.severity})).sort(function(z,Y){var Z=_?1:-1;return z[F].localeCompare(Y[F])*Z}).map(function(z){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+z.severity,onClick:function(){function Y(){return x("vir",{vir:z.D})}return Y}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",z.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:z.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[z.severity],children:z.severity})]},z.id)})]})})})})],4)},h=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.medbots;return P.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"})]}),P.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)})]})})})},N=function(w,T){var A=(0,t.useLocalState)(T,"sortId","name"),x=A[0],E=A[1],P=(0,t.useLocalState)(T,"sortOrder",!0),R=P[0],M=P[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function F(){x===D?M(!R):(E(D),M(!0))}return F}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},b=function(w,T){var A=(0,t.useLocalState)(T,"sortId2","name"),x=A[0],E=A[1],P=(0,t.useLocalState)(T,"sortOrder2",!0),R=P[0],M=P[1],D=w.id,j=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:x!==D&&"transparent",onClick:function(){function F(){x===D?M(!R):(E(D),M(!0))}return F}(),children:[j,x===D&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.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:P===2,onClick:function(){function M(){x("screen",{screen:2})}return M}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function M(){x("screen",{screen:5})}return M}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function M(){return x("screen",{screen:6})}return M}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.product,u=p.productImage,s=p.productCategory,C=i.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,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},V=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=m.products,s=m.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[C[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:C[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.user_cash,u=i.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,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],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.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||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,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return y}(),S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=i[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return u(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return u(2)}return C}(),children:"Decorations"})]})}},53551:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=["title","items"];function k(i,d){if(i==null)return{};var u={},s=Object.keys(i),C,g;for(g=0;g<s.length;g++)C=s[g],!(d.indexOf(C)>=0)&&(u[C]=i[C]);return u}var S={Alphabetical:function(){function i(d,u){return d-u}return i}(),Availability:function(){function i(d,u){return-(d.affordable-u.affordable)}return i}(),Price:function(){function i(d,u){return d.price-u.price}return i}()},y=r.MiningVendor=function(){function i(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),p=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return C("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,h=g.id,N=g.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],P=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(N).map(function(j,F){var W=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},j[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:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),C=s[0],g=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],N=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[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 w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=d.title,h=d.items,N=k(d,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},N,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points<b.price,content:b.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function B(){return C("purchase",{cat:v,name:b.name})}return B}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},b.name)})})))}},71545:function(I,r,n){"use strict";r.__esModule=!0,r.ModpacksListContent=r.ModpacksList=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=r.ModpacksList=function(){function k(S,y){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return k}(),V=r.ModpacksListContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.modpacks,i=(0,a.useLocalState)(y,"searchText",""),d=i[0],u=i[1],s=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u043C\u043E\u0434\u043F\u0430\u043A \u043F\u043E \u0438\u043C\u0435\u043D\u0438, \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044E \u0438\u043B\u0438 \u0430\u0432\u0442\u043E\u0440\u0443...",fluid:!0,onInput:function(){function C(g,v){return u(v)}return C}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:s})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:d.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+d+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(C){return C.name&&(d.length>0?C.name.toLowerCase().includes(d.toLowerCase())||C.desc.toLowerCase().includes(d.toLowerCase())||C.author.toLowerCase().includes(d.toLowerCase()):!0)}).map(function(C){return(0,e.createComponentVNode)(2,o.Collapsible,{title:C.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:C.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:C.desc})]},C.name)})})})})})],4)}return k}()},61100:function(I,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NTRecruiter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.gamestatus,m=l.cand_name,i=l.cand_birth,d=l.cand_age,u=l.cand_species,s=l.cand_planet,C=l.cand_job,g=l.cand_records,v=l.cand_curriculum,h=l.total_curriculums,N=l.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function b(){return p("start_game")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function b(){return p("instructions")}return b}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,h,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",v]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,m,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,C,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,g,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function b(){return p("dismiss")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function b(){return p("hire")}return b}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",h]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()})})]})})})}return V}()},6802:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(30381),V=n(84947),k=n(22677),S=n(76519),y=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function l(L,w){if(L==null)return{};var T={},A=Object.keys(L),x,E;for(E=0;E<A.length;E++)x=A[E],!(w.indexOf(x)>=0)&&(T[x]=L[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],i={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,F=E.channels,W=E.channel_idx,K=W===void 0?-1:W,_=(0,t.useLocalState)(T,"menuOpen",!1),$=_[0],z=_[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),Z=Y[0],ie=Y[1],ae=(0,t.useLocalState)(T,"censorMode",!1),se=ae[0],he=ae[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,C));var Le=F.reduce(function(pe,oe){return pe+oe.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:P&&"security",width:800,height:600,children:[Z?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",$&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return z(!$)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&F[K-1]===pe,onClick:function(){function oe(){return x("channel",{uid:pe.uid})}return oe}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return he(!se)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,F=j===void 0?!1:j,W=w.onClick,K=w.title,_=w.children,$=l(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:W},$,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),_]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,F=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"censorMode",!1),Y=z[0],Z=z[1],ie=P===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,g,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ae){return!_.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,se){return(0,e.createComponentVNode)(2,g,{story:ae},se)}):(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."]})}),!!ie&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!R,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:ie.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.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(ae,se){return ae+se.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,R=E.wanted,M=Object.entries(P).reduce(function(D,j){var F=j[0],W=j[1];return D+W.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,g,{story:R,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(D){return Object.assign({},i[D],{id:D,jobs:P[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.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."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),_=K[0],$=K[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&&_&&(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 z(){return x("censor_story",{uid:P.uid})}return z}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!D&&(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)(" "),(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,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(z,Y){return(0,e.createComponentVNode)(2,o.Box,{children:z||(0,e.createVNode)(1,"br")},Y)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function z(){return W([].concat(F,[P.uid]))}return z}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],R=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 R(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"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(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||D||"Unknown"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),Y=z[0],Z=z[1],ie=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ae=ie[0],se=ie[1],he=(0,t.useLocalState)(T,"isPublic",R?!!(P!=null&&P.public):!1),ye=he[0],Le=he[1],pe=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=pe[0],Q=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"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 q(ue,me){return W(me)}return q}()})}),(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:_,onInput:function(){function q(ue,me){return $(me)}return q}()})}),(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:Y,onInput:function(){function q(ue,me){return Z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,me){return se(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,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:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Le(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Q(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||_.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:_.substr(0,49),description:Y.substr(0,128),icon:ae,public:ye?1:0,admin_locked:oe?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,F=w.args.scanned_user,W=R.slice().sort(function(q,ue){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===ue.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===F||!!q.public)}),K=(0,t.useLocalState)(T,"author",F||"Unknown"),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),Y=z[0],Z=z[1],ie=(0,t.useLocalState)(T,"title",""),ae=ie[0],se=ie[1],he=(0,t.useLocalState)(T,"body",""),ye=he[0],Le=he[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),oe=pe[0],Q=pe[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:!j,width:"100%",value:_,onInput:function(){function q(ue,me){return $(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return Z(ue)}return q}()})}),(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:ae,onInput:function(){function q(ue,me){return se(me)}return q}()})}),(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:ye,onInput:function(){function q(ue,me){return Le(me)}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 story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Q(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||Y.trim().length===0||ae.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:_,channel:Y,title:ae.substr(0,127),body:ye.substr(0,1023),admin_locked:oe?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),F=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),_=K[0],$=K[1],z=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),Y=z[0],Z=z[1],ie=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ae=ie[0],se=ie[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 he(ye,Le){return W(Le)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:_,maxLength:"128",onInput:function(){function he(ye,Le){return $(Le)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function he(ye,Le){return Z(Le)}return he}()})}),(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 he(){return x(P?"eject_photo":"attach_photo")}return he}()}),!!P&&(0,e.createComponentVNode)(2,v,{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:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function he(){return se(!ae)}return he}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function he(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return he}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||_.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function he(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:_.substr(0,127),description:Y.substr(0,511),admin_locked:ae?1:0})}return he}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",N),(0,k.modalRegisterBodyOverride)("manage_channel",N),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return l.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:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("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:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("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 p("deploy")}return c}()})})})})}return V}()},45523:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),V=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,h=d.title,N=(0,f.useLocalState)(c,"input",u),b=N[0],B=N[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,C=d.init_value,g=d.round_value,v=l.input,h=l.onClick,N=l.onChange,b=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function L(){return h(u)}return L}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:u,maxValue:s,onChange:function(){function L(w,T){return N(T)}return L}(),onEnter:function(){function L(w,T){return i("submit",{entry:T})}return L}(),value:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function L(){return h(s)}return L}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===C,icon:"redo",onClick:function(){function L(){return h(C)}return L}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},48314:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.hasOccupant,h=g.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=v?(0,e.createComponentVNode)(2,l):(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:!h,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),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 i}(),l=function(d,u){var s=(0,t.useBackend)(u),C=s.data,g=C.occupant;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:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(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(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.verbose,h=g.health,N=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,L=g.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:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return C(h?"healthOff":"healthOn")}return w}()})}),(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 w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(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:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return C(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function V(u,s){var C=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(C)return(C=C.call(u)).next.bind(C);if(Array.isArray(u)||(C=k(u))||s&&u&&typeof u.length=="number"){C&&(u=C);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[g++]}}}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 k(u,s){if(u){if(typeof u=="string")return S(u,s);var C=Object.prototype.toString.call(u).slice(8,-1);if(C==="Object"&&u.constructor&&(C=u.constructor.name),C==="Map"||C==="Set")return Array.from(u);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var C=0,g=new Array(s);C<s;C++)g[C]=u[C];return g}var y=/ \(([0-9]+)\)$/,p=function(s){return(0,a.createSearch)(s,function(C){return C.name})},l=function(s,C){return s<C?-1:s>C},c=function(s,C){var g=s.name,v=C.name;if(!g||!v)return 0;var h=g.match(y),N=v.match(y);if(h&&N&&g.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(N[1],10);return b-B}return l(g,v)},m=function(s,C){var g=s.searchText,v=s.source,h=s.title,N=s.color,b=s.sorted,B=v.filter(p(g));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,i,{thing:L,color:N},L.name)})})},i=function(s,C){var g=(0,t.useBackend)(C),v=g.act,h=s.color,N=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:N.ref})}return b}(),children:[N.name,N.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",N.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,C){for(var g=(0,t.useBackend)(C),v=g.act,h=g.data,N=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],M=P[1],D={},j=V(b),F;!(F=j()).done;){var W=F.value;D[W.antag]===void 0&&(D[W.antag]=[]),D[W.antag].push(W)}var K=Object.entries(D);K.sort(function($,z){return l($[0],z[0])});var _=function(){function $(z){for(var Y=0,Z=[K.map(function(se){var he=se[0],ye=se[1];return ye}),B,N,A,T,E,x];Y<Z.length;Y++){var ie=Z[Y],ae=ie.filter(p(z)).sort(c)[0];if(ae!==void 0){v("orbit",{ref:ae.ref});break}}}return $}();return(0,e.createComponentVNode)(2,f.Window,{width:700,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:"search"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:R,onInput:function(){function $(z,Y){return M(Y)}return $}(),onEnter:function(){function $(z,Y){return _(Y)}return $}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{inline:!0,color:"transparent",tooltip:"Refresh",tooltipPosition:"bottom-start",icon:"sync-alt",onClick:function(){function $(){return v("refresh")}return $}()})})]})}),b.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function($){var z=$[0],Y=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:z+" - ("+Y.length+")",level:2,children:Y.filter(p(R)).sort(c).map(function(Z){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:Z},Z.name)})},z)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:N,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,V.createLogger)("OreRedemption"),y=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(C,g){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,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.id,B=N.points,L=N.disk,w=Object.assign({},(k(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{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:"ID card",children:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(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:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.sheets,B=Object.assign({},(k(C),C));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"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.alloys,B=Object.assign({},(k(C),C));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"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},i=function(C,g){var v;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:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=C.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 b(B,L){return h(N.value?"sheet":"alloy",{id:N.id,amount:L})}return b}()})})]})})},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=C.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 b(B,L){return h(N.value?"sheet":"alloy",{id:N.id,amount:L})}return b}()})})]})})}},55686:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(33115),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.app_template,u=i.app_icon,s=i.app_title,C=k(d);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:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return y}()},58717:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(75168),k=function(c){var m;try{m=V("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var i=m[c];return i||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app,C=u.owner;if(!C)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 g=k(s.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,y)}),(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:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,C=u.idLink,g=u.stationTime,v=u.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 h(){return d("Authenticate")}return h}(),content:s?C:"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 h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.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:[!!s.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:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78062:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=N/b,P=T*w,R=Math.round(g/C),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!i&&(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 j(){return l("toggle_power")}return j}()}),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:T,minValue:1,maxValue:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,W){return l("change_power",{change_power:W})}return j}()}),"(",(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:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===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||h||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),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:s}),(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(g/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:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.assembled,m=l.power,i=l.strength,d=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return p("scan")}return u}()}),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:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function u(){return p("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return V}()},67572:function(I,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),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 i(){return m("insert_pda")}return i}()})]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.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,S)}),(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(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.current_appearance,u=i.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,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",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"}})})]})}},12456:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,C=m.prev_cat,g=m.next_cat,v=m.subcategory,h=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:[!!i&&(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:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.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 i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(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 i(){return c("removedocument")}return i}()})})]}),(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 i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=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 d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!i&&(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 d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.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 d(){return c("filecopy",{uid:i.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:i.uid})}return d}()})]})},i.name)})})}},82020:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(72026),V=n(90955),k=n(37843);function S(m,i){var d=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d)return(d=d.call(m)).next.bind(d);if(Array.isArray(m)||(d=y(m))||i&&m&&typeof m.length=="number"){d&&(m=d);var u=0;return function(){return u>=m.length?{done:!0}:{done:!1,value:m[u++]}}}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 y(m,i){if(m){if(typeof m=="string")return p(m,i);var d=Object.prototype.toString.call(m).slice(8,-1);if(d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set")return Array.from(m);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return p(m,i)}}function p(m,i){(i==null||i>m.length)&&(i=m.length);for(var d=0,u=new Array(i);d<i;d++)u[d]=m[d];return u}String.prototype.trimLongStr=function(m){return this.length>m?this.substring(0,m)+"...":this};var l=function(i,d){d===void 0&&(d="");var u=(0,k.createSearch)(d,function(s){return s.altername});return(0,V.flow)([(0,f.filter)(function(s){return s==null?void 0:s.altername}),d&&(0,f.filter)(u),(0,f.sortBy)(function(s){return s.id})])(i)},c=r.Photocopier220=function(){function m(i,d){for(var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.copies,v=C.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),N=h[0],b=h[1],B=l((0,f.sortBy)(function(M){return M.category})(C.forms||[]),N),L=[],w=S(B),T;!(T=w()).done;){var A=T.value;L.includes(A.category)||L.push(A.category)}var x=(0,a.useLocalState)(d,"number",0),E=x[0],P=x[1],R;return C.category===""?R=B:R=B.filter(function(M){return M.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return s("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return s("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return s("print_form")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return s("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function M(){return s("copy")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function M(){return s("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:g,stepPixelSize:10,onChange:function(){function M(D,j){return s("copies",{new:j})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",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.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function M(){return s("choose_category",{category:""})}return M}()})}),L.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:M,selected:C.category===M,onClick:function(){function D(){return s("choose_category",{category:M})}return D}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(D,j){return b(j)}return M}()}),children:R.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:C.form_id===M.id,onClick:function(){function D(){return s("choose_form",{path:M.path,id:M.id})}return D}()})},M.path)})})})]})})})}return m}()},47051:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d<m.length;d++)i=m[d],!(l.indexOf(i)>=0)&&(c[i]=p[i]);return c}var k={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}},S=function(l,c){var m=l.tempKey,i=V(l,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,C=u.act,g=s.currentTemp,v=d.label,h=d.icon,N=m===g,b=function(){C("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=k[u]||k.normal,C=s.label,g=s.color,v=[],h=0,N=Object.entries(k);h<N.length;h++){var b=N[h],B=b[0],L=b[1].requireEmag;(!L||L&&d)&&v.push(B)}return(0,e.createComponentVNode)(2,o.Window,{width:350,height:285,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,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:g,children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Status",children:d?(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"WARNING: OVERRIDDEN"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Nominal"})})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Temperature Selection",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.map(function(w){return(0,e.createComponentVNode)(2,S,{fluid:!0,tempKey:w},w)})})})]})})})}return p}()},5424:function(I,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PortablePump=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_holding_tank;return(0,e.createComponentVNode)(2,o.Window,{width:435,height:330,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",children:(0,e.createComponentVNode)(2,t.Box,{color:"average",bold:1,textAlign:"center",mt:2.5,children:"No Holding Tank Inserted."})})]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.on,u=i.direction,s=i.port_connected;return(0,e.createComponentVNode)(2,t.Section,{title:"Pump Settings",buttons:(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function C(){return m("power")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pump Direction",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"sign-in-alt",content:"In",selected:!u,onClick:function(){function C(){return m("set_direction",{direction:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"sign-out-alt",content:"Out",selected:u,onClick:function(){function C(){return m("set_direction",{direction:1})}return C}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Port status",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"green":"average",bold:1,ml:.5,children:s?"Connected":"Disconnected"})})]})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.tank_pressure,u=i.target_pressure,s=i.max_target_pressure,C=s*.7,g=s*.25;return(0,e.createComponentVNode)(2,t.Section,{title:"Pressure Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stored pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:s,ranges:{good:[C,1/0],average:[g,C],bad:[-1/0,g]},children:[d," kPa"]})})}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,color:"label",mt:.3,children:"Target pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){function v(){return m("set_pressure",{pressure:101.325})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){function v(){return m("set_pressure",{pressure:0})}return v}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,unit:"kPa",width:16.5,stepPixelSize:.22,minValue:0,maxValue:s,value:u,onChange:function(){function v(h,N){return m("set_pressure",{pressure:N})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){function v(){return m("set_pressure",{pressure:s})}return v}()})})]})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.holding_tank,u=i.max_target_pressure,s=u*.7,C=u*.25;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function g(){return m("remove_tank")}return g}(),icon:"eject",children:"Eject"}),children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",children:"Tank Label:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"silver",ml:4.5,children:d.name})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",mt:2,children:"Tank Pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1.5,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.tank_pressure,minValue:0,maxValue:u,ranges:{good:[s,1/0],average:[C,s],bad:[-1/0,C]},children:[d.tank_pressure," kPa"]})})]})]})}},70673:function(I,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PortableScrubber=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_holding_tank;return(0,e.createComponentVNode)(2,o.Window,{width:435,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,V),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",children:(0,e.createComponentVNode)(2,t.Box,{color:"average",bold:1,textAlign:"center",mt:2.5,children:"No Holding Tank Inserted."})})]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.on,u=i.port_connected;return(0,e.createComponentVNode)(2,t.Section,{title:"Pump Settings",buttons:(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function s(){return m("power")}return s}()}),children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",children:"Port Status:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:u?"green":"average",bold:1,ml:6,children:u?"Connected":"Disconnected"})]})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.tank_pressure,u=i.rate,s=i.max_rate,C=s*.7,g=s*.25;return(0,e.createComponentVNode)(2,t.Section,{title:"Pressure Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stored pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:s,ranges:{good:[C,1/0],average:[g,C],bad:[-1/0,g]},children:[d," kPa"]})})}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,color:"label",mt:.3,children:"Target pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){function v(){return m("set_rate",{rate:101.325})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){function v(){return m("set_rate",{rate:0})}return v}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,unit:"kPa",width:16.5,stepPixelSize:.22,minValue:0,maxValue:s,value:u,onChange:function(){function v(h,N){return m("set_rate",{rate:N})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){function v(){return m("set_rate",{rate:s})}return v}()})})]})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.holding_tank,u=i.max_rate,s=u*.7,C=u*.25;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Holding Tank",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function g(){return m("remove_tank")}return g}(),icon:"eject",children:"Eject"}),children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",children:"Tank Label:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"silver",ml:4.5,children:d.name})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",mt:2,children:"Tank Pressure:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1.5,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.tank_pressure,minValue:0,maxValue:u,ranges:{good:[s,1/0],average:[C,s],bad:[-1/0,C]},children:[d.tank_pressure," kPa"]})})]})]})}},22015:function(I,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=r.PortableTurret=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.on,d=c.lethal,u=c.lethal_is_configurable,s=c.targetting_is_configurable,C=c.check_weapons,g=c.neutralize_noaccess,v=c.access_is_configurable,h=c.regions,N=c.selectedAccess,b=c.one_access,B=c.neutralize_norecord,L=c.neutralize_criminals,w=c.neutralize_all,T=c.neutralize_unidentified,A=c.neutralize_cyborgs;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:750,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.NoticeBox,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Stack.Item,{m:0,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:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:m,onClick:function(){function x(){return l("power")}return x}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"exclamation-triangle":"times",content:d?"On":"Off",color:d?"bad":"",disabled:m,onClick:function(){function x(){return l("lethal")}return x}()})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"One Access Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"address-card":"exclamation-triangle",content:b?"On":"Off",selected:b,disabled:m,onClick:function(){function x(){return l("one_access")}return x}()})})]})})}),!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:L,content:"Wanted Criminals",disabled:m,onClick:function(){function x(){return l("autharrest")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"No Sec Record",disabled:m,onClick:function(){function x(){return l("authnorecord")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:m,onClick:function(){function x(){return l("authweapon")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Unauthorized Access",disabled:m,onClick:function(){function x(){return l("authaccess")}return x}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:T,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){function x(){return l("authxeno")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:A,content:"Cyborgs",disabled:m,onClick:function(){function x(){return l("authborgs")}return x}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:w,content:"All Non-Synthetics",disabled:m,onClick:function(){function x(){return l("authsynth")}return x}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:!!v&&(0,e.createComponentVNode)(2,f.AccessList,{accesses:h,selectedList:N,accessMod:function(){function x(E){return l("set",{access:E})}return x}(),grantAll:function(){function x(){return l("grant_all")}return x}(),denyAll:function(){function x(){return l("clear_all")}return x}(),grantDep:function(){function x(E){return l("grant_region",{region:E})}return x}(),denyDep:function(){function x(E){return l("deny_region",{region:E})}return x}()})})]})})})}return k}()},75199:function(I,r,n){"use strict";r.__esModule=!0,r.PowerMonitorMainContent=r.PowerMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(66586),V=n(37843),k=n(91819),S=n(2971),y=n(84947),p=6e5,l=r.PowerMonitor=function(){function s(C,g){return(0,e.createComponentVNode)(2,y.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})}return s}(),c=r.PowerMonitorMainContent=function(){function s(C,g){var v=(0,k.useBackend)(g),h=v.act,N=v.data,b=N.powermonitor,B=N.select_monitor;return(0,e.createComponentVNode)(2,S.Box,{m:0,children:[!b&&B&&(0,e.createComponentVNode)(2,m),b&&(0,e.createComponentVNode)(2,i)]})}return s}(),m=function(C,g){var v=(0,k.useBackend)(g),h=v.act,N=v.data,b=N.powermonitors;return(0,e.createComponentVNode)(2,S.Section,{title:"Select Power Monitor",children:b.map(function(B){return(0,e.createComponentVNode)(2,S.Box,{children:(0,e.createComponentVNode)(2,S.Button,{content:B.Area,icon:"arrow-right",onClick:function(){function L(){return h("selectmonitor",{selectmonitor:B.uid})}return L}()})},B)})})},i=function(C,g){var v=(0,k.useBackend)(g),h=v.act,N=v.data,b=N.powermonitor,B=N.history,L=N.apcs,w=N.select_monitor,T=N.no_powernet,A;if(T)A=(0,e.createComponentVNode)(2,S.Box,{color:"bad",textAlign:"center",children:[(0,e.createComponentVNode)(2,S.Icon,{name:"exclamation-triangle",size:"2",my:"0.5rem"}),(0,e.createVNode)(1,"br"),"Warning: The monitor is not connected to power grid via cable!"]});else{var x=(0,k.useLocalState)(g,"sortByField",null),E=x[0],P=x[1],R=B.supply[B.supply.length-1]||0,M=B.demand[B.demand.length-1]||0,D=B.supply.map(function(K,_){return[_,K]}),j=B.demand.map(function(K,_){return[_,K]}),F=Math.max.apply(Math,[p].concat(B.supply,B.demand)),W=(0,t.flow)([(0,a.map)(function(K,_){return Object.assign({},K,{id:K.name+_})}),E==="name"&&(0,a.sortBy)(function(K){return K.Name}),E==="charge"&&(0,a.sortBy)(function(K){return-K.CellPct}),E==="draw"&&(0,a.sortBy)(function(K){return-K.Load})])(L);A=(0,e.createFragment)([(0,e.createComponentVNode)(2,S.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,S.Flex.Item,{width:"200px",children:(0,e.createComponentVNode)(2,S.Section,{children:(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,S.ProgressBar,{value:R,minValue:0,maxValue:F,color:"green",children:(0,o.toFixed)(R/1e3)+" kW"})}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,S.ProgressBar,{value:M,minValue:0,maxValue:F,color:"red",children:(0,o.toFixed)(M/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,S.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,ml:1,children:[(0,e.createComponentVNode)(2,S.Chart.Line,{fillPositionedParent:!0,data:D,rangeX:[0,D.length-1],rangeY:[0,F],strokeColor:"rgba(32, 177, 66, 1)",fillColor:"rgba(32, 177, 66, 0.25)"}),(0,e.createComponentVNode)(2,S.Chart.Line,{fillPositionedParent:!0,data:j,rangeX:[0,j.length-1],rangeY:[0,F],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,S.Box,{mb:1,children:[(0,e.createComponentVNode)(2,S.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,S.Button.Checkbox,{checked:E==="name",content:"Name",onClick:function(){function K(){return P(E!=="name"&&"name")}return K}()}),(0,e.createComponentVNode)(2,S.Button.Checkbox,{checked:E==="charge",content:"Charge",onClick:function(){function K(){return P(E!=="charge"&&"charge")}return K}()}),(0,e.createComponentVNode)(2,S.Button.Checkbox,{checked:E==="draw",content:"Draw",onClick:function(){function K(){return P(E!=="draw"&&"draw")}return K}()})]}),(0,e.createComponentVNode)(2,S.Table,{children:[(0,e.createComponentVNode)(2,S.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,S.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,S.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,S.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),W.map(function(K,_){return(0,e.createComponentVNode)(2,S.Table.Row,{className:"Table__row candystripe",children:[(0,e.createComponentVNode)(2,S.Table.Cell,{children:(0,V.decodeHtmlEntities)(K.Name)}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-right text-nowrap",children:(0,e.createComponentVNode)(2,d,{charging:K.CellStatus,charge:K.CellPct})}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-right text-nowrap",children:K.Load}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-center text-nowrap",children:(0,e.createComponentVNode)(2,u,{status:K.Equipment})}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-center text-nowrap",children:(0,e.createComponentVNode)(2,u,{status:K.Lights})}),(0,e.createComponentVNode)(2,S.Table.Cell,{className:"Table__cell text-center text-nowrap",children:(0,e.createComponentVNode)(2,u,{status:K.Environment})})]},K.id)})]})],4)}return(0,e.createComponentVNode)(2,S.Section,{title:b,buttons:(0,e.createComponentVNode)(2,S.Box,{m:0,children:w&&(0,e.createComponentVNode)(2,S.Button,{content:"Back",icon:"arrow-up",onClick:function(){function K(){return h("return")}return K}()})}),children:A})},d=function(C){var g=C.charging,v=C.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S.Icon,{width:"18px",textAlign:"center",name:g==="N"&&(v>50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(C){var g,v,h=C.status;switch(h){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var N=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:N})};u.defaultHooks=f.pureComponentHooks},15164:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),V=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.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:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function N(){return i("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function N(){return i("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.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:s.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:g.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 b(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return b}()})})]})]},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: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.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})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volume<b,icon:"syringe",content:"Inject "+b+"u",onClick:function(){function B(){return i("inject",{uid:N.uid,amount:b})}return B}()},b)})]},N.name)]}),(0,e.createVNode)(1,"br")],4)})})})]})})]})}return p}()},99646:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PrisonerShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.can_go_home,m=l.emagged,i=l.id_inserted,d=l.id_name,u=l.id_points,s=l.id_goal,C=m?0:1,g=c?"Completed!":"Insufficient";m&&(g="ERR0R");var v="No ID inserted";return i?v=(0,e.createComponentVNode)(2,t.ProgressBar,{value:u/s,ranges:{good:[C,1/0],bad:[-1/0,C]},children:u+" / "+s+" "+g}):m&&(v="ERR0R COMPLETED?!@"),(0,e.createComponentVNode)(2,o.Window,{width:315,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Move shuttle",disabled:!c,onClick:function(){function h(){return p("move_shuttle")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:i?d:"-------------",onClick:function(){function h(){return p("handle_id")}return h}()})})]})})})}return V}()},82443:function(I,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=n(14635),k=r.RCD=function(){function i(d,u){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,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return i}(),S=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.matter,v=C.max_matter,h=v*.7,N=v*.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:[h,1/0],average:[N,h],bad:[-1/0,N]},value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+v+" units"})})})})},y=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,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=d.mode_type,h=g.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:v,selected:h===v?1:0,onClick:function(){function N(){return C("mode",{mode:v})}return N}()})})},l=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.door_name,h=g.electrochromic,N=g.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,v,0)],0),onClick:function(){function b(){return(0,f.modalOpen)(u,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return C("electrochromic")}return b}()})})]})})})},c=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.tab,h=g.locked,N=g.one_access,b=g.selected_accesses,B=g.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:v===1,onClick:function(){function L(){return C("set_tab",{tab:1})}return L}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function L(){return C("set_tab",{tab:2})}return L}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===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})})]})}):v===2&&h?(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 L(){return C("set_lock",{new_lock:"unlock"})}return L}()}),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,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function L(){return C("set_lock",{new_lock:"lock"})}return L}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function L(){return C("set_one_access",{access:"one"})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function L(){return C("set_one_access",{access:"all"})}return L}()})],4),accesses:B,selectedList:b,accessMod:function(){function L(w){return C("set",{access:w})}return L}(),grantAll:function(){function L(){return C("grant_all")}return L}(),denyAll:function(){function L(){return C("clear_all")}return L}(),grantDep:function(){function L(w){return C("grant_region",{region:w})}return L}(),denyDep:function(){function L(w){return C("deny_region",{region:w})}return L}()})})],4)},m=function(d,u){for(var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.door_types_ui_list,h=g.door_type,N=d.check_number,b=[],B=0;B<v.length;B++)B%2===N&&b.push(v[B]);return(0,e.createComponentVNode)(2,t.Stack.Item,{children:b.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack,{mb:.5,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:null,color:"translucent",checked:h===L.type,content:(0,e.createFragment)([(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+L.image,style:{"vertical-align":"middle",width:"32px",margin:"3px","margin-right":"6px","margin-left":"-3px"}}),L.name],0),onClick:function(){function T(){return C("door_type",{door_type:L.type})}return T}()})})},w)})})}},61566:function(I,r,n){"use strict";r.__esModule=!0,r.RPD=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(66586),V=r.RPD=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.mainmenu,g=s.mode,v=function(){function h(N){switch(N){case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);case 3:return(0,e.createComponentVNode)(2,y);case 4:return(0,e.createComponentVNode)(2,p);case 5:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:450,height:415,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,{fluid:!0,children:C.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:h.icon,selected:h.mode===g,onClick:function(){function N(){return u("mode",{mode:h.mode})}return N}(),children:h.category},h.category)})})}),v(g)]})})})}return c}(),k=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.pipemenu,g=s.pipe_category,v=s.pipelist,h=s.whatpipe,N=s.iconrotation;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{textAlign:"center",selected:b.pipemode===g,onClick:function(){function B(){return u("pipe_category",{pipe_category:b.pipemode})}return B}(),children:b.category},b.category)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:v.filter(function(b){return b.pipe_type===1}).filter(function(b){return b.pipe_category===g}).map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",content:b.pipe_name,icon:"cog",selected:b.pipe_id===h,onClick:function(){function B(){return u("whatpipe",{whatpipe:b.pipe_id})}return B}(),style:{"margin-bottom":"2px"}})},b.pipe_name)})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:v.filter(function(b){return b.pipe_type===1&&b.pipe_id===h&&b.orientations!==1}).map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Orient automatically",selected:N===0,onClick:function(){function B(){return u("iconrotation",{iconrotation:0})}return B}(),style:{"margin-bottom":"5px"}})}),b.bendy?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===4,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","southeast-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:4})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===2,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","southwest-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:2})}return B}(),style:{"margin-bottom":"5px"}})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===1,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","northeast-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:1})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===8,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","northwest-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:8})}return B}(),style:{"margin-bottom":"5px"}})})]})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===1,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","north-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:1})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===4,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","east-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:4})}return B}(),style:{"margin-bottom":"5px"}})})]}),b.orientations===4&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===2,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","south-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:2})}return B}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",color:"translucent",selected:N===8,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","west-"+b.pipe_icon])}),onClick:function(){function B(){return u("iconrotation",{iconrotation:8})}return B}(),style:{"margin-bottom":"5px"}})})]})],0)]},b.pipe_id)})})})})})]})})],4)},S=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.pipe_category,g=s.pipelist,v=s.whatdpipe,h=s.iconrotation;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:g.filter(function(N){return N.pipe_type===2}).map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",content:N.pipe_name,icon:"cog",selected:N.pipe_id===v,onClick:function(){function b(){return u("whatdpipe",{whatdpipe:N.pipe_id})}return b}(),style:{"margin-bottom":"2px"}})},N.pipe_name)})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"50%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:g.filter(function(N){return N.pipe_type===2&&N.pipe_id===v&&N.orientations!==1}).map(function(N){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Orient automatically",selected:h===0,onClick:function(){function b(){return u("iconrotation",{iconrotation:0})}return b}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===1,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","north-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:1})}return b}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===4,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","east-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:4})}return b}(),style:{"margin-bottom":"5px"}})})]}),N.orientations===4&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===2,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","south-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:2})}return b}(),style:{"margin-bottom":"5px"}})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"translucent",textAlign:"center",selected:h===8,content:(0,e.createComponentVNode)(2,t.Box,{className:(0,f.classes)(["rpd32x32","west-"+N.pipe_icon])}),onClick:function(){function b(){return u("iconrotation",{iconrotation:8})}return b}(),style:{"margin-bottom":"5px"}})})]})]},N.pipe_id)})})})})})]})})},y=function(m,i){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.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sync-alt",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Device ready to rotate loose pipes..."]})})})})},p=function(m,i){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.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt-h",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Device ready to flip loose pipes..."]})})})})},l=function(m,i){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.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"recycle",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Device ready to eat loose pipes..."]})})})})}},24618:function(I,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(28823),a=n(72026),t=n(58331),o=n(91819),f=n(2971),V=n(30381),k=n(84947),S=r.Radio=function(){function y(p,l){var c=(0,o.useBackend)(l),m=c.act,i=c.data,d=i.freqlock,u=i.frequency,s=i.minFrequency,C=i.maxFrequency,g=i.canReset,v=i.listening,h=i.broadcasting,N=i.loudspeaker,b=i.has_loudspeaker,B=V.RADIO_CHANNELS.find(function(P){return P.freq===u}),L=!!(B&&B.name),w=[],T=[],A=0;for(A=0;A<V.RADIO_CHANNELS.length;A++)T=V.RADIO_CHANNELS[A],w[T.name]=T.color;var x=(0,a.map)(function(P,R){return{name:R,status:!!P}})(i.schannels),E=(0,a.map)(function(P,R){return{name:R,freq:P}})(i.ichannels);return(0,e.createComponentVNode)(2,k.Window,{width:375,height:130+x.length*21.2+E.length*11,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Frequency",children:[d&&(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"light-gray",children:(0,t.toFixed)(u/10,1)+" kHz"})||(0,e.createFragment)([(0,e.createComponentVNode)(2,f.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:s/10,maxValue:C/10,value:u/10,format:function(){function P(R){return(0,t.toFixed)(R,1)}return P}(),onChange:function(){function P(R,M){return m("frequency",{adjust:M-u/10})}return P}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"undo",content:"",disabled:!g,tooltip:"Reset",onClick:function(){function P(){return m("frequency",{tune:"reset"})}return P}()})],4),L&&(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,color:v?"":"bad",tooltip:v?"Disable Incoming":"Enable Incoming",onClick:function(){function P(){return m("listen")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,tooltip:h?"Disable Hotmic":"Enable Hotmic",onClick:function(){function P(){return m("broadcast")}return P}()}),!!b&&(0,e.createComponentVNode)(2,f.Button,{ml:1,icon:"bullhorn",selected:N,content:"Loudspeaker",tooltip:N?"Disable Loudspeaker":"Enable Loudspeaker",onClick:function(){function P(){return m("loudspeaker")}return P}()})]}),x.length!==0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Keyed Channels",children:x.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{icon:P.status?"check-square-o":"square-o",selected:P.status,content:"",onClick:function(){function R(){return m("channel",{channel:P.name})}return R}()}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:w[P.name],children:P.name})]},P.name)})}),E.length!==0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Standard Channel",children:E.map(function(P){return(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-right",content:P.name,selected:L&&B.name===P.name,onClick:function(){function R(){return m("ichannel",{ichannel:P.freq})}return R}()},"i_"+P.name)})})]})})})})}return y}()},85183:function(I,r,n){"use strict";r.__esModule=!0,r.ReagentGrinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),V=n(48154),k=r.ReagentGrinder=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=i.config,C=u.operating,g=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,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,V.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return l}(),S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.inactive;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:"mortar-pestle",disabled:s,tooltip:s?"There are no contents":"Grind the contents",tooltipPosition:"bottom",content:"Grind",onClick:function(){function C(){return d("grind")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"blender",disabled:s,tooltip:s?"There are no contents":"Juice the contents",tooltipPosition:"bottom",content:"Juice",onClick:function(){function C(){return d("juice")}return C}()})})]})})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.contents,C=u.limit,g=u.count,v=u.inactive;return(0,e.createComponentVNode)(2,t.Section,{title:"Contents",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",C," items"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Contents",onClick:function(){function h(){return d("eject")}return h}(),disabled:v,tooltip:v?"There are no contents":""})]}),children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:s.map(function(h){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:h.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[h.amount," ",h.units]}),2)]},h.name)})})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.beaker_loaded,C=u.beaker_current_volume,g=u.beaker_max_volume,v=u.beaker_contents;return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,height:"40%",buttons:!!s&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Detach Beaker",onClick:function(){function h(){return d("detach")}return h}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:v})})}},94890:function(I,r,n){"use strict";r.__esModule=!0,r.RemoteSignaler=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(92149),V=r.RemoteSignaler=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.on;return(0,e.createComponentVNode)(2,o.Window,{width:300,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:"Receiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function i(){return l("recv_power")}return i}()})})}),(0,e.createComponentVNode)(2,f.Signaler,{data:c})]})})})}return k}()},6301:function(I,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RequestConsole=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.screen,v=C.announcementConsole,h=function(){function N(b){switch(b){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k,{purpose:"ASSISTANCE"});case 2:return(0,e.createComponentVNode)(2,k,{purpose:"SUPPLIES"});case 3:return(0,e.createComponentVNode)(2,k,{purpose:"INFO"});case 4:return(0,e.createComponentVNode)(2,S,{type:"SUCCESS"});case 5:return(0,e.createComponentVNode)(2,S,{type:"FAIL"});case 6:return(0,e.createComponentVNode)(2,y,{type:"MESSAGES"});case 7:return(0,e.createComponentVNode)(2,p);case 8:return(0,e.createComponentVNode)(2,l);case 9:return(0,e.createComponentVNode)(2,c);case 10:return(0,e.createComponentVNode)(2,y,{type:"SHIPPING"});default:return"WE SHOULDN'T BE HERE!"}}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:450,height:v?385:345,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:h(g)})})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.newmessagepriority,v=C.announcementConsole,h=C.silent,N;return g===1?N=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):g===2?N=(0,e.createComponentVNode)(2,t.Blink,{children:(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"NEW PRIORITY MESSAGES"})}):N=(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:h?"Speaker Off":"Speaker On",selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function b(){return s("toggleSilent")}return b}()}),children:[N,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Messages",icon:g>0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function b(){return s("setScreen",{setScreen:1})}return b}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(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,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.department,v=[],h;switch(i.purpose){case"ASSISTANCE":v=C.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=C.supply_dept,h="Request supplies from another department";break;case"INFO":v=C.info_dept,h="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:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return s("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(N){return N!==g}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:N,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:N,priority:"2"})}return b}()})]},N)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g;switch(i.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g,v;switch(i.type){case"MESSAGES":g=C.message_log,v="Message Log";break;case"SHIPPING":g=C.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),children:g.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(N,b){return(0,e.createVNode)(1,"div",null,N,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.recipient,v=C.message,h=C.msgVerified,N=C.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 b(){return s("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]})})}),(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 b(){return s("department",{department:g})}return b}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.message,v=C.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 h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(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:!(v&&g),onClick:function(){function h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.shipDest,v=C.msgVerified,h=C.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 N(){return s("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&v),onClick:function(){function N(){return s("printLabel")}return N}()})]})}),(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:h.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===N?"Selected":"Select",selected:g===N,onClick:function(){function b(){return s("shipSelect",{shipSelect:N})}return b}()})},N)})})})})],4)}},51939:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.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,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===V.LATHE||u===V.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),i?(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:i})})}):null]})})})}return y}()},50239:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var m=l.name,i=l.level,d=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V="design",k="tech",S=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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 N(){return v("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return v("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_data;if(!h)return null;var N=h.name,b=h.lathe_types,B=h.materials,L=b.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:N}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.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 w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=h===k?"eject_tech":"eject_design";v(b)}return N}()}):null},c=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_data,h=g.disk_type,N=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_type,N=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:L}):v("copy_design",{id:L})}return w}()})},L)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_item,c=y.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.category,m=p.matching_designs,i=p.menu,d=i===4,u=d?"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(s){var C=s.id,g=s.name,v=s.can_build,h=s.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:g,disabled:v<1,onClick:function(){function N(){return l(u,{id:C,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return l(u,{id:C,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return l(u,{id:C,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.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)})})]},C)})})]})}return V}()},47349:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_chemicals,c=y.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 i=c?"disposeallP":"disposeallI";p(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var i=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var C=c?"disposeP":"disposeI";p(C,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.menu,m=p.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){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:d,onClick:function(){function u(){l("setCategory",{category:d})}return u}()})},d)})})]})}return V}()},87115:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,i=c.amount,d=c.name,u=function(){function v(h){var N=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(N,{id:m,amount:h})}return v}(),s=Math.floor(i/2e3),C=i<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return u(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return u("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return u(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return u(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,l=y.max_materials,c=y.max_chemicals,m=y.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:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):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}()},45805:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),V=n(51939),k=r.LatheMenu=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=c.menu,i=c.linked_lathe,d=c.linked_imprinter;return m===4&&!i?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.disk_type,m=l.linked_destroy,i=l.linked_lathe,d=l.linked_imprinter,u=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var C=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return k}()},29933:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,y=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,C=u;return V.menu!==null&&V.menu!==void 0&&(s=V.menu),V.submenu!==null&&V.submenu!==void 0&&(C=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function g(){i("nav",{menu:s,submenu:C})}return g}(),children:y})}return f}()},59959:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},28078:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,l=function(){function m(i,d){return i==null?!0:typeof i=="function"?i(d):i===d}return m}(),c=l(o.menu,y)&&l(o.submenu,p);return c?V():null}return t}()},59991:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=p.act,m=l.sync,i=l.admin,d=l.linked_destroy,u=l.linked_lathe,s=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function C(){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,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return k}()},63752:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(73492);r.LatheMainMenu=V.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var l=n(25242);r.MainMenu=l.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=function(y,p){var l=y/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.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(i,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(i.name),children:i.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:i.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:V(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(i.electronic_damage,i.max_damage),children:i.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:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},d)})})})}return S}()},48356:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.can_hack,i=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function C(){return l("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return l("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:s,can_hack:m})]})})}return k}(),V=function(S,y){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(y),m=c.act,i=c.data,d="Detonate";return i.detonate_cooldown>0&&(d+=" ("+i.detonate_cooldown+"s)"),p.length?p.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],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:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.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"})}),!!u.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:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,C=i.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,V),(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"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,C=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function N(){return m(h?"turnleft":"turnright",{num:v})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return m("retrieve",{index:s+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(p,l){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."})]})}},46748:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.satellites,m=l.notice,i=l.meteor_shield,d=l.meteor_shield_coverage,u=l.meteor_shield_coverage_max,s=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return V}()},46504:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(99753),k=n(31068),S=r.SecureStorage=function(){function c(m,i){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,p)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.locked,g=s.no_passcode,v=s.emagged,h=s.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,i)}return B}(),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--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return u("keypad",{digit:C})}return g}()})}},54529:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function v(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.loginState,T=L.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,s));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,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.currentPage,T=L.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:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),P=E[0],R=E[1],M=(0,t.useLocalState)(N,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(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,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,W){var K=D?1:-1;return F[P].localeCompare(W[P])*K}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function W(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return W}(),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)},d=function(h,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(L(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[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 B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.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,R){return x(R)}return E}()})})]})},s=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.security;return!T||!T.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:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("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 B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!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 B("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 B("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,prewrap:!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 l(N,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(h,N){var b=(0,t.useBackend)(N),B=b.data,L=B.general;return!L||!L.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:L.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(N,w)}return A}()})]},T)})})}),!!L.has_photos&&L.photos.map(function(w,T){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:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.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 T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,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:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return l("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,V):"No Seeds"})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return l("vend",{seedid:i.id,seedvariant:i.variant})}return u}()})]})]},d)})]})}},58578:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.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:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("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"})}),!!l.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:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},11154:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],i=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();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 u(){return i(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return i(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return i(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.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 s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.templates_tabs,u=i.existing_shuttle,s=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!u&&s[u.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.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 g(){return m("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.existing_shuttle,u=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.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 s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.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 s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,u);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:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return s}(),l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.occupant,B=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:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(C,g){var v=(0,t.useBackend)(g),h=v.data,N=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[b[1]]/100,ranges:S,children:(0,a.round)(N[b[1]],0)},B)},B)})})})},i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.hasOccupant,B=N.isBeakerLoaded,L=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(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:L,value:w/L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,N=v.data,b=N.occupant,B=N.chemicals,L=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.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:T.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:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(P,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>L||b.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:P})}return M}()},R)})]})})},A)})})},u=function(C,g){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."]})})})}},42439:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.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 l.plays===1?c=l.plays+" player has tried their luck today!":c=l.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:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},280:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.secure,m=l.can_dry,i=l.drying,d=l.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:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function u(){return p("drying")}return u}()}),children:[!d&&(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."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.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 s(){return p("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(C,g){return p("vend",{index:u.vend,amount:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return V}()},47606:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),V=1e3,k=r.Smes=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,C=m.inputting,g=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,N=m.outputAttempt,b=m.outputting,B=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,T=i>=100&&"good"||C&&"average"||"bad",A=b&&"good"||u>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:i*.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:s?"sync-alt":"times",selected:s,onClick:function(){function x(){return c("tryinput")}return x}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:i>=100&&"Fully Charged"||C&&"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:g===0,onClick:function(){function x(){return c("input",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function x(){return c("input",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/V,fillValue:h/V,minValue:0,maxValue:v/V,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*V,1)}return x}(),onChange:function(){function x(E,P){return c("input",{target:P*V})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function x(){return c("input",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function x(){return c("input",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(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:N?"power-off":"times",selected:N,onClick:function(){function x(){return c("tryoutput")}return x}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:b?"Sending":u>0?"Not Sending":"No Charge"})}),(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:B===0,onClick:function(){function x(){return c("output",{target:"min"})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function x(){return c("output",{adjust:-1e4})}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/V,minValue:0,maxValue:L/V,step:5,stepPixelSize:4,format:function(){function x(E){return(0,o.formatPower)(E*V,1)}return x}(),onChange:function(){function x(E,P){return c("output",{target:P*V})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function x(){return c("output",{adjust:1e4})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function x(){return c("output",{target:"max"})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},66527:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,C=l.tracking_rate,g=l.connected_panels,v=l.connected_tracker,h=l.cdir,N=l.direction,b=l.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 B(){return p("refresh")}return B}()}),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:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(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:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),s===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:[s!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(L,w){return p("cdir",{cdir:w})}return B}()}),s===i&&(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:s===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===i,disabled:!v,onClick:function(){function B(){return p("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},27478:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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 i(){return p("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("spawn",{ID:m.uids})}return i}()})],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 V}()},15565:function(I,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function p(l,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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("hemomancer")}return s}()}),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)]})})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("umbrae")}return s}()}),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)]})})},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("gargantua")}return s}()}),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)]})})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("dantalion")}return s}()}),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)]})})}},31752:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function k(){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,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],d=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(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return k}()},64323:function(I,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),V=n(84947),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,C=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=C[0],v=C[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(h);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:!g&&"Select trait to add...",onSelected:v,options:N,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(b){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:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.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 b(){return d("clear_future_traits")}return b}(),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 b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){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:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:s.ref})}return C}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.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:d===k.ViewStationTraits,onClick:function(){function C(){return u(k.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function C(){return u(k.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(I,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,S)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,C=i.mask,g=i.storage,v=i.open,h=i.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function N(){return m("cook")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function N(){return m("toggle_lock")}return N}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:C,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{object:g,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,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:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.object,u=p.label,s=p.missingText,C=p.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function g(){return m(C)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.open,u=i.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(I,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),V=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data;return g.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),l=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.supermatters,h=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"sync",content:"Refresh",onClick:function(){function N(){return C("refresh")}return N}()}),children:(0,e.createComponentVNode)(2,V.Table,{children:h.map(function(N){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:N.supermatter_id+". "+N.area_name}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:N.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,V.Button,{content:"Details",onClick:function(){function b(){return C("view",{view:N.supermatter_id})}return b}()})})]},N.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.active,h=g.SM_integrity,N=g.SM_power,b=g.SM_ambienttemp,B=g.SM_ambientpressure,L=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(L.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.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,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.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 p(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 V}()},61225:function(I,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.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 l("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 k}()},61424:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},V={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},k={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},S=function(c,m,i,d){return d===void 0&&(d=null),c.map(function(u){var s,C=(s=u[d])!=null?s:u;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:m.includes(u),content:C,onClick:function(){function g(){m.includes(u)?i(m.filter(function(v){var h;return((h=v[d])!=null?h:v)!==u})):i([u].concat(m))}return g}()},C)})},y=r.TTSSeedsExplorer=function(){function l(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,p)})})})}return l}(),p=r.TTSSeedsExplorerContent=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.providers,C=u.seeds,g=u.selected_seed,v=u.phrases,h=u.donator_level,N=u.character_gender,b=C.map(function(Q){return Q.category}).filter(function(Q,q,ue){return ue.indexOf(Q)===q}),B=C.map(function(Q){return Q.gender}).filter(function(Q,q,ue){return ue.indexOf(Q)===q}),L=C.map(function(Q){return Q.required_donator_level}).filter(function(Q,q,ue){return ue.indexOf(Q)===q}).sort(function(Q,q){return Q-q}).map(function(Q){return f[Q]}),w=(0,a.useLocalState)(m,"selectedProviders",s),T=w[0],A=w[1],x=(0,a.useLocalState)(m,"selectedGenders",B.includes(V[N])?[V[N]]:B),E=x[0],P=x[1],R=(0,a.useLocalState)(m,"selectedCategories",b),M=R[0],D=R[1],j=(0,a.useLocalState)(m,"selectedDonatorLevels",L.includes(f[h])?L.slice(0,L.indexOf(f[h])+1):L),F=j[0],W=j[1],K=(0,a.useLocalState)(m,"selectedPhrase",v[0]),_=K[0],$=K[1],z=(0,a.useLocalState)(m,"searchtext",""),Y=z[0],Z=z[1],ie=S(s,T,A,"name"),ae=S(B,E,P),se=S(b,M,D),he=S(L,F,W),ye=(0,e.createComponentVNode)(2,t.Dropdown,{options:v,selected:_.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Q(q){return $(q)}return Q}()}),Le=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Q(q,ue){return Z(ue)}return Q}()}),pe=C.sort(function(Q,q){var ue=Q.name.toLowerCase(),me=q.name.toLowerCase();return ue>me?1:ue<me?-1:0}).filter(function(Q){return T.some(function(q){return q.name===Q.provider})&&E.includes(Q.gender)&&M.includes(Q.category)&&F.includes(f[Q.required_donator_level])&&Q.name.toLowerCase().includes(Y.toLowerCase())}),oe=pe.map(function(Q){return(0,e.createComponentVNode)(2,t.Table.Row,{backgroundColor:g===Q.name?"green":"transparent",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:g===Q.name?"green":"transparent",content:g===Q.name?"\u0412\u044B\u0431\u0440\u0430\u043D\u043E":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",tooltip:h<Q.required_donator_level&&"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u0435\u0435 \u0432\u044B\u0441\u043E\u043A\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",onClick:function(){function q(){return d("select",{seed:Q.name})}return q}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"music",color:g===Q.name?"green":"transparent",content:"",tooltip:"\u041F\u0440\u043E\u0441\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u0438\u043C\u0435\u0440",onClick:function(){function q(){return d("listen",{seed:Q.name,phrase:_})}return q}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,textColor:Q.required_donator_level>0&&g!==Q.name?"orange":"white",children:Q.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:g===Q.name?.5:.25,textAlign:"left",children:Q.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:g===Q.name?"white":k[Q.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:k[Q.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Q.required_donator_level>0&&(0,e.createFragment)([f[Q.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Q.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:ie}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ae}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ye}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Le})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===0,onClick:function(){function Q(){return D([])}return Q}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===b.length,onClick:function(){function Q(){return D(b)}return Q}()})],4),children:se})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+pe.length+"/"+C.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:oe})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:2,italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})],4)}return l}()},97552:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=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:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||s,align:"center",onClick:function(){function C(){return l("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function C(){return l("delete_logs")}return C}()})]})]})}),i.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=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"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.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 u(){return l("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return k}()},33291:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return p("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:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(i,d){return p("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},75480:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.o_tanks,m=l.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 i(){return p("oxygen")}return i}()})}),(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 i(){return p("plasma")}return i}()})})]})})})}return V}()},62291:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return p}(),V=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."})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,N=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.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:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function L(){return i("toggle_active")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(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:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_jobs")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function L(){return i("nttc_toggle_job_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return i("nttc_toggle_command_bold")}return L}()})})]})}),(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 L(){return i("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return i("nttc_setting_language")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function L(){return i("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return i("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return i("export")}return L}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.link_password,s=d.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:u||"Unset",selected:u,icon:"lock",onClick:function(){function C(){return i("change_password")}return C}()})})}),(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"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.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 g(){return i("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.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 s(){return i("add_filter")}return s}()}),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"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return i("remove_filter",{user:s})}return C}()})})]},s)})]})})}},82905:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked,d=m.active,u=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:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked_core_id,d=m.linked_core_addr,u=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:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(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 s(){return c("unlink")}return s}()})})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=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"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,C=l.powerstation,g=l.regime,v=l.teleporterhub,h=l.target,N=l.locked;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:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",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:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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:g===i?"good":null,onClick:function(){function b(){return p("setregime",{regime:i})}return b}()})}),(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:g===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(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:g===d?"good":null,disabled:!N,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(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:[h!=="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:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(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:!!(u||s),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&C&&v&&g===d)&&(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 b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},40759:function(I,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,C=d.max_temp,g=d.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:g,maxValue:C,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,N){return i("target_temperature",{target_temperature:N})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return p}(),k=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},y=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},32369:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),V=n(2971),k=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,C=s.max_length,g=s.message,v=g===void 0?"":g,h=s.multiline,N=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(i,"input",N||""),w=L[0],T=L[1],A=function(){function P(R){if(R!==w){var M=h?S(R):y(R);T(M)}}return P}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function P(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return P}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,C=s.max_length,g=s.multiline,v=m.input,h=m.onType,N=g||v.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){N&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:v})}},82296:function(I,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.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(i){return(0,a.toFixed)(i,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(i){return(0,a.toFixed)(i,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 l("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 l("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 l("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(i,d){return l("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("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 l("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},68488:function(I,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.tank_one,m=l.tank_two,i=l.attached_device,d=l.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:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return p("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function u(){return p("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function u(){return p("remove_device")}return u}()}):(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 u(){return p("tankone")}return u}()}):(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 u(){return p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},26868:function(I,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),V=r.TurbineComputer=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,C=i.turbine_broken,g=i.online,v=!!(d&&!u&&s&&!C);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:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,C=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||d?"bad":"good",children:d?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(I,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),V=n(2971),k=n(84947),S=n(22677),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function C(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(v,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return C}(),l=function(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],P=x[1],R=function(K,_){_===void 0&&(_="");var $=(0,o.createSearch)(_,function(z){var Y=z.hijack_only===1?"|hijack":"";return z.name+"|"+z.desc+"|"+z.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(z){return z==null?void 0:z.name}),_&&(0,a.filter)($),(0,a.sortBy)(function(z){return z==null?void 0:z.name})])(K)},M=function(K){if(P(K),K==="")return A(L[0].items);A(R(L.map(function(_){return _.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],F=D[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return F(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,_){M(_)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),P("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(g,v){var h=g.i,N=g.showDecription,b=N===void 0?1:N,B=g.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=g.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=g.i,L=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(g,v){var h=(0,f.useBackend)(v),N=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(D,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(W){return W.name})])(D)},R=P(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(I,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,N=!u||m.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!v||i===0||!N&&m.price>C&&m.price>g;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,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(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:i<=0&&"bad"||i<=m.max_amount/2&&"average"||"good",children:[i," 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:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,C=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.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:[!!u&&(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:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("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,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"check":"volume-mute",selected:L,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("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:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>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 d(){return p("volume",{channel:m.num,volume:0})}return d}()})})}),(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 d(u,s){return p("volume",{channel:m.num,volume:s})}return d}()})}),(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 d(){return p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return V}()},26564:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.remaining,m=l.question,i=l.choices,d=l.user_vote,u=l.counts,s=l.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"]}),i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(s?" ("+(u[C]||0)+")":""),onClick:function(){function g(){return p("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return V}()},496:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.wires||[],m=l.status||[],i=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,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(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return V}()},28919:function(I,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.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 p("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 p("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 p("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 p("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 p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},14635:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[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 V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c<l;c++)m[c]=p[c];return m}var S={0:{icon:"times-circle",color:"bad"},1:{icon:"stop-circle",color:null},2:{icon:"check-circle",color:"good"}},y=r.AccessList=function(){function p(l,c){var m,i=l.sectionButtons,d=i===void 0?null:i,u=l.usedByRcd,s=l.rcdButtons,C=l.accesses,g=C===void 0?[]:C,v=l.selectedList,h=v===void 0?[]:v,N=l.grantableList,b=N===void 0?[]:N,B=l.accessMod,L=l.grantAll,w=l.denyAll,T=l.grantDep,A=l.denyDep,x=(0,t.useLocalState)(c,"accessName",(m=g[0])==null?void 0:m.name),E=x[0],P=x[1],R=g.find(function(j){return j.name===E}),M=(0,a.sortBy)(function(j){return j.desc})((R==null?void 0:R.accesses)||[]),D=function(){function j(F){for(var W=!1,K=!1,_=f(F),$;!($=_()).done;){var z=$.value;h.includes(z.ref)?W=!0:K=!0}return!W&&K?0:W&&K?1:2}return j}();return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Access",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"check-double",content:"Select All",color:"good",onClick:function(){function j(){return L()}return j}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Deselect All",color:"bad",onClick:function(){function j(){return w()}return j}()}),d],0),children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:g.map(function(j){var F=j.accesses||[],W=S[D(F)].icon,K=S[D(F)].color;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{altSelection:!0,color:K,icon:W,selected:j.name===E,onClick:function(){function _(){return P(j.name)}return _}(),children:j.name},j.name)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"80%",children:[(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"check",content:"Select All In Region",color:"good",onClick:function(){function j(){return T(R.regid)}return j}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"times",content:"Deselect All In Region",color:"bad",onClick:function(){function j(){return A(R.regid)}return j}()})})]}),!!u&&(0,e.createComponentVNode)(2,o.Box,{my:1.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Require",children:s})})}),M.map(function(j){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:j.desc,disabled:b.length>0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return p}()},29136:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,p,l,c){return S<y?"bad":S<p||S>l?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,l=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.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),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(I,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,i=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,C=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"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:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!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:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function p(l,c,m){var i=(0,a.useBackend)(l),d=i.act,u=i.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var C=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(C)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,N,b="auto";if(o[u])h=o[u](i.modal,c);else if(C==="input"){var B=i.modal.value;g=function(){function w(T){return k(c,u,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),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 w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var L=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,N]})}}return p}()},692:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=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(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:y(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},l=r.CrewManifest=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s;if(m.data)s=m.data;else{var C=(0,a.useBackend)(i),g=C.data;s=g}var v=s,h=v.manifest,N=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.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:p(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:p(x)})]})}return c}()},98658:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,i=V.message,d=V.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function C(){return y("submit",{entry:m})}return C}(),textAlign:"center",tooltip:l&&i,disabled:d,width:!l&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function C(){return y("cancel")}return C}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!l&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,i=m===void 0?p.locked:m,d=V.normallyLocked,u=d===void 0?p.normallyLocked:d,s=V.onLockStatusChange,C=s===void 0?function(){return y("lock")}:s,g=V.accessText,v=g===void 0?"an ID card":g;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:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState;if(p)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: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,i=p.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:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)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 ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=k.data,c=l.code,m=l.frequency,i=l.minFrequency,d=l.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:i/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,C){return p("freq",{freq:C})}return u}()})}),(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 u(s,C){return p("code",{code:C})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return p("signal")}return u}()})]})}return V}()},79969:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),V=n(2971),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],C=u[1],g=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.Name})])(d)},v=g(d,s);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,b){return C(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return i("Records",{target:h.uid})}return N}()})},h)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,C=d.security,g;switch(l.recordType){case"MED":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(V,k){var S,y=(0,a.useBackend)(k),p=y.act,l=y.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);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 i(){return p("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,C=l.burn,g=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:i/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.master,m=l.dna,i=l.prime,d=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.cable,m=l.machine,i=l.inprogress,d=l.progress,u=l.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var C;return m&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),C]})}return f}()},94648:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.available_software,m=l.installed_software,i=l.installed_toggles,d=l.available_ram,u=l.emotions,s=l.current_emotion,C=l.speech_verbs,g=l.current_speech_verb,v=l.available_chassises,h=l.current_chassis,N=[];return m.map(function(b){return N[b.key]=b.name}),i.map(function(b){return N[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!N[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!N[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.app_data,m=c.minFrequency,i=c.maxFrequency,d=c.frequency,u=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:i/10,value:d/10,format:function(){function s(C){return(0,t.toFixed)(C,1)}return s}(),onChange:function(){function s(C,g){return p("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return V}()},76020:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,i=l.buckets,d=l.cleanbots,u=l.carts,s=l.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(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return f}()},57725:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=y.data,c=l.owner,m=l.ownjob,i=l.idInserted,d=l.categories,u=l.pai,s=l.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:!i,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=l.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return V}()},29978:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,V,{data:i}):(0,e.createComponentVNode)(2,k,{data:i})}return y}(),V=r.ActiveConversation=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convo_name,u=i.convo_job,s=i.messages,C=i.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),v=g[0],h=g[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(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 b(){return m("Clear",{option:"Convo"})}return b}()})})})}),N]})}return y}(),k=r.MessengerList=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convopdas,u=i.pdas,s=i.charges,C=i.silent,g=i.toff,v=i.ringtone_list,h=i.ringtone,N=(0,t.useLocalState)(l,"searchTerm",""),b=N[0],B=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:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(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:[s," charges left."]})})}),!d.length&&!u.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:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:b})]})}return y}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=p.pdas,u=p.title,s=p.msgAct,C=p.searchTerm,g=i.charges,v=i.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function N(){return m(s,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return b}()},N.uid)})})]},h.uid)})})}},54291:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.connected,m=l.wild_captures,i=l.no_collection,d=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return p("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return p("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("Next")}return u}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return V}()},31112:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,C=i.load,g=i.powr,v=i.dest,h=i.home,N=i.retn,b=i.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function L(){return l("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(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 L(){return l("set_auto_return",{autoret:N?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},2817:function(I,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.logged_in,g=s.owner_name,v=s.money;return C?(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:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),C=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),C=s.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,i){var d,u=(0,t.useBackend)(i),s=u.act,C=u.data,g=C.requests,v=C.available_accounts,h=C.money,N=(0,t.useLocalState)(i,"selectedAccount"),b=N[0],B=N[1],L=(0,t.useLocalState)(i,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],P=[];return v.map(function(R){return P[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(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===b})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(P[M])}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(M,D){return T(D)}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:h<w||!b,content:"Send",onClick:function(){function R(){return s("transfer",{amount:w,transfer_to_account:b})}return R}()}),(0,e.createComponentVNode)(2,o.Button,{bold:!0,icon:"hand-holding-usd",width:"auto",disabled:!b,content:"Request",onClick:function(){function R(){return s("transfer_request",{amount:w,transfer_to_account:b})}return R}()})]})]}),(0,e.createComponentVNode)(2,o.Section,{level:3,title:"Requests",children:g.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{mt:1,ml:1,children:[(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Request from "),R.requester],0),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:R.amount}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time",children:[R.time," Minutes ago"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"thumbs-up",color:"good",disabled:h<R.amount,content:"Accept",onClick:function(){function M(){return s("resolve_transfer_request",{accepted:1,requestUID:R.request_id})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"thumbs-down",color:"bad",content:"Deny",onClick:function(){function M(){return s("resolve_transfer_request",{requestUID:R.request_id})}return M}()})]})]})]},R.UID)})})],4)},y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.security_level,g=s.department_members,v=s.auto_approve,h=s.auto_approve_amount,N=s.is_department_account;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Security",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"user-lock",selected:C===1,content:"Account Number Only",tooltip:"Set Account security so that only having the account number is required for transactions",onClick:function(){function b(){return u("set_security",{new_security_level:1})}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-lock",selected:C===2,content:"Require Pin Entry",tooltip:"Set Account security so that pin entry is required for transactions",onClick:function(){function b(){return u("set_security",{new_security_level:2})}return b}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Logout",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sign-out-alt",width:"auto",content:"Logout",onClick:function(){function b(){return u("logout")}return b}()})})]}),!!N&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto Approve Orders",children:(0,e.createComponentVNode)(2,o.Button,{color:v?"good":"bad",content:v?"Yes":"No",onClick:function(){function b(){return u("toggle_auto_approve")}return b}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto Approve Purchases when",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"# Credits",value:h,onInput:function(){function b(B,L){return u("set_approve_amount",{approve_amount:L})}return b}()})})]}),(0,e.createComponentVNode)(2,o.Divider),(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:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Occupation"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Can Approve Crates"})]}),g.map(function(b){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:b.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:b.job}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b.can_approve?"good":"bad",content:b.can_approve?"Yes":"No",onClick:function(){function B(){return u("toggle_member_approval",{member:b.name})}return B}()})})]},b)})]})],4)],0)},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.transaction_log;return(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"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:g.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:g.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:g.target_name})]},g)})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=(0,t.useLocalState)(i,"accountID",null),g=C[0],v=C[1],h=(0,t.useLocalState)(i,"accountPin",null),N=h[0],b=h[1],B=s.card_account_num,L=g||B;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Account ID",onInput:function(){function w(T,A){return v(A)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Account Pin",onInput:function(){function w(T,A){return b(A)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Login",icon:"sign-in-alt",disabled:!g&&!B,onClick:function(){function w(){return u("login",{account_num:L,account_pin:N})}return w}()})})]})}},66621:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_notes=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:l}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function c(){return y("Edit")}return c}(),content:"Edit"})]})}return f}()},96490:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(28823),a=n(91819),t=n(75199),o=r.pda_power=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return f}()},36436:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_secbot=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.beepsky,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.beepsky,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.beepsky,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,C;switch(u){case 0:C="Ready";break;case 1:C="Apprehending target";break;case 2:case 3:C="Arresting target";break;case 4:C="Starting patrol";break;case 5:C="On patrol";break;case 6:C="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function g(){return l("go")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function g(){return l("stop")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function g(){return l("summon")}return g}()})]})]})]})}},55244:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_security=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"SEC"})}return f}()},23470:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pda_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return f}()},43085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_status_display=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function c(){return y("Status",{statdisp:0})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return y("Status",{statdisp:1})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return y("Status",{statdisp:2})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"redalert"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return y("Status",{statdisp:3,alert:"biohazard"})}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:l.message1+" (set)",icon:"pen",onClick:function(){function c(){return y("SetMessage",{msgnum:1})}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:l.message2+" (set)",icon:"pen",onClick:function(){function c(){return y("SetMessage",{msgnum:2})}return c}()})})]})})}return f}()},26948:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_supplyrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.supply,c=l.shuttle_loc,m=l.shuttle_time,i=l.shuttle_moving,d=l.approved,u=l.approved_count,s=l.requests,C=l.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:i?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",m]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:C>0&&s.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},73786:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -242,11 +242,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}var p=r.Pane=function(){function c(m,i){var d=m.theme,u=m.children,s=m.className,v=y(m,k),g=(0,t.useBackend)(i),C=g.suspended,h=(0,f.useDebug)(i),N=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!C&&u})})))}return c}(),l=function(m){var i=m.className,d=m.fitted,u=m.children,s=y(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},s,{children:d&&u||(0,e.createVNode)(1,"div","Window__contentPadding",u,0)})))};p.Content=l},82118:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),f=n(91819),V=n(2971),k=n(30381),S=n(39241),y=n(20697),p=n(45360),l=n(50175),c=n(73786),m=["className","fitted","children"];function i(b,B){if(b==null)return{};var L={},w=Object.keys(b),T,A;for(A=0;A<w.length;A++)T=w[A],!(B.indexOf(T)>=0)&&(L[T]=b[T]);return L}function d(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,u(b,B)}function u(b,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(w,T){return w.__proto__=T,w}return L}(),u(b,B)}/** + */function y(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s<d.length;s++)u=d[s],!(m.indexOf(u)>=0)&&(i[u]=c[u]);return i}var p=r.Pane=function(){function c(m,i){var d=m.theme,u=m.children,s=m.className,C=y(m,k),g=(0,t.useBackend)(i),v=g.suspended,h=(0,f.useDebug)(i),N=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!v&&u})})))}return c}(),l=function(m){var i=m.className,d=m.fitted,u=m.children,s=y(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},s,{children:d&&u||(0,e.createVNode)(1,"div","Window__contentPadding",u,0)})))};p.Content=l},82118:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),f=n(91819),V=n(2971),k=n(30381),S=n(39241),y=n(20697),p=n(45360),l=n(50175),c=n(73786),m=["className","fitted","children"];function i(b,B){if(b==null)return{};var L={},w=Object.keys(b),T,A;for(A=0;A<w.length;A++)T=w[A],!(B.indexOf(T)>=0)&&(L[T]=b[T]);return L}function d(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,u(b,B)}function u(b,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(w,T){return w.__proto__=T,w}return L}(),u(b,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var s=(0,l.createLogger)("Window"),v=[400,600],g=r.Window=function(b){d(B,b);function B(){return b.apply(this,arguments)||this}var L=B.prototype;return L.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(s.log("mounting"),this.updateGeometry())}return w}(),L.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),L.updateGeometry=function(){function w(){var T,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]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),L.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,P=A.children,R=(0,f.useBackend)(this.context),M=R.config,D=R.suspended,j=(0,S.useDebug)(this.context),F=j.debugLayout,W=(0,t.useDispatch)(this.context),K=(T=M.window)==null?void 0:T.fancy,_=M.user&&(M.user.observer?M.status<k.UI_DISABLED:M.status<k.UI_INTERACTIVE);return(0,e.createComponentVNode)(2,c.Layout,{className:"Window",theme:x,children:[(0,e.createComponentVNode)(2,N,{className:"Window__titleBar",title:!D&&(E||(0,o.decodeHtmlEntities)(M.title)),status:M.status,fancy:K,onDragStart:p.dragStartHandler,onClose:function(){function $(){s.log("pressed close"),W((0,f.backendSuspendStart)())}return $}()}),(0,e.createVNode)(1,"div",(0,a.classes)(["Window__rest",F&&"debug-layout"]),[!D&&P,_&&(0,e.createVNode)(1,"div","Window__dimmer")],0),K&&(0,e.createFragment)([(0,e.createVNode)(1,"div","Window__resizeHandle__e",null,1,{onMousedown:(0,p.resizeStartHandler)(1,0)}),(0,e.createVNode)(1,"div","Window__resizeHandle__s",null,1,{onMousedown:(0,p.resizeStartHandler)(0,1)}),(0,e.createVNode)(1,"div","Window__resizeHandle__se",null,1,{onMousedown:(0,p.resizeStartHandler)(1,1)})],4)]})}return w}(),B}(e.Component),C=function(B){var L=B.className,w=B.fitted,T=B.children,A=i(B,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,c.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",L])},A,{children:w&&T||(0,e.createVNode)(1,"div","Window__contentPadding",T,0)})))};g.Content=C;var h=function(B){switch(B){case k.UI_INTERACTIVE:return"good";case k.UI_UPDATE:return"average";case k.UI_DISABLED:default:return"bad"}},N=function(B,L){var w=B.className,T=B.title,A=B.status,x=B.fancy,E=B.onDragStart,P=B.onClose,R=(0,t.useDispatch)(L);return(0,e.createVNode)(1,"div",(0,a.classes)(["TitleBar",w]),[A===void 0&&(0,e.createComponentVNode)(2,V.Icon,{className:"TitleBar__statusIcon",name:"tools",opacity:.5})||(0,e.createComponentVNode)(2,V.Icon,{className:"TitleBar__statusIcon",color:h(A),name:"eye"}),(0,e.createVNode)(1,"div","TitleBar__title",typeof T=="string"&&T===T.toLowerCase()&&(0,o.toTitleCase)(T)||T,0),(0,e.createVNode)(1,"div","TitleBar__dragZone",null,1,{onMousedown:function(){function M(D){return x&&E(D)}return M}()}),!1,!!x&&(0,e.createVNode)(1,"div","TitleBar__close TitleBar__clickable",Byond.IS_LTE_IE8?"x":"\xD7",0,{onclick:P})],0)}},84947:function(I,r,n){"use strict";r.__esModule=!0,r.Window=r.Pane=r.Layout=void 0;var e=n(73786);r.Layout=e.Layout;var a=n(55067);r.Pane=a.Pane;var t=n(82118);r.Window=t.Window},85955:function(I,r){"use strict";r.__esModule=!0,r.captureExternalLinks=void 0;/** +*/var s=(0,l.createLogger)("Window"),C=[400,600],g=r.Window=function(b){d(B,b);function B(){return b.apply(this,arguments)||this}var L=B.prototype;return L.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(s.log("mounting"),this.updateGeometry())}return w}(),L.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),L.updateGeometry=function(){function w(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:C},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),L.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,P=A.children,R=(0,f.useBackend)(this.context),M=R.config,D=R.suspended,j=(0,S.useDebug)(this.context),F=j.debugLayout,W=(0,t.useDispatch)(this.context),K=(T=M.window)==null?void 0:T.fancy,_=M.user&&(M.user.observer?M.status<k.UI_DISABLED:M.status<k.UI_INTERACTIVE);return(0,e.createComponentVNode)(2,c.Layout,{className:"Window",theme:x,children:[(0,e.createComponentVNode)(2,N,{className:"Window__titleBar",title:!D&&(E||(0,o.decodeHtmlEntities)(M.title)),status:M.status,fancy:K,onDragStart:p.dragStartHandler,onClose:function(){function $(){s.log("pressed close"),W((0,f.backendSuspendStart)())}return $}()}),(0,e.createVNode)(1,"div",(0,a.classes)(["Window__rest",F&&"debug-layout"]),[!D&&P,_&&(0,e.createVNode)(1,"div","Window__dimmer")],0),K&&(0,e.createFragment)([(0,e.createVNode)(1,"div","Window__resizeHandle__e",null,1,{onMousedown:(0,p.resizeStartHandler)(1,0)}),(0,e.createVNode)(1,"div","Window__resizeHandle__s",null,1,{onMousedown:(0,p.resizeStartHandler)(0,1)}),(0,e.createVNode)(1,"div","Window__resizeHandle__se",null,1,{onMousedown:(0,p.resizeStartHandler)(1,1)})],4)]})}return w}(),B}(e.Component),v=function(B){var L=B.className,w=B.fitted,T=B.children,A=i(B,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,c.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",L])},A,{children:w&&T||(0,e.createVNode)(1,"div","Window__contentPadding",T,0)})))};g.Content=v;var h=function(B){switch(B){case k.UI_INTERACTIVE:return"good";case k.UI_UPDATE:return"average";case k.UI_DISABLED:default:return"bad"}},N=function(B,L){var w=B.className,T=B.title,A=B.status,x=B.fancy,E=B.onDragStart,P=B.onClose,R=(0,t.useDispatch)(L);return(0,e.createVNode)(1,"div",(0,a.classes)(["TitleBar",w]),[A===void 0&&(0,e.createComponentVNode)(2,V.Icon,{className:"TitleBar__statusIcon",name:"tools",opacity:.5})||(0,e.createComponentVNode)(2,V.Icon,{className:"TitleBar__statusIcon",color:h(A),name:"eye"}),(0,e.createVNode)(1,"div","TitleBar__title",typeof T=="string"&&T===T.toLowerCase()&&(0,o.toTitleCase)(T)||T,0),(0,e.createVNode)(1,"div","TitleBar__dragZone",null,1,{onMousedown:function(){function M(D){return x&&E(D)}return M}()}),!1,!!x&&(0,e.createVNode)(1,"div","TitleBar__close TitleBar__clickable",Byond.IS_LTE_IE8?"x":"\xD7",0,{onclick:P})],0)}},84947:function(I,r,n){"use strict";r.__esModule=!0,r.Window=r.Pane=r.Layout=void 0;var e=n(73786);r.Layout=e.Layout;var a=n(55067);r.Pane=a.Pane;var t=n(82118);r.Window=t.Window},85955:function(I,r){"use strict";r.__esModule=!0,r.captureExternalLinks=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -258,11 +258,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=n(8156),k=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)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},y=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..."})]})})})},p=r.getRoutedComponent=function(){function l(c){var m=c.getState(),i=(0,a.selectBackend)(m),d=i.suspended,u=i.config;if(d)return S;if(u.refreshing)return y;if(0)var s;for(var v=u==null?void 0:u.interface,g=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],C;!C&&g.length>0;){var h=g.shift(),N=h(v);try{C=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!C)return k("notFound",v);var b=C[v];return b||k("missingExport",v)}return l}()},79143:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),f=n(91819),V=n(39241),k=n(50175);function S(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,y(d,u)}function y(d,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(v,g){return v.__proto__=g,v}return s}(),y(d,u)}/** + */var V=n(8156),k=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)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},y=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..."})]})})})},p=r.getRoutedComponent=function(){function l(c){var m=c.getState(),i=(0,a.selectBackend)(m),d=i.suspended,u=i.config;if(d)return S;if(u.refreshing)return y;if(0)var s;for(var C=u==null?void 0:u.interface,g=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],v;!v&&g.length>0;){var h=g.shift(),N=h(C);try{v=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return k("notFound",C);var b=v[C];return b||k("missingExport",C)}return l}()},79143:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),f=n(91819),V=n(39241),k=n(50175);function S(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,y(d,u)}function y(d,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),y(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,k.createLogger)("store"),l=r.configureStore=function(){function d(u){var s,v;u===void 0&&(u={});var g=u,C=g.sideEffects,h=C===void 0?!0:C,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),u.reducer]),b=h?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=u.middleware)==null?void 0:v.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),L=(0,a.createStore)(N,B);return window.__store__=L,window.__augmentStack__=m(L),L}return d}(),c=function(u){return function(s){return function(v){var g=v.type,C=v.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",v),s(v)}}},m=function(u){return function(s,v){var g,C;v?typeof v=="object"&&!v.stack&&(v.stack=s):(v=new Error(s.split("\n")[0]),v.stack=s),p.log("FatalError:",v);var h=u.getState(),N=h==null||(g=h.backend)==null?void 0:g.config,b=s;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:N==null||(C=N.client)==null?void 0:C.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),b}},i=r.StoreProvider=function(d){S(u,d);function u(){return d.apply(this,arguments)||this}var s=u.prototype;return s.getChildContext=function(){function v(){var g=this.props.store;return{store:g}}return v}(),s.render=function(){function v(){return this.props.children}return v}(),u}(t.Component)},90969:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** +*/var p=(0,k.createLogger)("store"),l=r.configureStore=function(){function d(u){var s,C;u===void 0&&(u={});var g=u,v=g.sideEffects,h=v===void 0?!0:v,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),u.reducer]),b=h?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((C=u.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),L=(0,a.createStore)(N,B);return window.__store__=L,window.__augmentStack__=m(L),L}return d}(),c=function(u){return function(s){return function(C){var g=C.type,v=C.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",C),s(C)}}},m=function(u){return function(s,C){var g,v;C?typeof C=="object"&&!C.stack&&(C.stack=s):(C=new Error(s.split("\n")[0]),C.stack=s),p.log("FatalError:",C);var h=u.getState(),N=h==null||(g=h.backend)==null?void 0:g.config,b=s;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:N==null||(v=N.client)==null?void 0:v.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),b}},i=r.StoreProvider=function(d){S(u,d);function u(){return d.apply(this,arguments)||this}var s=u.prototype;return s.getChildContext=function(){function C(){var g=this.props.store;return{store:g}}return C}(),s.render=function(){function C(){return this.props.children}return C}(),u}(t.Component)},90969:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -290,7 +290,7 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),p=y[0],l=y[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],i=c[1],d=(0,a.useLocalState)(S,"fs_fill",!0),u=d[0],s=d[1],v=(0,a.useLocalState)(S,"fs_title",!0),g=v[0],C=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 h(){return i(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return s(!u)}return h}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return C(!g)}return h}(),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:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),p=y[0],l=y[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],i=c[1],d=(0,a.useLocalState)(S,"fs_fill",!0),u=d[0],s=d[1],C=(0,a.useLocalState)(S,"fs_title",!0),g=C[0],v=C[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 h(){return i(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return s(!u)}return h}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return v(!g)}return h}(),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:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -310,7 +310,7 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function k(){return(0,e.createComponentVNode)(2,V)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(S,y){var p=(0,a.useLocalState)(y,"tabIndex",0),l=p[0],c=p[1],m=(0,a.useLocalState)(y,"tabProps",{}),i=m[0],d=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:i.vertical,onClick:function(){function u(){return d(Object.assign({},i,{vertical:!i.vertical}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:i.leftSlot,onClick:function(){function u(){return d(Object.assign({},i,{leftSlot:!i.leftSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:i.rightSlot,onClick:function(){function u(){return d(Object.assign({},i,{rightSlot:!i.rightSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:i.icon,onClick:function(){function u(){return d(Object.assign({},i,{icon:!i.icon}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:i.fluid,onClick:function(){function u(){return d(Object.assign({},i,{fluid:!i.fluid}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:i.leftAligned,onClick:function(){function u(){return d(Object.assign({},i,{leftAligned:!i.leftAligned}))}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:i.vertical,fluid:i.fluid,textAlign:i.leftAligned&&"left",children:f.map(function(u,s){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===l,icon:i.icon&&"info-circle",leftSlot:i.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:i.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return c(s)}return v}(),children:u},s)})})})],4)}},2938:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Tabs",render:function(){function k(){return(0,e.createComponentVNode)(2,V)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(S,y){var p=(0,a.useLocalState)(y,"tabIndex",0),l=p[0],c=p[1],m=(0,a.useLocalState)(y,"tabProps",{}),i=m[0],d=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:i.vertical,onClick:function(){function u(){return d(Object.assign({},i,{vertical:!i.vertical}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:i.leftSlot,onClick:function(){function u(){return d(Object.assign({},i,{leftSlot:!i.leftSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:i.rightSlot,onClick:function(){function u(){return d(Object.assign({},i,{rightSlot:!i.rightSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:i.icon,onClick:function(){function u(){return d(Object.assign({},i,{icon:!i.icon}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:i.fluid,onClick:function(){function u(){return d(Object.assign({},i,{fluid:!i.fluid}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:i.leftAligned,onClick:function(){function u(){return d(Object.assign({},i,{leftAligned:!i.leftAligned}))}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:i.vertical,fluid:i.fluid,textAlign:i.leftAligned&&"left",children:f.map(function(u,s){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===l,icon:i.icon&&"info-circle",leftSlot:i.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:i.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(s)}return C}(),children:u},s)})})})],4)}},2938:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -322,7 +322,7 @@ * @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}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(I,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};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,I.exports=a,a.id=33115},75168:function(I,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};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,I.exports=a,a.id=75168},8156:function(I,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AgentCard":66895,"./AgentCard.js":66895,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./CameraConsole220":64487,"./CameraConsole220.js":64487,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EmotePanel":85307,"./EmotePanel.js":85307,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./Jukebox":28847,"./Jukebox.tsx":28847,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./ModpacksList":71545,"./ModpacksList.js":71545,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./Photocopier220":82020,"./Photocopier220.js":82020,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TTSSeedsExplorer":61424,"./TTSSeedsExplorer.tsx":61424,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};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,I.exports=a,a.id=8156},69321:function(I,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};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,I.exports=a,a.id=69321},79474:function(I,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(I,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(I,r,n){"use strict";var e=n(62600),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(I,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),I.exports=function(V){f[o][V]=!0}},47158:function(I,r,n){"use strict";var e=n(13300).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(I,r,n){"use strict";var e=n(54341),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(I,r,n){"use strict";var e=n(66379),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(I,r,n){"use strict";var e=n(13586);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(I,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),V=n(3302),k=n(48615),S=n(36787),y=n(21650),p=n(60855),l=n(57301),c=n(54341),m=n(56379),i=n(91420),d=n(95558),u=n(76246),s=n(4471),v=s.enforce,g=s.get,C=t.Int8Array,h=C&&C.prototype,N=t.Uint8ClampedArray,b=N&&N.prototype,B=C&&m(C),L=h&&m(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!i&&k(t.opera)!=="Opera",R=!1,M,D,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},K=function(){function ae(se){if(!f(se))return!1;var he=k(se);return he==="DataView"||V(F,he)||V(W,he)}return ae}(),_=function ae(se){var he=m(se);if(f(he)){var ye=g(he);return ye&&V(ye,E)?ye[E]:ae(he)}},$=function(se){if(!f(se))return!1;var he=k(se);return V(F,he)||V(W,he)},z=function(se){if($(se))return se;throw new T("Target is not a typed array")},Y=function(se){if(o(se)&&(!i||c(B,se)))return se;throw new T(S(se)+" is not a typed array constructor")},Z=function(se,he,ye,Le){if(a){if(ye)for(var pe in F){var oe=t[pe];if(oe&&V(oe.prototype,se))try{delete oe.prototype[se]}catch(Q){try{oe.prototype[se]=he}catch(q){}}}(!L[se]||ye)&&p(L,se,ye?he:P&&h[se]||he,Le)}},ie=function(se,he,ye){var Le,pe;if(a){if(i){if(ye){for(Le in F)if(pe=t[Le],pe&&V(pe,se))try{delete pe[se]}catch(oe){}}if(!B[se]||ye)try{return p(B,se,ye?he:P&&B[se]||he)}catch(oe){}else return}for(Le in F)pe=t[Le],pe&&(!pe[se]||ye)&&p(pe,se,he)}};for(M in F)D=t[M],j=D&&D.prototype,j?v(j)[E]=D:P=!1;for(M in W)D=t[M],j=D&&D.prototype,j&&(v(j)[E]=D);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new T("Incorrect invocation")}return ae}(),P))for(M in F)t[M]&&i(t[M],B);if((!P||!L||L===w)&&(L=B.prototype,P))for(M in F)t[M]&&i(t[M].prototype,L);if(P&&m(b)!==L&&i(b,L),a&&!V(L,A)){R=!0,l(L,A,{configurable:!0,get:function(){function ae(){return f(this)?this[x]:void 0}return ae}()});for(M in F)t[M]&&y(t[M],x,M)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&x,aTypedArray:z,aTypedArrayConstructor:Y,exportTypedArrayMethod:Z,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:_,isView:K,isTypedArray:$,TypedArray:B,TypedArrayPrototype:L}},31284:function(I,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),V=n(21650),k=n(57301),S=n(26148),y=n(13586),p=n(14434),l=n(84501),c=n(74369),m=n(28968),i=n(48705),d=n(48350),u=n(56379),s=n(91420),v=n(39948),g=n(31170),C=n(43405),h=n(83826),N=n(15676),b=n(4471),B=f.PROPER,L=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=b.getterFor(w),R=b.getterFor(T),M=b.set,D=e[w],j=D,F=j&&j[A],W=e[T],K=W&&W[A],_=Object.prototype,$=e.Array,z=e.RangeError,Y=a(v),Z=a([].reverse),ie=d.pack,ae=d.unpack,se=function(ge){return[ge&255]},he=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Le=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return ie(i(ge),23,4)},oe=function(ge){return ie(ge,52,8)},Q=function(ge,ke,ve){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return ve(this)[ke]}return Se}()})},q=function(ge,ke,ve,Se){var we=R(ge),xe=m(ve),Oe=!!Se;if(xe+ke>we.byteLength)throw new z(E);var Ue=we.bytes,Ve=xe+we.byteOffset,re=g(Ue,Ve,Ve+ke);return Oe?re:Z(re)},ue=function(ge,ke,ve,Se,we,xe){var Oe=R(ge),Ue=m(ve),Ve=Se(+we),re=!!xe;if(Ue+ke>Oe.byteLength)throw new z(E);for(var le=Oe.bytes,Ce=Ue+Oe.byteOffset,de=0;de<ke;de++)le[Ce+de]=Ve[re?de:ke-de-1]};if(!o)j=function(){function fe(ge){p(this,F);var ke=m(ge);M(this,{type:w,bytes:Y($(ke),0),byteLength:ke}),t||(this.byteLength=ke,this.detached=!1)}return fe}(),F=j[A],W=function(){function fe(ge,ke,ve){p(this,K),p(ge,F);var Se=P(ge),we=Se.byteLength,xe=l(ke);if(xe<0||xe>we)throw new z("Wrong offset");if(ve=ve===void 0?we-xe:c(ve),xe+ve>we)throw new z(x);M(this,{type:T,buffer:ge,byteLength:ve,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=ve,this.byteOffset=xe)}return fe}(),K=W[A],t&&(Q(j,"byteLength",P),Q(W,"buffer",R),Q(W,"byteLength",R),Q(W,"byteOffset",R)),S(K,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return ae(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return ae(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setUint8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setInt16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){ue(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){ue(this,8,ge,oe,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&D.name!==w;!y(function(){D(1)})||!y(function(){new D(-1)})||y(function(){return new D,new D(1.5),new D(NaN),D.length!==1||me&&!L})?(j=function(){function fe(ge){return p(this,F),C(new D(m(ge)),this,j)}return fe}(),j[A]=F,F.constructor=j,h(j,D)):me&&L&&V(D,"name",w),s&&u(K)!==_&&s(K,_);var ne=new W(new j(2)),be=a(K.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),(ne.getInt8(0)||!ne.getInt8(1))&&S(K,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}N(j,w),N(W,T),I.exports={ArrayBuffer:j,DataView:W}},28332:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;I.exports=[].copyWithin||function(){function V(k,S){var y=e(this),p=t(y),l=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?p:a(m,p))-c,p-l),d=1;for(c<l&&l<c+i&&(d=-1,c+=i-1,l+=i-1);i-- >0;)c in y?y[l]=y[c]:o(y,l),l+=d,c+=d;return y}return V}()},39948:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);I.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,l=p===void 0?k:a(p,k);l>y;)V[y++]=f;return V}return o}()},16856:function(I,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");I.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(I,r,n){"use strict";var e=n(83207);I.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},45056:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),V=n(49632),k=n(83207),S=n(80750),y=n(45731),p=n(52984),l=Array;I.exports=function(){function c(m){var i=t(m),d=V(this),u=arguments.length,s=u>1?arguments[1]:void 0,v=s!==void 0;v&&(s=e(s,u>2?arguments[2]:void 0));var g=p(i),C=0,h,N,b,B,L,w;if(g&&!(this===l&&f(g)))for(B=y(i,g),L=B.next,N=d?new this:[];!(b=a(L,B)).done;C++)w=v?o(B,s,[b.value,C],!0):b.value,S(N,C,w);else for(h=k(i),N=d?new this(h):l(h);h>C;C++)w=v?s(i[C],C):i[C],S(N,C,w);return N.length=C,N}return c}()},33483:function(I,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(V){return function(k,S,y){var p=e(k),l=t(p),c=a(y,l),m;if(V&&S!==S){for(;l>c;)if(m=p[c++],m!==m)return!0}else for(;l>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},18539:function(I,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),V=n(51582),k=a([].push),S=function(p){var l=p===1,c=p===2,m=p===3,i=p===4,d=p===6,u=p===7,s=p===5||d;return function(v,g,C,h){for(var N=o(v),b=t(N),B=f(b),L=e(g,C),w=0,T=h||V,A=l?T(v,B):c||u?T(v,0):void 0,x,E;B>w;w++)if((s||w in b)&&(x=b[w],E=L(x,w,N),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:m||i?i:A}};I.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(I,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;I.exports=p?function(){function l(c){if(S)return e(k,this,arguments)||0;var m=a(this),i=o(m),d=i-1;for(arguments.length>1&&(d=V(d,t(arguments[1]))),d<0&&(d=i+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return l}():k},34924:function(I,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");I.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},56127:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(I,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,V=function(S){return function(y,p,l,c){var m=a(y),i=t(m),d=o(m);e(p);var u=S?d-1:0,s=S?-1:1;if(l<2)for(;;){if(u in i){c=i[u],u+=s;break}if(u+=s,S?u<0:d<=u)throw new f("Reduce of empty array with no initial value")}for(;S?u>=0:d>u;u+=s)u in i&&(c=p(c,i[u],u,m));return c}};I.exports={left:V(!1),right:V(!0)}},10779:function(I,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();I.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},31170:function(I,r,n){"use strict";var e=n(72908);I.exports=e([].slice)},91183:function(I,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,y,p;S<k;){for(p=S,y=f[S];p&&V(f[p-1],y)>0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var l=a(k/2),c=o(e(f,0,l),V),m=o(e(f,l),V),i=c.length,d=m.length,u=0,s=0;u<i||s<d;)f[u+s]=u<i&&s<d?V(c[u],m[s])<=0?c[u++]:m[s++]:u<i?c[u++]:m[s++];return f};I.exports=t},6516:function(I,r,n){"use strict";var e=n(59882),a=n(49632),t=n(66379),o=n(95558),f=o("species"),V=Array;I.exports=function(k){var S;return e(k)&&(S=k.constructor,a(S)&&(S===V||e(S.prototype))?S=void 0:t(S)&&(S=S[f],S===null&&(S=void 0))),S===void 0?V:S}},51582:function(I,r,n){"use strict";var e=n(6516);I.exports=function(a,t){return new(e(a))(t===0?0:t)}},80002:function(I,r,n){"use strict";var e=n(45418),a=n(65169);I.exports=function(t,o,f,V){try{return V?o(e(f)[0],f[1]):o(f)}catch(k){a(t,"throw",k)}}},1608:function(I,r,n){"use strict";var e=n(95558),a=e("iterator"),t=!1;try{var o=0,f={next:function(){function V(){return{done:!!o++}}return V}(),return:function(){function V(){t=!0}return V}()};f[a]=function(){return this},Array.from(f,function(){throw 2})}catch(V){}I.exports=function(V,k){try{if(!k&&!t)return!1}catch(p){return!1}var S=!1;try{var y={};y[a]=function(){return{next:function(){function p(){return{done:S=!0}}return p}()}},V(y)}catch(p){}return S}},8649:function(I,r,n){"use strict";var e=n(72908),a=e({}.toString),t=e("".slice);I.exports=function(o){return t(a(o),8,-1)}},48615:function(I,r,n){"use strict";var e=n(41936),a=n(53664),t=n(8649),o=n(95558),f=o("toStringTag"),V=Object,k=t(function(){return arguments}())==="Arguments",S=function(p,l){try{return p[l]}catch(c){}};I.exports=e?t:function(y){var p,l,c;return y===void 0?"Undefined":y===null?"Null":typeof(l=S(p=V(y),f))=="string"?l:k?t(p):(c=t(p))==="Object"&&a(p.callee)?"Arguments":c}},42384:function(I,r,n){"use strict";var e=n(15439),a=n(57301),t=n(26148),o=n(8942),f=n(14434),V=n(62695),k=n(20453),S=n(21436),y=n(32214),p=n(92468),l=n(16361),c=n(66526).fastKey,m=n(4471),i=m.set,d=m.getterFor;I.exports={getConstructor:function(){function u(s,v,g,C){var h=s(function(w,T){f(w,N),i(w,{type:v,index:e(null),first:void 0,last:void 0,size:0}),l||(w.size=0),V(T)||k(T,w[C],{that:w,AS_ENTRIES:g})}),N=h.prototype,b=d(v),B=function(){function w(T,A,x){var E=b(T),P=L(T,A),R,M;return P?P.value=x:(E.last=P={index:M=c(A,!0),key:A,value:x,previous:R=E.last,next:void 0,removed:!1},E.first||(E.first=P),R&&(R.next=P),l?E.size++:T.size++,M!=="F"&&(E.index[M]=P)),T}return w}(),L=function(){function w(T,A){var x=b(T),E=c(A),P;if(E!=="F")return x.index[E];for(P=x.first;P;P=P.next)if(P.key===A)return P}return w}();return t(N,{clear:function(){function w(){for(var T=this,A=b(T),x=A.first;x;)x.removed=!0,x.previous&&(x.previous=x.previous.next=void 0),x=x.next;A.first=A.last=void 0,A.index=e(null),l?A.size=0:T.size=0}return w}(),delete:function(){function w(T){var A=this,x=b(A),E=L(A,T);if(E){var P=E.next,R=E.previous;delete x.index[E.index],E.removed=!0,R&&(R.next=P),P&&(P.previous=R),x.first===E&&(x.first=P),x.last===E&&(x.last=R),l?x.size--:A.size--}return!!E}return w}(),forEach:function(){function w(T){for(var A=b(this),x=o(T,arguments.length>1?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 w}(),has:function(){function w(T){return!!L(this,T)}return w}()}),t(N,g?{get:function(){function w(T){var A=L(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(N,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return u}(),setStrong:function(){function u(s,v,g){var C=v+" Iterator",h=d(v),N=d(C);S(s,v,function(b,B){i(this,{type:C,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=N(this),B=b.kind,L=b.last;L&&L.removed;)L=L.previous;return!b.target||!(b.last=L=L?L.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},g?"entries":"values",!g,!0),p(v)}return u}()}},19250:function(I,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),V=n(62695),k=n(66379),S=n(20453),y=n(18539),p=n(3302),l=n(4471),c=l.set,m=l.getterFor,i=y.find,d=y.findIndex,u=e([].splice),s=0,v=function(N){return N.frozen||(N.frozen=new g)},g=function(){this.entries=[]},C=function(N,b){return i(N.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(N){var b=C(this,N);if(b)return b[1]}return h}(),has:function(){function h(N){return!!C(this,N)}return h}(),set:function(){function h(N,b){var B=C(this,N);B?B[1]=b:this.entries.push([N,b])}return h}(),delete:function(){function h(N){var b=d(this.entries,function(B){return B[0]===N});return~b&&u(this.entries,b,1),!!~b}return h}()},I.exports={getConstructor:function(){function h(N,b,B,L){var w=N(function(E,P){o(E,T),c(E,{type:b,id:s++,frozen:void 0}),V(P)||S(P,E[L],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(P,R,M){var D=A(P),j=t(f(R),!0);return j===!0?v(D).set(R,M):j[D.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?v(R).delete(P):M&&p(M,R.id)&&delete M[R.id]}return E}(),has:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?v(R).has(P):M&&p(M,R.id)}return E}()}),a(T,B?{get:function(){function E(P){var R=A(this);if(k(P)){var M=t(P);return M===!0?v(R).get(P):M?M[R.id]:void 0}}return E}(),set:function(){function E(P,R){return x(this,P,R)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return h}()}},10609:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),V=n(66526),k=n(20453),S=n(14434),y=n(53664),p=n(62695),l=n(66379),c=n(13586),m=n(1608),i=n(15676),d=n(43405);I.exports=function(u,s,v){var g=u.indexOf("Map")!==-1,C=u.indexOf("Weak")!==-1,h=g?"set":"add",N=a[u],b=N&&N.prototype,B=N,L={},w=function(D){var j=t(b[D]);f(b,D,D==="add"?function(){function F(W){return j(this,W===0?0:W),this}return F}():D==="delete"?function(F){return C&&!l(F)?!1:j(this,F===0?0:F)}:D==="get"?function(){function F(W){return C&&!l(W)?void 0:j(this,W===0?0:W)}return F}():D==="has"?function(){function F(W){return C&&!l(W)?!1:j(this,W===0?0:W)}return F}():function(){function F(W,K){return j(this,W===0?0:W,K),this}return F}())},T=o(u,!y(N)||!(C||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=v.getConstructor(s,u,g,h),V.enable();else if(o(u,!0)){var A=new B,x=A[h](C?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new N(M)}),R=!C&&c(function(){for(var M=new N,D=5;D--;)M[h](D,D);return!M.has(-0)});P||(B=s(function(M,D){S(M,b);var j=d(new N,M,B);return p(D)||k(D,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(h),C&&b.clear&&delete b.clear}return L[u]=B,e({global:!0,constructor:!0,forced:B!==N},L),i(B,u),C||v.setStrong(B,u,g),B}},83826:function(I,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);I.exports=function(f,V,k){for(var S=a(V),y=o.f,p=t.f,l=0;l<S.length;l++){var c=S[l];!e(f,c)&&!(k&&e(k,c))&&y(f,c,p(V,c))}}},46339:function(I,r,n){"use strict";var e=n(95558),a=e("match");I.exports=function(t){var o=/./;try{"/./"[t](o)}catch(f){try{return o[a]=!1,"/./"[t](o)}catch(V){}}return!1}},62297:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},38017:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=/"/g,f=e("".replace);I.exports=function(V,k,S,y){var p=t(a(V)),l="<"+k;return S!==""&&(l+=" "+S+'="'+f(t(y),o,""")+'"'),l+">"+p+"</"+k+">"}},32214:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},21650:function(I,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);I.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},73970:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(I,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);I.exports=function(o,f,V){var k=e(f);k in o?a.f(o,k,t(0,V)):o[k]=V}},20228:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),l=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),i=e(k.getUTCMinutes),d=e(k.getUTCMonth),u=e(k.getUTCSeconds);I.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function s(){if(!f(y(this)))throw new o("Invalid time value");var v=this,g=l(v),C=m(v),h=g<0?"-":g>9999?"+":"";return h+t(V(g),h?6:4,0)+"-"+t(d(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(i(v),2,0)+":"+t(u(v),2,0)+"."+t(C,3,0)+"Z"}return s}():S},81603:function(I,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;I.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)}},57301:function(I,r,n){"use strict";var e=n(40773),a=n(8165);I.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)}},60855:function(I,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);I.exports=function(f,V,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)y?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(y=!0):delete f[V]}catch(l){}y?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(I,r,n){"use strict";var e=n(60855);I.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(I,r,n){"use strict";var e=n(26856),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(I,r,n){"use strict";var e=n(36787),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(I,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(f){return o?t.createElement(f):{}}},54579:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(I,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},52460:function(I,r,n){"use strict";var e=n(53437),a=n(86727);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(I,r,n){"use strict";var e=n(74247);I.exports=/MSIE|Trident/.test(e)},79034:function(I,r,n){"use strict";var e=n(74247);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(I,r,n){"use strict";var e=n(74247);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(I,r,n){"use strict";var e=n(26856),a=n(8649);I.exports=a(e.process)==="process"},71979:function(I,r,n){"use strict";var e=n(74247);I.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(I,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),I.exports=S},27204:function(I,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},38139:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(I,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),V=n(83826),k=n(23620);I.exports=function(S,y){var p=S.target,l=S.global,c=S.stat,m,i,d,u,s,v;if(l?i=e:c?i=e[p]||f(p,{}):i=(e[p]||{}).prototype,i)for(d in y){if(s=y[d],S.dontCallGetSet?(v=a(i,d),u=v&&v.value):u=i[d],m=k(l?d:p+(c?".":"#")+d,S.forced),!m&&u!==void 0){if(typeof s==typeof u)continue;V(s,u)}(S.sham||u&&u.sham)&&t(s,"sham",!0),o(i,d,s,S)}}},13586:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(I,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),V=n(21650),k=f("species"),S=RegExp.prototype;I.exports=function(y,p,l,c){var m=f(y),i=!o(function(){var v={};return v[m]=function(){return 7},""[y](v)!==7}),d=i&&!o(function(){var v=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return v=!0,null},g[m](""),!v});if(!i||!d||l){var u=e(/./[m]),s=p(m,""[y],function(v,g,C,h,N){var b=e(v),B=g.exec;return B===t||B===S.exec?i&&!N?{done:!0,value:u(g,C,h)}:{done:!0,value:b(C,g,h)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&V(S[m],"sham",!0)}},73132:function(I,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function V(k,S,y,p,l,c,m,i){for(var d=l,u=0,s=m?o(m,i):!1,v,g;u<p;)u in y&&(v=s?s(y[u],u,S):y[u],c>0&&e(v)?(g=a(v),d=V(k,S,v,g,d,c-1)-1):(t(d+1),k[d]=v),d++),u++;return d};I.exports=f},58199:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(I,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);I.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},86678:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(I,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),V=n(86678),k=Function,S=e([].concat),y=e([].join),p={},l=function(m,i,d){if(!o(p,i)){for(var u=[],s=0;s<i;s++)u[s]="a["+s+"]";p[i]=k("C,a","return new C("+y(u,",")+")")}return p[i](m,d)};I.exports=V?k.bind:function(){function c(m){var i=a(this),d=i.prototype,u=f(arguments,1),s=function(){function v(){var g=S(u,f(arguments));return this instanceof s?l(i,g.length,g):i.apply(m,g)}return v}();return t(d)&&(s.prototype=d),s}return c}()},20276:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype.call;I.exports=e?a.bind(a):function(){return a.apply(a,arguments)}},15340:function(I,r,n){"use strict";var e=n(16361),a=n(3302),t=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,f=a(t,"name"),V=f&&function(){function S(){}return S}().name==="something",k=f&&(!e||e&&o(t,"name").configurable);I.exports={EXISTS:f,PROPER:V,CONFIGURABLE:k}},53715:function(I,r,n){"use strict";var e=n(72908),a=n(79474);I.exports=function(t,o,f){try{return e(a(Object.getOwnPropertyDescriptor(t,o)[f]))}catch(V){}}},69935:function(I,r,n){"use strict";var e=n(8649),a=n(72908);I.exports=function(t){if(e(t)==="Function")return a(t)}},72908:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.call,o=e&&a.bind.bind(t,t);I.exports=e?o:function(f){return function(){return t.apply(f,arguments)}}},22070:function(I,r,n){"use strict";var e=n(26856),a=n(53664),t=function(f){return a(f)?f:void 0};I.exports=function(o,f){return arguments.length<2?t(e[o]):e[o]&&e[o][f]}},52984:function(I,r,n){"use strict";var e=n(48615),a=n(76540),t=n(62695),o=n(47730),f=n(95558),V=f("iterator");I.exports=function(k){if(!t(k))return a(k,V)||a(k,"@@iterator")||o[e(k)]}},45731:function(I,r,n){"use strict";var e=n(20276),a=n(79474),t=n(45418),o=n(36787),f=n(52984),V=TypeError;I.exports=function(k,S){var y=arguments.length<2?f(k):S;if(a(y))return t(e(y,k));throw new V(o(k)+" is not iterable")}},58226:function(I,r,n){"use strict";var e=n(72908),a=n(59882),t=n(53664),o=n(8649),f=n(8758),V=e([].push);I.exports=function(k){if(t(k))return k;if(a(k)){for(var S=k.length,y=[],p=0;p<S;p++){var l=k[p];typeof l=="string"?V(y,l):(typeof l=="number"||o(l)==="Number"||o(l)==="String")&&V(y,f(l))}var c=y.length,m=!0;return function(i,d){if(m)return m=!1,d;if(a(this))return d;for(var u=0;u<c;u++)if(y[u]===i)return d}}}},76540:function(I,r,n){"use strict";var e=n(79474),a=n(62695);I.exports=function(t,o){var f=t[o];return a(f)?void 0:e(f)}},56802:function(I,r,n){"use strict";var e=n(72908),a=n(63549),t=Math.floor,o=e("".charAt),f=e("".replace),V=e("".slice),k=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S=/\$([$&'`]|\d{1,2})/g;I.exports=function(y,p,l,c,m,i){var d=l+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=k),f(i,s,function(v,g){var C;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return V(p,0,l);case"'":return V(p,d);case"<":C=m[V(g,1,-1)];break;default:var h=+g;if(h===0)return v;if(h>u){var N=t(h/10);return N===0?v:N<=u?c[N-1]===void 0?o(g,1):c[N-1]+o(g,1):v}C=c[h-1]}return C===void 0?"":C})}},26856:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.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")()},3302:function(I,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},51653:function(I){"use strict";I.exports={}},66481:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(I,r,n){"use strict";var e=n(22070);I.exports=e("document","documentElement")},16109:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var l=r(p),c=p*8-y-1,m=(1<<c)-1,i=m>>1,d=y===23?e(2,-24)-e(2,-77):0,u=S<0||S===0&&1/S<0?1:0,s=0,v,g,C;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+i>=1?S+=d/C:S+=d*e(2,1-i),S*C>=2&&(v++,C/=2),v+i>=m?(g=0,v=m):v+i>=1?(g=(S*C-1)*e(2,y),v+=i):(g=S*e(2,i-1)*e(2,y),v=0));y>=8;)l[s++]=g&255,g/=256,y-=8;for(v=v<<y|g,c+=y;c>0;)l[s++]=v&255,v/=256,c-=8;return l[--s]|=u*128,l},V=function(S,y){var p=S.length,l=p*8-y-1,c=(1<<l)-1,m=c>>1,i=l-7,d=p-1,u=S[d--],s=u&127,v;for(u>>=7;i>0;)s=s*256+S[d--],i-=8;for(v=s&(1<<-i)-1,s>>=-i,i+=y;i>0;)v=v*256+S[d--],i-=8;if(s===0)s=1-m;else{if(s===c)return v?NaN:u?-1/0:1/0;v+=e(2,y),s-=m}return(u?-1:1)*v*e(2,s-y)};I.exports={pack:f,unpack:V}},80689:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},43405:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);I.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},92004:function(I,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),I.exports=t.inspectSource},66526:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),V=n(8165).f,k=n(60097),S=n(31024),y=n(58221),p=n(76246),l=n(58199),c=!1,m=p("meta"),i=0,d=function(N){V(N,m,{value:{objectID:"O"+i++,weakData:{}}})},u=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!y(N))return"F";if(!b)return"E";d(N)}return N[m].objectID},s=function(N,b){if(!f(N,m)){if(!y(N))return!0;if(!b)return!1;d(N)}return N[m].weakData},v=function(N){return l&&c&&y(N)&&!f(N,m)&&d(N),N},g=function(){C.enable=function(){},c=!0;var N=k.f,b=a([].splice),B={};B[m]=1,N(B).length&&(k.f=function(L){for(var w=N(L),T=0,A=w.length;T<A;T++)if(w[T]===m){b(w,T,1);break}return w},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:S.f}))},C=I.exports={enable:g,fastKey:u,getWeakData:s,onFreeze:v};t[m]=!0},4471:function(I,r,n){"use strict";var e=n(73844),a=n(26856),t=n(66379),o=n(21650),f=n(3302),V=n(70192),k=n(97223),S=n(51653),y="Object already initialized",p=a.TypeError,l=a.WeakMap,c,m,i,d=function(C){return i(C)?m(C):c(C,{})},u=function(C){return function(h){var N;if(!t(h)||(N=m(h)).type!==C)throw new p("Incompatible receiver, "+C+" required");return N}};if(e||V.state){var s=V.state||(V.state=new l);s.get=s.get,s.has=s.has,s.set=s.set,c=function(C,h){if(s.has(C))throw new p(y);return h.facade=C,s.set(C,h),h},m=function(C){return s.get(C)||{}},i=function(C){return s.has(C)}}else{var v=k("state");S[v]=!0,c=function(C,h){if(f(C,v))throw new p(y);return h.facade=C,o(C,v,h),h},m=function(C){return f(C,v)?C[v]:{}},i=function(C){return f(C,v)}}I.exports={set:c,get:m,has:i,enforce:d,getterFor:u}},48594:function(I,r,n){"use strict";var e=n(95558),a=n(47730),t=e("iterator"),o=Array.prototype;I.exports=function(f){return f!==void 0&&(a.Array===f||o[t]===f)}},59882:function(I,r,n){"use strict";var e=n(8649);I.exports=Array.isArray||function(){function a(t){return e(t)==="Array"}return a}()},76567:function(I,r,n){"use strict";var e=n(48615);I.exports=function(a){var t=e(a);return t==="BigInt64Array"||t==="BigUint64Array"}},53664:function(I){"use strict";var r=typeof document=="object"&&document.all;I.exports=typeof r=="undefined"&&r!==void 0?function(n){return typeof n=="function"||n===r}:function(n){return typeof n=="function"}},49632:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(48615),f=n(22070),V=n(92004),k=function(){},S=[],y=f("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=e(p.exec),c=!p.test(k),m=function(){function d(u){if(!t(u))return!1;try{return y(k,S,u),!0}catch(s){return!1}}return d}(),i=function(){function d(u){if(!t(u))return!1;switch(o(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(p,V(u))}catch(s){return!0}}return d}();i.sham=!0,I.exports=!y||a(function(){var d;return m(m.call)||!m(Object)||!m(function(){d=!0})||d})?i:m},75129:function(I,r,n){"use strict";var e=n(3302);I.exports=function(a){return a!==void 0&&(e(a,"value")||e(a,"writable"))}},23620:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=/#|\.prototype\./,o=function(p,l){var c=V[f(p)];return c===S?!0:c===k?!1:a(l)?e(l):!!l},f=o.normalize=function(y){return String(y).replace(t,".").toLowerCase()},V=o.data={},k=o.NATIVE="N",S=o.POLYFILL="P";I.exports=o},76117:function(I,r,n){"use strict";var e=n(66379),a=Math.floor;I.exports=Number.isInteger||function(){function t(o){return!e(o)&&isFinite(o)&&a(o)===o}return t}()},62695:function(I){"use strict";I.exports=function(r){return r==null}},66379:function(I,r,n){"use strict";var e=n(53664);I.exports=function(a){return typeof a=="object"?a!==null:e(a)}},62600:function(I,r,n){"use strict";var e=n(66379);I.exports=function(a){return e(a)||a===null}},90139:function(I){"use strict";I.exports=!1},28774:function(I,r,n){"use strict";var e=n(66379),a=n(8649),t=n(95558),o=t("match");I.exports=function(f){var V;return e(f)&&((V=f[o])!==void 0?!!V:a(f)==="RegExp")}},43474:function(I,r,n){"use strict";var e=n(22070),a=n(53664),t=n(54341),o=n(95343),f=Object;I.exports=o?function(V){return typeof V=="symbol"}:function(V){var k=e("Symbol");return a(k)&&t(k.prototype,f(V))}},20453:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(45418),o=n(36787),f=n(48594),V=n(83207),k=n(54341),S=n(45731),y=n(52984),p=n(65169),l=TypeError,c=function(d,u){this.stopped=d,this.result=u},m=c.prototype;I.exports=function(i,d,u){var s=u&&u.that,v=!!(u&&u.AS_ENTRIES),g=!!(u&&u.IS_RECORD),C=!!(u&&u.IS_ITERATOR),h=!!(u&&u.INTERRUPTED),N=e(d,s),b,B,L,w,T,A,x,E=function(M){return b&&p(b,"normal",M),new c(!0,M)},P=function(M){return v?(t(M),h?N(M[0],M[1],E):N(M[0],M[1])):h?N(M,E):N(M)};if(g)b=i.iterator;else if(C)b=i;else{if(B=y(i),!B)throw new l(o(i)+" is not iterable");if(f(B)){for(L=0,w=V(i);w>L;L++)if(T=P(i[L]),T&&k(m,T))return T;return new c(!1)}b=S(i,B)}for(A=g?i.next:b.next;!(x=a(A,b)).done;){try{T=P(x.value)}catch(R){p(b,"throw",R)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},65169:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);I.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw V;if(S)throw k;return a(k),V}},41903:function(I,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),V=function(){return this};I.exports=function(k,S,y,p){var l=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,l,!1,!0),f[l]=V,k}},21436:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),V=n(41903),k=n(56379),S=n(91420),y=n(15676),p=n(21650),l=n(60855),c=n(95558),m=n(47730),i=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=i.IteratorPrototype,v=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),C="keys",h="values",N="entries",b=function(){return this};I.exports=function(B,L,w,T,A,x,E){V(w,L,T);var P=function(Y){if(Y===A&&F)return F;if(!v&&Y&&Y in D)return D[Y];switch(Y){case C:return function(){function Z(){return new w(this,Y)}return Z}();case h:return function(){function Z(){return new w(this,Y)}return Z}();case N:return function(){function Z(){return new w(this,Y)}return Z}()}return function(){return new w(this)}},R=L+" Iterator",M=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],F=!v&&j||P(A),W=L==="Array"&&D.entries||j,K,_,$;if(W&&(K=k(W.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==s&&(S?S(K,s):f(K[g])||l(K,g,b)),y(K,R,!0,!0),t&&(m[R]=b))),d&&A===h&&j&&j.name!==h&&(!t&&u?p(D,"name",h):(M=!0,F=function(){function z(){return a(j,this)}return z}())),A)if(_={values:P(h),keys:x?F:P(C),entries:P(N)},E)for($ in _)(v||M||!($ in D))&&l(D,$,_[$]);else e({target:L,proto:!0,forced:v||M},_);return(!t||E)&&D[g]!==F&&l(D,g,F,{name:A}),m[L]=F,_}},83665:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),V=n(60855),k=n(95558),S=n(90139),y=k("iterator"),p=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):p=!0);var i=!t(l)||e(function(){var d={};return l[y].call(d)!==d});i?l={}:S&&(l=o(l)),a(l[y])||V(l,y,function(){return this}),I.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},47730:function(I){"use strict";I.exports={}},83207:function(I,r,n){"use strict";var e=n(74369);I.exports=function(a){return e(a.length)}},40773:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),V=n(15340).CONFIGURABLE,k=n(92004),S=n(4471),y=S.enforce,p=S.get,l=String,c=Object.defineProperty,m=e("".slice),i=e("".replace),d=e([].join),u=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),s=String(String).split("String"),v=I.exports=function(g,C,h){m(l(C),0,7)==="Symbol("&&(C="["+i(l(C),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(g,"name")||V&&g.name!==C)&&(f?c(g,"name",{value:C,configurable:!0}):g.name=C),u&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var N=y(g);return o(N,"source")||(N.source=d(s,typeof C=="string"?C:"")),g};Function.prototype.toString=v(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},80563:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.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},27509:function(I,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};I.exports=function(V,k,S,y){var p=+V,l=a(p),c=e(p);if(l<y)return c*f(l/y/k)*y*k;var m=(1+k/t)*l,i=m-(m-l);return i>S||i!==i?c*(1/0):c*i}},48705:function(I,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},74347:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(I){"use strict";var r=Math.log;I.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}()},30585:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(I,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),V=n(25184),k=n(79034),S=n(71979),y=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),d,u,s,v,g;if(!i){var C=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=C.get();)try{B()}catch(L){throw C.head&&d(),L}b&&b.enter()};!V&&!y&&!S&&p&&l?(u=!0,s=l.createTextNode(""),new p(h).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!k&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,g=t(v.then,v),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),i=function(b){C.head||d(),C.add(b)}}I.exports=i},14187:function(I,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,y){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=y}),this.resolve=e(V),this.reject=e(k)};I.exports.f=function(o){return new t(o)}},75816:function(I,r,n){"use strict";var e=n(28774),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(I,r,n){"use strict";var e=n(26856),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,V=n(47410),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,l=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});I.exports=l?function(){function c(m){var i=f(o(m)),d=S(i);return d===0&&k(i,0)==="-"?-0:d}return c}():S},41148:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,V=n(47410),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||y&&!a(function(){k(Object(y))});I.exports=c?function(){function m(i,d){var u=f(o(i));return k(u,d>>>0||(l(p,u)?16:10))}return m}():k},23554:function(I,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),V=n(61791),k=n(10409),S=n(63549),y=n(80689),p=Object.assign,l=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(l({},"a",{enumerable:!0,get:function(){function s(){l(this,"b",{value:3,enumerable:!1})}return s}()}),{b:2})).b!==1)return!0;var m={},i={},d=Symbol("assign detection"),u="abcdefghijklmnopqrst";return m[d]=7,u.split("").forEach(function(s){i[s]=s}),p({},m)[d]!==7||f(p({},i)).join("")!==u})?function(){function m(i,d){for(var u=S(i),s=arguments.length,v=1,g=V.f,C=k.f;s>v;)for(var h=y(arguments[v++]),N=g?c(f(h),g(h)):f(h),b=N.length,B=0,L;b>B;)L=N[B++],(!e||t(C,h,L))&&(u[L]=h[L]);return u}return m}():p},15439:function(I,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),V=n(55642),k=n(97223),S=">",y="<",p="prototype",l="script",c=k("IE_PROTO"),m=function(){},i=function(C){return y+l+S+C+y+"/"+l+S},d=function(C){C.write(i("")),C.close();var h=C.parentWindow.Object;return C=null,h},u=function(){var C=V("iframe"),h="java"+l+":",N;return C.style.display="none",f.appendChild(C),C.src=String(h),N=C.contentWindow.document,N.open(),N.write(i("document.F=Object")),N.close(),N.F},s,v=function(){try{s=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[c]=!0,I.exports=Object.create||function(){function g(C,h){var N;return C!==null?(m[p]=e(C),N=new m,m[p]=null,N[c]=C):N=v(),h===void 0?N:a.f(N,h)}return g}()},55119:function(I,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),V=n(99869);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),l=V(y),c=l.length,m=0,i;c>m;)t.f(S,i=l[m++],p[i]);return S}return k}()},8165:function(I,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",l="writable";r.f=e?t?function(){function c(m,i,d){if(o(m),i=f(i),o(d),typeof m=="function"&&i==="prototype"&&"value"in d&&l in d&&!d[l]){var u=S(m,i);u&&u[l]&&(m[i]=d.value,d={configurable:p in d?d[p]:u[p],enumerable:y in d?d[y]:u[y],writable:!1})}return k(m,i,d)}return c}():k:function(){function c(m,i,d){if(o(m),i=f(i),o(d),a)try{return k(m,i,d)}catch(u){}if("get"in d||"set"in d)throw new V("Accessors not supported");return"value"in d&&(m[i]=d.value),m}return c}()},19765:function(I,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),V=n(72445),k=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(l,c){if(l=f(l),c=V(c),S)try{return y(l,c)}catch(m){}if(k(l,c))return o(!a(t.f,l,c),l[c])}return p}()},31024:function(I,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(y){return o(f)}};I.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},60097:function(I,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},61791:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(I,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),V=o("IE_PROTO"),k=Object,S=k.prototype;I.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,V))return p[V];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof k?S:null}},58221:function(I,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,V=e(function(){f(1)});I.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},54341:function(I,r,n){"use strict";var e=n(72908);I.exports=e({}.isPrototypeOf)},49871:function(I,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),V=e([].push);I.exports=function(k,S){var y=t(k),p=0,l=[],c;for(c in y)!a(f,c)&&a(y,c)&&V(l,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(l,c)||V(l,c));return l}},99869:function(I,r,n){"use strict";var e=n(49871),a=n(38139);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(I,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},6205:function(I,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);I.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(I,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},V;try{V=e(Object.prototype,"__proto__","set"),V(f,[]),o=f instanceof Array}catch(k){}return function(){function k(S,y){return a(S),t(y),o?V(S,y):S.__proto__=y,S}return k}()}():void 0)},64266:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),V=n(54292),k=n(10409).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(m){return function(i){for(var d=V(i),u=f(d),s=p&&o(d)===null,v=u.length,g=0,C=[],h;v>g;)h=u[g++],(!e||(s?h in d:S(d,h)))&&y(C,m?[h,d[h]]:d[h]);return C}};I.exports={entries:l(!0),values:l(!1)}},6625:function(I,r,n){"use strict";var e=n(41936),a=n(48615);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(I,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;I.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(I,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),V=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?V(y,p(S)):y}return k}()},55601:function(I,r,n){"use strict";var e=n(26856);I.exports=e},73034:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(I,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),V=n(95558),k=n(52460),S=n(53437),y=n(90139),p=n(43541),l=a&&a.prototype,c=V("species"),m=!1,i=t(e.PromiseRejectionEvent),d=o("Promise",function(){var u=f(a),s=u!==String(a);if(!s&&p===66||y&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(u)){var v=new a(function(h){h(1)}),g=function(N){N(function(){},function(){})},C=v.constructor={};if(C[c]=g,m=v.then(function(){})instanceof g,!m)return!0}return!s&&(k||S)&&!i});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:i,SUBCLASSING:m}},3e3:function(I,r,n){"use strict";var e=n(26856);I.exports=e.Promise},61988:function(I,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);I.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},18182:function(I,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(I,r,n){"use strict";var e=n(8165).f;I.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(V){t[o]=V}return f}()})}},8274:function(I){"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}()},I.exports=r},59833:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),V=TypeError;I.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},59049:function(I,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),V=n(7624),k=n(15439),S=n(4471).get,y=n(18095),p=n(17329),l=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,i=a("".charAt),d=a("".indexOf),u=a("".replace),s=a("".slice),v=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||g||y||p;h&&(m=function(){function N(b){var B=this,L=S(B),w=t(b),T=L.raw,A,x,E,P,R,M,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=L.groups,F=g&&B.sticky,W=e(o,B),K=B.source,_=0,$=w;if(F&&(W=u(W,"y",""),d(W,"g")===-1&&(W+="g"),$=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",$=" "+$,_++),x=new RegExp("^(?:"+K+")",W)),C&&(x=new RegExp("^"+K+"$(?!\\s)",W)),v&&(E=B.lastIndex),P=e(c,F?x:B,$),F?P?(P.input=s(P.input,_),P[0]=s(P[0],_),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:v&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),C&&P&&P.length>1&&e(l,P[0],x,function(){for(R=1;R<arguments.length-2;R++)arguments[R]===void 0&&(P[R]=void 0)}),P&&j)for(P.groups=M=k(null),R=0;R<j.length;R++)D=j[R],M[D[0]]=P[D[1]];return P}return N}()),I.exports=m},41913:function(I,r,n){"use strict";var e=n(45418);I.exports=function(){var a=e(this),t="";return a.hasIndices&&(t+="d"),a.global&&(t+="g"),a.ignoreCase&&(t+="i"),a.multiline&&(t+="m"),a.dotAll&&(t+="s"),a.unicode&&(t+="u"),a.unicodeSets&&(t+="v"),a.sticky&&(t+="y"),t}},13980:function(I,r,n){"use strict";var e=n(20276),a=n(3302),t=n(54341),o=n(41913),f=RegExp.prototype;I.exports=function(V){var k=V.flags;return k===void 0&&!("flags"in f)&&!a(V,"flags")&&t(f,V)?e(o,V):k}},96472:function(I,r,n){"use strict";var e=n(13586),a=n(26856),t=a.RegExp,o=e(function(){var k=t("a","y");return k.lastIndex=2,k.exec("abcd")!==null}),f=o||e(function(){return!t("a","y").sticky}),V=o||e(function(){var k=t("^r","gy");return k.lastIndex=2,k.exec("str")!==null});I.exports={BROKEN_CARET:V,MISSED_STICKY:f,UNSUPPORTED_Y:o}},18095:function(I,r,n){"use strict";var e=n(13586),a=n(26856),t=a.RegExp;I.exports=e(function(){var o=t(".","s");return!(o.dotAll&&o.test("\n")&&o.flags==="s")})},17329:function(I,r,n){"use strict";var e=n(13586),a=n(26856),t=a.RegExp;I.exports=e(function(){var o=t("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},305:function(I,r,n){"use strict";var e=n(62695),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),V=n(31170),k=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,l){var c=l?2:1;return y?function(m,i){var d=k(arguments.length,1)>c,u=t(m)?m:S(m),s=d?V(arguments,c):[],v=d?function(){a(u,this,s)}:u;return l?p(v,i):p(v)}:p}},92468:function(I,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");I.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(I,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");I.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},97223:function(I,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(I,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});I.exports=o},7624:function(I,r,n){"use strict";var e=n(90139),a=n(70192);(I.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(I,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");I.exports=function(V,k){var S=e(V).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},81626:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(I,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(l,c){var m=t(o(l)),i=a(c),d=m.length,u,s;return i<0||i>=d?p?"":void 0:(u=V(m,i),u<55296||u>56319||i+1===d||(s=V(m,i+1))<56320||s>57343?p?f(m,i):u:p?k(m,i,i+2):(u-55296<<10)+(s-56320)+65536)}};I.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(I,r,n){"use strict";var e=n(74247);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(I,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),V=e(o),k=e("".slice),S=Math.ceil,y=function(l){return function(c,m,i){var d=t(f(c)),u=a(m),s=d.length,v=i===void 0?" ":t(i),g,C;return u<=s||v===""?d:(g=u-s,C=V(v,S(g/v.length)),C.length>g&&(C=k(C,0,g)),l?d+C:C+d)}};I.exports={start:y(!1),end:y(!0)}},75463:function(I,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;I.exports=function(){function f(V){var k=a(t(this)),S="",y=e(V);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},45745:function(I,r,n){"use strict";var e=n(47913).end,a=n(15677);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";I.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(I,r,n){"use strict";var e=n(47913).start,a=n(15677);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};I.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(I,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(I,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);I.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(y){return e(k,this)},{arity:1})}},16010:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),V=n(13586),k=n(21474),S=n(31170),y=n(55642),p=n(92827),l=n(25184),c=n(86727),m=e.setImmediate,i=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,v=e.MessageChannel,g=e.String,C=0,h={},N="onreadystatechange",b,B,L,w;V(function(){b=e.location});var T=function(R){if(f(h,R)){var M=h[R];delete h[R],M()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),b.protocol+"//"+b.host)};(!m||!i)&&(m=function(){function P(R){p(arguments.length,1);var M=o(R)?R:s(R),D=S(arguments,1);return h[++C]=function(){a(M,void 0,D)},B(C),C}return P}(),i=function(){function P(R){delete h[R]}return P}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:v&&!l?(L=new v,w=L.port2,L.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in y("script")?B=function(R){k.appendChild(y("script"))[N]=function(){k.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),I.exports={set:m,clear:i}},7950:function(I,r,n){"use strict";var e=n(72908);I.exports=e(1 .valueOf)},39531:function(I,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;I.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},73873:function(I,r,n){"use strict";var e=n(9560),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(I,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},54292:function(I,r,n){"use strict";var e=n(80689),a=n(305);I.exports=function(t){return e(a(t))}},84501:function(I,r,n){"use strict";var e=n(54037);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(I,r,n){"use strict";var e=n(84501),a=Math.min;I.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(I,r,n){"use strict";var e=n(305),a=Object;I.exports=function(t){return a(e(t))}},45476:function(I,r,n){"use strict";var e=n(70685),a=RangeError;I.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(I,r,n){"use strict";var e=n(84501),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(I,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),V=n(95558),k=TypeError,S=V("toPrimitive");I.exports=function(y,p){if(!a(y)||t(y))return y;var l=o(y,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},72445:function(I,r,n){"use strict";var e=n(9560),a=n(43474);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(I,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},8758:function(I,r,n){"use strict";var e=n(48615),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),V=n(30432),k=n(31284),S=n(14434),y=n(73970),p=n(21650),l=n(76117),c=n(74369),m=n(28968),i=n(45476),d=n(52834),u=n(72445),s=n(3302),v=n(48615),g=n(66379),C=n(43474),h=n(15439),N=n(54341),b=n(91420),B=n(60097).f,L=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),R=n(4471),M=n(43405),D=R.get,j=R.set,F=R.enforce,W=x.f,K=E.f,_=a.RangeError,$=k.ArrayBuffer,z=$.prototype,Y=k.DataView,Z=V.NATIVE_ARRAY_BUFFER_VIEWS,ie=V.TYPED_ARRAY_TAG,ae=V.TypedArray,se=V.TypedArrayPrototype,he=V.isTypedArray,ye="BYTES_PER_ELEMENT",Le="Wrong length",pe=function(ne,be){A(ne,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},oe=function(ne){var be;return N(z,ne)||(be=v(ne))==="ArrayBuffer"||be==="SharedArrayBuffer"},Q=function(ne,be){return he(ne)&&!C(be)&&be in ne&&l(+be)&&be>=0},q=function(){function me(ne,be){return be=u(be),Q(ne,be)?y(2,ne[be]):K(ne,be)}return me}(),ue=function(){function me(ne,be,fe){return be=u(be),Q(ne,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(ne[be]=fe.value,ne):W(ne,be,fe)}return me}();o?(Z||(E.f=q,x.f=ue,pe(se,"buffer"),pe(se,"byteOffset"),pe(se,"byteLength"),pe(se,"length")),e({target:"Object",stat:!0,forced:!Z},{getOwnPropertyDescriptor:q,defineProperty:ue}),I.exports=function(me,ne,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,ve="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},Ue=function(de,Ne){var Ae=D(de);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(de,Ne,Ae){var De=D(de);De.view[ve](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},re=function(de,Ne){W(de,Ne,{get:function(){function Ae(){return Ue(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};Z?f&&(we=ne(function(Ce,de,Ne,Ae){return S(Ce,xe),M(function(){return g(de)?oe(de)?Ae!==void 0?new Se(de,i(Ne,fe),Ae):Ne!==void 0?new Se(de,i(Ne,fe)):new Se(de):he(de)?P(we,de):t(L,we,de):new Se(m(de))}(),Ce,we)}),b&&b(we,ae),w(B(Se),function(Ce){Ce in we||p(we,Ce,Se[Ce])}),we.prototype=xe):(we=ne(function(Ce,de,Ne,Ae){S(Ce,xe);var De=0,je=0,Ke,We,He;if(!g(de))He=m(de),We=He*fe,Ke=new $(We);else if(oe(de)){Ke=de,je=i(Ne,fe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%fe)throw new _(Le);if(We=Ge-je,We<0)throw new _(Le)}else if(We=c(Ae)*fe,We+je>Ge)throw new _(Le);He=We/fe}else return he(de)?P(we,de):t(L,we,de);for(j(Ce,{buffer:Ke,byteOffset:je,byteLength:We,length:He,view:new Y(Ke)});De<He;)re(Ce,De++)}),b&&b(we,ae),xe=we.prototype=h(se)),xe.constructor!==we&&p(xe,"constructor",we),F(xe).TypedArrayConstructor=we,ie&&p(xe,ie,ge);var le=we!==Se;Oe[ge]=we,e({global:!0,constructor:!0,forced:le,sham:!Z},Oe),ye in we||p(we,ye,fe),ye in xe||p(xe,ye,fe),T(ge)}):I.exports=function(){}},45410:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(1608),o=n(30432).NATIVE_ARRAY_BUFFER_VIEWS,f=e.ArrayBuffer,V=e.Int8Array;I.exports=!o||!a(function(){V(1)})||!a(function(){new V(-1)})||!t(function(k){new V,new V(null),new V(1.5),new V(k)},!0)||a(function(){return new V(new f(2),1,void 0).length!==1})},85710:function(I,r,n){"use strict";var e=n(21465),a=n(9230);I.exports=function(t,o){return e(a(t),o)}},12778:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(48218),o=n(63549),f=n(83207),V=n(45731),k=n(52984),S=n(48594),y=n(76567),p=n(30432).aTypedArrayConstructor,l=n(73873);I.exports=function(){function c(m){var i=t(this),d=o(m),u=arguments.length,s=u>1?arguments[1]:void 0,v=s!==void 0,g=k(d),C,h,N,b,B,L,w,T;if(g&&!S(g))for(w=V(d,g),T=w.next,d=[];!(L=a(T,w)).done;)d.push(L.value);for(v&&u>2&&(s=e(s,arguments[2])),h=f(d),N=new(p(i))(h),b=y(N),C=0;h>C;C++)B=v?s(d[C],C):d[C],N[C]=b?l(B):+B;return N}return c}()},9230:function(I,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(f){return t(a(f,o(f)))}},76246:function(I,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(I,r,n){"use strict";var e=n(16361),a=n(13586);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n<e)throw new r("Not enough arguments");return n}},73844:function(I,r,n){"use strict";var e=n(26856),a=n(53664),t=e.WeakMap;I.exports=a(t)&&/native code/.test(String(t))},20614:function(I,r,n){"use strict";var e=n(55601),a=n(3302),t=n(15355),o=n(8165).f;I.exports=function(f){var V=e.Symbol||(e.Symbol={});a(V,f)||o(V,f,{value:t.f(f)})}},15355:function(I,r,n){"use strict";var e=n(95558);r.f=e},95558:function(I,r,n){"use strict";var e=n(26856),a=n(7624),t=n(3302),o=n(76246),f=n(61855),V=n(95343),k=e.Symbol,S=a("wks"),y=V?k.for||k:k&&k.withoutSetter||o;I.exports=function(p){return t(S,p)||(S[p]=f&&t(k,p)?k[p]:y("Symbol."+p)),S[p]}},47410:function(I){"use strict";I.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"},41365:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(31284),o=n(92468),f="ArrayBuffer",V=t[f],k=a[f];e({global:!0,constructor:!0,forced:k!==V},{ArrayBuffer:V}),o(f)},58874:function(I,r,n){"use strict";var e=n(3116),a=n(30432),t=a.NATIVE_ARRAY_BUFFER_VIEWS;e({target:"ArrayBuffer",stat:!0,forced:!t},{isView:a.isView})},85806:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(13586),o=n(31284),f=n(45418),V=n(39531),k=n(74369),S=n(83604),y=o.ArrayBuffer,p=o.DataView,l=p.prototype,c=a(y.prototype.slice),m=a(l.getUint8),i=a(l.setUint8),d=t(function(){return!new y(2).slice(1,void 0).byteLength});e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d},{slice:function(){function u(s,v){if(c&&v===void 0)return c(f(this),s);for(var g=f(this).byteLength,C=V(s,g),h=V(v===void 0?g:v,g),N=new(S(this,y))(k(h-C)),b=new p(this),B=new p(N),L=0;C<h;)i(B,L++,m(b,C++));return N}return u}()})},75836:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(59882),o=n(66379),f=n(63549),V=n(83207),k=n(54579),S=n(80750),y=n(51582),p=n(34924),l=n(95558),c=n(43541),m=l("isConcatSpreadable"),i=c>=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(v){if(!o(v))return!1;var g=v[m];return g!==void 0?!!g:t(v)},u=!i||!p("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(v){var g=f(this),C=y(g,0),h=0,N,b,B,L,w;for(N=-1,B=arguments.length;N<B;N++)if(w=N===-1?g:arguments[N],d(w))for(L=V(w),k(h+L),b=0;b<L;b++,h++)b in w&&S(C,h,w[b]);else k(h+1),S(C,h++,w);return C.length=h,C}return s}()})},33901:function(I,r,n){"use strict";var e=n(3116),a=n(28332),t=n(98759);e({target:"Array",proto:!0},{copyWithin:a}),t("copyWithin")},85803:function(I,r,n){"use strict";var e=n(3116),a=n(18539).every,t=n(56127),o=t("every");e({target:"Array",proto:!0,forced:!o},{every:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},7216:function(I,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(I,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(I,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},26632:function(I,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},14064:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),V=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),l;return t(S),l=V(y,0),l.length=a(l,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return k}()})},55222:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),V=n(51582);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),l=V(y,0);return l.length=a(l,y,y,p,0,S===void 0?1:f(S)),l}return k}()})},68616:function(I,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(I,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(I,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},92654:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,y,p)||0:t(this,y,p)}return S}()})},58423:function(I,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(I,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,V=n(21436),k=n(32214),S=n(90139),y=n(16361),p="Array Iterator",l=o.set,c=o.getterFor(p);I.exports=V(Array,"Array",function(i,d){l(this,{type:p,target:e(i),index:0,kind:d})},function(){var i=c(this),d=i.target,u=i.index++;if(!d||u>=d.length)return i.target=void 0,k(void 0,!0);switch(i.kind){case"keys":return k(u,!1);case"values":return k(d[u],!1)}return k([u,d[u]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(i){}},37808:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return V(o(this),p===void 0?",":p)}return y}()})},2509:function(I,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(I,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},56913:function(I,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(I,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},24077:function(I,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),V=n(83207),k=n(54292),S=n(80750),y=n(95558),p=n(34924),l=n(31170),c=p("slice"),m=y("species"),i=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,v){var g=k(this),C=V(g),h=f(s,C),N=f(v===void 0?C:v,C),b,B,L;if(a(g)&&(b=g.constructor,t(b)&&(b===i||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===i||b===void 0))return l(g,h,N);for(B=new(b===void 0?i:b)(d(N-h,0)),L=0;h<N;h++,L++)h in g&&S(B,L,g[h]);return B.length=L,B}return u}()})},60230:function(I,r,n){"use strict";var e=n(3116),a=n(18539).some,t=n(56127),o=t("some");e({target:"Array",proto:!0,forced:!o},{some:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},43430:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),V=n(81245),k=n(8758),S=n(13586),y=n(91183),p=n(56127),l=n(31574),c=n(88836),m=n(43541),i=n(27204),d=[],u=a(d.sort),s=a(d.push),v=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),C=p("sort"),h=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(i)return i<603;var B="",L,w,T,A;for(L=65;L<76;L++){switch(w=String.fromCharCode(L),L){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;A<d.length;A++)w=d[A].k.charAt(0),B.charAt(B.length-1)!==w&&(B+=w);return B!=="DGBEFHACIJK"}}),N=v||!g||!C||!h,b=function(L){return function(w,T){return T===void 0?-1:w===void 0?1:L!==void 0?+L(w,T)||0:k(w)>k(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(L){L!==void 0&&t(L);var w=o(this);if(h)return L===void 0?u(w):u(w,L);var T=[],A=f(w),x,E;for(E=0;E<A;E++)E in w&&s(T,w[E]);for(y(T,b(L)),x=f(T),E=0;E<x;)w[E]=T[E++];for(;E<A;)V(w,E++);return w}return B}()})},53407:function(I,r,n){"use strict";var e=n(92468);e("Array")},69220:function(I,r,n){"use strict";var e=n(3116),a=n(63549),t=n(39531),o=n(84501),f=n(83207),V=n(10779),k=n(54579),S=n(51582),y=n(80750),p=n(81245),l=n(34924),c=l("splice"),m=Math.max,i=Math.min;e({target:"Array",proto:!0,forced:!c},{splice:function(){function d(u,s){var v=a(this),g=f(v),C=t(u,g),h=arguments.length,N,b,B,L,w,T;for(h===0?N=b=0:h===1?(N=0,b=g-C):(N=h-2,b=i(m(o(s),0),g-C)),k(g+N-b),B=S(v,b),L=0;L<b;L++)w=C+L,w in v&&y(B,L,v[w]);if(B.length=b,N<b){for(L=C;L<g-b;L++)w=L+b,T=L+N,w in v?v[T]=v[w]:p(v,T);for(L=g;L>g-b+N;L--)p(v,L-1)}else if(N>b)for(L=g-b;L>C;L--)w=L+b-1,T=L+N-1,w in v?v[T]=v[w]:p(v,T);for(L=0;L<N;L++)v[L+C]=arguments[L+2];return V(v,g-b+N),B}return d}()})},55784:function(I,r,n){"use strict";var e=n(98759);e("flatMap")},72978:function(I,r,n){"use strict";var e=n(98759);e("flat")},42860:function(I,r,n){"use strict";var e=n(3116),a=n(31284),t=n(11559);e({global:!0,constructor:!0,forced:!t},{DataView:a.DataView})},3521:function(I,r,n){"use strict";n(42860)},94961:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=Date,o=a(t.prototype.getTime);e({target:"Date",stat:!0},{now:function(){function f(){return o(new t)}return f}()})},91777:function(I,r,n){"use strict";var e=n(3116),a=n(20228);e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==a},{toISOString:a})},49615:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(9560),f=a(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){function V(){return 1}return V}()})!==1});e({target:"Date",proto:!0,arity:1,forced:f},{toJSON:function(){function V(k){var S=t(this),y=o(S,"number");return typeof y=="number"&&!isFinite(y)?null:S.toISOString()}return V}()})},70700:function(I,r,n){"use strict";var e=n(3302),a=n(60855),t=n(81603),o=n(95558),f=o("toPrimitive"),V=Date.prototype;e(V,f)||a(V,f,t)},31032:function(I,r,n){"use strict";var e=n(72908),a=n(60855),t=Date.prototype,o="Invalid Date",f="toString",V=e(t[f]),k=e(t.getTime);String(new Date(NaN))!==o&&a(t,f,function(){function S(){var y=k(this);return y===y?V(this):o}return S}())},83329:function(I,r,n){"use strict";var e=n(3116),a=n(82060);e({target:"Function",proto:!0,forced:Function.bind!==a},{bind:a})},15700:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(8165),o=n(54341),f=n(95558),V=n(40773),k=f("hasInstance"),S=Function.prototype;k in S||t.f(S,k,{value:V(function(y){if(!e(this)||!a(y))return!1;var p=this.prototype;return a(p)?o(p,y):y instanceof this},k)})},85783:function(I,r,n){"use strict";var e=n(16361),a=n(15340).EXISTS,t=n(72908),o=n(57301),f=Function.prototype,V=t(f.toString),k=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,S=t(k.exec),y="name";e&&!a&&o(f,y,{configurable:!0,get:function(){function p(){try{return S(k,V(this))[1]}catch(l){return""}}return p}()})},34233:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(20276),f=n(72908),V=n(13586),k=n(53664),S=n(43474),y=n(31170),p=n(58226),l=n(61855),c=String,m=a("JSON","stringify"),i=f(/./.exec),d=f("".charAt),u=f("".charCodeAt),s=f("".replace),v=f(1 .toString),g=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,h=/^[\uDC00-\uDFFF]$/,N=!l||V(function(){var w=a("Symbol")("stringify detection");return m([w])!=="[null]"||m({a:w})!=="{}"||m(Object(w))!=="{}"}),b=V(function(){return m("\uDF06\uD834")!=='"\\udf06\\ud834"'||m("\uDEAD")!=='"\\udead"'}),B=function(T,A){var x=y(arguments),E=p(A);if(!(!k(E)&&(T===void 0||S(T))))return x[1]=function(P,R){if(k(E)&&(R=o(E,this,c(P),R)),!S(R))return R},t(m,null,x)},L=function(T,A,x){var E=d(x,A-1),P=d(x,A+1);return i(C,T)&&!i(h,P)||i(h,T)&&!i(C,E)?"\\u"+v(u(T,0),16):T};m&&e({target:"JSON",stat:!0,arity:3,forced:N||b},{stringify:function(){function w(T,A,x){var E=y(arguments),P=t(N?B:m,null,E);return b&&typeof P=="string"?s(P,g,L):P}return w}()})},51430:function(I,r,n){"use strict";var e=n(26856),a=n(15676);a(e.JSON,"JSON",!0)},88826:function(I,r,n){"use strict";var e=n(10609),a=n(42384);e("Map",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},10944:function(I,r,n){"use strict";n(88826)},36418:function(I,r,n){"use strict";var e=n(3116),a=n(50169),t=Math.acosh,o=Math.log,f=Math.sqrt,V=Math.LN2,k=!t||Math.floor(t(Number.MAX_VALUE))!==710||t(1/0)!==1/0;e({target:"Math",stat:!0,forced:k},{acosh:function(){function S(y){var p=+y;return p<1?NaN:p>9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},68872:function(I,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},93105:function(I,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},1795:function(I,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},11121:function(I,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},18730:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},11624:function(I,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(I,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(I,r,n){"use strict";var e=n(3116),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 V(k,S){for(var y=0,p=0,l=arguments.length,c=0,m,i;p<l;)m=t(arguments[p++]),c<m?(i=c/m,y=y*i*i+1,c=m):m>0?(i=m/c,y+=i*i):y+=m;return c===1/0?1/0:c*o(y)}return V}()})},75213:function(I,r,n){"use strict";var e=n(3116),a=n(13586),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(V,k){var S=65535,y=+V,p=+k,l=S&y,c=S&p;return 0|l*c+((S&y>>>16)*c+l*(S&p>>>16)<<16>>>0)}return f}()})},4347:function(I,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(I,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(I,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},54468:function(I,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},95499:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},50929:function(I,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(I,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),V=n(72908),k=n(23620),S=n(3302),y=n(43405),p=n(54341),l=n(43474),c=n(9560),m=n(13586),i=n(60097).f,d=n(19765).f,u=n(8165).f,s=n(7950),v=n(47913).trim,g="Number",C=o[g],h=f[g],N=C.prototype,b=o.TypeError,B=V("".slice),L=V("".charCodeAt),w=function(M){var D=c(M,"number");return typeof D=="bigint"?D:T(D)},T=function(M){var D=c(M,"number"),j,F,W,K,_,$,z,Y;if(l(D))throw new b("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=v(D),j=L(D,0),j===43||j===45){if(F=L(D,2),F===88||F===120)return NaN}else if(j===48){switch(L(D,1)){case 66:case 98:W=2,K=49;break;case 79:case 111:W=8,K=55;break;default:return+D}for(_=B(D,2),$=_.length,z=0;z<$;z++)if(Y=L(_,z),Y<48||Y>K)return NaN;return parseInt(_,W)}}return+D},A=k(g,!C(" 0o1")||!C("0b1")||C("+0x1")),x=function(M){return p(N,M)&&m(function(){s(M)})},E=function(){function R(M){var D=arguments.length<1?0:C(w(M));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,D){for(var j=t?i(D):"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,W;j.length>F;F++)S(D,W=j[F])&&!S(M,W)&&u(M,W,d(D,W))};a&&h&&P(f[g],h),(A||a)&&P(f[g],C)},48211:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(I,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(I,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(I,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},82678:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),V=n(13586),k=RangeError,S=String,y=Math.floor,p=a(f),l=a("".slice),c=a(1 .toFixed),m=function g(C,h,N){return h===0?N:h%2===1?g(C,h-1,N*C):g(C*C,h/2,N)},i=function(C){for(var h=0,N=C;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},d=function(C,h,N){for(var b=-1,B=N;++b<6;)B+=h*C[b],C[b]=B%1e7,B=y(B/1e7)},u=function(C,h){for(var N=6,b=0;--N>=0;)b+=C[N],C[N]=y(b/h),b=b%h*1e7},s=function(C){for(var h=6,N="";--h>=0;)if(N!==""||h===0||C[h]!==0){var b=S(C[h]);N=N===""?b:N+p("0",7-b.length)+b}return N},v=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function g(C){var h=o(this),N=t(C),b=[0,0,0,0,0,0],B="",L="0",w,T,A,x;if(N<0||N>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=i(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=N;A>=7;)d(b,1e7,0),A-=7;for(d(b,m(10,A,1),0),A=w-1;A>=23;)u(b,8388608),A-=23;u(b,1<<A),d(b,1,1),u(b,2),L=s(b)}else d(b,0,T),d(b,1<<-w,0),L=s(b)+p("0",N);return N>0?(x=L.length,L=B+(x<=N?"0."+p("0",N-x)+L:l(L,0,x-N)+"."+l(L,x-N))):L=B+L,L}return g}()})},83403:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},4229:function(I,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),V=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){V.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},53822:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),V=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){V.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},14955:function(I,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(I,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return V&&o(y)?V(f(y)):y}return S}()})},81941:function(I,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},37245:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},8373:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),V=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,l=t(y),c={},m=0,i,d;l.length>m;)d=p(y,i=l[m++]),d!==void 0&&V(c,i,d);return c}return k}()})},81212:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(I,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},26054:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},49611:function(I,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},55750:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},57745:function(I,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(I,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(k){return t(a(k))}return V}()})},63429:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),V=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.get;while(p=V(p))}return S}()})},9558:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),V=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.set;while(p=V(p))}return S}()})},2420:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},19015:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},34137:function(I,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(I,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(I,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),V=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,l=o.f(p),c=l.resolve,m=l.reject,i=f(function(){var d=t(p.resolve),u=[],s=0,v=1;V(y,function(g){var C=s++,h=!1;v++,a(d,p,g).then(function(N){h||(h=!0,u[C]=N,--v||c(u))},m)}),--v||c(u)});return i.error&&m(i.value),l.promise}return S}()})},72188:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),V=n(53664),k=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&V(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},13779:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),V=n(60855),k=n(91420),S=n(15676),y=n(92468),p=n(79474),l=n(53664),c=n(66379),m=n(14434),i=n(83604),d=n(87073).set,u=n(60816),s=n(66481),v=n(73034),g=n(8274),C=n(4471),h=n(3e3),N=n(14657),b=n(14187),B="Promise",L=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,A=C.getterFor(B),x=C.set,E=h&&h.prototype,P=h,R=E,M=o.TypeError,D=o.document,j=o.process,F=b.f,W=F,K=!!(D&&D.createEvent&&o.dispatchEvent),_="unhandledrejection",$="rejectionhandled",z=0,Y=1,Z=2,ie=1,ae=2,se,he,ye,Le,pe=function(ve){var Se;return c(ve)&&l(Se=ve.then)?Se:!1},oe=function(ve,Se){var we=Se.value,xe=Se.state===Y,Oe=xe?ve.ok:ve.fail,Ue=ve.resolve,Ve=ve.reject,re=ve.domain,le,Ce,de;try{Oe?(xe||(Se.rejection===ae&&ne(Se),Se.rejection=ie),Oe===!0?le=we:(re&&re.enter(),le=Oe(we),re&&(re.exit(),de=!0)),le===ve.promise?Ve(new M("Promise-chain cycle")):(Ce=pe(le))?f(Ce,le,Ue,Ve):Ue(le)):Ve(we)}catch(Ne){re&&!de&&re.exit(),Ve(Ne)}},Q=function(ve,Se){ve.notified||(ve.notified=!0,u(function(){for(var we=ve.reactions,xe;xe=we.get();)oe(xe,ve);ve.notified=!1,Se&&!ve.rejection&&ue(ve)}))},q=function(ve,Se,we){var xe,Oe;K?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+ve])?Oe(xe):ve===_&&s("Unhandled promise rejection",we)},ue=function(ve){f(d,o,function(){var Se=ve.facade,we=ve.value,xe=me(ve),Oe;if(xe&&(Oe=v(function(){t?j.emit("unhandledRejection",we,Se):q(_,Se,we)}),ve.rejection=t||me(ve)?ae:ie,Oe.error))throw Oe.value})},me=function(ve){return ve.rejection!==ie&&!ve.parent},ne=function(ve){f(d,o,function(){var Se=ve.facade;t?j.emit("rejectionHandled",Se):q($,Se,ve.value)})},be=function(ve,Se,we){return function(xe){ve(Se,xe,we)}},fe=function(ve,Se,we){ve.done||(ve.done=!0,we&&(ve=we),ve.value=Se,ve.state=Z,Q(ve,!0))},ge=function ke(ve,Se,we){if(!ve.done){ve.done=!0,we&&(ve=we);try{if(ve.facade===Se)throw new M("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Oe={done:!1};try{f(xe,Se,be(ke,Oe,ve),be(fe,Oe,ve))}catch(Ue){fe(Oe,Ue,ve)}}):(ve.value=Se,ve.state=Y,Q(ve,!1))}catch(Oe){fe({done:!1},Oe,ve)}}};if(L&&(P=function(){function ke(ve){m(this,R),p(ve),f(se,this);var Se=A(this);try{ve(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=P.prototype,se=function(){function ke(ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:z,value:void 0})}return ke}(),se.prototype=V(R,"then",function(){function ke(ve,Se){var we=A(this),xe=F(i(this,P));return we.parent=!0,xe.ok=l(ve)?ve:!0,xe.fail=l(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===z?we.reactions.add(xe):u(function(){oe(xe,we)}),xe.promise}return ke}()),he=function(){var ve=new se,Se=A(ve);this.promise=ve,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=F=function(ve){return ve===P||ve===ye?new he(ve):W(ve)},!a&&l(h)&&E!==Object.prototype)){Le=E.then,T||V(E,"then",function(){function ke(ve,Se){var we=this;return new P(function(xe,Oe){f(Le,we,xe,Oe)}).then(ve,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:P}),S(P,B,!1,!0),y(B)},79063:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),V=n(53664),k=n(83604),S=n(61988),y=n(60855),p=t&&t.prototype,l=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function m(i){var d=k(this,f("Promise")),u=V(i);return this.then(u?function(s){return S(d,i()).then(function(){return s})}:i,u?function(s){return S(d,i()).then(function(){throw s})}:i)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},75795:function(I,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),V=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,l=o.f(p),c=l.reject,m=f(function(){var i=t(p.resolve);V(y,function(d){a(i,p,d).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},75955:function(I,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},39996:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,V=n(61988),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return V(S&&this===k?o:this,p)}return y}()})},1210:function(I,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},91370:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),V=n(45418),k=n(66379),S=n(15439),y=n(13586),p=a("Reflect","construct"),l=Object.prototype,c=[].push,m=y(function(){function u(){}return!(p(function(){},[],u)instanceof u)}),i=!y(function(){p(function(){})}),d=m||i;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,v){f(s),V(v);var g=arguments.length<3?s:f(arguments[2]);if(i&&!m)return p(s,v,g);if(s===g){switch(v.length){case 0:return new s;case 1:return new s(v[0]);case 2:return new s(v[0],v[1]);case 3:return new s(v[0],v[1],v[2]);case 4:return new s(v[0],v[1],v[2],v[3])}var C=[null];return t(c,C,v),new(t(o,s,C))}var h=g.prototype,N=S(k(h)?h:l),b=t(s,N,v);return k(b)?b:N}return u}()})},17327:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),V=n(13586),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,l){t(y);var c=o(p);t(l);try{return f.f(y,c,l),!0}catch(m){return!1}}return S}()})},2679:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},27262:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(V,k){return o.f(t(V),k)}return f}()})},47278:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(V){return t(a(V))}return f}()})},60733:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),V=n(19765),k=n(56379);function S(y,p){var l=arguments.length<3?y:arguments[2],c,m;if(o(y)===l)return y[p];if(c=V.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=k(y)))return S(m,p,l)}e({target:"Reflect",stat:!0},{get:S})},22547:function(I,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},64650:function(I,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},65558:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},97836:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),V=n(13586),k=n(8165),S=n(19765),y=n(56379),p=n(73970);function l(m,i,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),i),v,g,C;if(!s){if(o(g=y(m)))return l(g,i,d,u);s=p(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(v=S.f(u,i)){if(v.get||v.set||v.writable===!1)return!1;v.value=d,k.f(u,i,v)}else k.f(u,i,p(0,d))}else{if(C=s.set,C===void 0)return!1;a(C,u,d)}return!0}var c=V(function(){var m=function(){},i=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},83932:function(I,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),V=n(21650),k=n(15439),S=n(60097).f,y=n(54341),p=n(28774),l=n(8758),c=n(13980),m=n(96472),i=n(69713),d=n(60855),u=n(13586),s=n(3302),v=n(4471).enforce,g=n(92468),C=n(95558),h=n(18095),N=n(17329),b=C("match"),B=a.RegExp,L=B.prototype,w=a.SyntaxError,T=t(L.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,j=new B(M)!==M,F=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,K=e&&(!j||F||h||N||u(function(){return D[b]=!1,B(M)!==M||B(D)===D||String(B(M,"i"))!=="/a/i"})),_=function(ae){for(var se=ae.length,he=0,ye="",Le=!1,pe;he<=se;he++){if(pe=A(ae,he),pe==="\\"){ye+=pe+A(ae,++he);continue}!Le&&pe==="."?ye+="[\\s\\S]":(pe==="["?Le=!0:pe==="]"&&(Le=!1),ye+=pe)}return ye},$=function(ae){for(var se=ae.length,he=0,ye="",Le=[],pe=k(null),oe=!1,Q=!1,q=0,ue="",me;he<=se;he++){if(me=A(ae,he),me==="\\")me+=A(ae,++he);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":T(R,P(ae,he+1))&&(he+=2,Q=!0),ye+=me,q++;continue;case(me===">"&&Q):if(ue===""||s(pe,ue))throw new w("Invalid capture group name");pe[ue]=!0,Le[Le.length]=[ue,q],Q=!1,ue="";continue}Q?ue+=me:ye+=me}return[ye,Le]};if(o("RegExp",K)){for(var z=function(){function ie(ae,se){var he=y(L,this),ye=p(ae),Le=se===void 0,pe=[],oe=ae,Q,q,ue,me,ne,be;if(!he&&ye&&Le&&ae.constructor===z)return ae;if((ye||y(L,ae))&&(ae=ae.source,Le&&(se=c(oe))),ae=ae===void 0?"":l(ae),se=se===void 0?"":l(se),oe=ae,h&&"dotAll"in M&&(q=!!se&&E(se,"s")>-1,q&&(se=x(se,/s/g,""))),Q=se,F&&"sticky"in M&&(ue=!!se&&E(se,"y")>-1,ue&&W&&(se=x(se,/y/g,""))),N&&(me=$(ae),ae=me[0],pe=me[1]),ne=f(B(ae,se),he?this:L,z),(q||ue||pe.length)&&(be=v(ne),q&&(be.dotAll=!0,be.raw=z(_(ae),Q)),ue&&(be.sticky=!0),pe.length&&(be.groups=pe)),ae!==oe)try{V(ne,"source",oe===""?"(?:)":oe)}catch(fe){}return ne}return ie}(),Y=S(B),Z=0;Y.length>Z;)i(z,B,Y[Z++]);L.constructor=z,z.prototype=L,d(a,"RegExp",z,{constructor:!0})}g("RegExp")},72941:function(I,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),V=e.RegExp,k=V.prototype,S=a&&f(function(){var y=!0;try{V(".","d")}catch(s){y=!1}var p={},l="",c=y?"dgimsy":"gimsy",m=function(v,g){Object.defineProperty(p,v,{get:function(){function C(){return l+=g,!0}return C}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(i.hasIndices="d");for(var d in i)m(d,i[d]);var u=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return u!==c||l!==c});S&&t(k,"flags",{configurable:!0,get:o})},2394:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),V=n(13980),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&y.name!==k;(p||l)&&a(S,k,function(){function c(){var m=t(this),i=o(m.source),d=o(V(m));return"/"+i+"/"+d}return c}(),{unsafe:!0})},98480:function(I,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(I,r,n){"use strict";n(98480)},25492:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},13684:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(I,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),V=n(75816),k=n(305),S=n(46339),y=n(90139),p=a("".slice),l=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var i=t(String.prototype,"endsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function i(d){var u=f(k(this));V(d);var s=arguments.length>1?arguments[1]:void 0,v=u.length,g=s===void 0?v:l(o(s),v),C=f(d);return p(u,g-C.length,g)===C}return i}()})},30733:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},70277:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},33683:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var l=[],c=arguments.length,m=0,i;c>m;){if(i=+arguments[m++],t(i,1114111)!==i)throw new o(i+" is not a valid code point");l[m]=i<65536?f(i):f(((i-=65536)>>10)+55296,i%1024+56320)}return k(l,"")}return y}()})},16792:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),V=n(46339),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(I,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(y){k(this,{type:V,string:a(y),index:0})},function(){function y(){var p=S(this),l=p.string,c=p.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),p.index+=m.length,f(m,!1))}return y}())},13763:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},76015:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),V=n(8758),k=n(305),S=n(76540),y=n(47158),p=n(59833);a("match",function(l,c,m){return[function(){function i(d){var u=k(this),s=o(d)?void 0:S(d,l);return s?e(s,d,u):new RegExp(d)[l](V(u))}return i}(),function(i){var d=t(this),u=V(i),s=m(c,d,u);if(s.done)return s.value;if(!d.global)return p(d,u);var v=d.unicode;d.lastIndex=0;for(var g=[],C=0,h;(h=p(d,u))!==null;){var N=V(h[0]);g[C]=N,N===""&&(d.lastIndex=y(u,f(d.lastIndex),v)),C++}return C===0?null:g}]})},57318:function(I,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);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}()})},33177:function(I,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);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}()})},1429:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),V=n(83207),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var l=t(o(p).raw),c=V(l);if(!c)return"";for(var m=arguments.length,i=[],d=0;;){if(k(i,f(l[d++])),d===c)return S(i,"");d<m&&k(i,f(arguments[d]))}}return y}()})},56515:function(I,r,n){"use strict";var e=n(3116),a=n(75463);e({target:"String",proto:!0},{repeat:a})},30343:function(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(13586),V=n(45418),k=n(53664),S=n(62695),y=n(84501),p=n(74369),l=n(8758),c=n(305),m=n(47158),i=n(76540),d=n(56802),u=n(59833),s=n(95558),v=s("replace"),g=Math.max,C=Math.min,h=t([].concat),N=t([].push),b=t("".indexOf),B=t("".slice),L=function(E){return E===void 0?E:String(E)},w=function(){return"a".replace(/./,"$0")==="$0"}(),T=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),A=!f(function(){var x=/./;return x.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(x,"$<a>")!=="7"});o("replace",function(x,E,P){var R=T?"$":"$0";return[function(){function M(D,j){var F=c(this),W=S(D)?void 0:i(D,v);return W?a(W,D,F,j):a(E,l(F),D,j)}return M}(),function(M,D){var j=V(this),F=l(M);if(typeof D=="string"&&b(D,R)===-1&&b(D,"$<")===-1){var W=P(E,j,F,D);if(W.done)return W.value}var K=k(D);K||(D=l(D));var _=j.global,$;_&&($=j.unicode,j.lastIndex=0);for(var z=[],Y;Y=u(j,F),!(Y===null||(N(z,Y),!_));){var Z=l(Y[0]);Z===""&&(j.lastIndex=m(F,p(j.lastIndex),$))}for(var ie="",ae=0,se=0;se<z.length;se++){Y=z[se];for(var he=l(Y[0]),ye=g(C(y(Y.index),F.length),0),Le=[],pe,oe=1;oe<Y.length;oe++)N(Le,L(Y[oe]));var Q=Y.groups;if(K){var q=h([he],Le,ye,F);Q!==void 0&&N(q,Q),pe=l(e(D,void 0,q))}else pe=d(he,F,ye,Le,Q,D);ye>=ae&&(ie+=B(F,ae,ye)+pe,ae=ye+he.length)}return ie+B(F,ae)}]},!A||!w||T)},60981:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),V=n(91935),k=n(8758),S=n(76540),y=n(59833);a("search",function(p,l,c){return[function(){function m(i){var d=f(this),u=o(i)?void 0:S(i,p);return u?e(u,i,d):new RegExp(i)[p](k(d))}return m}(),function(m){var i=t(this),d=k(m),u=c(l,i,d);if(u.done)return u.value;var s=i.lastIndex;V(s,0)||(i.lastIndex=0);var v=y(i,d);return V(i.lastIndex,s)||(i.lastIndex=s),v===null?-1:v.index}]})},56001:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),V=n(62695),k=n(28774),S=n(305),y=n(83604),p=n(47158),l=n(74369),c=n(8758),m=n(76540),i=n(31170),d=n(59833),u=n(59049),s=n(96472),v=n(13586),g=s.UNSUPPORTED_Y,C=4294967295,h=Math.min,N=[].push,b=t(/./.exec),B=t(N),L=t("".slice),w=!v(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(R,M){var D=c(S(this)),j=M===void 0?C:M>>>0;if(j===0)return[];if(R===void 0)return[D];if(!k(R))return a(A,D,R,j);for(var F=[],W=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),K=0,_=new RegExp(R.source,W+"g"),$,z,Y;($=a(u,_,D))&&(z=_.lastIndex,!(z>K&&(B(F,L(D,K,$.index)),$.length>1&&$.index<D.length&&e(N,F,i($,1)),Y=$[0].length,K=z,F.length>=j)));)_.lastIndex===$.index&&_.lastIndex++;return K===D.length?(Y||!b(_,""))&&B(F,""):B(F,L(D,K)),F.length>j?i(F,0,j):F}:"0".split(void 0,0).length?E=function(R,M){return R===void 0&&M===0?[]:a(A,this,R,M)}:E=A,[function(){function P(R,M){var D=S(this),j=V(R)?void 0:m(R,T);return j?a(j,R,D,M):a(E,c(D),R,M)}return P}(),function(P,R){var M=f(this),D=c(P),j=x(E,M,D,R,E!==A);if(j.done)return j.value;var F=y(M,RegExp),W=M.unicode,K=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),_=new F(g?"^(?:"+M.source+")":M,K),$=R===void 0?C:R>>>0;if($===0)return[];if(D.length===0)return d(_,D)===null?[D]:[];for(var z=0,Y=0,Z=[];Y<D.length;){_.lastIndex=g?0:Y;var ie=d(_,g?L(D,Y):D),ae;if(ie===null||(ae=h(l(_.lastIndex+(g?Y:0)),D.length))===z)Y=p(D,Y,W);else{if(B(Z,L(D,z,Y)),Z.length===$)return Z;for(var se=1;se<=ie.length-1;se++)if(B(Z,ie[se]),Z.length===$)return Z;Y=z=ae}}return B(Z,L(D,z)),Z}]},!w,g)},59592:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),V=n(75816),k=n(305),S=n(46339),y=n(90139),p=a("".slice),l=Math.min,c=S("startsWith"),m=!y&&!c&&!!function(){var i=t(String.prototype,"startsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{startsWith:function(){function i(d){var u=f(k(this));V(d);var s=o(l(arguments.length>1?arguments[1]:void 0,u.length)),v=f(d);return p(u,s,s+v.length)===v}return i}()})},58713:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(I,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(I,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(I,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(I,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(I,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(I,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),V=n(16361),k=n(61855),S=n(13586),y=n(3302),p=n(54341),l=n(45418),c=n(54292),m=n(72445),i=n(8758),d=n(73970),u=n(15439),s=n(99869),v=n(60097),g=n(31024),C=n(61791),h=n(19765),N=n(8165),b=n(55119),B=n(10409),L=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),R=n(15355),M=n(20614),D=n(28952),j=n(15676),F=n(4471),W=n(18539).forEach,K=A("hidden"),_="Symbol",$="prototype",z=F.set,Y=F.getterFor(_),Z=Object[$],ie=a.Symbol,ae=ie&&ie[$],se=a.RangeError,he=a.TypeError,ye=a.QObject,Le=h.f,pe=N.f,oe=g.f,Q=B.f,q=o([].push),ue=T("symbols"),me=T("op-symbols"),ne=T("wks"),be=!ye||!ye[$]||!ye[$].findChild,fe=function(le,Ce,de){var Ne=Le(Z,Ce);Ne&&delete Z[Ce],pe(le,Ce,de),Ne&&le!==Z&&pe(Z,Ce,Ne)},ge=V&&S(function(){return u(pe({},"a",{get:function(){function re(){return pe(this,"a",{value:7}).a}return re}()})).a!==7})?fe:pe,ke=function(le,Ce){var de=ue[le]=u(ae);return z(de,{type:_,tag:le,description:Ce}),V||(de.description=Ce),de},ve=function(){function re(le,Ce,de){le===Z&&ve(me,Ce,de),l(le);var Ne=m(Ce);return l(de),y(ue,Ne)?(de.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),de=u(de,{enumerable:d(0,!1)})):(y(le,K)||pe(le,K,d(1,u(null))),le[K][Ne]=!0),ge(le,Ne,de)):pe(le,Ne,de)}return re}(),Se=function(){function re(le,Ce){l(le);var de=c(Ce),Ne=s(de).concat(Ve(de));return W(Ne,function(Ae){(!V||t(xe,de,Ae))&&ve(le,Ae,de[Ae])}),le}return re}(),we=function(){function re(le,Ce){return Ce===void 0?u(le):Se(u(le),Ce)}return re}(),xe=function(){function re(le){var Ce=m(le),de=t(Q,this,Ce);return this===Z&&y(ue,Ce)&&!y(me,Ce)?!1:de||!y(this,Ce)||!y(ue,Ce)||y(this,K)&&this[K][Ce]?de:!0}return re}(),Oe=function(){function re(le,Ce){var de=c(le),Ne=m(Ce);if(!(de===Z&&y(ue,Ne)&&!y(me,Ne))){var Ae=Le(de,Ne);return Ae&&y(ue,Ne)&&!(y(de,K)&&de[K][Ne])&&(Ae.enumerable=!0),Ae}}return re}(),Ue=function(){function re(le){var Ce=oe(c(le)),de=[];return W(Ce,function(Ne){!y(ue,Ne)&&!y(x,Ne)&&q(de,Ne)}),de}return re}(),Ve=function(le){var Ce=le===Z,de=oe(Ce?me:c(le)),Ne=[];return W(de,function(Ae){y(ue,Ae)&&(!Ce||y(Z,Ae))&&q(Ne,ue[Ae])}),Ne};k||(ie=function(){function re(){if(p(ae,this))throw new he("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),Ce=E(le),de=function(){function Ne(Ae){var De=this===void 0?a:this;De===Z&&t(Ne,me,Ae),y(De,K)&&y(De[K],Ce)&&(De[K][Ce]=!1);var je=d(1,Ae);try{ge(De,Ce,je)}catch(Ke){if(!(Ke instanceof se))throw Ke;fe(De,Ce,je)}}return Ne}();return V&&be&&ge(Z,Ce,{configurable:!0,set:de}),ke(Ce,le)}return re}(),ae=ie[$],L(ae,"toString",function(){function re(){return Y(this).tag}return re}()),L(ie,"withoutSetter",function(re){return ke(E(re),re)}),B.f=xe,N.f=ve,b.f=Se,h.f=Oe,v.f=g.f=Ue,C.f=Ve,R.f=function(re){return ke(P(re),re)},V&&(w(ae,"description",{configurable:!0,get:function(){function re(){return Y(this).description}return re}()}),f||L(Z,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),W(s(ne),function(re){M(re)}),e({target:_,stat:!0,forced:!k},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:ve,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:Ue}),D(),j(ie,_),x[K]=!0},64777:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),V=n(53664),k=n(54341),S=n(8758),y=n(57301),p=n(83826),l=t.Symbol,c=l&&l.prototype;if(a&&V(l)&&(!("description"in c)||l().description!==void 0)){var m={},i=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new l(N):N===void 0?l():l(N);return N===""&&(m[b]=!0),b}return h}();p(i,l),i.prototype=c,c.constructor=i;var d=String(l("description detection"))==="Symbol(description detection)",u=o(c.valueOf),s=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),C=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var N=u(this);if(f(m,N))return"";var b=s(N),B=d?C(b,7,-1):g(b,v,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),V=n(16010),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function y(p){var l=o(p);if(t(k,l))return k[l];var c=a("Symbol")(l);return k[l]=c,S[c]=l,c}return y}()})},56564:function(I,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(I,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(I,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(I,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(I,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),V=n(16010),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},22905:function(I,r,n){"use strict";var e=n(20614);e("match")},96311:function(I,r,n){"use strict";var e=n(20614);e("replace")},61292:function(I,r,n){"use strict";var e=n(20614);e("search")},75419:function(I,r,n){"use strict";var e=n(20614);e("species")},67638:function(I,r,n){"use strict";var e=n(20614);e("split")},7601:function(I,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(I,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(I,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(I,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},58549:function(I,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(I,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),V=n(72908),k=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=V("".slice),l=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var i=arguments.length;S(this);var d=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,d,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return c}(),l)},65446:function(I,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},62243:function(I,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(I,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(I,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97363:function(I,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35249:function(I,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(I,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(I,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(I,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(I,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},65331:function(I,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},99755:function(I,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},87975:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),V=n(95558),k=V("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=S&&S.prototype,d=!a(function(){i[k].call([1])}),u=!!i&&i.values&&i[k]===i.values&&i.values.name==="values",s=function(){function v(){return y(c(this))}return v}();m("entries",function(){function v(){return l(c(this))}return v}(),d),m("keys",function(){function v(){return p(c(this))}return v}(),d),m("values",s,d||!u,{name:"values"}),m(k,s,d||!u,{name:"values"})},20812:function(I,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},5640:function(I,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},47736:function(I,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return V}())},81944:function(I,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},72214:function(I,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},68685:function(I,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},48774:function(I,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),y=0,p;y<S;)p=V[y],V[y++]=V[--k],V[k]=p;return V}return f}())},2915:function(I,r,n){"use strict";var e=n(26856),a=n(20276),t=n(30432),o=n(83207),f=n(45476),V=n(63549),k=n(13586),S=e.RangeError,y=e.Int8Array,p=y&&y.prototype,l=p&&p.set,c=t.aTypedArray,m=t.exportTypedArrayMethod,i=!k(function(){var u=new Uint8ClampedArray(2);return a(l,u,{length:1,0:3},1),u[1]!==3}),d=i&&t.NATIVE_ARRAY_BUFFER_VIEWS&&k(function(){var u=new y(2);return u.set(1),u.set("2",1),u[0]!==0||u[1]!==2});m("set",function(){function u(s){c(this);var v=f(arguments.length>1?arguments[1]:void 0,1),g=V(s);if(i)return a(l,this,g,v);var C=this.length,h=o(g),N=0;if(h+v>C)throw new S("Wrong length");for(;N<h;)this[v+N]=g[N++]}return u}(),!i||d)},17165:function(I,r,n){"use strict";var e=n(30432),a=n(9230),t=n(13586),o=n(31170),f=e.aTypedArray,V=e.exportTypedArrayMethod,k=t(function(){new Int8Array(1).slice()});V("slice",function(){function S(y,p){for(var l=o(f(this),y,p),c=a(this),m=0,i=l.length,d=new c(i);i>m;)d[m]=l[m++];return d}return S}(),k)},10702:function(I,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(I,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),V=n(30432),k=n(31574),S=n(88836),y=n(43541),p=n(27204),l=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,i=m&&a(m.prototype.sort),d=!!i&&!(t(function(){i(new m(2),null)})&&t(function(){i(new m(2),{})})),u=!!i&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var v=new m(516),g=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,g[C]=C-2*h+3;for(i(v,function(N,b){return(N/4|0)-(b/4|0)}),C=0;C<516;C++)if(v[C]!==g[C])return!0}),s=function(g){return function(C,h){return g!==void 0?+g(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};c("sort",function(){function v(g){return g!==void 0&&o(g),u?i(this,g):f(l(this),s(g))}return v}(),!u||d)},64408:function(I,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,y){var p=f(this),l=p.length,c=t(S,l),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?l:t(y,l))-c))}return k}())},22306:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!V&&o(function(){y.call(new V(1))}),l=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),l)},90334:function(I,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=V.toString!==k;e("toString",k,y)},70088:function(I,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},7284:function(I,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},25855:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97372:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},84937:function(I,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),V=n(10609),k=n(19250),S=n(66379),y=n(4471).enforce,p=n(13586),l=n(73844),c=Object,m=Array.isArray,i=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,v=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},N=V("WeakMap",h,k),b=N.prototype,B=t(b.set),L=function(){return e&&p(function(){var E=s([]);return B(new N,E,1),!d(E)})};if(l)if(g){C=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new C),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new C),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new C),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!i(E)){var R=y(this);R.frozen||(R.frozen=new C),T(this,E)?B(this,E,P):R.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else L()&&o(b,{set:function(){function x(E,P){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=v)),B(this,E,P),R&&R(E),this}return x}()})},69880:function(I,r,n){"use strict";n(84937)},74764:function(I,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(I,r,n){"use strict";n(74764)},82818:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(I,r,n){"use strict";n(82818),n(21813)},367:function(I,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function f(V){o(arguments.length,1),a(t(V))}return f}()})},21813:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},50943:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(I,r,n){"use strict";n(50943),n(91851)},87454:function(I){"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}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(I,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};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,I.exports=a,a.id=33115},75168:function(I,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};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,I.exports=a,a.id=75168},8156:function(I,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AgentCard":66895,"./AgentCard.js":66895,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./CameraConsole220":64487,"./CameraConsole220.js":64487,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EmotePanel":85307,"./EmotePanel.js":85307,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./Jukebox":28847,"./Jukebox.tsx":28847,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./ModpacksList":71545,"./ModpacksList.js":71545,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./Photocopier220":82020,"./Photocopier220.js":82020,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TTSSeedsExplorer":61424,"./TTSSeedsExplorer.tsx":61424,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};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,I.exports=a,a.id=8156},69321:function(I,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};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,I.exports=a,a.id=69321},79474:function(I,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(I,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(I,r,n){"use strict";var e=n(62600),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(I,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),I.exports=function(V){f[o][V]=!0}},47158:function(I,r,n){"use strict";var e=n(13300).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(I,r,n){"use strict";var e=n(54341),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(I,r,n){"use strict";var e=n(66379),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(I,r,n){"use strict";var e=n(13586);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(I,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),V=n(3302),k=n(48615),S=n(36787),y=n(21650),p=n(60855),l=n(57301),c=n(54341),m=n(56379),i=n(91420),d=n(95558),u=n(76246),s=n(4471),C=s.enforce,g=s.get,v=t.Int8Array,h=v&&v.prototype,N=t.Uint8ClampedArray,b=N&&N.prototype,B=v&&m(v),L=h&&m(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!i&&k(t.opera)!=="Opera",R=!1,M,D,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},K=function(){function ae(se){if(!f(se))return!1;var he=k(se);return he==="DataView"||V(F,he)||V(W,he)}return ae}(),_=function ae(se){var he=m(se);if(f(he)){var ye=g(he);return ye&&V(ye,E)?ye[E]:ae(he)}},$=function(se){if(!f(se))return!1;var he=k(se);return V(F,he)||V(W,he)},z=function(se){if($(se))return se;throw new T("Target is not a typed array")},Y=function(se){if(o(se)&&(!i||c(B,se)))return se;throw new T(S(se)+" is not a typed array constructor")},Z=function(se,he,ye,Le){if(a){if(ye)for(var pe in F){var oe=t[pe];if(oe&&V(oe.prototype,se))try{delete oe.prototype[se]}catch(Q){try{oe.prototype[se]=he}catch(q){}}}(!L[se]||ye)&&p(L,se,ye?he:P&&h[se]||he,Le)}},ie=function(se,he,ye){var Le,pe;if(a){if(i){if(ye){for(Le in F)if(pe=t[Le],pe&&V(pe,se))try{delete pe[se]}catch(oe){}}if(!B[se]||ye)try{return p(B,se,ye?he:P&&B[se]||he)}catch(oe){}else return}for(Le in F)pe=t[Le],pe&&(!pe[se]||ye)&&p(pe,se,he)}};for(M in F)D=t[M],j=D&&D.prototype,j?C(j)[E]=D:P=!1;for(M in W)D=t[M],j=D&&D.prototype,j&&(C(j)[E]=D);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new T("Incorrect invocation")}return ae}(),P))for(M in F)t[M]&&i(t[M],B);if((!P||!L||L===w)&&(L=B.prototype,P))for(M in F)t[M]&&i(t[M].prototype,L);if(P&&m(b)!==L&&i(b,L),a&&!V(L,A)){R=!0,l(L,A,{configurable:!0,get:function(){function ae(){return f(this)?this[x]:void 0}return ae}()});for(M in F)t[M]&&y(t[M],x,M)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&x,aTypedArray:z,aTypedArrayConstructor:Y,exportTypedArrayMethod:Z,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:_,isView:K,isTypedArray:$,TypedArray:B,TypedArrayPrototype:L}},31284:function(I,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),V=n(21650),k=n(57301),S=n(26148),y=n(13586),p=n(14434),l=n(84501),c=n(74369),m=n(28968),i=n(48705),d=n(48350),u=n(56379),s=n(91420),C=n(39948),g=n(31170),v=n(43405),h=n(83826),N=n(15676),b=n(4471),B=f.PROPER,L=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=b.getterFor(w),R=b.getterFor(T),M=b.set,D=e[w],j=D,F=j&&j[A],W=e[T],K=W&&W[A],_=Object.prototype,$=e.Array,z=e.RangeError,Y=a(C),Z=a([].reverse),ie=d.pack,ae=d.unpack,se=function(ge){return[ge&255]},he=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Le=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return ie(i(ge),23,4)},oe=function(ge){return ie(ge,52,8)},Q=function(ge,ke,ve){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return ve(this)[ke]}return Se}()})},q=function(ge,ke,ve,Se){var we=R(ge),xe=m(ve),Oe=!!Se;if(xe+ke>we.byteLength)throw new z(E);var Ue=we.bytes,Ve=xe+we.byteOffset,re=g(Ue,Ve,Ve+ke);return Oe?re:Z(re)},ue=function(ge,ke,ve,Se,we,xe){var Oe=R(ge),Ue=m(ve),Ve=Se(+we),re=!!xe;if(Ue+ke>Oe.byteLength)throw new z(E);for(var le=Oe.bytes,Ce=Ue+Oe.byteOffset,de=0;de<ke;de++)le[Ce+de]=Ve[re?de:ke-de-1]};if(!o)j=function(){function fe(ge){p(this,F);var ke=m(ge);M(this,{type:w,bytes:Y($(ke),0),byteLength:ke}),t||(this.byteLength=ke,this.detached=!1)}return fe}(),F=j[A],W=function(){function fe(ge,ke,ve){p(this,K),p(ge,F);var Se=P(ge),we=Se.byteLength,xe=l(ke);if(xe<0||xe>we)throw new z("Wrong offset");if(ve=ve===void 0?we-xe:c(ve),xe+ve>we)throw new z(x);M(this,{type:T,buffer:ge,byteLength:ve,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=ve,this.byteOffset=xe)}return fe}(),K=W[A],t&&(Q(j,"byteLength",P),Q(W,"buffer",R),Q(W,"byteLength",R),Q(W,"byteOffset",R)),S(K,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return ae(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return ae(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setUint8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setInt16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){ue(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){ue(this,8,ge,oe,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&D.name!==w;!y(function(){D(1)})||!y(function(){new D(-1)})||y(function(){return new D,new D(1.5),new D(NaN),D.length!==1||me&&!L})?(j=function(){function fe(ge){return p(this,F),v(new D(m(ge)),this,j)}return fe}(),j[A]=F,F.constructor=j,h(j,D)):me&&L&&V(D,"name",w),s&&u(K)!==_&&s(K,_);var ne=new W(new j(2)),be=a(K.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),(ne.getInt8(0)||!ne.getInt8(1))&&S(K,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}N(j,w),N(W,T),I.exports={ArrayBuffer:j,DataView:W}},28332:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;I.exports=[].copyWithin||function(){function V(k,S){var y=e(this),p=t(y),l=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?p:a(m,p))-c,p-l),d=1;for(c<l&&l<c+i&&(d=-1,c+=i-1,l+=i-1);i-- >0;)c in y?y[l]=y[c]:o(y,l),l+=d,c+=d;return y}return V}()},39948:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);I.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,l=p===void 0?k:a(p,k);l>y;)V[y++]=f;return V}return o}()},16856:function(I,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");I.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(I,r,n){"use strict";var e=n(83207);I.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},45056:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),V=n(49632),k=n(83207),S=n(80750),y=n(45731),p=n(52984),l=Array;I.exports=function(){function c(m){var i=t(m),d=V(this),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0;C&&(s=e(s,u>2?arguments[2]:void 0));var g=p(i),v=0,h,N,b,B,L,w;if(g&&!(this===l&&f(g)))for(B=y(i,g),L=B.next,N=d?new this:[];!(b=a(L,B)).done;v++)w=C?o(B,s,[b.value,v],!0):b.value,S(N,v,w);else for(h=k(i),N=d?new this(h):l(h);h>v;v++)w=C?s(i[v],v):i[v],S(N,v,w);return N.length=v,N}return c}()},33483:function(I,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(V){return function(k,S,y){var p=e(k),l=t(p),c=a(y,l),m;if(V&&S!==S){for(;l>c;)if(m=p[c++],m!==m)return!0}else for(;l>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},18539:function(I,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),V=n(51582),k=a([].push),S=function(p){var l=p===1,c=p===2,m=p===3,i=p===4,d=p===6,u=p===7,s=p===5||d;return function(C,g,v,h){for(var N=o(C),b=t(N),B=f(b),L=e(g,v),w=0,T=h||V,A=l?T(C,B):c||u?T(C,0):void 0,x,E;B>w;w++)if((s||w in b)&&(x=b[w],E=L(x,w,N),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:m||i?i:A}};I.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(I,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;I.exports=p?function(){function l(c){if(S)return e(k,this,arguments)||0;var m=a(this),i=o(m),d=i-1;for(arguments.length>1&&(d=V(d,t(arguments[1]))),d<0&&(d=i+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return l}():k},34924:function(I,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");I.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},56127:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(I,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,V=function(S){return function(y,p,l,c){var m=a(y),i=t(m),d=o(m);e(p);var u=S?d-1:0,s=S?-1:1;if(l<2)for(;;){if(u in i){c=i[u],u+=s;break}if(u+=s,S?u<0:d<=u)throw new f("Reduce of empty array with no initial value")}for(;S?u>=0:d>u;u+=s)u in i&&(c=p(c,i[u],u,m));return c}};I.exports={left:V(!1),right:V(!0)}},10779:function(I,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();I.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},31170:function(I,r,n){"use strict";var e=n(72908);I.exports=e([].slice)},91183:function(I,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,y,p;S<k;){for(p=S,y=f[S];p&&V(f[p-1],y)>0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var l=a(k/2),c=o(e(f,0,l),V),m=o(e(f,l),V),i=c.length,d=m.length,u=0,s=0;u<i||s<d;)f[u+s]=u<i&&s<d?V(c[u],m[s])<=0?c[u++]:m[s++]:u<i?c[u++]:m[s++];return f};I.exports=t},6516:function(I,r,n){"use strict";var e=n(59882),a=n(49632),t=n(66379),o=n(95558),f=o("species"),V=Array;I.exports=function(k){var S;return e(k)&&(S=k.constructor,a(S)&&(S===V||e(S.prototype))?S=void 0:t(S)&&(S=S[f],S===null&&(S=void 0))),S===void 0?V:S}},51582:function(I,r,n){"use strict";var e=n(6516);I.exports=function(a,t){return new(e(a))(t===0?0:t)}},80002:function(I,r,n){"use strict";var e=n(45418),a=n(65169);I.exports=function(t,o,f,V){try{return V?o(e(f)[0],f[1]):o(f)}catch(k){a(t,"throw",k)}}},1608:function(I,r,n){"use strict";var e=n(95558),a=e("iterator"),t=!1;try{var o=0,f={next:function(){function V(){return{done:!!o++}}return V}(),return:function(){function V(){t=!0}return V}()};f[a]=function(){return this},Array.from(f,function(){throw 2})}catch(V){}I.exports=function(V,k){try{if(!k&&!t)return!1}catch(p){return!1}var S=!1;try{var y={};y[a]=function(){return{next:function(){function p(){return{done:S=!0}}return p}()}},V(y)}catch(p){}return S}},8649:function(I,r,n){"use strict";var e=n(72908),a=e({}.toString),t=e("".slice);I.exports=function(o){return t(a(o),8,-1)}},48615:function(I,r,n){"use strict";var e=n(41936),a=n(53664),t=n(8649),o=n(95558),f=o("toStringTag"),V=Object,k=t(function(){return arguments}())==="Arguments",S=function(p,l){try{return p[l]}catch(c){}};I.exports=e?t:function(y){var p,l,c;return y===void 0?"Undefined":y===null?"Null":typeof(l=S(p=V(y),f))=="string"?l:k?t(p):(c=t(p))==="Object"&&a(p.callee)?"Arguments":c}},42384:function(I,r,n){"use strict";var e=n(15439),a=n(57301),t=n(26148),o=n(8942),f=n(14434),V=n(62695),k=n(20453),S=n(21436),y=n(32214),p=n(92468),l=n(16361),c=n(66526).fastKey,m=n(4471),i=m.set,d=m.getterFor;I.exports={getConstructor:function(){function u(s,C,g,v){var h=s(function(w,T){f(w,N),i(w,{type:C,index:e(null),first:void 0,last:void 0,size:0}),l||(w.size=0),V(T)||k(T,w[v],{that:w,AS_ENTRIES:g})}),N=h.prototype,b=d(C),B=function(){function w(T,A,x){var E=b(T),P=L(T,A),R,M;return P?P.value=x:(E.last=P={index:M=c(A,!0),key:A,value:x,previous:R=E.last,next:void 0,removed:!1},E.first||(E.first=P),R&&(R.next=P),l?E.size++:T.size++,M!=="F"&&(E.index[M]=P)),T}return w}(),L=function(){function w(T,A){var x=b(T),E=c(A),P;if(E!=="F")return x.index[E];for(P=x.first;P;P=P.next)if(P.key===A)return P}return w}();return t(N,{clear:function(){function w(){for(var T=this,A=b(T),x=A.first;x;)x.removed=!0,x.previous&&(x.previous=x.previous.next=void 0),x=x.next;A.first=A.last=void 0,A.index=e(null),l?A.size=0:T.size=0}return w}(),delete:function(){function w(T){var A=this,x=b(A),E=L(A,T);if(E){var P=E.next,R=E.previous;delete x.index[E.index],E.removed=!0,R&&(R.next=P),P&&(P.previous=R),x.first===E&&(x.first=P),x.last===E&&(x.last=R),l?x.size--:A.size--}return!!E}return w}(),forEach:function(){function w(T){for(var A=b(this),x=o(T,arguments.length>1?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 w}(),has:function(){function w(T){return!!L(this,T)}return w}()}),t(N,g?{get:function(){function w(T){var A=L(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(N,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return u}(),setStrong:function(){function u(s,C,g){var v=C+" Iterator",h=d(C),N=d(v);S(s,C,function(b,B){i(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=N(this),B=b.kind,L=b.last;L&&L.removed;)L=L.previous;return!b.target||!(b.last=L=L?L.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},g?"entries":"values",!g,!0),p(C)}return u}()}},19250:function(I,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),V=n(62695),k=n(66379),S=n(20453),y=n(18539),p=n(3302),l=n(4471),c=l.set,m=l.getterFor,i=y.find,d=y.findIndex,u=e([].splice),s=0,C=function(N){return N.frozen||(N.frozen=new g)},g=function(){this.entries=[]},v=function(N,b){return i(N.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(N){var b=v(this,N);if(b)return b[1]}return h}(),has:function(){function h(N){return!!v(this,N)}return h}(),set:function(){function h(N,b){var B=v(this,N);B?B[1]=b:this.entries.push([N,b])}return h}(),delete:function(){function h(N){var b=d(this.entries,function(B){return B[0]===N});return~b&&u(this.entries,b,1),!!~b}return h}()},I.exports={getConstructor:function(){function h(N,b,B,L){var w=N(function(E,P){o(E,T),c(E,{type:b,id:s++,frozen:void 0}),V(P)||S(P,E[L],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(P,R,M){var D=A(P),j=t(f(R),!0);return j===!0?C(D).set(R,M):j[D.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?C(R).delete(P):M&&p(M,R.id)&&delete M[R.id]}return E}(),has:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?C(R).has(P):M&&p(M,R.id)}return E}()}),a(T,B?{get:function(){function E(P){var R=A(this);if(k(P)){var M=t(P);return M===!0?C(R).get(P):M?M[R.id]:void 0}}return E}(),set:function(){function E(P,R){return x(this,P,R)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return h}()}},10609:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),V=n(66526),k=n(20453),S=n(14434),y=n(53664),p=n(62695),l=n(66379),c=n(13586),m=n(1608),i=n(15676),d=n(43405);I.exports=function(u,s,C){var g=u.indexOf("Map")!==-1,v=u.indexOf("Weak")!==-1,h=g?"set":"add",N=a[u],b=N&&N.prototype,B=N,L={},w=function(D){var j=t(b[D]);f(b,D,D==="add"?function(){function F(W){return j(this,W===0?0:W),this}return F}():D==="delete"?function(F){return v&&!l(F)?!1:j(this,F===0?0:F)}:D==="get"?function(){function F(W){return v&&!l(W)?void 0:j(this,W===0?0:W)}return F}():D==="has"?function(){function F(W){return v&&!l(W)?!1:j(this,W===0?0:W)}return F}():function(){function F(W,K){return j(this,W===0?0:W,K),this}return F}())},T=o(u,!y(N)||!(v||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=C.getConstructor(s,u,g,h),V.enable();else if(o(u,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new N(M)}),R=!v&&c(function(){for(var M=new N,D=5;D--;)M[h](D,D);return!M.has(-0)});P||(B=s(function(M,D){S(M,b);var j=d(new N,M,B);return p(D)||k(D,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(h),v&&b.clear&&delete b.clear}return L[u]=B,e({global:!0,constructor:!0,forced:B!==N},L),i(B,u),v||C.setStrong(B,u,g),B}},83826:function(I,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);I.exports=function(f,V,k){for(var S=a(V),y=o.f,p=t.f,l=0;l<S.length;l++){var c=S[l];!e(f,c)&&!(k&&e(k,c))&&y(f,c,p(V,c))}}},46339:function(I,r,n){"use strict";var e=n(95558),a=e("match");I.exports=function(t){var o=/./;try{"/./"[t](o)}catch(f){try{return o[a]=!1,"/./"[t](o)}catch(V){}}return!1}},62297:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},38017:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=/"/g,f=e("".replace);I.exports=function(V,k,S,y){var p=t(a(V)),l="<"+k;return S!==""&&(l+=" "+S+'="'+f(t(y),o,""")+'"'),l+">"+p+"</"+k+">"}},32214:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},21650:function(I,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);I.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},73970:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(I,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);I.exports=function(o,f,V){var k=e(f);k in o?a.f(o,k,t(0,V)):o[k]=V}},20228:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),l=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),i=e(k.getUTCMinutes),d=e(k.getUTCMonth),u=e(k.getUTCSeconds);I.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function s(){if(!f(y(this)))throw new o("Invalid time value");var C=this,g=l(C),v=m(C),h=g<0?"-":g>9999?"+":"";return h+t(V(g),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(i(C),2,0)+":"+t(u(C),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(I,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;I.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)}},57301:function(I,r,n){"use strict";var e=n(40773),a=n(8165);I.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)}},60855:function(I,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);I.exports=function(f,V,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)y?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(y=!0):delete f[V]}catch(l){}y?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(I,r,n){"use strict";var e=n(60855);I.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(I,r,n){"use strict";var e=n(26856),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(I,r,n){"use strict";var e=n(36787),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(I,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(f){return o?t.createElement(f):{}}},54579:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(I,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},52460:function(I,r,n){"use strict";var e=n(53437),a=n(86727);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(I,r,n){"use strict";var e=n(74247);I.exports=/MSIE|Trident/.test(e)},79034:function(I,r,n){"use strict";var e=n(74247);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(I,r,n){"use strict";var e=n(74247);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(I,r,n){"use strict";var e=n(26856),a=n(8649);I.exports=a(e.process)==="process"},71979:function(I,r,n){"use strict";var e=n(74247);I.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(I,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),I.exports=S},27204:function(I,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},38139:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(I,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),V=n(83826),k=n(23620);I.exports=function(S,y){var p=S.target,l=S.global,c=S.stat,m,i,d,u,s,C;if(l?i=e:c?i=e[p]||f(p,{}):i=(e[p]||{}).prototype,i)for(d in y){if(s=y[d],S.dontCallGetSet?(C=a(i,d),u=C&&C.value):u=i[d],m=k(l?d:p+(c?".":"#")+d,S.forced),!m&&u!==void 0){if(typeof s==typeof u)continue;V(s,u)}(S.sham||u&&u.sham)&&t(s,"sham",!0),o(i,d,s,S)}}},13586:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(I,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),V=n(21650),k=f("species"),S=RegExp.prototype;I.exports=function(y,p,l,c){var m=f(y),i=!o(function(){var C={};return C[m]=function(){return 7},""[y](C)!==7}),d=i&&!o(function(){var C=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return C=!0,null},g[m](""),!C});if(!i||!d||l){var u=e(/./[m]),s=p(m,""[y],function(C,g,v,h,N){var b=e(C),B=g.exec;return B===t||B===S.exec?i&&!N?{done:!0,value:u(g,v,h)}:{done:!0,value:b(v,g,h)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&V(S[m],"sham",!0)}},73132:function(I,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function V(k,S,y,p,l,c,m,i){for(var d=l,u=0,s=m?o(m,i):!1,C,g;u<p;)u in y&&(C=s?s(y[u],u,S):y[u],c>0&&e(C)?(g=a(C),d=V(k,S,C,g,d,c-1)-1):(t(d+1),k[d]=C),d++),u++;return d};I.exports=f},58199:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(I,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);I.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},86678:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(I,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),V=n(86678),k=Function,S=e([].concat),y=e([].join),p={},l=function(m,i,d){if(!o(p,i)){for(var u=[],s=0;s<i;s++)u[s]="a["+s+"]";p[i]=k("C,a","return new C("+y(u,",")+")")}return p[i](m,d)};I.exports=V?k.bind:function(){function c(m){var i=a(this),d=i.prototype,u=f(arguments,1),s=function(){function C(){var g=S(u,f(arguments));return this instanceof s?l(i,g.length,g):i.apply(m,g)}return C}();return t(d)&&(s.prototype=d),s}return c}()},20276:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype.call;I.exports=e?a.bind(a):function(){return a.apply(a,arguments)}},15340:function(I,r,n){"use strict";var e=n(16361),a=n(3302),t=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,f=a(t,"name"),V=f&&function(){function S(){}return S}().name==="something",k=f&&(!e||e&&o(t,"name").configurable);I.exports={EXISTS:f,PROPER:V,CONFIGURABLE:k}},53715:function(I,r,n){"use strict";var e=n(72908),a=n(79474);I.exports=function(t,o,f){try{return e(a(Object.getOwnPropertyDescriptor(t,o)[f]))}catch(V){}}},69935:function(I,r,n){"use strict";var e=n(8649),a=n(72908);I.exports=function(t){if(e(t)==="Function")return a(t)}},72908:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.call,o=e&&a.bind.bind(t,t);I.exports=e?o:function(f){return function(){return t.apply(f,arguments)}}},22070:function(I,r,n){"use strict";var e=n(26856),a=n(53664),t=function(f){return a(f)?f:void 0};I.exports=function(o,f){return arguments.length<2?t(e[o]):e[o]&&e[o][f]}},52984:function(I,r,n){"use strict";var e=n(48615),a=n(76540),t=n(62695),o=n(47730),f=n(95558),V=f("iterator");I.exports=function(k){if(!t(k))return a(k,V)||a(k,"@@iterator")||o[e(k)]}},45731:function(I,r,n){"use strict";var e=n(20276),a=n(79474),t=n(45418),o=n(36787),f=n(52984),V=TypeError;I.exports=function(k,S){var y=arguments.length<2?f(k):S;if(a(y))return t(e(y,k));throw new V(o(k)+" is not iterable")}},58226:function(I,r,n){"use strict";var e=n(72908),a=n(59882),t=n(53664),o=n(8649),f=n(8758),V=e([].push);I.exports=function(k){if(t(k))return k;if(a(k)){for(var S=k.length,y=[],p=0;p<S;p++){var l=k[p];typeof l=="string"?V(y,l):(typeof l=="number"||o(l)==="Number"||o(l)==="String")&&V(y,f(l))}var c=y.length,m=!0;return function(i,d){if(m)return m=!1,d;if(a(this))return d;for(var u=0;u<c;u++)if(y[u]===i)return d}}}},76540:function(I,r,n){"use strict";var e=n(79474),a=n(62695);I.exports=function(t,o){var f=t[o];return a(f)?void 0:e(f)}},56802:function(I,r,n){"use strict";var e=n(72908),a=n(63549),t=Math.floor,o=e("".charAt),f=e("".replace),V=e("".slice),k=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S=/\$([$&'`]|\d{1,2})/g;I.exports=function(y,p,l,c,m,i){var d=l+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=k),f(i,s,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return V(p,0,l);case"'":return V(p,d);case"<":v=m[V(g,1,-1)];break;default:var h=+g;if(h===0)return C;if(h>u){var N=t(h/10);return N===0?C:N<=u?c[N-1]===void 0?o(g,1):c[N-1]+o(g,1):C}v=c[h-1]}return v===void 0?"":v})}},26856:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.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")()},3302:function(I,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},51653:function(I){"use strict";I.exports={}},66481:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(I,r,n){"use strict";var e=n(22070);I.exports=e("document","documentElement")},16109:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var l=r(p),c=p*8-y-1,m=(1<<c)-1,i=m>>1,d=y===23?e(2,-24)-e(2,-77):0,u=S<0||S===0&&1/S<0?1:0,s=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=m):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+i>=1?S+=d/v:S+=d*e(2,1-i),S*v>=2&&(C++,v/=2),C+i>=m?(g=0,C=m):C+i>=1?(g=(S*v-1)*e(2,y),C+=i):(g=S*e(2,i-1)*e(2,y),C=0));y>=8;)l[s++]=g&255,g/=256,y-=8;for(C=C<<y|g,c+=y;c>0;)l[s++]=C&255,C/=256,c-=8;return l[--s]|=u*128,l},V=function(S,y){var p=S.length,l=p*8-y-1,c=(1<<l)-1,m=c>>1,i=l-7,d=p-1,u=S[d--],s=u&127,C;for(u>>=7;i>0;)s=s*256+S[d--],i-=8;for(C=s&(1<<-i)-1,s>>=-i,i+=y;i>0;)C=C*256+S[d--],i-=8;if(s===0)s=1-m;else{if(s===c)return C?NaN:u?-1/0:1/0;C+=e(2,y),s-=m}return(u?-1:1)*C*e(2,s-y)};I.exports={pack:f,unpack:V}},80689:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},43405:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);I.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},92004:function(I,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),I.exports=t.inspectSource},66526:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),V=n(8165).f,k=n(60097),S=n(31024),y=n(58221),p=n(76246),l=n(58199),c=!1,m=p("meta"),i=0,d=function(N){V(N,m,{value:{objectID:"O"+i++,weakData:{}}})},u=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!y(N))return"F";if(!b)return"E";d(N)}return N[m].objectID},s=function(N,b){if(!f(N,m)){if(!y(N))return!0;if(!b)return!1;d(N)}return N[m].weakData},C=function(N){return l&&c&&y(N)&&!f(N,m)&&d(N),N},g=function(){v.enable=function(){},c=!0;var N=k.f,b=a([].splice),B={};B[m]=1,N(B).length&&(k.f=function(L){for(var w=N(L),T=0,A=w.length;T<A;T++)if(w[T]===m){b(w,T,1);break}return w},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:S.f}))},v=I.exports={enable:g,fastKey:u,getWeakData:s,onFreeze:C};t[m]=!0},4471:function(I,r,n){"use strict";var e=n(73844),a=n(26856),t=n(66379),o=n(21650),f=n(3302),V=n(70192),k=n(97223),S=n(51653),y="Object already initialized",p=a.TypeError,l=a.WeakMap,c,m,i,d=function(v){return i(v)?m(v):c(v,{})},u=function(v){return function(h){var N;if(!t(h)||(N=m(h)).type!==v)throw new p("Incompatible receiver, "+v+" required");return N}};if(e||V.state){var s=V.state||(V.state=new l);s.get=s.get,s.has=s.has,s.set=s.set,c=function(v,h){if(s.has(v))throw new p(y);return h.facade=v,s.set(v,h),h},m=function(v){return s.get(v)||{}},i=function(v){return s.has(v)}}else{var C=k("state");S[C]=!0,c=function(v,h){if(f(v,C))throw new p(y);return h.facade=v,o(v,C,h),h},m=function(v){return f(v,C)?v[C]:{}},i=function(v){return f(v,C)}}I.exports={set:c,get:m,has:i,enforce:d,getterFor:u}},48594:function(I,r,n){"use strict";var e=n(95558),a=n(47730),t=e("iterator"),o=Array.prototype;I.exports=function(f){return f!==void 0&&(a.Array===f||o[t]===f)}},59882:function(I,r,n){"use strict";var e=n(8649);I.exports=Array.isArray||function(){function a(t){return e(t)==="Array"}return a}()},76567:function(I,r,n){"use strict";var e=n(48615);I.exports=function(a){var t=e(a);return t==="BigInt64Array"||t==="BigUint64Array"}},53664:function(I){"use strict";var r=typeof document=="object"&&document.all;I.exports=typeof r=="undefined"&&r!==void 0?function(n){return typeof n=="function"||n===r}:function(n){return typeof n=="function"}},49632:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(48615),f=n(22070),V=n(92004),k=function(){},S=[],y=f("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=e(p.exec),c=!p.test(k),m=function(){function d(u){if(!t(u))return!1;try{return y(k,S,u),!0}catch(s){return!1}}return d}(),i=function(){function d(u){if(!t(u))return!1;switch(o(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(p,V(u))}catch(s){return!0}}return d}();i.sham=!0,I.exports=!y||a(function(){var d;return m(m.call)||!m(Object)||!m(function(){d=!0})||d})?i:m},75129:function(I,r,n){"use strict";var e=n(3302);I.exports=function(a){return a!==void 0&&(e(a,"value")||e(a,"writable"))}},23620:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=/#|\.prototype\./,o=function(p,l){var c=V[f(p)];return c===S?!0:c===k?!1:a(l)?e(l):!!l},f=o.normalize=function(y){return String(y).replace(t,".").toLowerCase()},V=o.data={},k=o.NATIVE="N",S=o.POLYFILL="P";I.exports=o},76117:function(I,r,n){"use strict";var e=n(66379),a=Math.floor;I.exports=Number.isInteger||function(){function t(o){return!e(o)&&isFinite(o)&&a(o)===o}return t}()},62695:function(I){"use strict";I.exports=function(r){return r==null}},66379:function(I,r,n){"use strict";var e=n(53664);I.exports=function(a){return typeof a=="object"?a!==null:e(a)}},62600:function(I,r,n){"use strict";var e=n(66379);I.exports=function(a){return e(a)||a===null}},90139:function(I){"use strict";I.exports=!1},28774:function(I,r,n){"use strict";var e=n(66379),a=n(8649),t=n(95558),o=t("match");I.exports=function(f){var V;return e(f)&&((V=f[o])!==void 0?!!V:a(f)==="RegExp")}},43474:function(I,r,n){"use strict";var e=n(22070),a=n(53664),t=n(54341),o=n(95343),f=Object;I.exports=o?function(V){return typeof V=="symbol"}:function(V){var k=e("Symbol");return a(k)&&t(k.prototype,f(V))}},20453:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(45418),o=n(36787),f=n(48594),V=n(83207),k=n(54341),S=n(45731),y=n(52984),p=n(65169),l=TypeError,c=function(d,u){this.stopped=d,this.result=u},m=c.prototype;I.exports=function(i,d,u){var s=u&&u.that,C=!!(u&&u.AS_ENTRIES),g=!!(u&&u.IS_RECORD),v=!!(u&&u.IS_ITERATOR),h=!!(u&&u.INTERRUPTED),N=e(d,s),b,B,L,w,T,A,x,E=function(M){return b&&p(b,"normal",M),new c(!0,M)},P=function(M){return C?(t(M),h?N(M[0],M[1],E):N(M[0],M[1])):h?N(M,E):N(M)};if(g)b=i.iterator;else if(v)b=i;else{if(B=y(i),!B)throw new l(o(i)+" is not iterable");if(f(B)){for(L=0,w=V(i);w>L;L++)if(T=P(i[L]),T&&k(m,T))return T;return new c(!1)}b=S(i,B)}for(A=g?i.next:b.next;!(x=a(A,b)).done;){try{T=P(x.value)}catch(R){p(b,"throw",R)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},65169:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);I.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw V;if(S)throw k;return a(k),V}},41903:function(I,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),V=function(){return this};I.exports=function(k,S,y,p){var l=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,l,!1,!0),f[l]=V,k}},21436:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),V=n(41903),k=n(56379),S=n(91420),y=n(15676),p=n(21650),l=n(60855),c=n(95558),m=n(47730),i=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=i.IteratorPrototype,C=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",N="entries",b=function(){return this};I.exports=function(B,L,w,T,A,x,E){V(w,L,T);var P=function(Y){if(Y===A&&F)return F;if(!C&&Y&&Y in D)return D[Y];switch(Y){case v:return function(){function Z(){return new w(this,Y)}return Z}();case h:return function(){function Z(){return new w(this,Y)}return Z}();case N:return function(){function Z(){return new w(this,Y)}return Z}()}return function(){return new w(this)}},R=L+" Iterator",M=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],F=!C&&j||P(A),W=L==="Array"&&D.entries||j,K,_,$;if(W&&(K=k(W.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==s&&(S?S(K,s):f(K[g])||l(K,g,b)),y(K,R,!0,!0),t&&(m[R]=b))),d&&A===h&&j&&j.name!==h&&(!t&&u?p(D,"name",h):(M=!0,F=function(){function z(){return a(j,this)}return z}())),A)if(_={values:P(h),keys:x?F:P(v),entries:P(N)},E)for($ in _)(C||M||!($ in D))&&l(D,$,_[$]);else e({target:L,proto:!0,forced:C||M},_);return(!t||E)&&D[g]!==F&&l(D,g,F,{name:A}),m[L]=F,_}},83665:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),V=n(60855),k=n(95558),S=n(90139),y=k("iterator"),p=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):p=!0);var i=!t(l)||e(function(){var d={};return l[y].call(d)!==d});i?l={}:S&&(l=o(l)),a(l[y])||V(l,y,function(){return this}),I.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},47730:function(I){"use strict";I.exports={}},83207:function(I,r,n){"use strict";var e=n(74369);I.exports=function(a){return e(a.length)}},40773:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),V=n(15340).CONFIGURABLE,k=n(92004),S=n(4471),y=S.enforce,p=S.get,l=String,c=Object.defineProperty,m=e("".slice),i=e("".replace),d=e([].join),u=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),s=String(String).split("String"),C=I.exports=function(g,v,h){m(l(v),0,7)==="Symbol("&&(v="["+i(l(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||V&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),u&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var N=y(g);return o(N,"source")||(N.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},80563:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.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},27509:function(I,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};I.exports=function(V,k,S,y){var p=+V,l=a(p),c=e(p);if(l<y)return c*f(l/y/k)*y*k;var m=(1+k/t)*l,i=m-(m-l);return i>S||i!==i?c*(1/0):c*i}},48705:function(I,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},74347:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(I){"use strict";var r=Math.log;I.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}()},30585:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(I,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),V=n(25184),k=n(79034),S=n(71979),y=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),d,u,s,C,g;if(!i){var v=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(L){throw v.head&&d(),L}b&&b.enter()};!V&&!y&&!S&&p&&l?(u=!0,s=l.createTextNode(""),new p(h).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!k&&m&&m.resolve?(C=m.resolve(void 0),C.constructor=m,g=t(C.then,C),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),i=function(b){v.head||d(),v.add(b)}}I.exports=i},14187:function(I,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,y){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=y}),this.resolve=e(V),this.reject=e(k)};I.exports.f=function(o){return new t(o)}},75816:function(I,r,n){"use strict";var e=n(28774),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(I,r,n){"use strict";var e=n(26856),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,V=n(47410),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,l=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});I.exports=l?function(){function c(m){var i=f(o(m)),d=S(i);return d===0&&k(i,0)==="-"?-0:d}return c}():S},41148:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,V=n(47410),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||y&&!a(function(){k(Object(y))});I.exports=c?function(){function m(i,d){var u=f(o(i));return k(u,d>>>0||(l(p,u)?16:10))}return m}():k},23554:function(I,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),V=n(61791),k=n(10409),S=n(63549),y=n(80689),p=Object.assign,l=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(l({},"a",{enumerable:!0,get:function(){function s(){l(this,"b",{value:3,enumerable:!1})}return s}()}),{b:2})).b!==1)return!0;var m={},i={},d=Symbol("assign detection"),u="abcdefghijklmnopqrst";return m[d]=7,u.split("").forEach(function(s){i[s]=s}),p({},m)[d]!==7||f(p({},i)).join("")!==u})?function(){function m(i,d){for(var u=S(i),s=arguments.length,C=1,g=V.f,v=k.f;s>C;)for(var h=y(arguments[C++]),N=g?c(f(h),g(h)):f(h),b=N.length,B=0,L;b>B;)L=N[B++],(!e||t(v,h,L))&&(u[L]=h[L]);return u}return m}():p},15439:function(I,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),V=n(55642),k=n(97223),S=">",y="<",p="prototype",l="script",c=k("IE_PROTO"),m=function(){},i=function(v){return y+l+S+v+y+"/"+l+S},d=function(v){v.write(i("")),v.close();var h=v.parentWindow.Object;return v=null,h},u=function(){var v=V("iframe"),h="java"+l+":",N;return v.style.display="none",f.appendChild(v),v.src=String(h),N=v.contentWindow.document,N.open(),N.write(i("document.F=Object")),N.close(),N.F},s,C=function(){try{s=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,I.exports=Object.create||function(){function g(v,h){var N;return v!==null?(m[p]=e(v),N=new m,m[p]=null,N[c]=v):N=C(),h===void 0?N:a.f(N,h)}return g}()},55119:function(I,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),V=n(99869);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),l=V(y),c=l.length,m=0,i;c>m;)t.f(S,i=l[m++],p[i]);return S}return k}()},8165:function(I,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",l="writable";r.f=e?t?function(){function c(m,i,d){if(o(m),i=f(i),o(d),typeof m=="function"&&i==="prototype"&&"value"in d&&l in d&&!d[l]){var u=S(m,i);u&&u[l]&&(m[i]=d.value,d={configurable:p in d?d[p]:u[p],enumerable:y in d?d[y]:u[y],writable:!1})}return k(m,i,d)}return c}():k:function(){function c(m,i,d){if(o(m),i=f(i),o(d),a)try{return k(m,i,d)}catch(u){}if("get"in d||"set"in d)throw new V("Accessors not supported");return"value"in d&&(m[i]=d.value),m}return c}()},19765:function(I,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),V=n(72445),k=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(l,c){if(l=f(l),c=V(c),S)try{return y(l,c)}catch(m){}if(k(l,c))return o(!a(t.f,l,c),l[c])}return p}()},31024:function(I,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(y){return o(f)}};I.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},60097:function(I,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},61791:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(I,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),V=o("IE_PROTO"),k=Object,S=k.prototype;I.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,V))return p[V];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof k?S:null}},58221:function(I,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,V=e(function(){f(1)});I.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},54341:function(I,r,n){"use strict";var e=n(72908);I.exports=e({}.isPrototypeOf)},49871:function(I,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),V=e([].push);I.exports=function(k,S){var y=t(k),p=0,l=[],c;for(c in y)!a(f,c)&&a(y,c)&&V(l,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(l,c)||V(l,c));return l}},99869:function(I,r,n){"use strict";var e=n(49871),a=n(38139);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(I,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},6205:function(I,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);I.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(I,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},V;try{V=e(Object.prototype,"__proto__","set"),V(f,[]),o=f instanceof Array}catch(k){}return function(){function k(S,y){return a(S),t(y),o?V(S,y):S.__proto__=y,S}return k}()}():void 0)},64266:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),V=n(54292),k=n(10409).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(m){return function(i){for(var d=V(i),u=f(d),s=p&&o(d)===null,C=u.length,g=0,v=[],h;C>g;)h=u[g++],(!e||(s?h in d:S(d,h)))&&y(v,m?[h,d[h]]:d[h]);return v}};I.exports={entries:l(!0),values:l(!1)}},6625:function(I,r,n){"use strict";var e=n(41936),a=n(48615);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(I,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;I.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(I,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),V=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?V(y,p(S)):y}return k}()},55601:function(I,r,n){"use strict";var e=n(26856);I.exports=e},73034:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(I,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),V=n(95558),k=n(52460),S=n(53437),y=n(90139),p=n(43541),l=a&&a.prototype,c=V("species"),m=!1,i=t(e.PromiseRejectionEvent),d=o("Promise",function(){var u=f(a),s=u!==String(a);if(!s&&p===66||y&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(u)){var C=new a(function(h){h(1)}),g=function(N){N(function(){},function(){})},v=C.constructor={};if(v[c]=g,m=C.then(function(){})instanceof g,!m)return!0}return!s&&(k||S)&&!i});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:i,SUBCLASSING:m}},3e3:function(I,r,n){"use strict";var e=n(26856);I.exports=e.Promise},61988:function(I,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);I.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},18182:function(I,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(I,r,n){"use strict";var e=n(8165).f;I.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(V){t[o]=V}return f}()})}},8274:function(I){"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}()},I.exports=r},59833:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),V=TypeError;I.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},59049:function(I,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),V=n(7624),k=n(15439),S=n(4471).get,y=n(18095),p=n(17329),l=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,i=a("".charAt),d=a("".indexOf),u=a("".replace),s=a("".slice),C=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||g||y||p;h&&(m=function(){function N(b){var B=this,L=S(B),w=t(b),T=L.raw,A,x,E,P,R,M,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=L.groups,F=g&&B.sticky,W=e(o,B),K=B.source,_=0,$=w;if(F&&(W=u(W,"y",""),d(W,"g")===-1&&(W+="g"),$=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",$=" "+$,_++),x=new RegExp("^(?:"+K+")",W)),v&&(x=new RegExp("^"+K+"$(?!\\s)",W)),C&&(E=B.lastIndex),P=e(c,F?x:B,$),F?P?(P.input=s(P.input,_),P[0]=s(P[0],_),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:C&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(l,P[0],x,function(){for(R=1;R<arguments.length-2;R++)arguments[R]===void 0&&(P[R]=void 0)}),P&&j)for(P.groups=M=k(null),R=0;R<j.length;R++)D=j[R],M[D[0]]=P[D[1]];return P}return N}()),I.exports=m},41913:function(I,r,n){"use strict";var e=n(45418);I.exports=function(){var a=e(this),t="";return a.hasIndices&&(t+="d"),a.global&&(t+="g"),a.ignoreCase&&(t+="i"),a.multiline&&(t+="m"),a.dotAll&&(t+="s"),a.unicode&&(t+="u"),a.unicodeSets&&(t+="v"),a.sticky&&(t+="y"),t}},13980:function(I,r,n){"use strict";var e=n(20276),a=n(3302),t=n(54341),o=n(41913),f=RegExp.prototype;I.exports=function(V){var k=V.flags;return k===void 0&&!("flags"in f)&&!a(V,"flags")&&t(f,V)?e(o,V):k}},96472:function(I,r,n){"use strict";var e=n(13586),a=n(26856),t=a.RegExp,o=e(function(){var k=t("a","y");return k.lastIndex=2,k.exec("abcd")!==null}),f=o||e(function(){return!t("a","y").sticky}),V=o||e(function(){var k=t("^r","gy");return k.lastIndex=2,k.exec("str")!==null});I.exports={BROKEN_CARET:V,MISSED_STICKY:f,UNSUPPORTED_Y:o}},18095:function(I,r,n){"use strict";var e=n(13586),a=n(26856),t=a.RegExp;I.exports=e(function(){var o=t(".","s");return!(o.dotAll&&o.test("\n")&&o.flags==="s")})},17329:function(I,r,n){"use strict";var e=n(13586),a=n(26856),t=a.RegExp;I.exports=e(function(){var o=t("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},305:function(I,r,n){"use strict";var e=n(62695),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),V=n(31170),k=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,l){var c=l?2:1;return y?function(m,i){var d=k(arguments.length,1)>c,u=t(m)?m:S(m),s=d?V(arguments,c):[],C=d?function(){a(u,this,s)}:u;return l?p(C,i):p(C)}:p}},92468:function(I,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");I.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(I,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");I.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},97223:function(I,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(I,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});I.exports=o},7624:function(I,r,n){"use strict";var e=n(90139),a=n(70192);(I.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(I,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");I.exports=function(V,k){var S=e(V).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},81626:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(I,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(l,c){var m=t(o(l)),i=a(c),d=m.length,u,s;return i<0||i>=d?p?"":void 0:(u=V(m,i),u<55296||u>56319||i+1===d||(s=V(m,i+1))<56320||s>57343?p?f(m,i):u:p?k(m,i,i+2):(u-55296<<10)+(s-56320)+65536)}};I.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(I,r,n){"use strict";var e=n(74247);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(I,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),V=e(o),k=e("".slice),S=Math.ceil,y=function(l){return function(c,m,i){var d=t(f(c)),u=a(m),s=d.length,C=i===void 0?" ":t(i),g,v;return u<=s||C===""?d:(g=u-s,v=V(C,S(g/C.length)),v.length>g&&(v=k(v,0,g)),l?d+v:v+d)}};I.exports={start:y(!1),end:y(!0)}},75463:function(I,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;I.exports=function(){function f(V){var k=a(t(this)),S="",y=e(V);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},45745:function(I,r,n){"use strict";var e=n(47913).end,a=n(15677);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";I.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(I,r,n){"use strict";var e=n(47913).start,a=n(15677);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};I.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(I,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(I,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);I.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(y){return e(k,this)},{arity:1})}},16010:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),V=n(13586),k=n(21474),S=n(31170),y=n(55642),p=n(92827),l=n(25184),c=n(86727),m=e.setImmediate,i=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,C=e.MessageChannel,g=e.String,v=0,h={},N="onreadystatechange",b,B,L,w;V(function(){b=e.location});var T=function(R){if(f(h,R)){var M=h[R];delete h[R],M()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),b.protocol+"//"+b.host)};(!m||!i)&&(m=function(){function P(R){p(arguments.length,1);var M=o(R)?R:s(R),D=S(arguments,1);return h[++v]=function(){a(M,void 0,D)},B(v),v}return P}(),i=function(){function P(R){delete h[R]}return P}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:C&&!l?(L=new C,w=L.port2,L.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in y("script")?B=function(R){k.appendChild(y("script"))[N]=function(){k.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),I.exports={set:m,clear:i}},7950:function(I,r,n){"use strict";var e=n(72908);I.exports=e(1 .valueOf)},39531:function(I,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;I.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},73873:function(I,r,n){"use strict";var e=n(9560),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(I,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},54292:function(I,r,n){"use strict";var e=n(80689),a=n(305);I.exports=function(t){return e(a(t))}},84501:function(I,r,n){"use strict";var e=n(54037);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(I,r,n){"use strict";var e=n(84501),a=Math.min;I.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(I,r,n){"use strict";var e=n(305),a=Object;I.exports=function(t){return a(e(t))}},45476:function(I,r,n){"use strict";var e=n(70685),a=RangeError;I.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(I,r,n){"use strict";var e=n(84501),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(I,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),V=n(95558),k=TypeError,S=V("toPrimitive");I.exports=function(y,p){if(!a(y)||t(y))return y;var l=o(y,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},72445:function(I,r,n){"use strict";var e=n(9560),a=n(43474);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(I,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},8758:function(I,r,n){"use strict";var e=n(48615),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),V=n(30432),k=n(31284),S=n(14434),y=n(73970),p=n(21650),l=n(76117),c=n(74369),m=n(28968),i=n(45476),d=n(52834),u=n(72445),s=n(3302),C=n(48615),g=n(66379),v=n(43474),h=n(15439),N=n(54341),b=n(91420),B=n(60097).f,L=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),R=n(4471),M=n(43405),D=R.get,j=R.set,F=R.enforce,W=x.f,K=E.f,_=a.RangeError,$=k.ArrayBuffer,z=$.prototype,Y=k.DataView,Z=V.NATIVE_ARRAY_BUFFER_VIEWS,ie=V.TYPED_ARRAY_TAG,ae=V.TypedArray,se=V.TypedArrayPrototype,he=V.isTypedArray,ye="BYTES_PER_ELEMENT",Le="Wrong length",pe=function(ne,be){A(ne,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},oe=function(ne){var be;return N(z,ne)||(be=C(ne))==="ArrayBuffer"||be==="SharedArrayBuffer"},Q=function(ne,be){return he(ne)&&!v(be)&&be in ne&&l(+be)&&be>=0},q=function(){function me(ne,be){return be=u(be),Q(ne,be)?y(2,ne[be]):K(ne,be)}return me}(),ue=function(){function me(ne,be,fe){return be=u(be),Q(ne,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(ne[be]=fe.value,ne):W(ne,be,fe)}return me}();o?(Z||(E.f=q,x.f=ue,pe(se,"buffer"),pe(se,"byteOffset"),pe(se,"byteLength"),pe(se,"length")),e({target:"Object",stat:!0,forced:!Z},{getOwnPropertyDescriptor:q,defineProperty:ue}),I.exports=function(me,ne,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,ve="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},Ue=function(de,Ne){var Ae=D(de);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(de,Ne,Ae){var De=D(de);De.view[ve](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},re=function(de,Ne){W(de,Ne,{get:function(){function Ae(){return Ue(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};Z?f&&(we=ne(function(Ce,de,Ne,Ae){return S(Ce,xe),M(function(){return g(de)?oe(de)?Ae!==void 0?new Se(de,i(Ne,fe),Ae):Ne!==void 0?new Se(de,i(Ne,fe)):new Se(de):he(de)?P(we,de):t(L,we,de):new Se(m(de))}(),Ce,we)}),b&&b(we,ae),w(B(Se),function(Ce){Ce in we||p(we,Ce,Se[Ce])}),we.prototype=xe):(we=ne(function(Ce,de,Ne,Ae){S(Ce,xe);var De=0,je=0,Ke,We,He;if(!g(de))He=m(de),We=He*fe,Ke=new $(We);else if(oe(de)){Ke=de,je=i(Ne,fe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%fe)throw new _(Le);if(We=Ge-je,We<0)throw new _(Le)}else if(We=c(Ae)*fe,We+je>Ge)throw new _(Le);He=We/fe}else return he(de)?P(we,de):t(L,we,de);for(j(Ce,{buffer:Ke,byteOffset:je,byteLength:We,length:He,view:new Y(Ke)});De<He;)re(Ce,De++)}),b&&b(we,ae),xe=we.prototype=h(se)),xe.constructor!==we&&p(xe,"constructor",we),F(xe).TypedArrayConstructor=we,ie&&p(xe,ie,ge);var le=we!==Se;Oe[ge]=we,e({global:!0,constructor:!0,forced:le,sham:!Z},Oe),ye in we||p(we,ye,fe),ye in xe||p(xe,ye,fe),T(ge)}):I.exports=function(){}},45410:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(1608),o=n(30432).NATIVE_ARRAY_BUFFER_VIEWS,f=e.ArrayBuffer,V=e.Int8Array;I.exports=!o||!a(function(){V(1)})||!a(function(){new V(-1)})||!t(function(k){new V,new V(null),new V(1.5),new V(k)},!0)||a(function(){return new V(new f(2),1,void 0).length!==1})},85710:function(I,r,n){"use strict";var e=n(21465),a=n(9230);I.exports=function(t,o){return e(a(t),o)}},12778:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(48218),o=n(63549),f=n(83207),V=n(45731),k=n(52984),S=n(48594),y=n(76567),p=n(30432).aTypedArrayConstructor,l=n(73873);I.exports=function(){function c(m){var i=t(this),d=o(m),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0,g=k(d),v,h,N,b,B,L,w,T;if(g&&!S(g))for(w=V(d,g),T=w.next,d=[];!(L=a(T,w)).done;)d.push(L.value);for(C&&u>2&&(s=e(s,arguments[2])),h=f(d),N=new(p(i))(h),b=y(N),v=0;h>v;v++)B=C?s(d[v],v):d[v],N[v]=b?l(B):+B;return N}return c}()},9230:function(I,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(f){return t(a(f,o(f)))}},76246:function(I,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(I,r,n){"use strict";var e=n(16361),a=n(13586);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n<e)throw new r("Not enough arguments");return n}},73844:function(I,r,n){"use strict";var e=n(26856),a=n(53664),t=e.WeakMap;I.exports=a(t)&&/native code/.test(String(t))},20614:function(I,r,n){"use strict";var e=n(55601),a=n(3302),t=n(15355),o=n(8165).f;I.exports=function(f){var V=e.Symbol||(e.Symbol={});a(V,f)||o(V,f,{value:t.f(f)})}},15355:function(I,r,n){"use strict";var e=n(95558);r.f=e},95558:function(I,r,n){"use strict";var e=n(26856),a=n(7624),t=n(3302),o=n(76246),f=n(61855),V=n(95343),k=e.Symbol,S=a("wks"),y=V?k.for||k:k&&k.withoutSetter||o;I.exports=function(p){return t(S,p)||(S[p]=f&&t(k,p)?k[p]:y("Symbol."+p)),S[p]}},47410:function(I){"use strict";I.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"},41365:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(31284),o=n(92468),f="ArrayBuffer",V=t[f],k=a[f];e({global:!0,constructor:!0,forced:k!==V},{ArrayBuffer:V}),o(f)},58874:function(I,r,n){"use strict";var e=n(3116),a=n(30432),t=a.NATIVE_ARRAY_BUFFER_VIEWS;e({target:"ArrayBuffer",stat:!0,forced:!t},{isView:a.isView})},85806:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(13586),o=n(31284),f=n(45418),V=n(39531),k=n(74369),S=n(83604),y=o.ArrayBuffer,p=o.DataView,l=p.prototype,c=a(y.prototype.slice),m=a(l.getUint8),i=a(l.setUint8),d=t(function(){return!new y(2).slice(1,void 0).byteLength});e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d},{slice:function(){function u(s,C){if(c&&C===void 0)return c(f(this),s);for(var g=f(this).byteLength,v=V(s,g),h=V(C===void 0?g:C,g),N=new(S(this,y))(k(h-v)),b=new p(this),B=new p(N),L=0;v<h;)i(B,L++,m(b,v++));return N}return u}()})},75836:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(59882),o=n(66379),f=n(63549),V=n(83207),k=n(54579),S=n(80750),y=n(51582),p=n(34924),l=n(95558),c=n(43541),m=l("isConcatSpreadable"),i=c>=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(C){if(!o(C))return!1;var g=C[m];return g!==void 0?!!g:t(C)},u=!i||!p("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(C){var g=f(this),v=y(g,0),h=0,N,b,B,L,w;for(N=-1,B=arguments.length;N<B;N++)if(w=N===-1?g:arguments[N],d(w))for(L=V(w),k(h+L),b=0;b<L;b++,h++)b in w&&S(v,h,w[b]);else k(h+1),S(v,h++,w);return v.length=h,v}return s}()})},33901:function(I,r,n){"use strict";var e=n(3116),a=n(28332),t=n(98759);e({target:"Array",proto:!0},{copyWithin:a}),t("copyWithin")},85803:function(I,r,n){"use strict";var e=n(3116),a=n(18539).every,t=n(56127),o=t("every");e({target:"Array",proto:!0,forced:!o},{every:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},7216:function(I,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(I,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(I,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},26632:function(I,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},14064:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),V=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),l;return t(S),l=V(y,0),l.length=a(l,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return k}()})},55222:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),V=n(51582);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),l=V(y,0);return l.length=a(l,y,y,p,0,S===void 0?1:f(S)),l}return k}()})},68616:function(I,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(I,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(I,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},92654:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,y,p)||0:t(this,y,p)}return S}()})},58423:function(I,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(I,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,V=n(21436),k=n(32214),S=n(90139),y=n(16361),p="Array Iterator",l=o.set,c=o.getterFor(p);I.exports=V(Array,"Array",function(i,d){l(this,{type:p,target:e(i),index:0,kind:d})},function(){var i=c(this),d=i.target,u=i.index++;if(!d||u>=d.length)return i.target=void 0,k(void 0,!0);switch(i.kind){case"keys":return k(u,!1);case"values":return k(d[u],!1)}return k([u,d[u]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(i){}},37808:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return V(o(this),p===void 0?",":p)}return y}()})},2509:function(I,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(I,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},56913:function(I,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(I,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},24077:function(I,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),V=n(83207),k=n(54292),S=n(80750),y=n(95558),p=n(34924),l=n(31170),c=p("slice"),m=y("species"),i=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,C){var g=k(this),v=V(g),h=f(s,v),N=f(C===void 0?v:C,v),b,B,L;if(a(g)&&(b=g.constructor,t(b)&&(b===i||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===i||b===void 0))return l(g,h,N);for(B=new(b===void 0?i:b)(d(N-h,0)),L=0;h<N;h++,L++)h in g&&S(B,L,g[h]);return B.length=L,B}return u}()})},60230:function(I,r,n){"use strict";var e=n(3116),a=n(18539).some,t=n(56127),o=t("some");e({target:"Array",proto:!0,forced:!o},{some:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},43430:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),V=n(81245),k=n(8758),S=n(13586),y=n(91183),p=n(56127),l=n(31574),c=n(88836),m=n(43541),i=n(27204),d=[],u=a(d.sort),s=a(d.push),C=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=p("sort"),h=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(i)return i<603;var B="",L,w,T,A;for(L=65;L<76;L++){switch(w=String.fromCharCode(L),L){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;A<d.length;A++)w=d[A].k.charAt(0),B.charAt(B.length-1)!==w&&(B+=w);return B!=="DGBEFHACIJK"}}),N=C||!g||!v||!h,b=function(L){return function(w,T){return T===void 0?-1:w===void 0?1:L!==void 0?+L(w,T)||0:k(w)>k(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(L){L!==void 0&&t(L);var w=o(this);if(h)return L===void 0?u(w):u(w,L);var T=[],A=f(w),x,E;for(E=0;E<A;E++)E in w&&s(T,w[E]);for(y(T,b(L)),x=f(T),E=0;E<x;)w[E]=T[E++];for(;E<A;)V(w,E++);return w}return B}()})},53407:function(I,r,n){"use strict";var e=n(92468);e("Array")},69220:function(I,r,n){"use strict";var e=n(3116),a=n(63549),t=n(39531),o=n(84501),f=n(83207),V=n(10779),k=n(54579),S=n(51582),y=n(80750),p=n(81245),l=n(34924),c=l("splice"),m=Math.max,i=Math.min;e({target:"Array",proto:!0,forced:!c},{splice:function(){function d(u,s){var C=a(this),g=f(C),v=t(u,g),h=arguments.length,N,b,B,L,w,T;for(h===0?N=b=0:h===1?(N=0,b=g-v):(N=h-2,b=i(m(o(s),0),g-v)),k(g+N-b),B=S(C,b),L=0;L<b;L++)w=v+L,w in C&&y(B,L,C[w]);if(B.length=b,N<b){for(L=v;L<g-b;L++)w=L+b,T=L+N,w in C?C[T]=C[w]:p(C,T);for(L=g;L>g-b+N;L--)p(C,L-1)}else if(N>b)for(L=g-b;L>v;L--)w=L+b-1,T=L+N-1,w in C?C[T]=C[w]:p(C,T);for(L=0;L<N;L++)C[L+v]=arguments[L+2];return V(C,g-b+N),B}return d}()})},55784:function(I,r,n){"use strict";var e=n(98759);e("flatMap")},72978:function(I,r,n){"use strict";var e=n(98759);e("flat")},42860:function(I,r,n){"use strict";var e=n(3116),a=n(31284),t=n(11559);e({global:!0,constructor:!0,forced:!t},{DataView:a.DataView})},3521:function(I,r,n){"use strict";n(42860)},94961:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=Date,o=a(t.prototype.getTime);e({target:"Date",stat:!0},{now:function(){function f(){return o(new t)}return f}()})},91777:function(I,r,n){"use strict";var e=n(3116),a=n(20228);e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==a},{toISOString:a})},49615:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(9560),f=a(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){function V(){return 1}return V}()})!==1});e({target:"Date",proto:!0,arity:1,forced:f},{toJSON:function(){function V(k){var S=t(this),y=o(S,"number");return typeof y=="number"&&!isFinite(y)?null:S.toISOString()}return V}()})},70700:function(I,r,n){"use strict";var e=n(3302),a=n(60855),t=n(81603),o=n(95558),f=o("toPrimitive"),V=Date.prototype;e(V,f)||a(V,f,t)},31032:function(I,r,n){"use strict";var e=n(72908),a=n(60855),t=Date.prototype,o="Invalid Date",f="toString",V=e(t[f]),k=e(t.getTime);String(new Date(NaN))!==o&&a(t,f,function(){function S(){var y=k(this);return y===y?V(this):o}return S}())},83329:function(I,r,n){"use strict";var e=n(3116),a=n(82060);e({target:"Function",proto:!0,forced:Function.bind!==a},{bind:a})},15700:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(8165),o=n(54341),f=n(95558),V=n(40773),k=f("hasInstance"),S=Function.prototype;k in S||t.f(S,k,{value:V(function(y){if(!e(this)||!a(y))return!1;var p=this.prototype;return a(p)?o(p,y):y instanceof this},k)})},85783:function(I,r,n){"use strict";var e=n(16361),a=n(15340).EXISTS,t=n(72908),o=n(57301),f=Function.prototype,V=t(f.toString),k=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,S=t(k.exec),y="name";e&&!a&&o(f,y,{configurable:!0,get:function(){function p(){try{return S(k,V(this))[1]}catch(l){return""}}return p}()})},34233:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(20276),f=n(72908),V=n(13586),k=n(53664),S=n(43474),y=n(31170),p=n(58226),l=n(61855),c=String,m=a("JSON","stringify"),i=f(/./.exec),d=f("".charAt),u=f("".charCodeAt),s=f("".replace),C=f(1 .toString),g=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,h=/^[\uDC00-\uDFFF]$/,N=!l||V(function(){var w=a("Symbol")("stringify detection");return m([w])!=="[null]"||m({a:w})!=="{}"||m(Object(w))!=="{}"}),b=V(function(){return m("\uDF06\uD834")!=='"\\udf06\\ud834"'||m("\uDEAD")!=='"\\udead"'}),B=function(T,A){var x=y(arguments),E=p(A);if(!(!k(E)&&(T===void 0||S(T))))return x[1]=function(P,R){if(k(E)&&(R=o(E,this,c(P),R)),!S(R))return R},t(m,null,x)},L=function(T,A,x){var E=d(x,A-1),P=d(x,A+1);return i(v,T)&&!i(h,P)||i(h,T)&&!i(v,E)?"\\u"+C(u(T,0),16):T};m&&e({target:"JSON",stat:!0,arity:3,forced:N||b},{stringify:function(){function w(T,A,x){var E=y(arguments),P=t(N?B:m,null,E);return b&&typeof P=="string"?s(P,g,L):P}return w}()})},51430:function(I,r,n){"use strict";var e=n(26856),a=n(15676);a(e.JSON,"JSON",!0)},88826:function(I,r,n){"use strict";var e=n(10609),a=n(42384);e("Map",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},10944:function(I,r,n){"use strict";n(88826)},36418:function(I,r,n){"use strict";var e=n(3116),a=n(50169),t=Math.acosh,o=Math.log,f=Math.sqrt,V=Math.LN2,k=!t||Math.floor(t(Number.MAX_VALUE))!==710||t(1/0)!==1/0;e({target:"Math",stat:!0,forced:k},{acosh:function(){function S(y){var p=+y;return p<1?NaN:p>9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},68872:function(I,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},93105:function(I,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},1795:function(I,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},11121:function(I,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},18730:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},11624:function(I,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(I,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(I,r,n){"use strict";var e=n(3116),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 V(k,S){for(var y=0,p=0,l=arguments.length,c=0,m,i;p<l;)m=t(arguments[p++]),c<m?(i=c/m,y=y*i*i+1,c=m):m>0?(i=m/c,y+=i*i):y+=m;return c===1/0?1/0:c*o(y)}return V}()})},75213:function(I,r,n){"use strict";var e=n(3116),a=n(13586),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(V,k){var S=65535,y=+V,p=+k,l=S&y,c=S&p;return 0|l*c+((S&y>>>16)*c+l*(S&p>>>16)<<16>>>0)}return f}()})},4347:function(I,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(I,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(I,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},54468:function(I,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},95499:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},50929:function(I,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(I,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),V=n(72908),k=n(23620),S=n(3302),y=n(43405),p=n(54341),l=n(43474),c=n(9560),m=n(13586),i=n(60097).f,d=n(19765).f,u=n(8165).f,s=n(7950),C=n(47913).trim,g="Number",v=o[g],h=f[g],N=v.prototype,b=o.TypeError,B=V("".slice),L=V("".charCodeAt),w=function(M){var D=c(M,"number");return typeof D=="bigint"?D:T(D)},T=function(M){var D=c(M,"number"),j,F,W,K,_,$,z,Y;if(l(D))throw new b("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=C(D),j=L(D,0),j===43||j===45){if(F=L(D,2),F===88||F===120)return NaN}else if(j===48){switch(L(D,1)){case 66:case 98:W=2,K=49;break;case 79:case 111:W=8,K=55;break;default:return+D}for(_=B(D,2),$=_.length,z=0;z<$;z++)if(Y=L(_,z),Y<48||Y>K)return NaN;return parseInt(_,W)}}return+D},A=k(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return p(N,M)&&m(function(){s(M)})},E=function(){function R(M){var D=arguments.length<1?0:v(w(M));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,D){for(var j=t?i(D):"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,W;j.length>F;F++)S(D,W=j[F])&&!S(M,W)&&u(M,W,d(D,W))};a&&h&&P(f[g],h),(A||a)&&P(f[g],v)},48211:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(I,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(I,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(I,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},82678:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),V=n(13586),k=RangeError,S=String,y=Math.floor,p=a(f),l=a("".slice),c=a(1 .toFixed),m=function g(v,h,N){return h===0?N:h%2===1?g(v,h-1,N*v):g(v*v,h/2,N)},i=function(v){for(var h=0,N=v;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},d=function(v,h,N){for(var b=-1,B=N;++b<6;)B+=h*v[b],v[b]=B%1e7,B=y(B/1e7)},u=function(v,h){for(var N=6,b=0;--N>=0;)b+=v[N],v[N]=y(b/h),b=b%h*1e7},s=function(v){for(var h=6,N="";--h>=0;)if(N!==""||h===0||v[h]!==0){var b=S(v[h]);N=N===""?b:N+p("0",7-b.length)+b}return N},C=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var h=o(this),N=t(v),b=[0,0,0,0,0,0],B="",L="0",w,T,A,x;if(N<0||N>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=i(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=N;A>=7;)d(b,1e7,0),A-=7;for(d(b,m(10,A,1),0),A=w-1;A>=23;)u(b,8388608),A-=23;u(b,1<<A),d(b,1,1),u(b,2),L=s(b)}else d(b,0,T),d(b,1<<-w,0),L=s(b)+p("0",N);return N>0?(x=L.length,L=B+(x<=N?"0."+p("0",N-x)+L:l(L,0,x-N)+"."+l(L,x-N))):L=B+L,L}return g}()})},83403:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},4229:function(I,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),V=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){V.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},53822:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),V=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){V.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},14955:function(I,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(I,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return V&&o(y)?V(f(y)):y}return S}()})},81941:function(I,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},37245:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},8373:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),V=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,l=t(y),c={},m=0,i,d;l.length>m;)d=p(y,i=l[m++]),d!==void 0&&V(c,i,d);return c}return k}()})},81212:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(I,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},26054:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},49611:function(I,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},55750:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:V?V(y):!1}return S}()})},57745:function(I,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(I,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(k){return t(a(k))}return V}()})},63429:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),V=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.get;while(p=V(p))}return S}()})},9558:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),V=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),l=f(y),c;do if(c=k(p,l))return c.set;while(p=V(p))}return S}()})},2420:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},19015:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return V&&a(y)?V(t(y)):y}return S}()})},34137:function(I,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(I,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(I,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),V=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,l=o.f(p),c=l.resolve,m=l.reject,i=f(function(){var d=t(p.resolve),u=[],s=0,C=1;V(y,function(g){var v=s++,h=!1;C++,a(d,p,g).then(function(N){h||(h=!0,u[v]=N,--C||c(u))},m)}),--C||c(u)});return i.error&&m(i.value),l.promise}return S}()})},72188:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),V=n(53664),k=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&V(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},13779:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),V=n(60855),k=n(91420),S=n(15676),y=n(92468),p=n(79474),l=n(53664),c=n(66379),m=n(14434),i=n(83604),d=n(87073).set,u=n(60816),s=n(66481),C=n(73034),g=n(8274),v=n(4471),h=n(3e3),N=n(14657),b=n(14187),B="Promise",L=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,P=h,R=E,M=o.TypeError,D=o.document,j=o.process,F=b.f,W=F,K=!!(D&&D.createEvent&&o.dispatchEvent),_="unhandledrejection",$="rejectionhandled",z=0,Y=1,Z=2,ie=1,ae=2,se,he,ye,Le,pe=function(ve){var Se;return c(ve)&&l(Se=ve.then)?Se:!1},oe=function(ve,Se){var we=Se.value,xe=Se.state===Y,Oe=xe?ve.ok:ve.fail,Ue=ve.resolve,Ve=ve.reject,re=ve.domain,le,Ce,de;try{Oe?(xe||(Se.rejection===ae&&ne(Se),Se.rejection=ie),Oe===!0?le=we:(re&&re.enter(),le=Oe(we),re&&(re.exit(),de=!0)),le===ve.promise?Ve(new M("Promise-chain cycle")):(Ce=pe(le))?f(Ce,le,Ue,Ve):Ue(le)):Ve(we)}catch(Ne){re&&!de&&re.exit(),Ve(Ne)}},Q=function(ve,Se){ve.notified||(ve.notified=!0,u(function(){for(var we=ve.reactions,xe;xe=we.get();)oe(xe,ve);ve.notified=!1,Se&&!ve.rejection&&ue(ve)}))},q=function(ve,Se,we){var xe,Oe;K?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+ve])?Oe(xe):ve===_&&s("Unhandled promise rejection",we)},ue=function(ve){f(d,o,function(){var Se=ve.facade,we=ve.value,xe=me(ve),Oe;if(xe&&(Oe=C(function(){t?j.emit("unhandledRejection",we,Se):q(_,Se,we)}),ve.rejection=t||me(ve)?ae:ie,Oe.error))throw Oe.value})},me=function(ve){return ve.rejection!==ie&&!ve.parent},ne=function(ve){f(d,o,function(){var Se=ve.facade;t?j.emit("rejectionHandled",Se):q($,Se,ve.value)})},be=function(ve,Se,we){return function(xe){ve(Se,xe,we)}},fe=function(ve,Se,we){ve.done||(ve.done=!0,we&&(ve=we),ve.value=Se,ve.state=Z,Q(ve,!0))},ge=function ke(ve,Se,we){if(!ve.done){ve.done=!0,we&&(ve=we);try{if(ve.facade===Se)throw new M("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Oe={done:!1};try{f(xe,Se,be(ke,Oe,ve),be(fe,Oe,ve))}catch(Ue){fe(Oe,Ue,ve)}}):(ve.value=Se,ve.state=Y,Q(ve,!1))}catch(Oe){fe({done:!1},Oe,ve)}}};if(L&&(P=function(){function ke(ve){m(this,R),p(ve),f(se,this);var Se=A(this);try{ve(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=P.prototype,se=function(){function ke(ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:z,value:void 0})}return ke}(),se.prototype=V(R,"then",function(){function ke(ve,Se){var we=A(this),xe=F(i(this,P));return we.parent=!0,xe.ok=l(ve)?ve:!0,xe.fail=l(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===z?we.reactions.add(xe):u(function(){oe(xe,we)}),xe.promise}return ke}()),he=function(){var ve=new se,Se=A(ve);this.promise=ve,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=F=function(ve){return ve===P||ve===ye?new he(ve):W(ve)},!a&&l(h)&&E!==Object.prototype)){Le=E.then,T||V(E,"then",function(){function ke(ve,Se){var we=this;return new P(function(xe,Oe){f(Le,we,xe,Oe)}).then(ve,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:P}),S(P,B,!1,!0),y(B)},79063:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),V=n(53664),k=n(83604),S=n(61988),y=n(60855),p=t&&t.prototype,l=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function m(i){var d=k(this,f("Promise")),u=V(i);return this.then(u?function(s){return S(d,i()).then(function(){return s})}:i,u?function(s){return S(d,i()).then(function(){throw s})}:i)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},75795:function(I,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),V=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,l=o.f(p),c=l.reject,m=f(function(){var i=t(p.resolve);V(y,function(d){a(i,p,d).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},75955:function(I,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},39996:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,V=n(61988),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return V(S&&this===k?o:this,p)}return y}()})},1210:function(I,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},91370:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),V=n(45418),k=n(66379),S=n(15439),y=n(13586),p=a("Reflect","construct"),l=Object.prototype,c=[].push,m=y(function(){function u(){}return!(p(function(){},[],u)instanceof u)}),i=!y(function(){p(function(){})}),d=m||i;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,C){f(s),V(C);var g=arguments.length<3?s:f(arguments[2]);if(i&&!m)return p(s,C,g);if(s===g){switch(C.length){case 0:return new s;case 1:return new s(C[0]);case 2:return new s(C[0],C[1]);case 3:return new s(C[0],C[1],C[2]);case 4:return new s(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,s,v))}var h=g.prototype,N=S(k(h)?h:l),b=t(s,N,C);return k(b)?b:N}return u}()})},17327:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),V=n(13586),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,l){t(y);var c=o(p);t(l);try{return f.f(y,c,l),!0}catch(m){return!1}}return S}()})},2679:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},27262:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(V,k){return o.f(t(V),k)}return f}()})},47278:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(V){return t(a(V))}return f}()})},60733:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),V=n(19765),k=n(56379);function S(y,p){var l=arguments.length<3?y:arguments[2],c,m;if(o(y)===l)return y[p];if(c=V.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=k(y)))return S(m,p,l)}e({target:"Reflect",stat:!0},{get:S})},22547:function(I,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},64650:function(I,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},65558:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},97836:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),V=n(13586),k=n(8165),S=n(19765),y=n(56379),p=n(73970);function l(m,i,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),i),C,g,v;if(!s){if(o(g=y(m)))return l(g,i,d,u);s=p(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(C=S.f(u,i)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,k.f(u,i,C)}else k.f(u,i,p(0,d))}else{if(v=s.set,v===void 0)return!1;a(v,u,d)}return!0}var c=V(function(){var m=function(){},i=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},83932:function(I,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),V=n(21650),k=n(15439),S=n(60097).f,y=n(54341),p=n(28774),l=n(8758),c=n(13980),m=n(96472),i=n(69713),d=n(60855),u=n(13586),s=n(3302),C=n(4471).enforce,g=n(92468),v=n(95558),h=n(18095),N=n(17329),b=v("match"),B=a.RegExp,L=B.prototype,w=a.SyntaxError,T=t(L.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,j=new B(M)!==M,F=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,K=e&&(!j||F||h||N||u(function(){return D[b]=!1,B(M)!==M||B(D)===D||String(B(M,"i"))!=="/a/i"})),_=function(ae){for(var se=ae.length,he=0,ye="",Le=!1,pe;he<=se;he++){if(pe=A(ae,he),pe==="\\"){ye+=pe+A(ae,++he);continue}!Le&&pe==="."?ye+="[\\s\\S]":(pe==="["?Le=!0:pe==="]"&&(Le=!1),ye+=pe)}return ye},$=function(ae){for(var se=ae.length,he=0,ye="",Le=[],pe=k(null),oe=!1,Q=!1,q=0,ue="",me;he<=se;he++){if(me=A(ae,he),me==="\\")me+=A(ae,++he);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":T(R,P(ae,he+1))&&(he+=2,Q=!0),ye+=me,q++;continue;case(me===">"&&Q):if(ue===""||s(pe,ue))throw new w("Invalid capture group name");pe[ue]=!0,Le[Le.length]=[ue,q],Q=!1,ue="";continue}Q?ue+=me:ye+=me}return[ye,Le]};if(o("RegExp",K)){for(var z=function(){function ie(ae,se){var he=y(L,this),ye=p(ae),Le=se===void 0,pe=[],oe=ae,Q,q,ue,me,ne,be;if(!he&&ye&&Le&&ae.constructor===z)return ae;if((ye||y(L,ae))&&(ae=ae.source,Le&&(se=c(oe))),ae=ae===void 0?"":l(ae),se=se===void 0?"":l(se),oe=ae,h&&"dotAll"in M&&(q=!!se&&E(se,"s")>-1,q&&(se=x(se,/s/g,""))),Q=se,F&&"sticky"in M&&(ue=!!se&&E(se,"y")>-1,ue&&W&&(se=x(se,/y/g,""))),N&&(me=$(ae),ae=me[0],pe=me[1]),ne=f(B(ae,se),he?this:L,z),(q||ue||pe.length)&&(be=C(ne),q&&(be.dotAll=!0,be.raw=z(_(ae),Q)),ue&&(be.sticky=!0),pe.length&&(be.groups=pe)),ae!==oe)try{V(ne,"source",oe===""?"(?:)":oe)}catch(fe){}return ne}return ie}(),Y=S(B),Z=0;Y.length>Z;)i(z,B,Y[Z++]);L.constructor=z,z.prototype=L,d(a,"RegExp",z,{constructor:!0})}g("RegExp")},72941:function(I,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),V=e.RegExp,k=V.prototype,S=a&&f(function(){var y=!0;try{V(".","d")}catch(s){y=!1}var p={},l="",c=y?"dgimsy":"gimsy",m=function(C,g){Object.defineProperty(p,C,{get:function(){function v(){return l+=g,!0}return v}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(i.hasIndices="d");for(var d in i)m(d,i[d]);var u=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return u!==c||l!==c});S&&t(k,"flags",{configurable:!0,get:o})},2394:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),V=n(13980),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&y.name!==k;(p||l)&&a(S,k,function(){function c(){var m=t(this),i=o(m.source),d=o(V(m));return"/"+i+"/"+d}return c}(),{unsafe:!0})},98480:function(I,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(I,r,n){"use strict";n(98480)},25492:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},13684:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(I,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),V=n(75816),k=n(305),S=n(46339),y=n(90139),p=a("".slice),l=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var i=t(String.prototype,"endsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function i(d){var u=f(k(this));V(d);var s=arguments.length>1?arguments[1]:void 0,C=u.length,g=s===void 0?C:l(o(s),C),v=f(d);return p(u,g-v.length,g)===v}return i}()})},30733:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},70277:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},33683:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var l=[],c=arguments.length,m=0,i;c>m;){if(i=+arguments[m++],t(i,1114111)!==i)throw new o(i+" is not a valid code point");l[m]=i<65536?f(i):f(((i-=65536)>>10)+55296,i%1024+56320)}return k(l,"")}return y}()})},16792:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),V=n(46339),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(I,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(y){k(this,{type:V,string:a(y),index:0})},function(){function y(){var p=S(this),l=p.string,c=p.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),p.index+=m.length,f(m,!1))}return y}())},13763:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},76015:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),V=n(8758),k=n(305),S=n(76540),y=n(47158),p=n(59833);a("match",function(l,c,m){return[function(){function i(d){var u=k(this),s=o(d)?void 0:S(d,l);return s?e(s,d,u):new RegExp(d)[l](V(u))}return i}(),function(i){var d=t(this),u=V(i),s=m(c,d,u);if(s.done)return s.value;if(!d.global)return p(d,u);var C=d.unicode;d.lastIndex=0;for(var g=[],v=0,h;(h=p(d,u))!==null;){var N=V(h[0]);g[v]=N,N===""&&(d.lastIndex=y(u,f(d.lastIndex),C)),v++}return v===0?null:g}]})},57318:function(I,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);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}()})},33177:function(I,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);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}()})},1429:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),V=n(83207),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var l=t(o(p).raw),c=V(l);if(!c)return"";for(var m=arguments.length,i=[],d=0;;){if(k(i,f(l[d++])),d===c)return S(i,"");d<m&&k(i,f(arguments[d]))}}return y}()})},56515:function(I,r,n){"use strict";var e=n(3116),a=n(75463);e({target:"String",proto:!0},{repeat:a})},30343:function(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(13586),V=n(45418),k=n(53664),S=n(62695),y=n(84501),p=n(74369),l=n(8758),c=n(305),m=n(47158),i=n(76540),d=n(56802),u=n(59833),s=n(95558),C=s("replace"),g=Math.max,v=Math.min,h=t([].concat),N=t([].push),b=t("".indexOf),B=t("".slice),L=function(E){return E===void 0?E:String(E)},w=function(){return"a".replace(/./,"$0")==="$0"}(),T=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),A=!f(function(){var x=/./;return x.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(x,"$<a>")!=="7"});o("replace",function(x,E,P){var R=T?"$":"$0";return[function(){function M(D,j){var F=c(this),W=S(D)?void 0:i(D,C);return W?a(W,D,F,j):a(E,l(F),D,j)}return M}(),function(M,D){var j=V(this),F=l(M);if(typeof D=="string"&&b(D,R)===-1&&b(D,"$<")===-1){var W=P(E,j,F,D);if(W.done)return W.value}var K=k(D);K||(D=l(D));var _=j.global,$;_&&($=j.unicode,j.lastIndex=0);for(var z=[],Y;Y=u(j,F),!(Y===null||(N(z,Y),!_));){var Z=l(Y[0]);Z===""&&(j.lastIndex=m(F,p(j.lastIndex),$))}for(var ie="",ae=0,se=0;se<z.length;se++){Y=z[se];for(var he=l(Y[0]),ye=g(v(y(Y.index),F.length),0),Le=[],pe,oe=1;oe<Y.length;oe++)N(Le,L(Y[oe]));var Q=Y.groups;if(K){var q=h([he],Le,ye,F);Q!==void 0&&N(q,Q),pe=l(e(D,void 0,q))}else pe=d(he,F,ye,Le,Q,D);ye>=ae&&(ie+=B(F,ae,ye)+pe,ae=ye+he.length)}return ie+B(F,ae)}]},!A||!w||T)},60981:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),V=n(91935),k=n(8758),S=n(76540),y=n(59833);a("search",function(p,l,c){return[function(){function m(i){var d=f(this),u=o(i)?void 0:S(i,p);return u?e(u,i,d):new RegExp(i)[p](k(d))}return m}(),function(m){var i=t(this),d=k(m),u=c(l,i,d);if(u.done)return u.value;var s=i.lastIndex;V(s,0)||(i.lastIndex=0);var C=y(i,d);return V(i.lastIndex,s)||(i.lastIndex=s),C===null?-1:C.index}]})},56001:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),V=n(62695),k=n(28774),S=n(305),y=n(83604),p=n(47158),l=n(74369),c=n(8758),m=n(76540),i=n(31170),d=n(59833),u=n(59049),s=n(96472),C=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,h=Math.min,N=[].push,b=t(/./.exec),B=t(N),L=t("".slice),w=!C(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(R,M){var D=c(S(this)),j=M===void 0?v:M>>>0;if(j===0)return[];if(R===void 0)return[D];if(!k(R))return a(A,D,R,j);for(var F=[],W=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),K=0,_=new RegExp(R.source,W+"g"),$,z,Y;($=a(u,_,D))&&(z=_.lastIndex,!(z>K&&(B(F,L(D,K,$.index)),$.length>1&&$.index<D.length&&e(N,F,i($,1)),Y=$[0].length,K=z,F.length>=j)));)_.lastIndex===$.index&&_.lastIndex++;return K===D.length?(Y||!b(_,""))&&B(F,""):B(F,L(D,K)),F.length>j?i(F,0,j):F}:"0".split(void 0,0).length?E=function(R,M){return R===void 0&&M===0?[]:a(A,this,R,M)}:E=A,[function(){function P(R,M){var D=S(this),j=V(R)?void 0:m(R,T);return j?a(j,R,D,M):a(E,c(D),R,M)}return P}(),function(P,R){var M=f(this),D=c(P),j=x(E,M,D,R,E!==A);if(j.done)return j.value;var F=y(M,RegExp),W=M.unicode,K=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),_=new F(g?"^(?:"+M.source+")":M,K),$=R===void 0?v:R>>>0;if($===0)return[];if(D.length===0)return d(_,D)===null?[D]:[];for(var z=0,Y=0,Z=[];Y<D.length;){_.lastIndex=g?0:Y;var ie=d(_,g?L(D,Y):D),ae;if(ie===null||(ae=h(l(_.lastIndex+(g?Y:0)),D.length))===z)Y=p(D,Y,W);else{if(B(Z,L(D,z,Y)),Z.length===$)return Z;for(var se=1;se<=ie.length-1;se++)if(B(Z,ie[se]),Z.length===$)return Z;Y=z=ae}}return B(Z,L(D,z)),Z}]},!w,g)},59592:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),V=n(75816),k=n(305),S=n(46339),y=n(90139),p=a("".slice),l=Math.min,c=S("startsWith"),m=!y&&!c&&!!function(){var i=t(String.prototype,"startsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{startsWith:function(){function i(d){var u=f(k(this));V(d);var s=o(l(arguments.length>1?arguments[1]:void 0,u.length)),C=f(d);return p(u,s,s+C.length)===C}return i}()})},58713:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(I,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(I,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(I,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(I,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(I,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(I,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),V=n(16361),k=n(61855),S=n(13586),y=n(3302),p=n(54341),l=n(45418),c=n(54292),m=n(72445),i=n(8758),d=n(73970),u=n(15439),s=n(99869),C=n(60097),g=n(31024),v=n(61791),h=n(19765),N=n(8165),b=n(55119),B=n(10409),L=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),R=n(15355),M=n(20614),D=n(28952),j=n(15676),F=n(4471),W=n(18539).forEach,K=A("hidden"),_="Symbol",$="prototype",z=F.set,Y=F.getterFor(_),Z=Object[$],ie=a.Symbol,ae=ie&&ie[$],se=a.RangeError,he=a.TypeError,ye=a.QObject,Le=h.f,pe=N.f,oe=g.f,Q=B.f,q=o([].push),ue=T("symbols"),me=T("op-symbols"),ne=T("wks"),be=!ye||!ye[$]||!ye[$].findChild,fe=function(le,Ce,de){var Ne=Le(Z,Ce);Ne&&delete Z[Ce],pe(le,Ce,de),Ne&&le!==Z&&pe(Z,Ce,Ne)},ge=V&&S(function(){return u(pe({},"a",{get:function(){function re(){return pe(this,"a",{value:7}).a}return re}()})).a!==7})?fe:pe,ke=function(le,Ce){var de=ue[le]=u(ae);return z(de,{type:_,tag:le,description:Ce}),V||(de.description=Ce),de},ve=function(){function re(le,Ce,de){le===Z&&ve(me,Ce,de),l(le);var Ne=m(Ce);return l(de),y(ue,Ne)?(de.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),de=u(de,{enumerable:d(0,!1)})):(y(le,K)||pe(le,K,d(1,u(null))),le[K][Ne]=!0),ge(le,Ne,de)):pe(le,Ne,de)}return re}(),Se=function(){function re(le,Ce){l(le);var de=c(Ce),Ne=s(de).concat(Ve(de));return W(Ne,function(Ae){(!V||t(xe,de,Ae))&&ve(le,Ae,de[Ae])}),le}return re}(),we=function(){function re(le,Ce){return Ce===void 0?u(le):Se(u(le),Ce)}return re}(),xe=function(){function re(le){var Ce=m(le),de=t(Q,this,Ce);return this===Z&&y(ue,Ce)&&!y(me,Ce)?!1:de||!y(this,Ce)||!y(ue,Ce)||y(this,K)&&this[K][Ce]?de:!0}return re}(),Oe=function(){function re(le,Ce){var de=c(le),Ne=m(Ce);if(!(de===Z&&y(ue,Ne)&&!y(me,Ne))){var Ae=Le(de,Ne);return Ae&&y(ue,Ne)&&!(y(de,K)&&de[K][Ne])&&(Ae.enumerable=!0),Ae}}return re}(),Ue=function(){function re(le){var Ce=oe(c(le)),de=[];return W(Ce,function(Ne){!y(ue,Ne)&&!y(x,Ne)&&q(de,Ne)}),de}return re}(),Ve=function(le){var Ce=le===Z,de=oe(Ce?me:c(le)),Ne=[];return W(de,function(Ae){y(ue,Ae)&&(!Ce||y(Z,Ae))&&q(Ne,ue[Ae])}),Ne};k||(ie=function(){function re(){if(p(ae,this))throw new he("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),Ce=E(le),de=function(){function Ne(Ae){var De=this===void 0?a:this;De===Z&&t(Ne,me,Ae),y(De,K)&&y(De[K],Ce)&&(De[K][Ce]=!1);var je=d(1,Ae);try{ge(De,Ce,je)}catch(Ke){if(!(Ke instanceof se))throw Ke;fe(De,Ce,je)}}return Ne}();return V&&be&&ge(Z,Ce,{configurable:!0,set:de}),ke(Ce,le)}return re}(),ae=ie[$],L(ae,"toString",function(){function re(){return Y(this).tag}return re}()),L(ie,"withoutSetter",function(re){return ke(E(re),re)}),B.f=xe,N.f=ve,b.f=Se,h.f=Oe,C.f=g.f=Ue,v.f=Ve,R.f=function(re){return ke(P(re),re)},V&&(w(ae,"description",{configurable:!0,get:function(){function re(){return Y(this).description}return re}()}),f||L(Z,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),W(s(ne),function(re){M(re)}),e({target:_,stat:!0,forced:!k},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:ve,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:Ue}),D(),j(ie,_),x[K]=!0},64777:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),V=n(53664),k=n(54341),S=n(8758),y=n(57301),p=n(83826),l=t.Symbol,c=l&&l.prototype;if(a&&V(l)&&(!("description"in c)||l().description!==void 0)){var m={},i=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new l(N):N===void 0?l():l(N);return N===""&&(m[b]=!0),b}return h}();p(i,l),i.prototype=c,c.constructor=i;var d=String(l("description detection"))==="Symbol(description detection)",u=o(c.valueOf),s=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var N=u(this);if(f(m,N))return"";var b=s(N),B=d?v(b,7,-1):g(b,C,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),V=n(16010),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function y(p){var l=o(p);if(t(k,l))return k[l];var c=a("Symbol")(l);return k[l]=c,S[c]=l,c}return y}()})},56564:function(I,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(I,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(I,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(I,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(I,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),V=n(16010),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},22905:function(I,r,n){"use strict";var e=n(20614);e("match")},96311:function(I,r,n){"use strict";var e=n(20614);e("replace")},61292:function(I,r,n){"use strict";var e=n(20614);e("search")},75419:function(I,r,n){"use strict";var e=n(20614);e("species")},67638:function(I,r,n){"use strict";var e=n(20614);e("split")},7601:function(I,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(I,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(I,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(I,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},58549:function(I,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(I,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),V=n(72908),k=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=V("".slice),l=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var i=arguments.length;S(this);var d=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,d,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return c}(),l)},65446:function(I,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},62243:function(I,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(I,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(I,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97363:function(I,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35249:function(I,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(I,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(I,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(I,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(I,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},65331:function(I,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},99755:function(I,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},87975:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),V=n(95558),k=V("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=S&&S.prototype,d=!a(function(){i[k].call([1])}),u=!!i&&i.values&&i[k]===i.values&&i.values.name==="values",s=function(){function C(){return y(c(this))}return C}();m("entries",function(){function C(){return l(c(this))}return C}(),d),m("keys",function(){function C(){return p(c(this))}return C}(),d),m("values",s,d||!u,{name:"values"}),m(k,s,d||!u,{name:"values"})},20812:function(I,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},5640:function(I,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},47736:function(I,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return V}())},81944:function(I,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},72214:function(I,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},68685:function(I,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},48774:function(I,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),y=0,p;y<S;)p=V[y],V[y++]=V[--k],V[k]=p;return V}return f}())},2915:function(I,r,n){"use strict";var e=n(26856),a=n(20276),t=n(30432),o=n(83207),f=n(45476),V=n(63549),k=n(13586),S=e.RangeError,y=e.Int8Array,p=y&&y.prototype,l=p&&p.set,c=t.aTypedArray,m=t.exportTypedArrayMethod,i=!k(function(){var u=new Uint8ClampedArray(2);return a(l,u,{length:1,0:3},1),u[1]!==3}),d=i&&t.NATIVE_ARRAY_BUFFER_VIEWS&&k(function(){var u=new y(2);return u.set(1),u.set("2",1),u[0]!==0||u[1]!==2});m("set",function(){function u(s){c(this);var C=f(arguments.length>1?arguments[1]:void 0,1),g=V(s);if(i)return a(l,this,g,C);var v=this.length,h=o(g),N=0;if(h+C>v)throw new S("Wrong length");for(;N<h;)this[C+N]=g[N++]}return u}(),!i||d)},17165:function(I,r,n){"use strict";var e=n(30432),a=n(9230),t=n(13586),o=n(31170),f=e.aTypedArray,V=e.exportTypedArrayMethod,k=t(function(){new Int8Array(1).slice()});V("slice",function(){function S(y,p){for(var l=o(f(this),y,p),c=a(this),m=0,i=l.length,d=new c(i);i>m;)d[m]=l[m++];return d}return S}(),k)},10702:function(I,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(I,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),V=n(30432),k=n(31574),S=n(88836),y=n(43541),p=n(27204),l=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,i=m&&a(m.prototype.sort),d=!!i&&!(t(function(){i(new m(2),null)})&&t(function(){i(new m(2),{})})),u=!!i&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var C=new m(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,g[v]=v-2*h+3;for(i(C,function(N,b){return(N/4|0)-(b/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),s=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(g){return g!==void 0&&o(g),u?i(this,g):f(l(this),s(g))}return C}(),!u||d)},64408:function(I,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,y){var p=f(this),l=p.length,c=t(S,l),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?l:t(y,l))-c))}return k}())},22306:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!V&&o(function(){y.call(new V(1))}),l=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),l)},90334:function(I,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=V.toString!==k;e("toString",k,y)},70088:function(I,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},7284:function(I,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},25855:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97372:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},84937:function(I,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),V=n(10609),k=n(19250),S=n(66379),y=n(4471).enforce,p=n(13586),l=n(73844),c=Object,m=Array.isArray,i=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},N=V("WeakMap",h,k),b=N.prototype,B=t(b.set),L=function(){return e&&p(function(){var E=s([]);return B(new N,E,1),!d(E)})};if(l)if(g){v=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!i(E)){var R=y(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,P):R.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else L()&&o(b,{set:function(){function x(E,P){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=C)),B(this,E,P),R&&R(E),this}return x}()})},69880:function(I,r,n){"use strict";n(84937)},74764:function(I,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(I,r,n){"use strict";n(74764)},82818:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(I,r,n){"use strict";n(82818),n(21813)},367:function(I,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function f(V){o(arguments.length,1),a(t(V))}return f}()})},21813:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},50943:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(I,r,n){"use strict";n(50943),n(91851)},87454:function(I){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT diff --git a/tools/ci/annotate_dm.py b/tools/ci/annotate_dm.py new file mode 100644 index 0000000000000..2fbe7375d9de0 --- /dev/null +++ b/tools/ci/annotate_dm.py @@ -0,0 +1,51 @@ +import sys +import re +import os.path as path + +# Usage: python3 annotate_dm.py [filename] +# If filename is not provided, stdin is checked instead + +def red(text): + return "\033[31m" + str(text) + "\033[0m" + +def green(text): + return "\033[32m" + str(text) + "\033[0m" + +def yellow(text): + return "\033[33m" + str(text) + "\033[0m" + +def annotate(raw_output): + # Remove ANSI escape codes + raw_output = re.sub(r'(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]', '', raw_output) + + print("::group::DreamChecker Output") + print(raw_output) + print("::endgroup::") + + annotation_regex = r'(?P<filename>.*?), line (?P<line>\d+), column (?P<column>\d+):\s{1,2}(?P<type>error|warning): (?P<message>.*)' + has_issues = False + + print("DM Code Annotations:") + for annotation in re.finditer(annotation_regex, raw_output): + print(f"::{annotation['type']} file={annotation['filename']},line={annotation['line']},col={annotation['column']}::{annotation['message']}") + has_issues = True + + if not has_issues: + print(green("No DM issues found")) + +def main(): + if len(sys.argv) > 1: + if not path.exists(sys.argv[1]): + print(red(f"Error: Annotations file '{sys.argv[1]}' does not exist")) + sys.exit(1) + with open(sys.argv[1], 'r') as f: + annotate(f.read()) + elif not sys.stdin.isatty(): + annotate(sys.stdin.read()) + else: + print(red("Error: No input provided")) + print("Usage: tools/ci/annotate_dm.sh [filename]") + sys.exit(1) + +if __name__ == '__main__': + main() diff --git a/tools/ci/annotate_dm.sh b/tools/ci/annotate_dm.sh new file mode 100644 index 0000000000000..1c4107aed458e --- /dev/null +++ b/tools/ci/annotate_dm.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +set -euo pipefail +python tools/ci/annotate_dm.py "$@"