diff --git a/code/game/machinery/tcomms/tcomms_base.dm b/code/game/machinery/tcomms/tcomms_base.dm index 2ec9d81d8170..2928e0091bb6 100644 --- a/code/game/machinery/tcomms/tcomms_base.dm +++ b/code/game/machinery/tcomms/tcomms_base.dm @@ -413,6 +413,17 @@ GLOBAL_LIST_EMPTY(tcomms_machines) var/mob/R = M R.hear_radio(tcm.message_pieces, tcm.verbage, part_a, part_b, tcm.sender, TRUE, follow_target=tcm.follow_target, check_name_against = tcm.pre_modify_name) + // SS220 EDIT START - receiving sound effect + if(tcm.receive_sound_effect) + for(var/obj/item/radio/radio in radios) + playsound( + source = radio, + soundin = tcm.receive_sound_effect, + vol = rand(40, 50), + extrarange = SOUND_RANGE_SET(3) + ) + // SS220 EDIT END + return TRUE diff --git a/code/game/objects/items/devices/radio/radio_objects.dm b/code/game/objects/items/devices/radio/radio_objects.dm index 98a12cb91452..eba5fe15c18f 100644 --- a/code/game/objects/items/devices/radio/radio_objects.dm +++ b/code/game/objects/items/devices/radio/radio_objects.dm @@ -176,7 +176,7 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) /obj/item/radio/ui_act(action, params, datum/tgui/ui) if(..()) - return + return TRUE // SS220 EDIT - return TRUE if the action was handled . = TRUE switch(action) if("frequency") // Available to both headsets and non-headset radios @@ -204,9 +204,9 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) if(has_channel_access(usr, num2text(freq))) set_frequency(freq) if("listen") - listening = !listening + ToggleReception(ui.user) // SS220 EDIT - better reception toggling if("broadcast") - broadcasting = !broadcasting + ToggleBroadcast(ui.user) // SS220 EDIT - better broadcast toggling if("channel") // For keyed channels on headset radios only var/channel = params["channel"] if(!(channel in channels)) @@ -219,7 +219,7 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) if(has_loudspeaker) loudspeaker = !loudspeaker if(loudspeaker) - canhear_range = 3 + canhear_range = initial(canhear_range) // SS220 EDIT - use initial value for toggling speaker else canhear_range = 0 else @@ -267,15 +267,15 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) /mob/dead/observer/has_internal_radio_channel_access(mob/user, list/req_one_accesses) return can_admin_interact() -/obj/item/radio/proc/ToggleBroadcast() +/obj/item/radio/proc/ToggleBroadcast(mob/user = usr) // SS220 EDIT - user argument broadcasting = !broadcasting && !(wires.is_cut(WIRE_RADIO_TRANSMIT) || wires.is_cut(WIRE_RADIO_SIGNAL)) if(broadcasting) playsound(src, 'sound/items/radio_common.ogg', rand(4, 16) * 5, SOUND_RANGE_SET(3)) -/obj/item/radio/proc/ToggleReception() +/obj/item/radio/proc/ToggleReception(mob/user = usr) // SS220 EDIT - user argument listening = !listening && !(wires.is_cut(WIRE_RADIO_RECEIVER) || wires.is_cut(WIRE_RADIO_SIGNAL)) -/obj/item/radio/proc/autosay(message, from, channel, follow_target_override) //BS12 EDIT +/obj/item/radio/proc/autosay(message, from, channel, follow_target_override, receive_sound) // SS220 EDIT var/datum/radio_frequency/connection = null if(channel && channels && length(channels) > 0) if(channel == "department") @@ -312,6 +312,7 @@ GLOBAL_LIST_EMPTY(deadsay_radio_systems) tcm.sender_job = "Automated Announcement" tcm.vname = "synthesized voice" tcm.data = SIGNALTYPE_AINOTRACK + tcm.receive_sound_effect = receive_sound // SS220 EDIT // Datum radios dont have a location (obviously) if(loc && loc.z) tcm.source_level = loc.z // For anyone that reads this: This used to pull from a LIST from the CONFIG DATUM. WHYYYYYYYYY!!!!!!!! -aa diff --git a/code/modules/pda/pda_tgui.dm b/code/modules/pda/pda_tgui.dm index 96c1a8f52961..96fe2f11bb54 100644 --- a/code/modules/pda/pda_tgui.dm +++ b/code/modules/pda/pda_tgui.dm @@ -36,12 +36,14 @@ cat = list() shortcut_cache[P.category] = cat shortcut_cat_order += P.category - cat |= list(list(name = P.name, icon = P.icon, notify_icon = P.notify_icon, uid = "[P.UID()]")) + cat |= list(list(name = P.name, icon = P.icon, color = P.color, notify_icon = P.notify_icon, uid = "[P.UID()]")) // SS220 EDIT - alarm button // force the order of a few core categories + // SS220 EDIT START - alarm button shortcut_cat_order = list("General") \ - + sortList(shortcut_cat_order - list("General", "Scanners", "Utilities")) \ - + list("Scanners", "Utilities") + + sortList(shortcut_cat_order - list("General", "Scanners", "Utilities", "Danger")) \ + + list("Scanners", "Utilities", "Danger") + // SS220 EDIT END data["idInserted"] = (id ? TRUE : FALSE) data["idLink"] = (id ? "[id.registered_name], [id.assignment]" : "--------") diff --git a/config/example/config.toml b/config/example/config.toml index 014e63b393d5..4d429a9ae7e8 100644 --- a/config/example/config.toml +++ b/config/example/config.toml @@ -1002,6 +1002,9 @@ ffmpeg_cpuaffinity = "" force_discord_verification = false # Respawn delay in minutes before one may respawn as a crew member respawn_delay = 20 +# Players needed to enable advanced communication (common channel limitations). +# Consider -1 as no threshold, so advanced communication is always disabled. +advanced_communication_threshold = -1 # Enable speech filter for players. # If enabled, some words will be removed from player's messages. enable_speech_filter = false diff --git a/modular_ss220/aesthetics/_aesthetics.dme b/modular_ss220/aesthetics/_aesthetics.dme index 4dc8385453cb..588d70d3bca4 100644 --- a/modular_ss220/aesthetics/_aesthetics.dme +++ b/modular_ss220/aesthetics/_aesthetics.dme @@ -23,7 +23,6 @@ #include "floors\code\wood.dm" #include "goonstation\code\items.dm" #include "hydroponics\code\hydroponics.dm" -#include "intercom\code\intercom.dm" #include "keycard\code\keycard.dm" #include "kitchen\code\kitchen.dm" #include "labeler\code\labeler.dm" @@ -42,10 +41,11 @@ #include "shutters\code\shutters.dm" #include "soap\code\soap.dm" #include "stamps\code\stamps.dm" +#include "tcomms\code\message.dm" #include "toolboxes\code\toolboxes.dm" #include "wallcloset\code\wallcloset.dm" #include "walls\code\walls.dm" #include "windoor\code\windoor.dm" #include "windows\code\windows.dm" #include "windowtint\code\windowtint.dm" -#include "zippo\code\zippo.dm" +#include "zippo\code\zippo.dm" \ No newline at end of file diff --git a/modular_ss220/aesthetics/intercom/code/intercom.dm b/modular_ss220/aesthetics/intercom/code/intercom.dm deleted file mode 100644 index 9fa1f174e314..000000000000 --- a/modular_ss220/aesthetics/intercom/code/intercom.dm +++ /dev/null @@ -1,2 +0,0 @@ -/obj/item/radio/intercom - icon = 'modular_ss220/aesthetics/intercom/icons/intercom.dmi' diff --git a/modular_ss220/aesthetics/intercom/icons/intercom.dmi b/modular_ss220/aesthetics/intercom/icons/intercom.dmi deleted file mode 100644 index 3e9fbfd93583..000000000000 Binary files a/modular_ss220/aesthetics/intercom/icons/intercom.dmi and /dev/null differ diff --git a/modular_ss220/aesthetics/tcomms/code/message.dm b/modular_ss220/aesthetics/tcomms/code/message.dm new file mode 100644 index 000000000000..f23656c51aee --- /dev/null +++ b/modular_ss220/aesthetics/tcomms/code/message.dm @@ -0,0 +1,3 @@ +/datum/tcomms_message + /// The sound effect that will be played on a device when this message is received. + var/receive_sound_effect = null diff --git a/modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_major.ogg b/modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_major.ogg new file mode 100644 index 000000000000..e36476f8f6c0 Binary files /dev/null and b/modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_major.ogg differ diff --git a/modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_minor.ogg b/modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_minor.ogg new file mode 100644 index 000000000000..b4ea0b51cb43 Binary files /dev/null and b/modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_minor.ogg differ diff --git a/modular_ss220/balance/_balance.dme b/modular_ss220/balance/_balance.dme index 8c1e00182243..70bd1ff11165 100644 --- a/modular_ss220/balance/_balance.dme +++ b/modular_ss220/balance/_balance.dme @@ -1,11 +1,15 @@ #include "_balance.dm" #include "code/access/access.dm" +#include "code/config/config.dm" #include "code/events/blob.dm" +#include "code/events/security_level.dm" +#include "code/items/pda.dm" #include "code/items/projectiles.dm" -#include "code/items/weapons.dm" -#include "code/items/storage/surgical_tray.dm" +#include "code/items/radio.dm" #include "code/items/storage/closets.dm" +#include "code/items/storage/surgical_tray.dm" +#include "code/items/weapons.dm" #include "code/jobs/warden.dm" #include "code/mobs/aliens/larva.dm" #include "code/species/machine.dm" diff --git a/modular_ss220/balance/code/config/config.dm b/modular_ss220/balance/code/config/config.dm new file mode 100644 index 000000000000..bed0a517eb61 --- /dev/null +++ b/modular_ss220/balance/code/config/config.dm @@ -0,0 +1,8 @@ +/datum/configuration_section/ss220_misc_configuration + /// Players needed to enable advanced communication (common channel limitations). + /// Consider -1 as no threshold, so advanced communication is always disabled. + var/advanced_communication_threshold = 40 + +/datum/configuration_section/ss220_misc_configuration/load_data(list/data) + . = ..() + CONFIG_LOAD_NUM(advanced_communication_threshold, data["advanced_communication_threshold"]) diff --git a/modular_ss220/balance/code/events/security_level.dm b/modular_ss220/balance/code/events/security_level.dm new file mode 100644 index 000000000000..040f680a8e9e --- /dev/null +++ b/modular_ss220/balance/code/events/security_level.dm @@ -0,0 +1,53 @@ +/datum/controller/subsystem/security_level + /// Whether advanced communication (common channel limitations) is enabled. + var/advanced_communication_enabled = FALSE + +/datum/controller/subsystem/security_level/Initialize() + . = ..() + RegisterSignal(SSticker, COMSIG_TICKER_ROUND_STARTING, PROC_REF(on_round_start)) + +/datum/controller/subsystem/security_level/proc/on_round_start() + SIGNAL_HANDLER + var/threshold = GLOB.configuration.ss220_misc.advanced_communication_threshold + advanced_communication_enabled = length(GLOB.clients) >= threshold + +/datum/controller/subsystem/security_level/announce_security_level(datum/security_level/selected_level) + var/message + var/title + var/sound + var/sound2 = selected_level.ai_announcement_sound + + if(selected_level.number_level > current_security_level.number_level) + message = selected_level.elevating_to_announcement_text + title = selected_level.elevating_to_announcement_title + sound = selected_level.elevating_to_sound + else + message = selected_level.lowering_to_announcement_text + title = selected_level.lowering_to_announcement_title + sound = selected_level.lowering_to_sound + + if(advanced_communication_enabled) + if(selected_level.grants_common_channel_access() && !current_security_level.grants_common_channel_access()) + message += " Ограничения на пользование общим каналом связи сняты." + else if(!selected_level.grants_common_channel_access() && current_security_level.grants_common_channel_access()) + message += " Ограничения на пользование общим каналом связи восстановлены." + + GLOB.security_announcement.Announce(message, title, new_sound = sound, new_sound2 = sound2) + +/datum/security_level + /// Tells if every crew member will be allowed to talk on the common frequency. + var/grants_common_channel_access = FALSE + +/datum/security_level/proc/grants_common_channel_access() + if(!SSsecurity_level.advanced_communication_enabled) + return TRUE + return grants_common_channel_access + +/datum/security_level/gamma + grants_common_channel_access = TRUE + +/datum/security_level/epsilon + grants_common_channel_access = TRUE + +/datum/security_level/delta + grants_common_channel_access = TRUE diff --git a/modular_ss220/balance/code/items/pda.dm b/modular_ss220/balance/code/items/pda.dm new file mode 100644 index 000000000000..25c907a7e9c1 --- /dev/null +++ b/modular_ss220/balance/code/items/pda.dm @@ -0,0 +1,185 @@ +// MARK: PDA +/obj/item/pda + default_cartridge = /obj/item/cartridge/common + /// Radio to call security. + var/obj/item/radio/radio + +/obj/item/pda/Initialize(mapload) + . = ..() + radio = new /obj/item/radio(src) + radio.listening = FALSE + radio.config(list("Security" = 0)) + radio.follow_target = src + +/obj/item/pda/Destroy() + qdel(radio) + return ..() + +/obj/item/pda/syndicate + default_cartridge = null + +// MARK: Alarm Button App +/datum/data/pda + var/color = null + +/datum/data/pda/app/alarm + name = "Call Security" + icon = "exclamation-triangle" + color = "red" + title = "Alarm Button" + category = "Danger" + template = "pda_alarm_button" + /// Tells the alarm priority. TRUE for command members. + var/prioritized = FALSE + /// Timer to prevent spamming the alarm. + COOLDOWN_DECLARE(alarm_cooldown) + var/alarm_timeout = 5 MINUTES + /// Tells if the app is on the home screen + var/is_home = TRUE + /// App response + var/last_response_title = null + var/last_response_text = null + var/last_response_success = null + var/last_response_acts = list() + +/datum/data/pda/app/alarm/update_ui(mob/user, list/data) + data["is_home"] = is_home + data["last_response"] = list( + "title" = last_response_title, + "text" = last_response_text, + "success" = last_response_success, + "acts" = last_response_acts + ) + return data + +/datum/data/pda/app/alarm/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) + if(..()) + return TRUE + + if(!pda.silent) + playsound(pda, 'sound/machines/terminal_select.ogg', 15, TRUE) + + switch(action) + if("submit") + handle_alarm_button() + if("ok") + is_home = TRUE + +/datum/data/pda/app/alarm/proc/handle_alarm_button() + is_home = FALSE + + if(!COOLDOWN_FINISHED(src, alarm_cooldown)) + var/remaining_time = COOLDOWN_TIMELEFT(src, alarm_cooldown) + last_response_title = "Ошибка" + last_response_text = "Вы недавно отправили запрос. Подождите [round(remaining_time / (1 SECONDS))] секунд, прежде чем попытаться снова." + last_response_success = FALSE + last_response_acts = list("ok") + return + + var/turf/location = get_turf(pda) + if(!pda.radio.on || (!is_station_level(location.z) && !is_mining_level(location.z))) + last_response_title = "Ошибка" + last_response_text = "Вызов службы безопасности недоступен. Попробуйте позже." + last_response_success = FALSE + last_response_acts = list("ok") + return + + call_security() + COOLDOWN_START(src, alarm_cooldown, alarm_timeout) + last_response_title = "Запрос принят" + last_response_text = "Служба безопасности получила ваш запрос. Пожалуйста, ожидайте прибытия офицеров." + last_response_success = TRUE + last_response_acts = list("ok") + +/datum/data/pda/app/alarm/proc/call_security() + var/turf/loc = get_turf(pda) + log_game("[usr] ([usr.client.ckey]) has triggered an alarm button at ([loc.x], [loc.y], [loc.z]) using PDA of [pda.owner], [pda.ownrank].") + + var/area/area = get_area(pda) + var/message = "Внимание! [pda.owner], [pda.ownrank], использует тревожную кнопку в [area.name]! \ + Необходимо[prioritized ? " немедленное" : ""] реагирование." + var/receive_sound = prioritized \ + ? 'modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_major.ogg' \ + : 'modular_ss220/aesthetics/tcomms/sound/walkie_talkie_alert_minor.ogg' + + pda.radio.autosay( + from = "Система Оповещения", + message = message, + channel = DEPARTMENT_SECURITY, + follow_target_override = pda, + receive_sound = receive_sound + ) + if(!pda.silent) + playsound(pda, 'sound/machines/terminal_success.ogg', vol = 50, vary = TRUE) + + notify_ghosts( + title = "Система Оповещения", + message = "Кто-то вызвал службу безопасности!", + ghost_sound = 'sound/effects/electheart.ogg', + enter_link = "(Click to follow)", + source = pda, + action = NOTIFY_FOLLOW + ) + +/datum/data/pda/app/alarm/heads + prioritized = TRUE + alarm_timeout = 2 MINUTES + +/datum/data/pda/app/alarm/centcom + prioritized = TRUE + alarm_timeout = 1 MINUTES + +// MARK: Cartridges +/obj/item/cartridge + var/is_nt_cartridge = TRUE + var/alarm_app_type = /datum/data/pda/app/alarm + +/obj/item/cartridge/Initialize(mapload) + . = ..() + if(!is_nt_cartridge) + return + for(var/program in programs) + if(istype(program, /datum/data/pda/app/alarm)) + return // somehow the alarm app is already in the cartridge + programs += new alarm_app_type + +/// Cartridge for broke assistants +/obj/item/cartridge/common + name = "Crew-I Cartridge" + desc = "A data cartridge for portable microcomputers. Has alarm button app." + +/obj/item/cartridge/head + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/captain + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/hop + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/hos + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/ce + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/rd + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/cmo + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/qm + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/supervisor + alarm_app_type = /datum/data/pda/app/alarm/heads + +/obj/item/cartridge/centcom + alarm_app_type = /datum/data/pda/app/alarm/centcom + +/obj/item/cartridge/syndicate + is_nt_cartridge = FALSE + +/obj/item/cartridge/frame + is_nt_cartridge = FALSE diff --git a/modular_ss220/balance/code/items/radio.dm b/modular_ss220/balance/code/items/radio.dm new file mode 100644 index 000000000000..7ec0eb16d8f7 --- /dev/null +++ b/modular_ss220/balance/code/items/radio.dm @@ -0,0 +1,80 @@ +/obj/item/radio + /// Whether the radio respects common channel limitations + var/respects_common_channel_limitations = TRUE + +/obj/item/radio/handle_message_mode(mob/living/M, list/message_pieces, message_mode) + var/datum/radio_frequency/channel = ..() + if(!istype(channel)) + return channel // this will be handled + + // Check if the radio can send to common. + var/sec_level_grants_common = SSsecurity_level.current_security_level.grants_common_channel_access() + if(channel.frequency == PUB_FREQ && !sec_level_grants_common && has_limited_common_channel_access()) + return RADIO_CONNECTION_FAIL + + return channel + +/obj/item/radio/emag_act(mob/user) + ..() + if(emagged) + to_chat(user, span_notice("[declent_ru(NOMINATIVE)] не реагирует. Видимо, модификация уже производилась.")) + return FALSE + + respects_common_channel_limitations = FALSE + emagged = TRUE + playsound(loc, 'sound/effects/sparks4.ogg', vol = 75, vary = TRUE) + to_chat(user, span_notice("Вы отключаете ограничения на общий канал у [declent_ru(GENITIVE)].")) + log_game("[key_name(user)] emagged [src]") + return TRUE + +/// Whether the radio has limited common channel access +/obj/item/radio/proc/has_limited_common_channel_access() + return respects_common_channel_limitations + +/obj/item/radio/headset/has_limited_common_channel_access() + if(!respects_common_channel_limitations) + return FALSE + if(keyslot1 && keyslot1.grants_common_channel_access) + return FALSE + if(keyslot2 && keyslot2.grants_common_channel_access) + return FALSE + return TRUE + +/obj/item/radio/borg/has_limited_common_channel_access() + if(!respects_common_channel_limitations) + return FALSE + if(keyslot && keyslot.grants_common_channel_access) + return FALSE + return TRUE + +/obj/item/radio/intercom + canhear_range = 1 + respects_common_channel_limitations = FALSE + +/obj/item/radio/intercom/department + canhear_range = 1 + +/obj/item/radio/headset/chameleon + respects_common_channel_limitations = FALSE + +/obj/item/encryptionkey + /// Whether the key grants access to the common channel + var/grants_common_channel_access = FALSE + +/obj/item/encryptionkey/heads + grants_common_channel_access = TRUE + +/obj/item/encryptionkey/headset_nct + grants_common_channel_access = TRUE + +/obj/item/encryptionkey/ert + grants_common_channel_access = TRUE + +/obj/item/encryptionkey/skrell + grants_common_channel_access = TRUE + +/obj/item/encryptionkey/centcom + grants_common_channel_access = TRUE + +/obj/item/encryptionkey/syndicate + grants_common_channel_access = TRUE diff --git a/modular_ss220/devices/code/items/radio.dm b/modular_ss220/devices/code/items/radio.dm index 080947e786ec..41d383741d80 100644 --- a/modular_ss220/devices/code/items/radio.dm +++ b/modular_ss220/devices/code/items/radio.dm @@ -23,6 +23,7 @@ icon = 'modular_ss220/devices/icons/radio.dmi' icon_state = "walkietalkie_special" frequency = DTH_FREQ + freqlock = TRUE // DO NOT PLACE IT IN MAINT SPAWNERS, PLEASE /obj/item/radio/syndicate @@ -31,3 +32,4 @@ icon = 'modular_ss220/devices/icons/radio.dmi' icon_state = "walkietalkie_syndie" frequency = SYNDTEAM_FREQ + freqlock = TRUE diff --git a/modular_ss220/maps220/code/directions.dm b/modular_ss220/maps220/code/directions.dm index 3eb17e82f06b..84f93a652d71 100644 --- a/modular_ss220/maps220/code/directions.dm +++ b/modular_ss220/maps220/code/directions.dm @@ -3,18 +3,18 @@ name = "\improper station intercom" /obj/item/radio/intercom/directional/south - pixel_y = -22 + pixel_y = -28 dir = 1 /obj/item/radio/intercom/directional/north - pixel_y = 22 + pixel_y = 28 /obj/item/radio/intercom/directional/west - pixel_x = -22 + pixel_x = -28 dir = 4 /obj/item/radio/intercom/directional/east - pixel_x = 22 + pixel_x = 28 dir = 8 /* Nanotrasen WallMed */ diff --git a/modular_ss220/objects/_objects.dme b/modular_ss220/objects/_objects.dme index cb5e10211b8f..cc180a2998bc 100644 --- a/modular_ss220/objects/_objects.dme +++ b/modular_ss220/objects/_objects.dme @@ -1,57 +1,48 @@ #include "_objects.dm" -// Flora -#include "code/flora/sakura.dm" - -// ID Skins -#include "code/id_skins/_id_skins_base.dm" -#include "code/id_skins/id_skins.dm" -#include "code/id_skins/id_skins_spawners.dm" - -// Mecha -#include "code/mecha/lockermech.dm" -#include "code/mecha/combat.dm" - -// Weapons -#include "code/weapons/melee/baseball_bat.dm" -#include "code/weapons/melee/electrostaff.dm" -#include "code/weapons/melee/stylet.dm" -#include "code/weapons/melee/vibroblade.dm" -#include "code/weapons/ranged/beretta.dm" -#include "code/weapons/ranged/pneumagun.dm" -#include "code/weapons/ranged/revolvers.dm" -#include "code/weapons/ranged/sslr.dm" -#include "code/weapons/ranged/sakhno.dm" -#include "code/weapons/ranged/skrell_rifle.dm" - -// Plushies -#include "code/plushies/hampters.dm" -#include "code/plushies/macvulpix.dm" - -// Miscellaneous +#include "code/airlock_painter.dm" +#include "code/animalhide.dm" #include "code/beach_umbrella.dm" #include "code/big_bed.dm" #include "code/billboard.dm" #include "code/closets.dm" #include "code/coffin.dm" +#include "code/components.dm" #include "code/computer.dm" +#include "code/flag.dm" +#include "code/flashlight.dm" +#include "code/flora/sakura.dm" +#include "code/id_skins/_id_skins_base.dm" +#include "code/id_skins/id_skins.dm" +#include "code/id_skins/id_skins_spawners.dm" +#include "code/intercom.dm" +#include "code/key.dm" +#include "code/material_pouch.dm" #include "code/mattress.dm" +#include "code/mecha/combat.dm" +#include "code/mecha/lockermech.dm" #include "code/miscellaneous.dm" +#include "code/musician.dm" #include "code/officetoys.dm" #include "code/papershredder.dm" #include "code/plastic_chair.dm" #include "code/platform.dm" +#include "code/plushies/hampters.dm" +#include "code/plushies/macvulpix.dm" #include "code/posters.dm" +#include "code/radio.dm" #include "code/shuttle.dm" #include "code/smartfridge.dm" #include "code/spellbook.dm" #include "code/tribune.dm" -#include "code/key.dm" -#include "code/musician.dm" -#include "code/flag.dm" #include "code/wallets.dm" -#include "code/flashlight.dm" -#include "code/material_pouch.dm" -#include "code/components.dm" -#include "code/airlock_painter.dm" -#include "code/animalhide.dm" +#include "code/weapons/melee/baseball_bat.dm" +#include "code/weapons/melee/electrostaff.dm" +#include "code/weapons/melee/stylet.dm" +#include "code/weapons/melee/vibroblade.dm" +#include "code/weapons/ranged/beretta.dm" +#include "code/weapons/ranged/pneumagun.dm" +#include "code/weapons/ranged/revolvers.dm" +#include "code/weapons/ranged/sakhno.dm" +#include "code/weapons/ranged/skrell_rifle.dm" +#include "code/weapons/ranged/sslr.dm" diff --git a/modular_ss220/objects/code/intercom.dm b/modular_ss220/objects/code/intercom.dm new file mode 100644 index 000000000000..f01e8c99d283 --- /dev/null +++ b/modular_ss220/objects/code/intercom.dm @@ -0,0 +1,71 @@ +/obj/item/radio/intercom + icon = 'modular_ss220/objects/icons/intercom.dmi' + + max_hear_range = 5 + has_fixed_hear_range = FALSE + + overlay_speaker_idle = "intercom_s" + overlay_speaker_active = "intercom_receive" + + overlay_mic_idle = "intercom_m" + overlay_mic_active = null + + /// The icon of intercom while it's not assembled + var/icon_frame = "intercom-frame" + /// The state of icon of intercom while it's unscrewed + var/icon_postfix_open = "-open" + /// The icon postfix of intercom while it's turned off + var/icon_postfix_off = "-p" + + /// Used to disable mic if not used + var/mic_timeout = 20 SECONDS + +/obj/item/radio/intercom/ToggleBroadcast(mob/user = usr) + . = ..() + if(broadcasting && !issilicon(user)) + start_mic_timer() + +/obj/item/radio/intercom/proc/start_mic_timer() + addtimer(CALLBACK(src, PROC_REF(disable_mic)), mic_timeout, TIMER_UNIQUE | TIMER_OVERRIDE | TIMER_DELETE_ME) + +/obj/item/radio/intercom/proc/disable_mic() + broadcasting = FALSE + update_icon() + +/obj/item/radio/intercom/talk_into(mob/living/M, list/message_pieces, channel, verbage) + . = ..() + if(broadcasting) + start_mic_timer() + +/obj/item/mounted/frame/intercom + icon = 'modular_ss220/objects/icons/intercom.dmi' + icon_state = "intercom-frame" + +/obj/item/mounted/frame/intercom/do_build(turf/on_wall, mob/user) + var/obj/item/radio/intercom/new_intercom = new(get_turf(src), get_dir(user, on_wall), 0) + new_intercom.dir = REVERSE_DIR(new_intercom.dir) + new_intercom.circuitry_installed = FALSE + new_intercom.update_icon() + qdel(src) + +/obj/item/radio/intercom/attackby__legacy__attackchain(obj/item/W, mob/user) + . = ..() + if(. && istype(W, /obj/item/intercom_electronics)) + circuitry_installed = TRUE + update_icon(UPDATE_ICON) + +/obj/item/radio/intercom/tool_act(mob/living/user, obj/item/tool, list/modifiers) + . = ..() + if(.) + update_icon(UPDATE_ICON) + +/obj/item/radio/intercom/crowbar_act(mob/user, obj/item/I) + . = ..() + if(.) + circuitry_installed = FALSE + +/obj/item/radio/intercom/update_icon_state() + if(!circuitry_installed) + icon_state = icon_frame + else + icon_state = "[initial(icon_state)][!on ? icon_postfix_off : ""][b_stat ? icon_postfix_open : ""]" diff --git a/modular_ss220/objects/code/radio.dm b/modular_ss220/objects/code/radio.dm new file mode 100644 index 000000000000..e5bc1fae36b1 --- /dev/null +++ b/modular_ss220/objects/code/radio.dm @@ -0,0 +1,81 @@ +/obj/item/radio + /// Max listening and broadcasting range + var/max_hear_range + ///Tells whether the hear range can be changed + var/has_fixed_hear_range = TRUE + + /// Overlay when speaker is on + var/overlay_speaker_idle = null + /// Overlay when receiving a message + var/overlay_speaker_active = null + + /// Overlay when mic is on + var/overlay_mic_idle = null + /// Overlay when speaking a message (is displayed simultaneously with speaker_active) + var/overlay_mic_active = null + +/obj/item/radio/Initialize(mapload) + . = ..() + max_hear_range = max_hear_range || canhear_range + +/obj/item/radio/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Radio220", name) + ui.open() + +/obj/item/radio/ui_data(mob/user) + var/data = ..() + data["hearRange"] = canhear_range + data["maxHearRange"] = max_hear_range + data["hasFixedHearRange"] = has_fixed_hear_range + return data + +/obj/item/radio/ui_act(action, params, datum/tgui/ui) + . = ..() + if(.) + return + + switch(action) + if("range") + if(has_fixed_hear_range) + return FALSE + var/new_range = isnum(params["set"]) ? params["set"] : text2num(params["set"]) + if(new_range <= max_hear_range) + canhear_range = new_range + return TRUE + else + return FALSE + +/obj/item/radio/update_overlays() + . = ..() + if(b_stat) + return + if(broadcasting && overlay_mic_idle) + . += overlay_mic_idle + if(listening && overlay_speaker_idle) + . += overlay_speaker_idle + +/obj/item/radio/ToggleReception(mob/user) + . = ..() + if(!isnull(overlay_speaker_idle)) + update_icon() + +/obj/item/radio/ToggleBroadcast(mob/user) + . = ..() + if(!isnull(overlay_mic_idle)) + update_icon() + +/obj/item/radio/hear_talk(mob/M, list/message_pieces, verb) + . = ..() + if(!isnull(overlay_speaker_active)) + flick_overlay_view(image(icon, src, overlay_speaker_active), src, 5 SECONDS) + +/obj/item/radio/talk_into(mob/living/M, list/message_pieces, channel, verbage) + . = ..() + if(!isnull(overlay_mic_active)) + flick_overlay_view(image(icon, src, overlay_mic_active), src, 5 SECONDS) + +/obj/item/radio/borg + max_hear_range = 3 + has_fixed_hear_range = FALSE diff --git a/modular_ss220/objects/icons/intercom.dmi b/modular_ss220/objects/icons/intercom.dmi new file mode 100644 index 000000000000..3def8c4146b0 Binary files /dev/null and b/modular_ss220/objects/icons/intercom.dmi differ diff --git a/tgui/packages/tgui/interfaces/Radio220.tsx b/tgui/packages/tgui/interfaces/Radio220.tsx new file mode 100644 index 000000000000..5811cbbd1360 --- /dev/null +++ b/tgui/packages/tgui/interfaces/Radio220.tsx @@ -0,0 +1,189 @@ +import { map } from 'common/collections'; +import { toFixed } from 'common/math'; + +import { useBackend } from '../backend'; +import { Section, Box, LabeledList, NumberInput, Button } from '../components'; +import { RADIO_CHANNELS } from '../constants'; +import { Window } from '../layouts'; + +type RadioData = { + freqlock: boolean; + frequency: number; + minFrequency: number; + maxFrequency: number; + canReset: boolean; + listening: boolean; + broadcasting: boolean; + hearRange: number; + maxHearRange: number; + hasFixedHearRange: boolean; + schannels: Record; + ichannels: Record; +}; + +export const Radio220 = (props, context) => { + const { act, data } = useBackend(context); + const { + freqlock, + frequency, + minFrequency, + maxFrequency, + canReset, + listening, + broadcasting, + hearRange, + maxHearRange, + hasFixedHearRange, + } = data; + const tunedChannel = RADIO_CHANNELS.find((channel) => channel.freq === data.frequency); + const matchedChannel = tunedChannel && tunedChannel.name ? true : false; + + const channelColorMap = (() => { + let colorMap: { [name: string]: string } = {}; + for (let i = 0; i < RADIO_CHANNELS.length; i++) { + const channel = RADIO_CHANNELS[i]; + colorMap[channel['name']] = channel['color']; + } + return colorMap; + })(); + + const secure_channels = map((value, key) => ({ + name: key, + status: !!value, + }))(data.schannels); + + const internal_channels = map((value, key) => ({ + name: key, + freq: value, + }))(data.ichannels); + + const window_height = 130 + secure_channels.length * 21.2 + internal_channels.length * 11; + + return ( + + +
+ + + {(freqlock && ( + + {toFixed(data.frequency / 10, 1) + ' кГц'} + + )) || ( + <> + toFixed(value, 1)} + onChange={(e, value) => + act('frequency', { + adjust: value - frequency / 10, + }) + } + /> +
+
+
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/pda/pda_alarm_button.js b/tgui/packages/tgui/interfaces/pda/pda_alarm_button.js new file mode 100644 index 000000000000..81418742891f --- /dev/null +++ b/tgui/packages/tgui/interfaces/pda/pda_alarm_button.js @@ -0,0 +1,71 @@ +import { capitalize } from 'common/string'; +import { useBackend } from '../../backend'; +import { Button, Icon, Stack, Section, Box } from '../../components'; + +export const pda_alarm_button = (props, context) => { + const { act, data } = useBackend(context); + const { is_home, last_response } = data; + + if (!is_home) { + return ( + + ); + } + + return ( +
+ + Данная тревожная кнопка предназначена для экстренного вызова. Ее использование приведет к уведомлению + сотрудников службы безопасности о вашем примерном местонахождении. + +
+ +
+
+ ); +}; + +const AlarmAlert = (props, context) => { + const { act } = useBackend(context); + const { title, text, success, acts } = props; + + return ( +
+ + + {title} + + {text} +
+ + {acts.map((action, i) => ( + + + + ))} + +
+
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/pda/pda_main_menu.js b/tgui/packages/tgui/interfaces/pda/pda_main_menu.js index 3218cec54324..341459d6cd5c 100644 --- a/tgui/packages/tgui/interfaces/pda/pda_main_menu.js +++ b/tgui/packages/tgui/interfaces/pda/pda_main_menu.js @@ -37,7 +37,7 @@ export const pda_main_menu = (props, context) => { key={app.uid} icon={app.uid in notifying ? app.notify_icon : app.icon} iconSpin={app.uid in notifying} - color={app.uid in notifying ? 'red' : 'transparent'} + color={app.color || app.uid in notifying ? 'red' : 'transparent'} // SS220 EDIT - alarm button content={app.name} onClick={() => act('StartProgram', { program: app.uid })} /> diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 938e21cdfd2f..16722a1f98df 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,30 +1,30 @@ -(function(){(function(){var Jt={96376:function(A,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=N(n(74758)),a=N(n(28811)),t=N(n(98309)),o=N(n(44896)),f=N(n(33118)),b=N(n(10579)),B=N(n(56500)),I=N(n(17633));r.detectOverflow=I.default;var k=n(75573);function N(u){return u&&u.__esModule?u:{default:u}}var d={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var u=arguments.length,s=new Array(u),i=0;i0&&(0,a.round)(N.width)/B.offsetWidth||1,c=B.offsetHeight>0&&(0,a.round)(N.height)/B.offsetHeight||1);var m=(0,e.isElement)(B)?(0,t.default)(B):window,l=m.visualViewport,u=!(0,o.default)()&&k,s=(N.left+(u&&l?l.offsetLeft:0))/d,i=(N.top+(u&&l?l.offsetTop:0))/c,h=N.width/d,C=N.height/c;return{width:h,height:C,top:i,right:s+h,bottom:i+C,left:s,x:s,y:i}}},49035:function(A,r,n){"use strict";r.__esModule=!0,r.default=C;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),B=u(n(16599)),I=n(75573),k=u(n(37786)),N=u(n(57819)),d=u(n(4206)),c=u(n(12972)),m=u(n(81666)),l=n(63618);function u(v){return v&&v.__esModule?v:{default:v}}function s(v,p){var g=(0,k.default)(v,!1,p==="fixed");return g.top=g.top+v.clientTop,g.left=g.left+v.clientLeft,g.bottom=g.top+v.clientHeight,g.right=g.left+v.clientWidth,g.width=v.clientWidth,g.height=v.clientHeight,g.x=g.left,g.y=g.top,g}function i(v,p,g){return p===e.viewport?(0,m.default)((0,a.default)(v,g)):(0,I.isElement)(p)?s(p,g):(0,m.default)((0,t.default)((0,b.default)(v)))}function h(v){var p=(0,o.default)((0,N.default)(v)),g=["absolute","fixed"].indexOf((0,B.default)(v).position)>=0,V=g&&(0,I.isHTMLElement)(v)?(0,f.default)(v):v;return(0,I.isElement)(V)?p.filter(function(S){return(0,I.isElement)(S)&&(0,d.default)(S,V)&&(0,c.default)(S)!=="body"}):[]}function C(v,p,g,V){var S=p==="clippingParents"?h(v):[].concat(p),y=[].concat(S,[g]),L=y[0],w=y.reduce(function(T,x){var M=i(v,x,V);return T.top=(0,l.max)(M.top,T.top),T.right=(0,l.min)(M.right,T.right),T.bottom=(0,l.min)(M.bottom,T.bottom),T.left=(0,l.max)(M.left,T.left),T},i(v,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(A,r,n){"use strict";r.__esModule=!0,r.default=d;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),B=k(n(10798)),I=n(63618);function k(c){return c&&c.__esModule?c:{default:c}}function N(c){var m=c.getBoundingClientRect(),l=(0,I.round)(m.width)/c.offsetWidth||1,u=(0,I.round)(m.height)/c.offsetHeight||1;return l!==1||u!==1}function d(c,m,l){l===void 0&&(l=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&N(m),i=(0,b.default)(m),h=(0,e.default)(c,s,l),C={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(u||!u&&!l)&&(((0,t.default)(m)!=="body"||(0,B.default)(i))&&(C=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):i&&(v.x=(0,f.default)(i))),{x:h.left+C.scrollLeft-v.x,y:h.top+C.scrollTop-v.y,width:h.width,height:h.height}}},16599:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(A,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(A,r,n){"use strict";r.__esModule=!0,r.default=B;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(I){return I&&I.__esModule?I:{default:I}}function B(I){var k,N=(0,e.default)(I),d=(0,o.default)(I),c=(k=I.ownerDocument)==null?void 0:k.body,m=(0,f.max)(N.scrollWidth,N.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(N.scrollHeight,N.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-d.scrollLeft+(0,t.default)(I),s=-d.scrollTop;return(0,a.default)(c||N).direction==="rtl"&&(u+=(0,f.max)(N.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:u,y:s}}},3073:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,B=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-B)<=1&&(B=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:B}}},12972:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(B){return B&&B.__esModule?B:{default:B}}function b(B){return B===(0,a.default)(B)||!(0,t.isHTMLElement)(B)?(0,e.default)(B):(0,o.default)(B)}},44896:function(A,r,n){"use strict";r.__esModule=!0,r.default=d;var e=I(n(95115)),a=I(n(12972)),t=I(n(16599)),o=n(75573),f=I(n(87031)),b=I(n(57819)),B=I(n(35366));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function N(c){var m=/firefox/i.test((0,B.default)()),l=/Trident/i.test((0,B.default)());if(l&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,b.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var i=(0,t.default)(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||m&&i.willChange==="filter"||m&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function d(c){for(var m=(0,e.default)(c),l=k(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=k(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||N(c)||m}},57819:function(A,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(B){return B&&B.__esModule?B:{default:B}}function b(B){return["html","body","#document"].indexOf((0,t.default)(B))>=0?B.ownerDocument.body:(0,o.isHTMLElement)(B)&&(0,a.default)(B)?B:b((0,e.default)(B))}},87991:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(B){return B&&B.__esModule?B:{default:B}}function b(B,I){var k=(0,e.default)(B),N=(0,a.default)(B),d=k.visualViewport,c=N.clientWidth,m=N.clientHeight,l=0,u=0;if(d){c=d.width,m=d.height;var s=(0,o.default)();(s||!s&&I==="fixed")&&(l=d.offsetLeft,u=d.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(B),y:u}}},95115:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,B=f.pageYOffset;return{scrollLeft:b,scrollTop:B}}},79697:function(A,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(A,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var B=(0,e.default)(b).Element;return b instanceof B||b instanceof Element}function o(b){var B=(0,e.default)(b).HTMLElement;return b instanceof B||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var B=(0,e.default)(b).ShadowRoot;return b instanceof B||b instanceof ShadowRoot}},89331:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,B=f.overflowX,I=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+I+B)}},87031:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(B){return B&&B.__esModule?B:{default:B}}function b(B,I){var k;I===void 0&&(I=[]);var N=(0,e.default)(B),d=N===((k=B.ownerDocument)==null?void 0:k.body),c=(0,t.default)(N),m=d?[c].concat(c.visualViewport||[],(0,o.default)(N)?N:[]):N,l=I.concat(m);return d?l:l.concat(b((0,a.default)(m)))}},46206:function(A,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",B=r.end="end",I=r.clippingParents="clippingParents",k=r.viewport="viewport",N=r.popper="popper",d=r.reference="reference",c=r.variationPlacements=f.reduce(function(S,y){return S.concat([y+"-"+b,y+"-"+B])},[]),m=r.placements=[].concat(f,[o]).reduce(function(S,y){return S.concat([y,y+"-"+b,y+"-"+B])},[]),l=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",i=r.beforeMain="beforeMain",h=r.main="main",C=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",p=r.write="write",g=r.afterWrite="afterWrite",V=r.modifierPhases=[l,u,s,i,h,C,v,p,g]},95996:function(A,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(B){B==="default"||B==="__esModule"||Object.prototype.hasOwnProperty.call(e,B)||B in r&&r[B]===a[B]||(r[B]=a[B])});var t=n(39805);Object.keys(t).forEach(function(B){B==="default"||B==="__esModule"||Object.prototype.hasOwnProperty.call(e,B)||B in r&&r[B]===t[B]||(r[B]=t[B])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(B){return B&&B.__esModule?B:{default:B}}function o(B){var I=B.state;Object.keys(I.elements).forEach(function(k){var N=I.styles[k]||{},d=I.attributes[k]||{},c=I.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,N),Object.keys(d).forEach(function(m){var l=d[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(B){var I=B.state,k={popper:{position:I.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(I.elements.popper.style,k.popper),I.styles=k,I.elements.arrow&&Object.assign(I.elements.arrow.style,k.arrow),function(){Object.keys(I.elements).forEach(function(N){var d=I.elements[N],c=I.attributes[N]||{},m=Object.keys(I.styles.hasOwnProperty(N)?I.styles[N]:k[N]),l=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(d)||!(0,e.default)(d)||(Object.assign(d.style,l),Object.keys(c).forEach(function(u){d.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=N(n(83104)),a=N(n(28811)),t=N(n(4206)),o=N(n(44896)),f=N(n(41199)),b=n(28595),B=N(n(43286)),I=N(n(81447)),k=n(46206);function N(u){return u&&u.__esModule?u:{default:u}}var d=function(){function u(s,i){return s=typeof s=="function"?s(Object.assign({},i.rects,{placement:i.placement})):s,(0,B.default)(typeof s!="number"?s:(0,I.default)(s,k.basePlacements))}return u}();function c(u){var s,i=u.state,h=u.name,C=u.options,v=i.elements.arrow,p=i.modifiersData.popperOffsets,g=(0,e.default)(i.placement),V=(0,f.default)(g),S=[k.left,k.right].indexOf(g)>=0,y=S?"height":"width";if(!(!v||!p)){var L=d(C.padding,i),w=(0,a.default)(v),T=V==="y"?k.top:k.left,x=V==="y"?k.bottom:k.right,M=i.rects.reference[y]+i.rects.reference[V]-p[V]-i.rects.popper[y],O=p[V]-i.rects.reference[V],D=(0,o.default)(v),E=D?V==="y"?D.clientHeight||0:D.clientWidth||0:0,P=M/2-O/2,R=L[T],j=E-w[y]-L[x],F=E/2-w[y]/2+P,W=(0,b.within)(R,F,j),z=V;i.modifiersData[h]=(s={},s[z]=W,s.centerOffset=W-F,s)}}function m(u){var s=u.state,i=u.options,h=i.element,C=h===void 0?"[data-popper-arrow]":h;C!=null&&(typeof C=="string"&&(C=s.elements.popper.querySelector(C),!C)||(0,t.default)(s.elements.popper,C)&&(s.elements.arrow=C))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),B=k(n(45)),I=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var N={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(u,s){var i=u.x,h=u.y,C=s.devicePixelRatio||1;return{x:(0,I.round)(i*C)/C||0,y:(0,I.round)(h*C)/C||0}}function c(u){var s,i=u.popper,h=u.popperRect,C=u.placement,v=u.variation,p=u.offsets,g=u.position,V=u.gpuAcceleration,S=u.adaptive,y=u.roundOffsets,L=u.isFixed,w=p.x,T=w===void 0?0:w,x=p.y,M=x===void 0?0:x,O=typeof y=="function"?y({x:T,y:M}):{x:T,y:M};T=O.x,M=O.y;var D=p.hasOwnProperty("x"),E=p.hasOwnProperty("y"),P=e.left,R=e.top,j=window;if(S){var F=(0,a.default)(i),W="clientHeight",z="clientWidth";if(F===(0,t.default)(i)&&(F=(0,o.default)(i),(0,f.default)(F).position!=="static"&&g==="absolute"&&(W="scrollHeight",z="scrollWidth")),F=F,C===e.top||(C===e.left||C===e.right)&&v===e.end){R=e.bottom;var K=L&&F===j&&j.visualViewport?j.visualViewport.height:F[W];M-=K-h.height,M*=V?1:-1}if(C===e.left||(C===e.top||C===e.bottom)&&v===e.end){P=e.right;var G=L&&F===j&&j.visualViewport?j.visualViewport.width:F[z];T-=G-h.width,T*=V?1:-1}}var J=Object.assign({position:g},S&&N),Q=y===!0?d({x:T,y:M},(0,t.default)(i)):{x:T,y:M};if(T=Q.x,M=Q.y,V){var ue;return Object.assign({},J,(ue={},ue[R]=E?"0":"",ue[P]=D?"0":"",ue.transform=(j.devicePixelRatio||1)<=1?"translate("+T+"px, "+M+"px)":"translate3d("+T+"px, "+M+"px, 0)",ue))}return Object.assign({},J,(s={},s[R]=E?M+"px":"",s[P]=D?T+"px":"",s.transform="",s))}function m(u){var s=u.state,i=u.options,h=i.gpuAcceleration,C=h===void 0?!0:h,v=i.adaptive,p=v===void 0?!0:v,g=i.roundOffsets,V=g===void 0?!0:g,S={placement:(0,b.default)(s.placement),variation:(0,B.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:C,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},S,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},S,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var B=b.state,I=b.instance,k=b.options,N=k.scroll,d=N===void 0?!0:N,c=k.resize,m=c===void 0?!0:c,l=(0,e.default)(B.elements.popper),u=[].concat(B.scrollParents.reference,B.scrollParents.popper);return d&&u.forEach(function(s){s.addEventListener("scroll",I.update,t)}),m&&l.addEventListener("resize",I.update,t),function(){d&&u.forEach(function(s){s.removeEventListener("scroll",I.update,t)}),m&&l.removeEventListener("resize",I.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=I(n(71376)),a=I(n(83104)),t=I(n(86459)),o=I(n(17633)),f=I(n(9041)),b=n(46206),B=I(n(45));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===b.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function N(c){var m=c.state,l=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=l.mainAxis,i=s===void 0?!0:s,h=l.altAxis,C=h===void 0?!0:h,v=l.fallbackPlacements,p=l.padding,g=l.boundary,V=l.rootBoundary,S=l.altBoundary,y=l.flipVariations,L=y===void 0?!0:y,w=l.allowedAutoPlacements,T=m.options.placement,x=(0,a.default)(T),M=x===T,O=v||(M||!L?[(0,e.default)(T)]:k(T)),D=[T].concat(O).reduce(function(re,oe){return re.concat((0,a.default)(oe)===b.auto?(0,f.default)(m,{placement:oe,boundary:g,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):oe)},[]),E=m.rects.reference,P=m.rects.popper,R=new Map,j=!0,F=D[0],W=0;W=0,Q=J?"width":"height",ue=(0,o.default)(m,{placement:z,boundary:g,rootBoundary:V,altBoundary:S,padding:p}),ie=J?G?b.right:b.left:G?b.bottom:b.top;E[Q]>P[Q]&&(ie=(0,e.default)(ie));var pe=(0,e.default)(ie),te=[];if(i&&te.push(ue[K]<=0),C&&te.push(ue[ie]<=0,ue[pe]<=0),te.every(function(re){return re})){F=z,j=!1;break}R.set(z,te)}if(j)for(var q=L?3:1,ne=function(){function re(oe){var fe=D.find(function(me){var Y=R.get(me);if(Y)return Y.slice(0,oe).every(function(ve){return ve})});if(fe)return F=fe,"break"}return re}(),le=q;le>0;le--){var ee=ne(le);if(ee==="break")break}m.placement!==F&&(m.modifiersData[u]._skip=!0,m.placement=F,m.reset=!0)}}var d=r.default={name:"flip",enabled:!0,phase:"main",fn:N,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(I){return I&&I.__esModule?I:{default:I}}function o(I,k,N){return N===void 0&&(N={x:0,y:0}),{top:I.top-k.height-N.y,right:I.right-k.width+N.x,bottom:I.bottom-k.height+N.y,left:I.left-k.width-N.x}}function f(I){return[e.top,e.right,e.bottom,e.left].some(function(k){return I[k]>=0})}function b(I){var k=I.state,N=I.name,d=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,l=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(l,d),i=o(u,c,m),h=f(s),C=f(i);k.modifiersData[N]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:h,hasPopperEscaped:C},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":C})}var B=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(A,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=N(n(19975));r.applyStyles=e.default;var a=N(n(52744));r.arrow=a.default;var t=N(n(59894));r.computeStyles=t.default;var o=N(n(36692));r.eventListeners=o.default;var f=N(n(23798));r.flip=f.default;var b=N(n(83761));r.hide=b.default;var B=N(n(61410));r.offset=B.default;var I=N(n(40107));r.popperOffsets=I.default;var k=N(n(75137));r.preventOverflow=k.default;function N(d){return d&&d.__esModule?d:{default:d}}},61410:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(B){return B&&B.__esModule?B:{default:B}}function o(B,I,k){var N=(0,e.default)(B),d=[a.left,a.top].indexOf(N)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},I,{placement:B})):k,m=c[0],l=c[1];return m=m||0,l=(l||0)*d,[a.left,a.right].indexOf(N)>=0?{x:l,y:m}:{x:m,y:l}}function f(B){var I=B.state,k=B.options,N=B.name,d=k.offset,c=d===void 0?[0,0]:d,m=a.placements.reduce(function(i,h){return i[h]=o(h,I.rects,c),i},{}),l=m[I.placement],u=l.x,s=l.y;I.modifiersData.popperOffsets!=null&&(I.modifiersData.popperOffsets.x+=u,I.modifiersData.popperOffsets.y+=s),I.modifiersData[N]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,B=f.name;b.modifiersData[B]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),f=n(28595),b=c(n(28811)),B=c(n(44896)),I=c(n(17633)),k=c(n(45)),N=c(n(34780)),d=n(63618);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,i=u.options,h=u.name,C=i.mainAxis,v=C===void 0?!0:C,p=i.altAxis,g=p===void 0?!1:p,V=i.boundary,S=i.rootBoundary,y=i.altBoundary,L=i.padding,w=i.tether,T=w===void 0?!0:w,x=i.tetherOffset,M=x===void 0?0:x,O=(0,I.default)(s,{boundary:V,rootBoundary:S,padding:L,altBoundary:y}),D=(0,a.default)(s.placement),E=(0,k.default)(s.placement),P=!E,R=(0,t.default)(D),j=(0,o.default)(R),F=s.modifiersData.popperOffsets,W=s.rects.reference,z=s.rects.popper,K=typeof M=="function"?M(Object.assign({},s.rects,{placement:s.placement})):M,G=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),J=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,Q={x:0,y:0};if(F){if(v){var ue,ie=R==="y"?e.top:e.left,pe=R==="y"?e.bottom:e.right,te=R==="y"?"height":"width",q=F[R],ne=q+O[ie],le=q-O[pe],ee=T?-z[te]/2:0,re=E===e.start?W[te]:z[te],oe=E===e.start?-z[te]:-W[te],fe=s.elements.arrow,me=T&&fe?(0,b.default)(fe):{width:0,height:0},Y=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,N.default)(),ve=Y[ie],he=Y[pe],Ve=(0,f.within)(0,W[te],me[te]),Be=P?W[te]/2-ee-Ve-ve-G.mainAxis:re-Ve-ve-G.mainAxis,be=P?-W[te]/2+ee+Ve+he+G.mainAxis:oe+Ve+he+G.mainAxis,Le=s.elements.arrow&&(0,B.default)(s.elements.arrow),we=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ue=J==null?void 0:J[R])!=null?ue:0,Re=q+Be-xe-we,He=q+be-xe,ye=(0,f.within)(T?(0,d.min)(ne,Re):ne,q,T?(0,d.max)(le,He):le);F[R]=ye,Q[R]=ye-q}if(g){var de,Ce=R==="x"?e.top:e.left,ke=R==="x"?e.bottom:e.right,ge=F[j],Se=j==="y"?"height":"width",Pe=ge+O[Ce],je=ge-O[ke],_e=[e.top,e.left].indexOf(D)!==-1,ze=(de=J==null?void 0:J[j])!=null?de:0,We=_e?Pe:ge-W[Se]-z[Se]-ze+G.altAxis,Ue=_e?ge+W[Se]+z[Se]-ze-G.altAxis:je,Xe=T&&_e?(0,f.withinMaxClamp)(We,ge,Ue):(0,f.within)(T?We:Pe,ge,T?Ue:je);F[j]=Xe,Q[j]=Xe-ge}s.modifiersData[h]=Q}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(A,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var B=r.defaultModifiers=[a.default,t.default,o.default,f.default],I=r.createPopper=(0,e.popperGenerator)({defaultModifiers:B})},83312:function(A,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),f=l(n(59894)),b=l(n(19975)),B=l(n(61410)),I=l(n(23798)),k=l(n(75137)),N=l(n(52744)),d=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var m=n(39805);Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||Object.prototype.hasOwnProperty.call(e,i)||i in r&&r[i]===m[i]||(r[i]=m[i])});function l(i){return i&&i.__esModule?i:{default:i}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,B.default,I.default,k.default,N.default,d.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(B){return B&&B.__esModule?B:{default:B}}function b(B,I){I===void 0&&(I={});var k=I,N=k.placement,d=k.boundary,c=k.rootBoundary,m=k.padding,l=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,i=(0,e.default)(N),h=i?l?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===i}):a.basePlacements,C=h.filter(function(p){return s.indexOf(p)>=0});C.length===0&&(C=h);var v=C.reduce(function(p,g){return p[g]=(0,t.default)(B,{placement:g,boundary:d,rootBoundary:c,padding:m})[(0,o.default)(g)],p},{});return Object.keys(v).sort(function(p,g){return v[p]-v[g]})}},89951:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(B){return B&&B.__esModule?B:{default:B}}function b(B){var I=B.reference,k=B.element,N=B.placement,d=N?(0,e.default)(N):null,c=N?(0,a.default)(N):null,m=I.x+I.width/2-k.width/2,l=I.y+I.height/2-k.height/2,u;switch(d){case o.top:u={x:m,y:I.y-k.height};break;case o.bottom:u={x:m,y:I.y+I.height};break;case o.right:u={x:I.x+I.width,y:l};break;case o.left:u={x:I.x-k.width,y:l};break;default:u={x:I.x,y:I.y}}var s=d?(0,t.default)(d):null;if(s!=null){var i=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(I[i]/2-k[i]/2);break;case o.end:u[s]=u[s]+(I[i]/2-k[i]/2);break;default:}}return u}},10579:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(A,r,n){"use strict";r.__esModule=!0,r.default=d;var e=N(n(49035)),a=N(n(40600)),t=N(n(37786)),o=N(n(89951)),f=N(n(81666)),b=n(46206),B=n(75573),I=N(n(43286)),k=N(n(81447));function N(c){return c&&c.__esModule?c:{default:c}}function d(c,m){m===void 0&&(m={});var l=m,u=l.placement,s=u===void 0?c.placement:u,i=l.strategy,h=i===void 0?c.strategy:i,C=l.boundary,v=C===void 0?b.clippingParents:C,p=l.rootBoundary,g=p===void 0?b.viewport:p,V=l.elementContext,S=V===void 0?b.popper:V,y=l.altBoundary,L=y===void 0?!1:y,w=l.padding,T=w===void 0?0:w,x=(0,I.default)(typeof T!="number"?T:(0,k.default)(T,b.basePlacements)),M=S===b.popper?b.reference:b.popper,O=c.rects.popper,D=c.elements[L?M:S],E=(0,e.default)((0,B.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),v,g,h),P=(0,t.default)(c.elements.reference),R=(0,o.default)({reference:P,element:O,strategy:"absolute",placement:s}),j=(0,f.default)(Object.assign({},O,R)),F=S===b.popper?j:P,W={top:E.top-F.top+x.top,bottom:F.bottom-E.bottom+x.bottom,left:E.left-F.left+x.left,right:F.right-E.right+x.right},z=c.modifiersData.offset;if(S===b.popper&&z){var K=z[s];Object.keys(W).forEach(function(G){var J=[b.right,b.bottom].indexOf(G)>=0?1:-1,Q=[b.top,b.bottom].indexOf(G)>=0?"y":"x";W[G]+=K[Q]*J})}return W}},81447:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(A,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(A,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(A,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(A,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,B=[];o.forEach(function(k){f.set(k.name,k)});function I(k){b.add(k.name);var N=[].concat(k.requires||[],k.requiresIfExists||[]);N.forEach(function(d){if(!b.has(d)){var c=f.get(d);c&&I(c)}}),B.push(k)}return o.forEach(function(k){b.has(k.name)||I(k)}),B}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,B){return b.concat(f.filter(function(I){return I.phase===B}))},[])}},81666:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(A,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var B=a(o,f,b);return B>b?b:B}},15875:function(A,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(A,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=$e,r._MCCC=_t,r._ME=Dt,r._MFCC=Ft,r._MP=Mt,r._MR=at,r._RFC=gt,r.__render=Ht,r.createComponentVNode=ue,r.createFragment=pe,r.createPortal=ee,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ie,r.createVNode=K,r.directClone=ne,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=oe,r.linkEvent=N,r.normalizeProps=te,r.options=void 0,r.render=zt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(_){var U=typeof _;return U==="string"||U==="number"}function a(_){return _==null}function t(_){return _===null||_===!1||_===!0||_===void 0}function o(_){return typeof _=="function"}function f(_){return typeof _=="string"}function b(_){return typeof _=="number"}function B(_){return _===null}function I(_){return _===void 0}function k(_,U){var H={};if(_)for(var $ in _)H[$]=_[$];if(U)for(var Z in U)H[Z]=U[Z];return H}function N(_,U){return o(U)?{data:_,event:U}:null}function d(_){return!B(_)&&typeof _=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F",l=r.AnimationQueues=function(){function _(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return _}();function u(_){return _.substring(2).toLowerCase()}function s(_,U){_.appendChild(U)}function i(_,U,H){B(H)?s(_,U):_.insertBefore(U,H)}function h(_,U){return U?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_)}function C(_,U,H){_.replaceChild(U,H)}function v(_,U){_.removeChild(U)}function p(_){for(var U=0;U<_.length;U++)_[U]()}function g(_,U,H){var $=_.children;return H&4?$.$LI:H&8192?_.childFlags===2?$:$[U?0:$.length-1]:$}function V(_,U){for(var H;_;){if(H=_.flags,H&1521)return _.dom;_=g(_,U,H)}return null}function S(_,U){for(var H=_.length,$;($=_.pop())!==void 0;)$(function(){--H<=0&&o(U)&&U()})}function y(_){for(var U=0;U<_.length;U++)_[U].fn();for(var H=0;H<_.length;H++){var $=_[H];i($.parent,$.dom,$.next)}_.splice(0,_.length)}function L(_,U,H){do{var $=_.flags;if($&1521){(!H||_.dom.parentNode===U)&&v(U,_.dom);return}var Z=_.children;if($&4&&(_=Z.$LI),$&8&&(_=Z),$&8192)if(_.childFlags===2)_=Z;else{for(var ae=0,ce=Z.length;ae0?S(H.componentWillDisappear,w(_,U)):L(_,U,!1)}function x(_,U,H,$,Z,ae,ce,se){_.componentWillMove.push({dom:$,fn:function(){function Ne(){ce&4?H.componentWillMove(U,Z,$):ce&8&&H.onComponentWillMove(U,Z,$,se)}return Ne}(),next:ae,parent:Z})}function M(_,U,H,$,Z){var ae,ce,se=U.flags;do{var Ne=U.flags;if(Ne&1521){!a(ae)&&(o(ae.componentWillMove)||o(ae.onComponentWillMove))?x(Z,_,ae,U.dom,H,$,se,ce):i(H,U.dom,$);return}var Te=U.children;if(Ne&4)ae=U.children,ce=U.props,U=Te.$LI;else if(Ne&8)ae=U.ref,ce=U.props,U=Te;else if(Ne&8192)if(U.childFlags===2)U=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=B(se),Ie=f(se)&&se[0]===W;Ne||Te||Ie?(H=H||U.slice(0,ae),(Ne||Ie)&&(ce=ne(ce)),(Te||Ie)&&(ce.key=W+ae),H.push(ce)):H&&H.push(ce),ce.flags|=65536}}H=H||U,H.length===0?$=1:$=8}else H=U,H.flags|=65536,U.flags&81920&&(H=ne(U)),$=2;return _.children=H,_.childFlags=$,_}function me(_){return t(_)||e(_)?ie(_,null):n(_)?pe(_,0,null):_.flags&16384?ne(_):_}var Y="http://www.w3.org/1999/xlink",ve="http://www.w3.org/XML/1998/namespace",he={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":ve,"xml:lang":ve,"xml:space":ve};function Ve(_){return{onClick:_,onDblClick:_,onFocusIn:_,onFocusOut:_,onKeyDown:_,onKeyPress:_,onKeyUp:_,onMouseDown:_,onMouseMove:_,onMouseUp:_,onTouchEnd:_,onTouchMove:_,onTouchStart:_}}var Be=Ve(0),be=Ve(null),Le=Ve(!0);function we(_,U){var H=U.$EV;return H||(H=U.$EV=Ve(null)),H[_]||++Be[_]===1&&(be[_]=je(_)),H}function xe(_,U){var H=U.$EV;H&&H[_]&&(--Be[_]===0&&(document.removeEventListener(u(_),be[_]),be[_]=null),H[_]=null)}function Re(_,U,H,$){if(o(H))we(_,$)[_]=H;else if(d(H)){if(R(U,H))return;we(_,$)[_]=H}else xe(_,$)}function He(_){return o(_.composedPath)?_.composedPath()[0]:_.target}function ye(_,U,H,$){var Z=He(_);do{if(U&&Z.disabled)return;var ae=Z.$EV;if(ae){var ce=ae[H];if(ce&&($.dom=Z,ce.event?ce.event(ce.data,_):ce(_),_.cancelBubble))return}Z=Z.parentNode}while(!B(Z))}function de(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ce(){return this.defaultPrevented}function ke(){return this.cancelBubble}function ge(_){var U={dom:document};return _.isDefaultPrevented=Ce,_.isPropagationStopped=ke,_.stopPropagation=de,Object.defineProperty(_,"currentTarget",{configurable:!0,get:function(){function H(){return U.dom}return H}()}),U}function Se(_){return function(U){if(U.button!==0){U.stopPropagation();return}ye(U,!0,_,ge(U))}}function Pe(_){return function(U){ye(U,!1,_,ge(U))}}function je(_){var U=_==="onClick"||_==="onDblClick"?Se(_):Pe(_);return document.addEventListener(u(_),U),U}function _e(_,U){var H=document.createElement("i");return H.innerHTML=U,H.innerHTML===_.innerHTML}function ze(_,U,H){if(_[U]){var $=_[U];$.event?$.event($.data,H):$(H)}else{var Z=U.toLowerCase();_[Z]&&_[Z](H)}}function We(_,U){var H=function(){function $(Z){var ae=this.$V;if(ae){var ce=ae.props||c,se=ae.dom;if(f(_))ze(ce,_,Z);else for(var Ne=0;Ne<_.length;++Ne)ze(ce,_[Ne],Z);if(o(U)){var Te=this.$V,Ie=Te.props||c;U(Ie,se,!1,Te)}}}return $}();return Object.defineProperty(H,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),H}function Ue(_,U,H){var $="$"+U,Z=_[$];if(Z){if(Z[1].wrapped)return;_.removeEventListener(Z[0],Z[1]),_[$]=null}o(H)&&(_.addEventListener(U,H),_[$]=[U,H])}function Xe(_){return _==="checkbox"||_==="radio"}var yt=We("onInput",dt),St=We(["onClick","onChange"],dt);function Ct(_){_.stopPropagation()}Ct.wrapped=!0;function Bt(_,U){Xe(U.type)?(Ue(_,"change",St),Ue(_,"click",Ct)):Ue(_,"input",yt)}function dt(_,U){var H=_.type,$=_.value,Z=_.checked,ae=_.multiple,ce=_.defaultValue,se=!a($);H&&H!==U.type&&U.setAttribute("type",H),!a(ae)&&ae!==U.multiple&&(U.multiple=ae),!a(ce)&&!se&&(U.defaultValue=ce+""),Xe(H)?(se&&(U.value=$),a(Z)||(U.checked=Z)):se&&U.value!==$?(U.defaultValue=$,U.value=$):a(Z)||(U.checked=Z)}function rt(_,U){if(_.type==="option")It(_,U);else{var H=_.children,$=_.flags;if($&4)rt(H.$LI,U);else if($&8)rt(H,U);else if(_.childFlags===2)rt(H,U);else if(_.childFlags&12)for(var Z=0,ae=H.length;Z-1&&U.options[ae]&&(se=U.options[ae].value),H&&a(se)&&(se=_.defaultValue),rt($,se)}}var Zt=We("onInput",Tt),qt=We("onChange");function en(_,U){Ue(_,"input",Zt),U.onChange&&Ue(_,"change",qt)}function Tt(_,U,H){var $=_.value,Z=U.value;if(a($)){if(H){var ae=_.defaultValue;!a(ae)&&ae!==Z&&(U.defaultValue=ae,U.value=ae)}}else Z!==$&&(U.defaultValue=$,U.value=$)}function xt(_,U,H,$,Z,ae){_&64?dt($,H):_&256?wt($,H,Z,U):_&128&&Tt($,H,Z),ae&&(H.$V=U)}function tn(_,U,H){_&64?Bt(U,H):_&256?Qt(U):_&128&&en(U,H)}function At(_){return _.type&&Xe(_.type)?!a(_.checked):!a(_.value)}function nn(){return{current:null}}function on(_){var U={render:_};return U}function st(_){_&&!F(_,null)&&_.current&&(_.current=null)}function at(_,U,H){_&&(o(_)||_.current!==void 0)&&H.push(function(){!F(_,U)&&_.current!==void 0&&(_.current=U)})}function Je(_,U,H){Ze(_,H),T(_,U,H)}function Ze(_,U){var H=_.flags,$=_.children,Z;if(H&481){Z=_.ref;var ae=_.props;st(Z);var ce=_.childFlags;if(!B(ae))for(var se=Object.keys(ae),Ne=0,Te=se.length;Ne0?S(H.componentWillDisappear,rn(U,_)):_.textContent=""}function pt(_,U,H,$){ct(H,$),U.flags&8192?T(U,_,$):mt(_,H,$)}function Et(_,U,H,$,Z){_.componentWillDisappear.push(function(ae){$&4?U.componentWillDisappear(H,ae):$&8&&U.onComponentWillDisappear(H,Z,ae)})}function an(_){var U=_.event;return function(H){U(_.data,H)}}function cn(_,U,H,$){if(d(H)){if(R(U,H))return;H=an(H)}Ue($,u(_),H)}function ln(_,U,H){if(a(U)){H.removeAttribute("style");return}var $=H.style,Z,ae;if(f(U)){$.cssText=U;return}if(!a(_)&&!f(_)){for(Z in U)ae=U[Z],ae!==_[Z]&&$.setProperty(Z,ae);for(Z in _)a(U[Z])&&$.removeProperty(Z)}else for(Z in U)ae=U[Z],$.setProperty(Z,ae)}function un(_,U,H,$,Z){var ae=_&&_.__html||"",ce=U&&U.__html||"";ae!==ce&&!a(ce)&&!_e($,ce)&&(B(H)||(H.childFlags&12?ct(H.children,Z):H.childFlags===2&&Ze(H.children,Z),H.children=null,H.childFlags=1),$.innerHTML=ce)}function vt(_,U,H,$,Z,ae,ce,se){switch(_){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":$.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":$[_]=!!H;break;case"defaultChecked":case"value":case"volume":if(ae&&_==="value")break;var Ne=a(H)?"":H;$[_]!==Ne&&($[_]=Ne);break;case"style":ln(U,H,$);break;case"dangerouslySetInnerHTML":un(U,H,ce,$,se);break;default:Le[_]?Re(_,U,H,$):_.charCodeAt(0)===111&&_.charCodeAt(1)===110?cn(_,U,H,$):a(H)?$.removeAttribute(_):Z&&he[_]?$.setAttributeNS(he[_],_,H):$.setAttribute(_,H);break}}function Mt(_,U,H,$,Z,ae){var ce=!1,se=(U&448)>0;se&&(ce=At(H),ce&&tn(U,$,H));for(var Ne in H)vt(Ne,null,H[Ne],$,Z,ce,null,ae);se&&xt(U,_,$,H,!0,ce)}function Pt(_,U,H){var $=me(_.render(U,_.state,H)),Z=H;return o(_.getChildContext)&&(Z=k(H,_.getChildContext())),_.$CX=Z,$}function Ot(_,U,H,$,Z,ae){var ce=new U(H,$),se=ce.$N=!!(U.getDerivedStateFromProps||ce.getSnapshotBeforeUpdate);if(ce.$SVG=Z,ce.$L=ae,_.children=ce,ce.$BS=!1,ce.context=$,ce.props===c&&(ce.props=H),se)ce.state=O(ce,H,ce.state);else if(o(ce.componentWillMount)){ce.$BR=!0,ce.componentWillMount();var Ne=ce.$PS;if(!B(Ne)){var Te=ce.state;if(B(Te))ce.state=Ne;else for(var Ie in Ne)Te[Ie]=Ne[Ie];ce.$PS=null}ce.$BR=!1}return ce.$LI=Pt(ce,H,$),ce}function gt(_,U){var H=_.props||c;return _.flags&32768?_.type.render(H,_.ref,U):_.type(H,U)}function $e(_,U,H,$,Z,ae,ce){var se=_.flags|=16384;se&481?Dt(_,U,H,$,Z,ae,ce):se&4?mn(_,U,H,$,Z,ae,ce):se&8?pn(_,U,H,$,Z,ae,ce):se&16?Rt(_,U,Z):se&8192?sn(_,H,U,$,Z,ae,ce):se&1024&&dn(_,H,U,Z,ae,ce)}function dn(_,U,H,$,Z,ae){$e(_.children,_.ref,U,!1,null,Z,ae);var ce=le();Rt(ce,H,$),_.dom=ce.dom}function sn(_,U,H,$,Z,ae,ce){var se=_.children,Ne=_.childFlags;Ne&12&&se.length===0&&(Ne=_.childFlags=2,se=_.children=le()),Ne===2?$e(se,H,U,$,Z,ae,ce):ot(se,H,U,$,Z,ae,ce)}function Rt(_,U,H){var $=_.dom=document.createTextNode(_.children);B(U)||i(U,$,H)}function Dt(_,U,H,$,Z,ae,ce){var se=_.flags,Ne=_.props,Te=_.className,Ie=_.childFlags,Ee=_.dom=h(_.type,$=$||(se&32)>0),Ae=_.children;if(!a(Te)&&Te!==""&&($?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)P(Ee,Ae);else if(Ie!==1){var Me=$&&_.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(_.children=Ae=ne(Ae)),$e(Ae,Ee,H,Me,null,ae,ce)):(Ie===8||Ie===4)&&ot(Ae,Ee,H,Me,null,ae,ce)}B(U)||i(U,Ee,Z),B(Ne)||Mt(_,se,Ne,Ee,$,ce),at(_.ref,Ee,ae)}function ot(_,U,H,$,Z,ae,ce){for(var se=0;se<_.length;++se){var Ne=_[se];Ne.flags&16384&&(_[se]=Ne=ne(Ne)),$e(Ne,U,H,$,Z,ae,ce)}}function mn(_,U,H,$,Z,ae,ce){var se=Ot(_,_.type,_.props||c,H,$,ae),Ne=ce;o(se.componentDidAppear)&&(Ne=new l),$e(se.$LI,U,se.$CX,$,Z,ae,Ne),_t(_.ref,se,ae,ce)}function pn(_,U,H,$,Z,ae,ce){var se=_.ref,Ne=ce;!a(se)&&o(se.onComponentDidAppear)&&(Ne=new l),$e(_.children=me(gt(_,H)),U,H,$,Z,ae,Ne),Ft(_,ae,ce)}function fn(_){return function(){_.componentDidMount()}}function jt(_,U,H,$,Z){_.componentDidAppear.push(function(){$&4?U.componentDidAppear(H):$&8&&U.onComponentDidAppear(H,Z)})}function _t(_,U,H,$){at(_,U,H),o(U.componentDidMount)&&H.push(fn(U)),o(U.componentDidAppear)&&jt($,U,U.$LI.dom,4,void 0)}function hn(_,U){return function(){_.onComponentDidMount(V(U,!0),U.props||c)}}function Ft(_,U,H){var $=_.ref;a($)||(F($.onComponentWillMount,_.props||c),o($.onComponentDidMount)&&U.push(hn($,_)),o($.onComponentDidAppear)&&jt(H,$,V(_,!0),8,_.props))}function Cn(_,U,H,$,Z,ae,ce){Ze(_,ce),U.flags&_.flags&1521?($e(U,null,$,Z,null,ae,ce),C(H,U.dom,_.dom)):($e(U,H,$,Z,V(_,!0),ae,ce),T(_,H,ce))}function qe(_,U,H,$,Z,ae,ce,se){var Ne=U.flags|=16384;_.flags!==Ne||_.type!==U.type||_.key!==U.key||Ne&2048?_.flags&16384?Cn(_,U,H,$,Z,ce,se):$e(U,H,$,Z,ae,ce,se):Ne&481?bn(_,U,$,Z,Ne,ce,se):Ne&4?Sn(_,U,H,$,Z,ae,ce,se):Ne&8?Bn(_,U,H,$,Z,ae,ce,se):Ne&16?In(_,U):Ne&8192?Nn(_,U,H,$,Z,ce,se):Vn(_,U,$,ce,se)}function vn(_,U,H){_!==U&&(_!==""?H.firstChild.nodeValue=U:P(H,U))}function gn(_,U){_.textContent!==U&&(_.textContent=U)}function Nn(_,U,H,$,Z,ae,ce){var se=_.children,Ne=U.children,Te=_.childFlags,Ie=U.childFlags,Ee=null;Ie&12&&Ne.length===0&&(Ie=U.childFlags=2,Ne=U.children=le());var Ae=(Ie&2)!==0;if(Te&12){var Me=se.length;(Te&8&&Ie&8||Ae||!Ae&&Ne.length>Me)&&(Ee=V(se[Me-1],!1).nextSibling)}Nt(Te,Ie,se,Ne,H,$,Z,Ee,_,ae,ce)}function Vn(_,U,H,$,Z){var ae=_.ref,ce=U.ref,se=U.children;if(Nt(_.childFlags,U.childFlags,_.children,se,ae,H,!1,null,_,$,Z),U.dom=_.dom,ae!==ce&&!t(se)){var Ne=se.dom;v(ae,Ne),s(ce,Ne)}}function bn(_,U,H,$,Z,ae,ce){var se=U.dom=_.dom,Ne=_.props,Te=U.props,Ie=!1,Ee=!1,Ae;if($=$||(Z&32)>0,Ne!==Te){var Me=Ne||c;if(Ae=Te||c,Ae!==c){Ie=(Z&448)>0,Ie&&(Ee=At(Ae));for(var Fe in Ae){var Oe=Me[Fe],Ke=Ae[Fe];Oe!==Ke&&vt(Fe,Oe,Ke,se,$,Ee,_,ce)}}if(Me!==c)for(var De in Me)a(Ae[De])&&!a(Me[De])&&vt(De,Me[De],null,se,$,Ee,_,ce)}var tt=U.children,Ye=U.className;_.className!==Ye&&(a(Ye)?se.removeAttribute("class"):$?se.setAttribute("class",Ye):se.className=Ye),Z&4096?gn(se,tt):Nt(_.childFlags,U.childFlags,_.children,tt,se,H,$&&U.type!=="foreignObject",null,_,ae,ce),Ie&&xt(Z,U,se,Ae,!1,Ee);var it=U.ref,Qe=_.ref;Qe!==it&&(st(Qe),at(it,se,ae))}function kn(_,U,H,$,Z,ae,ce){Ze(_,ce),ot(U,H,$,Z,V(_,!0),ae,ce),T(_,H,ce)}function Nt(_,U,H,$,Z,ae,ce,se,Ne,Te,Ie){switch(_){case 2:switch(U){case 2:qe(H,$,Z,ae,ce,se,Te,Ie);break;case 1:Je(H,Z,Ie);break;case 16:Ze(H,Ie),P(Z,$);break;default:kn(H,$,Z,ae,ce,Te,Ie);break}break;case 1:switch(U){case 2:$e($,Z,ae,ce,se,Te,Ie);break;case 1:break;case 16:P(Z,$);break;default:ot($,Z,ae,ce,se,Te,Ie);break}break;case 16:switch(U){case 16:vn(H,$,Z);break;case 2:mt(Z,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:mt(Z,H,Ie);break;default:mt(Z,H,Ie),ot($,Z,ae,ce,se,Te,Ie);break}break;default:switch(U){case 16:ct(H,Ie),P(Z,$);break;case 2:pt(Z,Ne,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:pt(Z,Ne,H,Ie);break;default:var Ee=H.length|0,Ae=$.length|0;Ee===0?Ae>0&&ot($,Z,ae,ce,se,Te,Ie):Ae===0?pt(Z,Ne,H,Ie):U===8&&_===8?wn(H,$,Z,ae,ce,Ee,Ae,se,Ne,Te,Ie):Ln(H,$,Z,ae,ce,Ee,Ae,se,Te,Ie);break}break}}function yn(_,U,H,$,Z){Z.push(function(){_.componentDidUpdate(U,H,$)})}function Wt(_,U,H,$,Z,ae,ce,se,Ne,Te){var Ie=_.state,Ee=_.props,Ae=!!_.$N,Me=o(_.shouldComponentUpdate);if(Ae&&(U=O(_,H,U!==Ie?k(Ie,U):U)),ce||!Me||Me&&_.shouldComponentUpdate(H,U,Z)){!Ae&&o(_.componentWillUpdate)&&_.componentWillUpdate(H,U,Z),_.props=H,_.state=U,_.context=Z;var Fe=null,Oe=Pt(_,H,Z);Ae&&o(_.getSnapshotBeforeUpdate)&&(Fe=_.getSnapshotBeforeUpdate(Ee,Ie)),qe(_.$LI,Oe,$,_.$CX,ae,se,Ne,Te),_.$LI=Oe,o(_.componentDidUpdate)&&yn(_,Ee,Ie,Fe,Ne)}else _.props=H,_.state=U,_.context=Z}function Sn(_,U,H,$,Z,ae,ce,se){var Ne=U.children=_.children;if(!B(Ne)){Ne.$L=ce;var Te=U.props||c,Ie=U.ref,Ee=_.ref,Ae=Ne.state;if(!Ne.$N){if(o(Ne.componentWillReceiveProps)){if(Ne.$BR=!0,Ne.componentWillReceiveProps(Te,$),Ne.$UN)return;Ne.$BR=!1}B(Ne.$PS)||(Ae=k(Ae,Ne.$PS),Ne.$PS=null)}Wt(Ne,Ae,Te,H,$,Z,!1,ae,ce,se),Ee!==Ie&&(st(Ee),at(Ie,Ne,ce))}}function Bn(_,U,H,$,Z,ae,ce,se){var Ne=!0,Te=U.props||c,Ie=U.ref,Ee=_.props,Ae=!a(Ie),Me=_.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(Ne=Ie.onComponentShouldUpdate(Ee,Te)),Ne!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var Fe=me(gt(U,$));qe(Me,Fe,H,$,Z,ae,ce,se),U.children=Fe,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else U.children=Me}function In(_,U){var H=U.children,$=U.dom=_.dom;H!==_.children&&($.nodeValue=H)}function Ln(_,U,H,$,Z,ae,ce,se,Ne,Te){for(var Ie=ae>ce?ce:ae,Ee=0,Ae,Me;Eece)for(Ee=Ie;EeEe||Me>Ae)break e;Fe=_[Me],Oe=U[Me]}for(Fe=_[Ee],Oe=U[Ae];Fe.key===Oe.key;){if(Oe.flags&16384&&(U[Ae]=Oe=ne(Oe)),qe(Fe,Oe,H,$,Z,se,Te,Ie),_[Ee]=Oe,Ee--,Ae--,Me>Ee||Me>Ae)break e;Fe=_[Ee],Oe=U[Ae]}}if(Me>Ee){if(Me<=Ae)for(Ke=Ae+1,De=KeAe)for(;Me<=Ee;)Je(_[Me++],H,Ie);else Tn(_,U,$,ae,ce,Ee,Ae,Me,H,Z,se,Ne,Te,Ie)}function Tn(_,U,H,$,Z,ae,ce,se,Ne,Te,Ie,Ee,Ae,Me){var Fe,Oe,Ke=0,De=0,tt=se,Ye=se,it=ae-se+1,Qe=ce-se+1,lt=new Int32Array(Qe+1),nt=it===$,bt=!1,Ge=0,ut=0;if(Z<4||(it|Qe)<32)for(De=tt;De<=ae;++De)if(Fe=_[De],utse?bt=!0:Ge=se,Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(Fe,Oe,Ne,H,Te,Ie,Ae,Me),++ut;break}!nt&&se>ce&&Je(Fe,Ne,Me)}else nt||Je(Fe,Ne,Me);else{var Yt={};for(De=Ye;De<=ce;++De)Yt[U[De].key]=De;for(De=tt;De<=ae;++De)if(Fe=_[De],uttt;)Je(_[tt++],Ne,Me);lt[se-Ye]=De+1,Ge>se?bt=!0:Ge=se,Oe=U[se],Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(Fe,Oe,Ne,H,Te,Ie,Ae,Me),++ut}else nt||Je(Fe,Ne,Me);else nt||Je(Fe,Ne,Me)}if(nt)pt(Ne,Ee,_,Me),ot(U,Ne,H,Te,Ie,Ae,Me);else if(bt){var Xt=xn(lt);for(se=Xt.length-1,De=Qe-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,Ke0&&y(Me.componentWillMove)}else if(ut!==Qe)for(De=Qe-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,KeUt&&(Ut=Ne,et=new Int32Array(Ne),ft=new Int32Array(Ne));H>1,_[et[se]]0&&(ft[H]=et[ae-1]),et[ae]=H)}ae=Z+1;var Te=new Int32Array(ae);for(ce=et[ae-1];ae-- >0;)Te[ae]=ce,ce=ft[ce],et[ae]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(_,U,H,$){var Z=[],ae=new l,ce=U.$V;D.v=!0,a(ce)?a(_)||(_.flags&16384&&(_=ne(_)),$e(_,U,$,!1,null,Z,ae),U.$V=_,ce=_):a(_)?(Je(ce,U,ae),U.$V=null):(_.flags&16384&&(_=ne(_)),qe(ce,_,U,$,!1,null,Z,ae),ce=U.$V=_),p(Z),S(ae.componentDidAppear),D.v=!1,o(H)&&H(),o(E.renderComplete)&&E.renderComplete(ce,U)}function zt(_,U,H,$){H===void 0&&(H=null),$===void 0&&($=c),Ht(_,U,H,$)}function En(_){return function(){function U(H,$,Z,ae){_||(_=H),zt($,_,Z,ae)}return U}()}var ht=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(_){window.setTimeout(_,0)},Vt=!1;function $t(_,U,H,$){var Z=_.$PS;if(o(U)&&(U=U(Z?k(_.state,Z):_.state,_.props,_.context)),a(Z))_.$PS=U;else for(var ae in U)Z[ae]=U[ae];if(_.$BR)o(H)&&_.$L.push(H.bind(_));else{if(!D.v&&ht.length===0){Gt(_,$),o(H)&&H.call(_);return}if(ht.indexOf(_)===-1&&ht.push(_),$&&(_.$F=!0),Vt||(Vt=!0,Mn(Kt)),o(H)){var ce=_.$QU;ce||(ce=_.$QU=[]),ce.push(H)}}}function Pn(_){for(var U=_.$QU,H=0;H=0;--F){var W=this.tryEntries[F],z=W.completion;if(W.tryLoc==="root")return j("end");if(W.tryLoc<=this.prev){var K=a.call(W,"catchLoc"),G=a.call(W,"finallyLoc");if(K&&G){if(this.prev=0;--j){var F=this.tryEntries[j];if(F.tryLoc<=this.prev&&a.call(F,"finallyLoc")&&this.prev=0;--R){var j=this.tryEntries[R];if(j.finallyLoc===P)return this.complete(j.completion,j.afterLoc),x(j),s}}return E}(),catch:function(){function E(P){for(var R=this.tryEntries.length-1;R>=0;--R){var j=this.tryEntries[R];if(j.tryLoc===P){var F=j.completion;if(F.type==="throw"){var W=F.arg;x(j)}return W}}throw new Error("illegal catch attempt")}return E}(),delegateYield:function(){function E(P,R,j){return this.delegate={iterator:O(P),resultName:R,nextLoc:j},this.method==="next"&&(this.arg=o),s}return E}()},n}(A.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(A,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function B(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function I(){return Promise.resolve(a.responseText)}return I}(),json:function(){function I(){return Promise.resolve(a.responseText).then(JSON.parse)}return I}(),blob:function(){function I(){return Promise.resolve(new Blob([a.response]))}return I}(),clone:B,headers:{keys:function(){function I(){return t}return I}(),entries:function(){function I(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return I}(),get:function(){function I(k){return a.getResponseHeader(k)}return I}(),has:function(){function I(k){return a.getResponseHeader(k)!=null}return I}()}}}return B}();for(var b in a.open(r.method||"get",A,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(B,I){o[I]||t.push(o[I]=I)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(A,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(i,h){var C=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(C)return(C=C.call(i)).next.bind(C);if(Array.isArray(i)||(C=e(i))||h&&i&&typeof i.length=="number"){C&&(i=C);var v=0;return function(){return v>=i.length?{done:!0}:{done:!1,value:i[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(i,h){if(i){if(typeof i=="string")return a(i,h);var C={}.toString.call(i).slice(8,-1);return C==="Object"&&i.constructor&&(C=i.constructor.name),C==="Map"||C==="Set"?Array.from(i):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?a(i,h):void 0}}function a(i,h){(h==null||h>i.length)&&(h=i.length);for(var C=0,v=Array(h);C0&&(0,a.round)(g.width)/B.offsetWidth||1,c=B.offsetHeight>0&&(0,a.round)(g.height)/B.offsetHeight||1);var m=(0,e.isElement)(B)?(0,t.default)(B):window,i=m.visualViewport,u=!(0,o.default)()&&k,s=(g.left+(u&&i?i.offsetLeft:0))/d,l=(g.top+(u&&i?i.offsetTop:0))/c,h=g.width/d,C=g.height/c;return{width:h,height:C,top:l,right:s+h,bottom:l+C,left:s,x:s,y:l}}},49035:function(A,r,n){"use strict";r.__esModule=!0,r.default=C;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),B=u(n(16599)),I=n(75573),k=u(n(37786)),g=u(n(57819)),d=u(n(4206)),c=u(n(12972)),m=u(n(81666)),i=n(63618);function u(v){return v&&v.__esModule?v:{default:v}}function s(v,p){var N=(0,k.default)(v,!1,p==="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 l(v,p,N){return p===e.viewport?(0,m.default)((0,a.default)(v,N)):(0,I.isElement)(p)?s(p,N):(0,m.default)((0,t.default)((0,b.default)(v)))}function h(v){var p=(0,o.default)((0,g.default)(v)),N=["absolute","fixed"].indexOf((0,B.default)(v).position)>=0,V=N&&(0,I.isHTMLElement)(v)?(0,f.default)(v):v;return(0,I.isElement)(V)?p.filter(function(S){return(0,I.isElement)(S)&&(0,d.default)(S,V)&&(0,c.default)(S)!=="body"}):[]}function C(v,p,N,V){var S=p==="clippingParents"?h(v):[].concat(p),y=[].concat(S,[N]),L=y[0],w=y.reduce(function(T,x){var M=l(v,x,V);return T.top=(0,i.max)(M.top,T.top),T.right=(0,i.min)(M.right,T.right),T.bottom=(0,i.min)(M.bottom,T.bottom),T.left=(0,i.max)(M.left,T.left),T},l(v,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(A,r,n){"use strict";r.__esModule=!0,r.default=d;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),B=k(n(10798)),I=n(63618);function k(c){return c&&c.__esModule?c:{default:c}}function g(c){var m=c.getBoundingClientRect(),i=(0,I.round)(m.width)/c.offsetWidth||1,u=(0,I.round)(m.height)/c.offsetHeight||1;return i!==1||u!==1}function d(c,m,i){i===void 0&&(i=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&g(m),l=(0,b.default)(m),h=(0,e.default)(c,s,i),C={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(u||!u&&!i)&&(((0,t.default)(m)!=="body"||(0,B.default)(l))&&(C=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):l&&(v.x=(0,f.default)(l))),{x:h.left+C.scrollLeft-v.x,y:h.top+C.scrollTop-v.y,width:h.width,height:h.height}}},16599:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(A,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(A,r,n){"use strict";r.__esModule=!0,r.default=B;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(I){return I&&I.__esModule?I:{default:I}}function B(I){var k,g=(0,e.default)(I),d=(0,o.default)(I),c=(k=I.ownerDocument)==null?void 0:k.body,m=(0,f.max)(g.scrollWidth,g.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(g.scrollHeight,g.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-d.scrollLeft+(0,t.default)(I),s=-d.scrollTop;return(0,a.default)(c||g).direction==="rtl"&&(u+=(0,f.max)(g.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:u,y:s}}},3073:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,B=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-B)<=1&&(B=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:B}}},12972:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(B){return B&&B.__esModule?B:{default:B}}function b(B){return B===(0,a.default)(B)||!(0,t.isHTMLElement)(B)?(0,e.default)(B):(0,o.default)(B)}},44896:function(A,r,n){"use strict";r.__esModule=!0,r.default=d;var e=I(n(95115)),a=I(n(12972)),t=I(n(16599)),o=n(75573),f=I(n(87031)),b=I(n(57819)),B=I(n(35366));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function g(c){var m=/firefox/i.test((0,B.default)()),i=/Trident/i.test((0,B.default)());if(i&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,b.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function d(c){for(var m=(0,e.default)(c),i=k(c);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=k(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?m:i||g(c)||m}},57819:function(A,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(B){return B&&B.__esModule?B:{default:B}}function b(B){return["html","body","#document"].indexOf((0,t.default)(B))>=0?B.ownerDocument.body:(0,o.isHTMLElement)(B)&&(0,a.default)(B)?B:b((0,e.default)(B))}},87991:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(B){return B&&B.__esModule?B:{default:B}}function b(B,I){var k=(0,e.default)(B),g=(0,a.default)(B),d=k.visualViewport,c=g.clientWidth,m=g.clientHeight,i=0,u=0;if(d){c=d.width,m=d.height;var s=(0,o.default)();(s||!s&&I==="fixed")&&(i=d.offsetLeft,u=d.offsetTop)}return{width:c,height:m,x:i+(0,t.default)(B),y:u}}},95115:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,B=f.pageYOffset;return{scrollLeft:b,scrollTop:B}}},79697:function(A,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(A,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var B=(0,e.default)(b).Element;return b instanceof B||b instanceof Element}function o(b){var B=(0,e.default)(b).HTMLElement;return b instanceof B||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var B=(0,e.default)(b).ShadowRoot;return b instanceof B||b instanceof ShadowRoot}},89331:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,B=f.overflowX,I=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+I+B)}},87031:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(B){return B&&B.__esModule?B:{default:B}}function b(B,I){var k;I===void 0&&(I=[]);var g=(0,e.default)(B),d=g===((k=B.ownerDocument)==null?void 0:k.body),c=(0,t.default)(g),m=d?[c].concat(c.visualViewport||[],(0,o.default)(g)?g:[]):g,i=I.concat(m);return d?i:i.concat(b((0,a.default)(m)))}},46206:function(A,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",B=r.end="end",I=r.clippingParents="clippingParents",k=r.viewport="viewport",g=r.popper="popper",d=r.reference="reference",c=r.variationPlacements=f.reduce(function(S,y){return S.concat([y+"-"+b,y+"-"+B])},[]),m=r.placements=[].concat(f,[o]).reduce(function(S,y){return S.concat([y,y+"-"+b,y+"-"+B])},[]),i=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",h=r.main="main",C=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",p=r.write="write",N=r.afterWrite="afterWrite",V=r.modifierPhases=[i,u,s,l,h,C,v,p,N]},95996:function(A,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(B){B==="default"||B==="__esModule"||Object.prototype.hasOwnProperty.call(e,B)||B in r&&r[B]===a[B]||(r[B]=a[B])});var t=n(39805);Object.keys(t).forEach(function(B){B==="default"||B==="__esModule"||Object.prototype.hasOwnProperty.call(e,B)||B in r&&r[B]===t[B]||(r[B]=t[B])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(B){return B&&B.__esModule?B:{default:B}}function o(B){var I=B.state;Object.keys(I.elements).forEach(function(k){var g=I.styles[k]||{},d=I.attributes[k]||{},c=I.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,g),Object.keys(d).forEach(function(m){var i=d[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(B){var I=B.state,k={popper:{position:I.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(I.elements.popper.style,k.popper),I.styles=k,I.elements.arrow&&Object.assign(I.elements.arrow.style,k.arrow),function(){Object.keys(I.elements).forEach(function(g){var d=I.elements[g],c=I.attributes[g]||{},m=Object.keys(I.styles.hasOwnProperty(g)?I.styles[g]:k[g]),i=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(d)||!(0,e.default)(d)||(Object.assign(d.style,i),Object.keys(c).forEach(function(u){d.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=g(n(83104)),a=g(n(28811)),t=g(n(4206)),o=g(n(44896)),f=g(n(41199)),b=n(28595),B=g(n(43286)),I=g(n(81447)),k=n(46206);function g(u){return u&&u.__esModule?u:{default:u}}var d=function(){function u(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,B.default)(typeof s!="number"?s:(0,I.default)(s,k.basePlacements))}return u}();function c(u){var s,l=u.state,h=u.name,C=u.options,v=l.elements.arrow,p=l.modifiersData.popperOffsets,N=(0,e.default)(l.placement),V=(0,f.default)(N),S=[k.left,k.right].indexOf(N)>=0,y=S?"height":"width";if(!(!v||!p)){var L=d(C.padding,l),w=(0,a.default)(v),T=V==="y"?k.top:k.left,x=V==="y"?k.bottom:k.right,M=l.rects.reference[y]+l.rects.reference[V]-p[V]-l.rects.popper[y],P=p[V]-l.rects.reference[V],D=(0,o.default)(v),E=D?V==="y"?D.clientHeight||0:D.clientWidth||0:0,O=M/2-P/2,R=L[T],j=E-w[y]-L[x],F=E/2-w[y]/2+O,W=(0,b.within)(R,F,j),z=V;l.modifiersData[h]=(s={},s[z]=W,s.centerOffset=W-F,s)}}function m(u){var s=u.state,l=u.options,h=l.element,C=h===void 0?"[data-popper-arrow]":h;C!=null&&(typeof C=="string"&&(C=s.elements.popper.querySelector(C),!C)||(0,t.default)(s.elements.popper,C)&&(s.elements.arrow=C))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),B=k(n(45)),I=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(u,s){var l=u.x,h=u.y,C=s.devicePixelRatio||1;return{x:(0,I.round)(l*C)/C||0,y:(0,I.round)(h*C)/C||0}}function c(u){var s,l=u.popper,h=u.popperRect,C=u.placement,v=u.variation,p=u.offsets,N=u.position,V=u.gpuAcceleration,S=u.adaptive,y=u.roundOffsets,L=u.isFixed,w=p.x,T=w===void 0?0:w,x=p.y,M=x===void 0?0:x,P=typeof y=="function"?y({x:T,y:M}):{x:T,y:M};T=P.x,M=P.y;var D=p.hasOwnProperty("x"),E=p.hasOwnProperty("y"),O=e.left,R=e.top,j=window;if(S){var F=(0,a.default)(l),W="clientHeight",z="clientWidth";if(F===(0,t.default)(l)&&(F=(0,o.default)(l),(0,f.default)(F).position!=="static"&&N==="absolute"&&(W="scrollHeight",z="scrollWidth")),F=F,C===e.top||(C===e.left||C===e.right)&&v===e.end){R=e.bottom;var K=L&&F===j&&j.visualViewport?j.visualViewport.height:F[W];M-=K-h.height,M*=V?1:-1}if(C===e.left||(C===e.top||C===e.bottom)&&v===e.end){O=e.right;var G=L&&F===j&&j.visualViewport?j.visualViewport.width:F[z];T-=G-h.width,T*=V?1:-1}}var J=Object.assign({position:N},S&&g),Q=y===!0?d({x:T,y:M},(0,t.default)(l)):{x:T,y:M};if(T=Q.x,M=Q.y,V){var ue;return Object.assign({},J,(ue={},ue[R]=E?"0":"",ue[O]=D?"0":"",ue.transform=(j.devicePixelRatio||1)<=1?"translate("+T+"px, "+M+"px)":"translate3d("+T+"px, "+M+"px, 0)",ue))}return Object.assign({},J,(s={},s[R]=E?M+"px":"",s[O]=D?T+"px":"",s.transform="",s))}function m(u){var s=u.state,l=u.options,h=l.gpuAcceleration,C=h===void 0?!0:h,v=l.adaptive,p=v===void 0?!0:v,N=l.roundOffsets,V=N===void 0?!0:N,S={placement:(0,b.default)(s.placement),variation:(0,B.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:C,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},S,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},S,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var B=b.state,I=b.instance,k=b.options,g=k.scroll,d=g===void 0?!0:g,c=k.resize,m=c===void 0?!0:c,i=(0,e.default)(B.elements.popper),u=[].concat(B.scrollParents.reference,B.scrollParents.popper);return d&&u.forEach(function(s){s.addEventListener("scroll",I.update,t)}),m&&i.addEventListener("resize",I.update,t),function(){d&&u.forEach(function(s){s.removeEventListener("scroll",I.update,t)}),m&&i.removeEventListener("resize",I.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=I(n(71376)),a=I(n(83104)),t=I(n(86459)),o=I(n(17633)),f=I(n(9041)),b=n(46206),B=I(n(45));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===b.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function g(c){var m=c.state,i=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=i.mainAxis,l=s===void 0?!0:s,h=i.altAxis,C=h===void 0?!0:h,v=i.fallbackPlacements,p=i.padding,N=i.boundary,V=i.rootBoundary,S=i.altBoundary,y=i.flipVariations,L=y===void 0?!0:y,w=i.allowedAutoPlacements,T=m.options.placement,x=(0,a.default)(T),M=x===T,P=v||(M||!L?[(0,e.default)(T)]:k(T)),D=[T].concat(P).reduce(function(re,oe){return re.concat((0,a.default)(oe)===b.auto?(0,f.default)(m,{placement:oe,boundary:N,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):oe)},[]),E=m.rects.reference,O=m.rects.popper,R=new Map,j=!0,F=D[0],W=0;W=0,Q=J?"width":"height",ue=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:V,altBoundary:S,padding:p}),ie=J?G?b.right:b.left:G?b.bottom:b.top;E[Q]>O[Q]&&(ie=(0,e.default)(ie));var pe=(0,e.default)(ie),te=[];if(l&&te.push(ue[K]<=0),C&&te.push(ue[ie]<=0,ue[pe]<=0),te.every(function(re){return re})){F=z,j=!1;break}R.set(z,te)}if(j)for(var q=L?3:1,ne=function(){function re(oe){var fe=D.find(function(me){var Y=R.get(me);if(Y)return Y.slice(0,oe).every(function(ve){return ve})});if(fe)return F=fe,"break"}return re}(),le=q;le>0;le--){var ee=ne(le);if(ee==="break")break}m.placement!==F&&(m.modifiersData[u]._skip=!0,m.placement=F,m.reset=!0)}}var d=r.default={name:"flip",enabled:!0,phase:"main",fn:g,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(I){return I&&I.__esModule?I:{default:I}}function o(I,k,g){return g===void 0&&(g={x:0,y:0}),{top:I.top-k.height-g.y,right:I.right-k.width+g.x,bottom:I.bottom-k.height+g.y,left:I.left-k.width-g.x}}function f(I){return[e.top,e.right,e.bottom,e.left].some(function(k){return I[k]>=0})}function b(I){var k=I.state,g=I.name,d=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,i=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(i,d),l=o(u,c,m),h=f(s),C=f(l);k.modifiersData[g]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:C},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":C})}var B=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(A,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=g(n(19975));r.applyStyles=e.default;var a=g(n(52744));r.arrow=a.default;var t=g(n(59894));r.computeStyles=t.default;var o=g(n(36692));r.eventListeners=o.default;var f=g(n(23798));r.flip=f.default;var b=g(n(83761));r.hide=b.default;var B=g(n(61410));r.offset=B.default;var I=g(n(40107));r.popperOffsets=I.default;var k=g(n(75137));r.preventOverflow=k.default;function g(d){return d&&d.__esModule?d:{default:d}}},61410:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(B){return B&&B.__esModule?B:{default:B}}function o(B,I,k){var g=(0,e.default)(B),d=[a.left,a.top].indexOf(g)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},I,{placement:B})):k,m=c[0],i=c[1];return m=m||0,i=(i||0)*d,[a.left,a.right].indexOf(g)>=0?{x:i,y:m}:{x:m,y:i}}function f(B){var I=B.state,k=B.options,g=B.name,d=k.offset,c=d===void 0?[0,0]:d,m=a.placements.reduce(function(l,h){return l[h]=o(h,I.rects,c),l},{}),i=m[I.placement],u=i.x,s=i.y;I.modifiersData.popperOffsets!=null&&(I.modifiersData.popperOffsets.x+=u,I.modifiersData.popperOffsets.y+=s),I.modifiersData[g]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,B=f.name;b.modifiersData[B]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(A,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),f=n(28595),b=c(n(28811)),B=c(n(44896)),I=c(n(17633)),k=c(n(45)),g=c(n(34780)),d=n(63618);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,l=u.options,h=u.name,C=l.mainAxis,v=C===void 0?!0:C,p=l.altAxis,N=p===void 0?!1:p,V=l.boundary,S=l.rootBoundary,y=l.altBoundary,L=l.padding,w=l.tether,T=w===void 0?!0:w,x=l.tetherOffset,M=x===void 0?0:x,P=(0,I.default)(s,{boundary:V,rootBoundary:S,padding:L,altBoundary:y}),D=(0,a.default)(s.placement),E=(0,k.default)(s.placement),O=!E,R=(0,t.default)(D),j=(0,o.default)(R),F=s.modifiersData.popperOffsets,W=s.rects.reference,z=s.rects.popper,K=typeof M=="function"?M(Object.assign({},s.rects,{placement:s.placement})):M,G=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),J=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,Q={x:0,y:0};if(F){if(v){var ue,ie=R==="y"?e.top:e.left,pe=R==="y"?e.bottom:e.right,te=R==="y"?"height":"width",q=F[R],ne=q+P[ie],le=q-P[pe],ee=T?-z[te]/2:0,re=E===e.start?W[te]:z[te],oe=E===e.start?-z[te]:-W[te],fe=s.elements.arrow,me=T&&fe?(0,b.default)(fe):{width:0,height:0},Y=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,g.default)(),ve=Y[ie],he=Y[pe],Ve=(0,f.within)(0,W[te],me[te]),Be=O?W[te]/2-ee-Ve-ve-G.mainAxis:re-Ve-ve-G.mainAxis,be=O?-W[te]/2+ee+Ve+he+G.mainAxis:oe+Ve+he+G.mainAxis,Le=s.elements.arrow&&(0,B.default)(s.elements.arrow),we=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ue=J==null?void 0:J[R])!=null?ue:0,Re=q+Be-xe-we,He=q+be-xe,ye=(0,f.within)(T?(0,d.min)(ne,Re):ne,q,T?(0,d.max)(le,He):le);F[R]=ye,Q[R]=ye-q}if(N){var de,Ce=R==="x"?e.top:e.left,ke=R==="x"?e.bottom:e.right,ge=F[j],Se=j==="y"?"height":"width",Pe=ge+P[Ce],je=ge-P[ke],_e=[e.top,e.left].indexOf(D)!==-1,ze=(de=J==null?void 0:J[j])!=null?de:0,We=_e?Pe:ge-W[Se]-z[Se]-ze+G.altAxis,Ue=_e?ge+W[Se]+z[Se]-ze-G.altAxis:je,Xe=T&&_e?(0,f.withinMaxClamp)(We,ge,Ue):(0,f.within)(T?We:Pe,ge,T?Ue:je);F[j]=Xe,Q[j]=Xe-ge}s.modifiersData[h]=Q}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(A,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var B=r.defaultModifiers=[a.default,t.default,o.default,f.default],I=r.createPopper=(0,e.popperGenerator)({defaultModifiers:B})},83312:function(A,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(36692)),o=i(n(40107)),f=i(n(59894)),b=i(n(19975)),B=i(n(61410)),I=i(n(23798)),k=i(n(75137)),g=i(n(52744)),d=i(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var m=n(39805);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function i(l){return l&&l.__esModule?l:{default:l}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,B.default,I.default,k.default,g.default,d.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(B){return B&&B.__esModule?B:{default:B}}function b(B,I){I===void 0&&(I={});var k=I,g=k.placement,d=k.boundary,c=k.rootBoundary,m=k.padding,i=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,l=(0,e.default)(g),h=l?i?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===l}):a.basePlacements,C=h.filter(function(p){return s.indexOf(p)>=0});C.length===0&&(C=h);var v=C.reduce(function(p,N){return p[N]=(0,t.default)(B,{placement:N,boundary:d,rootBoundary:c,padding:m})[(0,o.default)(N)],p},{});return Object.keys(v).sort(function(p,N){return v[p]-v[N]})}},89951:function(A,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(B){return B&&B.__esModule?B:{default:B}}function b(B){var I=B.reference,k=B.element,g=B.placement,d=g?(0,e.default)(g):null,c=g?(0,a.default)(g):null,m=I.x+I.width/2-k.width/2,i=I.y+I.height/2-k.height/2,u;switch(d){case o.top:u={x:m,y:I.y-k.height};break;case o.bottom:u={x:m,y:I.y+I.height};break;case o.right:u={x:I.x+I.width,y:i};break;case o.left:u={x:I.x-k.width,y:i};break;default:u={x:I.x,y:I.y}}var s=d?(0,t.default)(d):null;if(s!=null){var l=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(I[l]/2-k[l]/2);break;case o.end:u[s]=u[s]+(I[l]/2-k[l]/2);break;default:}}return u}},10579:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(A,r,n){"use strict";r.__esModule=!0,r.default=d;var e=g(n(49035)),a=g(n(40600)),t=g(n(37786)),o=g(n(89951)),f=g(n(81666)),b=n(46206),B=n(75573),I=g(n(43286)),k=g(n(81447));function g(c){return c&&c.__esModule?c:{default:c}}function d(c,m){m===void 0&&(m={});var i=m,u=i.placement,s=u===void 0?c.placement:u,l=i.strategy,h=l===void 0?c.strategy:l,C=i.boundary,v=C===void 0?b.clippingParents:C,p=i.rootBoundary,N=p===void 0?b.viewport:p,V=i.elementContext,S=V===void 0?b.popper:V,y=i.altBoundary,L=y===void 0?!1:y,w=i.padding,T=w===void 0?0:w,x=(0,I.default)(typeof T!="number"?T:(0,k.default)(T,b.basePlacements)),M=S===b.popper?b.reference:b.popper,P=c.rects.popper,D=c.elements[L?M:S],E=(0,e.default)((0,B.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),v,N,h),O=(0,t.default)(c.elements.reference),R=(0,o.default)({reference:O,element:P,strategy:"absolute",placement:s}),j=(0,f.default)(Object.assign({},P,R)),F=S===b.popper?j:O,W={top:E.top-F.top+x.top,bottom:F.bottom-E.bottom+x.bottom,left:E.left-F.left+x.left,right:F.right-E.right+x.right},z=c.modifiersData.offset;if(S===b.popper&&z){var K=z[s];Object.keys(W).forEach(function(G){var J=[b.right,b.bottom].indexOf(G)>=0?1:-1,Q=[b.top,b.bottom].indexOf(G)>=0?"y":"x";W[G]+=K[Q]*J})}return W}},81447:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(A,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(A,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(A,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(A,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(A,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,B=[];o.forEach(function(k){f.set(k.name,k)});function I(k){b.add(k.name);var g=[].concat(k.requires||[],k.requiresIfExists||[]);g.forEach(function(d){if(!b.has(d)){var c=f.get(d);c&&I(c)}}),B.push(k)}return o.forEach(function(k){b.has(k.name)||I(k)}),B}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,B){return b.concat(f.filter(function(I){return I.phase===B}))},[])}},81666:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(A,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(A,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var B=a(o,f,b);return B>b?b:B}},15875:function(A,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(A,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=$e,r._MCCC=_t,r._ME=Dt,r._MFCC=Ft,r._MP=Mt,r._MR=at,r._RFC=gt,r.__render=Ht,r.createComponentVNode=ue,r.createFragment=pe,r.createPortal=ee,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ie,r.createVNode=K,r.directClone=ne,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=oe,r.linkEvent=g,r.normalizeProps=te,r.options=void 0,r.render=zt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(_){var U=typeof _;return U==="string"||U==="number"}function a(_){return _==null}function t(_){return _===null||_===!1||_===!0||_===void 0}function o(_){return typeof _=="function"}function f(_){return typeof _=="string"}function b(_){return typeof _=="number"}function B(_){return _===null}function I(_){return _===void 0}function k(_,U){var H={};if(_)for(var $ in _)H[$]=_[$];if(U)for(var Z in U)H[Z]=U[Z];return H}function g(_,U){return o(U)?{data:_,event:U}:null}function d(_){return!B(_)&&typeof _=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F",i=r.AnimationQueues=function(){function _(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return _}();function u(_){return _.substring(2).toLowerCase()}function s(_,U){_.appendChild(U)}function l(_,U,H){B(H)?s(_,U):_.insertBefore(U,H)}function h(_,U){return U?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_)}function C(_,U,H){_.replaceChild(U,H)}function v(_,U){_.removeChild(U)}function p(_){for(var U=0;U<_.length;U++)_[U]()}function N(_,U,H){var $=_.children;return H&4?$.$LI:H&8192?_.childFlags===2?$:$[U?0:$.length-1]:$}function V(_,U){for(var H;_;){if(H=_.flags,H&1521)return _.dom;_=N(_,U,H)}return null}function S(_,U){for(var H=_.length,$;($=_.pop())!==void 0;)$(function(){--H<=0&&o(U)&&U()})}function y(_){for(var U=0;U<_.length;U++)_[U].fn();for(var H=0;H<_.length;H++){var $=_[H];l($.parent,$.dom,$.next)}_.splice(0,_.length)}function L(_,U,H){do{var $=_.flags;if($&1521){(!H||_.dom.parentNode===U)&&v(U,_.dom);return}var Z=_.children;if($&4&&(_=Z.$LI),$&8&&(_=Z),$&8192)if(_.childFlags===2)_=Z;else{for(var ae=0,ce=Z.length;ae0?S(H.componentWillDisappear,w(_,U)):L(_,U,!1)}function x(_,U,H,$,Z,ae,ce,se){_.componentWillMove.push({dom:$,fn:function(){function Ne(){ce&4?H.componentWillMove(U,Z,$):ce&8&&H.onComponentWillMove(U,Z,$,se)}return Ne}(),next:ae,parent:Z})}function M(_,U,H,$,Z){var ae,ce,se=U.flags;do{var Ne=U.flags;if(Ne&1521){!a(ae)&&(o(ae.componentWillMove)||o(ae.onComponentWillMove))?x(Z,_,ae,U.dom,H,$,se,ce):l(H,U.dom,$);return}var Te=U.children;if(Ne&4)ae=U.children,ce=U.props,U=Te.$LI;else if(Ne&8)ae=U.ref,ce=U.props,U=Te;else if(Ne&8192)if(U.childFlags===2)U=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=B(se),Ie=f(se)&&se[0]===W;Ne||Te||Ie?(H=H||U.slice(0,ae),(Ne||Ie)&&(ce=ne(ce)),(Te||Ie)&&(ce.key=W+ae),H.push(ce)):H&&H.push(ce),ce.flags|=65536}}H=H||U,H.length===0?$=1:$=8}else H=U,H.flags|=65536,U.flags&81920&&(H=ne(U)),$=2;return _.children=H,_.childFlags=$,_}function me(_){return t(_)||e(_)?ie(_,null):n(_)?pe(_,0,null):_.flags&16384?ne(_):_}var Y="http://www.w3.org/1999/xlink",ve="http://www.w3.org/XML/1998/namespace",he={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":ve,"xml:lang":ve,"xml:space":ve};function Ve(_){return{onClick:_,onDblClick:_,onFocusIn:_,onFocusOut:_,onKeyDown:_,onKeyPress:_,onKeyUp:_,onMouseDown:_,onMouseMove:_,onMouseUp:_,onTouchEnd:_,onTouchMove:_,onTouchStart:_}}var Be=Ve(0),be=Ve(null),Le=Ve(!0);function we(_,U){var H=U.$EV;return H||(H=U.$EV=Ve(null)),H[_]||++Be[_]===1&&(be[_]=je(_)),H}function xe(_,U){var H=U.$EV;H&&H[_]&&(--Be[_]===0&&(document.removeEventListener(u(_),be[_]),be[_]=null),H[_]=null)}function Re(_,U,H,$){if(o(H))we(_,$)[_]=H;else if(d(H)){if(R(U,H))return;we(_,$)[_]=H}else xe(_,$)}function He(_){return o(_.composedPath)?_.composedPath()[0]:_.target}function ye(_,U,H,$){var Z=He(_);do{if(U&&Z.disabled)return;var ae=Z.$EV;if(ae){var ce=ae[H];if(ce&&($.dom=Z,ce.event?ce.event(ce.data,_):ce(_),_.cancelBubble))return}Z=Z.parentNode}while(!B(Z))}function de(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ce(){return this.defaultPrevented}function ke(){return this.cancelBubble}function ge(_){var U={dom:document};return _.isDefaultPrevented=Ce,_.isPropagationStopped=ke,_.stopPropagation=de,Object.defineProperty(_,"currentTarget",{configurable:!0,get:function(){function H(){return U.dom}return H}()}),U}function Se(_){return function(U){if(U.button!==0){U.stopPropagation();return}ye(U,!0,_,ge(U))}}function Pe(_){return function(U){ye(U,!1,_,ge(U))}}function je(_){var U=_==="onClick"||_==="onDblClick"?Se(_):Pe(_);return document.addEventListener(u(_),U),U}function _e(_,U){var H=document.createElement("i");return H.innerHTML=U,H.innerHTML===_.innerHTML}function ze(_,U,H){if(_[U]){var $=_[U];$.event?$.event($.data,H):$(H)}else{var Z=U.toLowerCase();_[Z]&&_[Z](H)}}function We(_,U){var H=function(){function $(Z){var ae=this.$V;if(ae){var ce=ae.props||c,se=ae.dom;if(f(_))ze(ce,_,Z);else for(var Ne=0;Ne<_.length;++Ne)ze(ce,_[Ne],Z);if(o(U)){var Te=this.$V,Ie=Te.props||c;U(Ie,se,!1,Te)}}}return $}();return Object.defineProperty(H,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),H}function Ue(_,U,H){var $="$"+U,Z=_[$];if(Z){if(Z[1].wrapped)return;_.removeEventListener(Z[0],Z[1]),_[$]=null}o(H)&&(_.addEventListener(U,H),_[$]=[U,H])}function Xe(_){return _==="checkbox"||_==="radio"}var yt=We("onInput",dt),St=We(["onClick","onChange"],dt);function Ct(_){_.stopPropagation()}Ct.wrapped=!0;function Bt(_,U){Xe(U.type)?(Ue(_,"change",St),Ue(_,"click",Ct)):Ue(_,"input",yt)}function dt(_,U){var H=_.type,$=_.value,Z=_.checked,ae=_.multiple,ce=_.defaultValue,se=!a($);H&&H!==U.type&&U.setAttribute("type",H),!a(ae)&&ae!==U.multiple&&(U.multiple=ae),!a(ce)&&!se&&(U.defaultValue=ce+""),Xe(H)?(se&&(U.value=$),a(Z)||(U.checked=Z)):se&&U.value!==$?(U.defaultValue=$,U.value=$):a(Z)||(U.checked=Z)}function rt(_,U){if(_.type==="option")It(_,U);else{var H=_.children,$=_.flags;if($&4)rt(H.$LI,U);else if($&8)rt(H,U);else if(_.childFlags===2)rt(H,U);else if(_.childFlags&12)for(var Z=0,ae=H.length;Z-1&&U.options[ae]&&(se=U.options[ae].value),H&&a(se)&&(se=_.defaultValue),rt($,se)}}var Zt=We("onInput",Tt),qt=We("onChange");function en(_,U){Ue(_,"input",Zt),U.onChange&&Ue(_,"change",qt)}function Tt(_,U,H){var $=_.value,Z=U.value;if(a($)){if(H){var ae=_.defaultValue;!a(ae)&&ae!==Z&&(U.defaultValue=ae,U.value=ae)}}else Z!==$&&(U.defaultValue=$,U.value=$)}function xt(_,U,H,$,Z,ae){_&64?dt($,H):_&256?wt($,H,Z,U):_&128&&Tt($,H,Z),ae&&(H.$V=U)}function tn(_,U,H){_&64?Bt(U,H):_&256?Qt(U):_&128&&en(U,H)}function At(_){return _.type&&Xe(_.type)?!a(_.checked):!a(_.value)}function nn(){return{current:null}}function on(_){var U={render:_};return U}function st(_){_&&!F(_,null)&&_.current&&(_.current=null)}function at(_,U,H){_&&(o(_)||_.current!==void 0)&&H.push(function(){!F(_,U)&&_.current!==void 0&&(_.current=U)})}function Je(_,U,H){Ze(_,H),T(_,U,H)}function Ze(_,U){var H=_.flags,$=_.children,Z;if(H&481){Z=_.ref;var ae=_.props;st(Z);var ce=_.childFlags;if(!B(ae))for(var se=Object.keys(ae),Ne=0,Te=se.length;Ne0?S(H.componentWillDisappear,rn(U,_)):_.textContent=""}function pt(_,U,H,$){ct(H,$),U.flags&8192?T(U,_,$):mt(_,H,$)}function Et(_,U,H,$,Z){_.componentWillDisappear.push(function(ae){$&4?U.componentWillDisappear(H,ae):$&8&&U.onComponentWillDisappear(H,Z,ae)})}function an(_){var U=_.event;return function(H){U(_.data,H)}}function cn(_,U,H,$){if(d(H)){if(R(U,H))return;H=an(H)}Ue($,u(_),H)}function ln(_,U,H){if(a(U)){H.removeAttribute("style");return}var $=H.style,Z,ae;if(f(U)){$.cssText=U;return}if(!a(_)&&!f(_)){for(Z in U)ae=U[Z],ae!==_[Z]&&$.setProperty(Z,ae);for(Z in _)a(U[Z])&&$.removeProperty(Z)}else for(Z in U)ae=U[Z],$.setProperty(Z,ae)}function un(_,U,H,$,Z){var ae=_&&_.__html||"",ce=U&&U.__html||"";ae!==ce&&!a(ce)&&!_e($,ce)&&(B(H)||(H.childFlags&12?ct(H.children,Z):H.childFlags===2&&Ze(H.children,Z),H.children=null,H.childFlags=1),$.innerHTML=ce)}function vt(_,U,H,$,Z,ae,ce,se){switch(_){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":$.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":$[_]=!!H;break;case"defaultChecked":case"value":case"volume":if(ae&&_==="value")break;var Ne=a(H)?"":H;$[_]!==Ne&&($[_]=Ne);break;case"style":ln(U,H,$);break;case"dangerouslySetInnerHTML":un(U,H,ce,$,se);break;default:Le[_]?Re(_,U,H,$):_.charCodeAt(0)===111&&_.charCodeAt(1)===110?cn(_,U,H,$):a(H)?$.removeAttribute(_):Z&&he[_]?$.setAttributeNS(he[_],_,H):$.setAttribute(_,H);break}}function Mt(_,U,H,$,Z,ae){var ce=!1,se=(U&448)>0;se&&(ce=At(H),ce&&tn(U,$,H));for(var Ne in H)vt(Ne,null,H[Ne],$,Z,ce,null,ae);se&&xt(U,_,$,H,!0,ce)}function Pt(_,U,H){var $=me(_.render(U,_.state,H)),Z=H;return o(_.getChildContext)&&(Z=k(H,_.getChildContext())),_.$CX=Z,$}function Ot(_,U,H,$,Z,ae){var ce=new U(H,$),se=ce.$N=!!(U.getDerivedStateFromProps||ce.getSnapshotBeforeUpdate);if(ce.$SVG=Z,ce.$L=ae,_.children=ce,ce.$BS=!1,ce.context=$,ce.props===c&&(ce.props=H),se)ce.state=P(ce,H,ce.state);else if(o(ce.componentWillMount)){ce.$BR=!0,ce.componentWillMount();var Ne=ce.$PS;if(!B(Ne)){var Te=ce.state;if(B(Te))ce.state=Ne;else for(var Ie in Ne)Te[Ie]=Ne[Ie];ce.$PS=null}ce.$BR=!1}return ce.$LI=Pt(ce,H,$),ce}function gt(_,U){var H=_.props||c;return _.flags&32768?_.type.render(H,_.ref,U):_.type(H,U)}function $e(_,U,H,$,Z,ae,ce){var se=_.flags|=16384;se&481?Dt(_,U,H,$,Z,ae,ce):se&4?mn(_,U,H,$,Z,ae,ce):se&8?pn(_,U,H,$,Z,ae,ce):se&16?Rt(_,U,Z):se&8192?sn(_,H,U,$,Z,ae,ce):se&1024&&dn(_,H,U,Z,ae,ce)}function dn(_,U,H,$,Z,ae){$e(_.children,_.ref,U,!1,null,Z,ae);var ce=le();Rt(ce,H,$),_.dom=ce.dom}function sn(_,U,H,$,Z,ae,ce){var se=_.children,Ne=_.childFlags;Ne&12&&se.length===0&&(Ne=_.childFlags=2,se=_.children=le()),Ne===2?$e(se,H,U,$,Z,ae,ce):ot(se,H,U,$,Z,ae,ce)}function Rt(_,U,H){var $=_.dom=document.createTextNode(_.children);B(U)||l(U,$,H)}function Dt(_,U,H,$,Z,ae,ce){var se=_.flags,Ne=_.props,Te=_.className,Ie=_.childFlags,Ee=_.dom=h(_.type,$=$||(se&32)>0),Ae=_.children;if(!a(Te)&&Te!==""&&($?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)O(Ee,Ae);else if(Ie!==1){var Me=$&&_.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(_.children=Ae=ne(Ae)),$e(Ae,Ee,H,Me,null,ae,ce)):(Ie===8||Ie===4)&&ot(Ae,Ee,H,Me,null,ae,ce)}B(U)||l(U,Ee,Z),B(Ne)||Mt(_,se,Ne,Ee,$,ce),at(_.ref,Ee,ae)}function ot(_,U,H,$,Z,ae,ce){for(var se=0;se<_.length;++se){var Ne=_[se];Ne.flags&16384&&(_[se]=Ne=ne(Ne)),$e(Ne,U,H,$,Z,ae,ce)}}function mn(_,U,H,$,Z,ae,ce){var se=Ot(_,_.type,_.props||c,H,$,ae),Ne=ce;o(se.componentDidAppear)&&(Ne=new i),$e(se.$LI,U,se.$CX,$,Z,ae,Ne),_t(_.ref,se,ae,ce)}function pn(_,U,H,$,Z,ae,ce){var se=_.ref,Ne=ce;!a(se)&&o(se.onComponentDidAppear)&&(Ne=new i),$e(_.children=me(gt(_,H)),U,H,$,Z,ae,Ne),Ft(_,ae,ce)}function fn(_){return function(){_.componentDidMount()}}function jt(_,U,H,$,Z){_.componentDidAppear.push(function(){$&4?U.componentDidAppear(H):$&8&&U.onComponentDidAppear(H,Z)})}function _t(_,U,H,$){at(_,U,H),o(U.componentDidMount)&&H.push(fn(U)),o(U.componentDidAppear)&&jt($,U,U.$LI.dom,4,void 0)}function hn(_,U){return function(){_.onComponentDidMount(V(U,!0),U.props||c)}}function Ft(_,U,H){var $=_.ref;a($)||(F($.onComponentWillMount,_.props||c),o($.onComponentDidMount)&&U.push(hn($,_)),o($.onComponentDidAppear)&&jt(H,$,V(_,!0),8,_.props))}function Cn(_,U,H,$,Z,ae,ce){Ze(_,ce),U.flags&_.flags&1521?($e(U,null,$,Z,null,ae,ce),C(H,U.dom,_.dom)):($e(U,H,$,Z,V(_,!0),ae,ce),T(_,H,ce))}function qe(_,U,H,$,Z,ae,ce,se){var Ne=U.flags|=16384;_.flags!==Ne||_.type!==U.type||_.key!==U.key||Ne&2048?_.flags&16384?Cn(_,U,H,$,Z,ce,se):$e(U,H,$,Z,ae,ce,se):Ne&481?bn(_,U,$,Z,Ne,ce,se):Ne&4?Sn(_,U,H,$,Z,ae,ce,se):Ne&8?Bn(_,U,H,$,Z,ae,ce,se):Ne&16?In(_,U):Ne&8192?Nn(_,U,H,$,Z,ce,se):Vn(_,U,$,ce,se)}function vn(_,U,H){_!==U&&(_!==""?H.firstChild.nodeValue=U:O(H,U))}function gn(_,U){_.textContent!==U&&(_.textContent=U)}function Nn(_,U,H,$,Z,ae,ce){var se=_.children,Ne=U.children,Te=_.childFlags,Ie=U.childFlags,Ee=null;Ie&12&&Ne.length===0&&(Ie=U.childFlags=2,Ne=U.children=le());var Ae=(Ie&2)!==0;if(Te&12){var Me=se.length;(Te&8&&Ie&8||Ae||!Ae&&Ne.length>Me)&&(Ee=V(se[Me-1],!1).nextSibling)}Nt(Te,Ie,se,Ne,H,$,Z,Ee,_,ae,ce)}function Vn(_,U,H,$,Z){var ae=_.ref,ce=U.ref,se=U.children;if(Nt(_.childFlags,U.childFlags,_.children,se,ae,H,!1,null,_,$,Z),U.dom=_.dom,ae!==ce&&!t(se)){var Ne=se.dom;v(ae,Ne),s(ce,Ne)}}function bn(_,U,H,$,Z,ae,ce){var se=U.dom=_.dom,Ne=_.props,Te=U.props,Ie=!1,Ee=!1,Ae;if($=$||(Z&32)>0,Ne!==Te){var Me=Ne||c;if(Ae=Te||c,Ae!==c){Ie=(Z&448)>0,Ie&&(Ee=At(Ae));for(var Fe in Ae){var Oe=Me[Fe],Ke=Ae[Fe];Oe!==Ke&&vt(Fe,Oe,Ke,se,$,Ee,_,ce)}}if(Me!==c)for(var De in Me)a(Ae[De])&&!a(Me[De])&&vt(De,Me[De],null,se,$,Ee,_,ce)}var tt=U.children,Ye=U.className;_.className!==Ye&&(a(Ye)?se.removeAttribute("class"):$?se.setAttribute("class",Ye):se.className=Ye),Z&4096?gn(se,tt):Nt(_.childFlags,U.childFlags,_.children,tt,se,H,$&&U.type!=="foreignObject",null,_,ae,ce),Ie&&xt(Z,U,se,Ae,!1,Ee);var it=U.ref,Qe=_.ref;Qe!==it&&(st(Qe),at(it,se,ae))}function kn(_,U,H,$,Z,ae,ce){Ze(_,ce),ot(U,H,$,Z,V(_,!0),ae,ce),T(_,H,ce)}function Nt(_,U,H,$,Z,ae,ce,se,Ne,Te,Ie){switch(_){case 2:switch(U){case 2:qe(H,$,Z,ae,ce,se,Te,Ie);break;case 1:Je(H,Z,Ie);break;case 16:Ze(H,Ie),O(Z,$);break;default:kn(H,$,Z,ae,ce,Te,Ie);break}break;case 1:switch(U){case 2:$e($,Z,ae,ce,se,Te,Ie);break;case 1:break;case 16:O(Z,$);break;default:ot($,Z,ae,ce,se,Te,Ie);break}break;case 16:switch(U){case 16:vn(H,$,Z);break;case 2:mt(Z,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:mt(Z,H,Ie);break;default:mt(Z,H,Ie),ot($,Z,ae,ce,se,Te,Ie);break}break;default:switch(U){case 16:ct(H,Ie),O(Z,$);break;case 2:pt(Z,Ne,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:pt(Z,Ne,H,Ie);break;default:var Ee=H.length|0,Ae=$.length|0;Ee===0?Ae>0&&ot($,Z,ae,ce,se,Te,Ie):Ae===0?pt(Z,Ne,H,Ie):U===8&&_===8?wn(H,$,Z,ae,ce,Ee,Ae,se,Ne,Te,Ie):Ln(H,$,Z,ae,ce,Ee,Ae,se,Te,Ie);break}break}}function yn(_,U,H,$,Z){Z.push(function(){_.componentDidUpdate(U,H,$)})}function Wt(_,U,H,$,Z,ae,ce,se,Ne,Te){var Ie=_.state,Ee=_.props,Ae=!!_.$N,Me=o(_.shouldComponentUpdate);if(Ae&&(U=P(_,H,U!==Ie?k(Ie,U):U)),ce||!Me||Me&&_.shouldComponentUpdate(H,U,Z)){!Ae&&o(_.componentWillUpdate)&&_.componentWillUpdate(H,U,Z),_.props=H,_.state=U,_.context=Z;var Fe=null,Oe=Pt(_,H,Z);Ae&&o(_.getSnapshotBeforeUpdate)&&(Fe=_.getSnapshotBeforeUpdate(Ee,Ie)),qe(_.$LI,Oe,$,_.$CX,ae,se,Ne,Te),_.$LI=Oe,o(_.componentDidUpdate)&&yn(_,Ee,Ie,Fe,Ne)}else _.props=H,_.state=U,_.context=Z}function Sn(_,U,H,$,Z,ae,ce,se){var Ne=U.children=_.children;if(!B(Ne)){Ne.$L=ce;var Te=U.props||c,Ie=U.ref,Ee=_.ref,Ae=Ne.state;if(!Ne.$N){if(o(Ne.componentWillReceiveProps)){if(Ne.$BR=!0,Ne.componentWillReceiveProps(Te,$),Ne.$UN)return;Ne.$BR=!1}B(Ne.$PS)||(Ae=k(Ae,Ne.$PS),Ne.$PS=null)}Wt(Ne,Ae,Te,H,$,Z,!1,ae,ce,se),Ee!==Ie&&(st(Ee),at(Ie,Ne,ce))}}function Bn(_,U,H,$,Z,ae,ce,se){var Ne=!0,Te=U.props||c,Ie=U.ref,Ee=_.props,Ae=!a(Ie),Me=_.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(Ne=Ie.onComponentShouldUpdate(Ee,Te)),Ne!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var Fe=me(gt(U,$));qe(Me,Fe,H,$,Z,ae,ce,se),U.children=Fe,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else U.children=Me}function In(_,U){var H=U.children,$=U.dom=_.dom;H!==_.children&&($.nodeValue=H)}function Ln(_,U,H,$,Z,ae,ce,se,Ne,Te){for(var Ie=ae>ce?ce:ae,Ee=0,Ae,Me;Eece)for(Ee=Ie;EeEe||Me>Ae)break e;Fe=_[Me],Oe=U[Me]}for(Fe=_[Ee],Oe=U[Ae];Fe.key===Oe.key;){if(Oe.flags&16384&&(U[Ae]=Oe=ne(Oe)),qe(Fe,Oe,H,$,Z,se,Te,Ie),_[Ee]=Oe,Ee--,Ae--,Me>Ee||Me>Ae)break e;Fe=_[Ee],Oe=U[Ae]}}if(Me>Ee){if(Me<=Ae)for(Ke=Ae+1,De=KeAe)for(;Me<=Ee;)Je(_[Me++],H,Ie);else Tn(_,U,$,ae,ce,Ee,Ae,Me,H,Z,se,Ne,Te,Ie)}function Tn(_,U,H,$,Z,ae,ce,se,Ne,Te,Ie,Ee,Ae,Me){var Fe,Oe,Ke=0,De=0,tt=se,Ye=se,it=ae-se+1,Qe=ce-se+1,lt=new Int32Array(Qe+1),nt=it===$,bt=!1,Ge=0,ut=0;if(Z<4||(it|Qe)<32)for(De=tt;De<=ae;++De)if(Fe=_[De],utse?bt=!0:Ge=se,Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(Fe,Oe,Ne,H,Te,Ie,Ae,Me),++ut;break}!nt&&se>ce&&Je(Fe,Ne,Me)}else nt||Je(Fe,Ne,Me);else{var Yt={};for(De=Ye;De<=ce;++De)Yt[U[De].key]=De;for(De=tt;De<=ae;++De)if(Fe=_[De],uttt;)Je(_[tt++],Ne,Me);lt[se-Ye]=De+1,Ge>se?bt=!0:Ge=se,Oe=U[se],Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(Fe,Oe,Ne,H,Te,Ie,Ae,Me),++ut}else nt||Je(Fe,Ne,Me);else nt||Je(Fe,Ne,Me)}if(nt)pt(Ne,Ee,_,Me),ot(U,Ne,H,Te,Ie,Ae,Me);else if(bt){var Xt=xn(lt);for(se=Xt.length-1,De=Qe-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,Ke0&&y(Me.componentWillMove)}else if(ut!==Qe)for(De=Qe-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,KeUt&&(Ut=Ne,et=new Int32Array(Ne),ft=new Int32Array(Ne));H>1,_[et[se]]0&&(ft[H]=et[ae-1]),et[ae]=H)}ae=Z+1;var Te=new Int32Array(ae);for(ce=et[ae-1];ae-- >0;)Te[ae]=ce,ce=ft[ce],et[ae]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(_,U,H,$){var Z=[],ae=new i,ce=U.$V;D.v=!0,a(ce)?a(_)||(_.flags&16384&&(_=ne(_)),$e(_,U,$,!1,null,Z,ae),U.$V=_,ce=_):a(_)?(Je(ce,U,ae),U.$V=null):(_.flags&16384&&(_=ne(_)),qe(ce,_,U,$,!1,null,Z,ae),ce=U.$V=_),p(Z),S(ae.componentDidAppear),D.v=!1,o(H)&&H(),o(E.renderComplete)&&E.renderComplete(ce,U)}function zt(_,U,H,$){H===void 0&&(H=null),$===void 0&&($=c),Ht(_,U,H,$)}function En(_){return function(){function U(H,$,Z,ae){_||(_=H),zt($,_,Z,ae)}return U}()}var ht=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(_){window.setTimeout(_,0)},Vt=!1;function $t(_,U,H,$){var Z=_.$PS;if(o(U)&&(U=U(Z?k(_.state,Z):_.state,_.props,_.context)),a(Z))_.$PS=U;else for(var ae in U)Z[ae]=U[ae];if(_.$BR)o(H)&&_.$L.push(H.bind(_));else{if(!D.v&&ht.length===0){Gt(_,$),o(H)&&H.call(_);return}if(ht.indexOf(_)===-1&&ht.push(_),$&&(_.$F=!0),Vt||(Vt=!0,Mn(Kt)),o(H)){var ce=_.$QU;ce||(ce=_.$QU=[]),ce.push(H)}}}function Pn(_){for(var U=_.$QU,H=0;H=0;--F){var W=this.tryEntries[F],z=W.completion;if(W.tryLoc==="root")return j("end");if(W.tryLoc<=this.prev){var K=a.call(W,"catchLoc"),G=a.call(W,"finallyLoc");if(K&&G){if(this.prev=0;--j){var F=this.tryEntries[j];if(F.tryLoc<=this.prev&&a.call(F,"finallyLoc")&&this.prev=0;--R){var j=this.tryEntries[R];if(j.finallyLoc===O)return this.complete(j.completion,j.afterLoc),x(j),s}}return E}(),catch:function(){function E(O){for(var R=this.tryEntries.length-1;R>=0;--R){var j=this.tryEntries[R];if(j.tryLoc===O){var F=j.completion;if(F.type==="throw"){var W=F.arg;x(j)}return W}}throw new Error("illegal catch attempt")}return E}(),delegateYield:function(){function E(O,R,j){return this.delegate={iterator:P(O),resultName:R,nextLoc:j},this.method==="next"&&(this.arg=o),s}return E}()},n}(A.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(A,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function B(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function I(){return Promise.resolve(a.responseText)}return I}(),json:function(){function I(){return Promise.resolve(a.responseText).then(JSON.parse)}return I}(),blob:function(){function I(){return Promise.resolve(new Blob([a.response]))}return I}(),clone:B,headers:{keys:function(){function I(){return t}return I}(),entries:function(){function I(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return I}(),get:function(){function I(k){return a.getResponseHeader(k)}return I}(),has:function(){function I(k){return a.getResponseHeader(k)!=null}return I}()}}}return B}();for(var b in a.open(r.method||"get",A,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(B,I){o[I]||t.push(o[I]=I)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(A,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(l,h){var C=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(C)return(C=C.call(l)).next.bind(C);if(Array.isArray(l)||(C=e(l))||h&&l&&typeof l.length=="number"){C&&(l=C);var v=0;return function(){return v>=l.length?{done:!0}:{done:!1,value:l[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(l,h){if(l){if(typeof l=="string")return a(l,h);var C={}.toString.call(l).slice(8,-1);return C==="Object"&&l.constructor&&(C=l.constructor.name),C==="Map"||C==="Set"?Array.from(l):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?a(l,h):void 0}}function a(l,h){(h==null||h>l.length)&&(h=l.length);for(var C=0,v=Array(h);Cy)return 1}return 0},k=r.sortBy=function(){function i(){for(var h=arguments.length,C=new Array(h),v=0;vy)return 1}return 0},k=r.sortBy=function(){function l(){for(var h=arguments.length,C=new Array(h),v=0;v=1-n)return j[F-1];var z=W%1,K=W|0;return D.lerp(j[K],j[K+1],z)}return P}(),D}(),a=function(E,P,R){return P===void 0&&(P=0),R===void 0&&(R=Math.pow(10,P)),Math.round(R*E)/R},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function D(E){return y(f(E))}return D}(),f=r.hexToRgba=function(){function D(E){return E[0]==="#"&&(E=E.substring(1)),E.length<6?{r:parseInt(E[0]+E[0],16),g:parseInt(E[1]+E[1],16),b:parseInt(E[2]+E[2],16),a:E.length===4?a(parseInt(E[3]+E[3],16)/255,2):1}:{r:parseInt(E.substring(0,2),16),g:parseInt(E.substring(2,4),16),b:parseInt(E.substring(4,6),16),a:E.length===8?a(parseInt(E.substring(6,8),16)/255,2):1}}return D}(),b=r.parseHue=function(){function D(E,P){return P===void 0&&(P="deg"),Number(E)*(t[P]||1)}return D}(),B=r.hslaStringToHsva=function(){function D(E){var P=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=P.exec(E);return R?k({h:b(R[1],R[2]),s:Number(R[3]),l:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),I=r.hslStringToHsva=B,k=r.hslaToHsva=function(){function D(E){var P=E.h,R=E.s,j=E.l,F=E.a;return R*=(j<50?j:100-j)/100,{h:P,s:R>0?2*R/(j+R)*100:0,v:j+R,a:F}}return D}(),N=r.hsvaToHex=function(){function D(E){return S(s(E))}return D}(),d=r.hsvaToHsla=function(){function D(E){var P=E.h,R=E.s,j=E.v,F=E.a,W=(200-R)*j/100;return{h:a(P),s:a(W>0&&W<200?R*j/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(F,2)}}return D}(),c=r.hsvaToHslString=function(){function D(E){var P=d(E),R=P.h,j=P.s,F=P.l;return"hsl("+R+", "+j+"%, "+F+"%)"}return D}(),m=r.hsvaToHsvString=function(){function D(E){var P=L(E),R=P.h,j=P.s,F=P.v;return"hsv("+R+", "+j+"%, "+F+"%)"}return D}(),l=r.hsvaToHsvaString=function(){function D(E){var P=L(E),R=P.h,j=P.s,F=P.v,W=P.a;return"hsva("+R+", "+j+"%, "+F+"%, "+W+")"}return D}(),u=r.hsvaToHslaString=function(){function D(E){var P=d(E),R=P.h,j=P.s,F=P.l,W=P.a;return"hsla("+R+", "+j+"%, "+F+"%, "+W+")"}return D}(),s=r.hsvaToRgba=function(){function D(E){var P=E.h,R=E.s,j=E.v,F=E.a;P=P/360*6,R=R/100,j=j/100;var W=Math.floor(P),z=j*(1-R),K=j*(1-(P-W)*R),G=j*(1-(1-P+W)*R),J=W%6;return{r:[j,K,z,z,G,j][J]*255,g:[G,j,j,K,z,z][J]*255,b:[z,z,G,j,j,K][J]*255,a:a(F,2)}}return D}(),i=r.hsvaToRgbString=function(){function D(E){var P=s(E),R=P.r,j=P.g,F=P.b;return"rgb("+a(R)+", "+a(j)+", "+a(F)+")"}return D}(),h=r.hsvaToRgbaString=function(){function D(E){var P=s(E),R=P.r,j=P.g,F=P.b,W=P.a;return"rgba("+a(R)+", "+a(j)+", "+a(F)+", "+a(W,2)+")"}return D}(),C=r.hsvaStringToHsva=function(){function D(E){var P=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=P.exec(E);return R?L({h:b(R[1],R[2]),s:Number(R[3]),v:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),v=r.hsvStringToHsva=C,p=r.rgbaStringToHsva=function(){function D(E){var P=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=P.exec(E);return R?y({r:Number(R[1])/(R[2]?100/255:1),g:Number(R[3])/(R[4]?100/255:1),b:Number(R[5])/(R[6]?100/255:1),a:R[7]===void 0?1:Number(R[7])/(R[8]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),g=r.rgbStringToHsva=p,V=function(E){var P=E.toString(16);return P.length<2?"0"+P:P},S=r.rgbaToHex=function(){function D(E){var P=E.r,R=E.g,j=E.b,F=E.a,W=F<1?V(a(F*255)):"";return"#"+V(a(P))+V(a(R))+V(a(j))+W}return D}(),y=r.rgbaToHsva=function(){function D(E){var P=E.r,R=E.g,j=E.b,F=E.a,W=Math.max(P,R,j),z=W-Math.min(P,R,j),K=z?W===P?(R-j)/z:W===R?2+(j-P)/z:4+(P-R)/z:0;return{h:60*(K<0?K+6:K),s:W?z/W*100:0,v:W/255*100,a:F}}return D}(),L=r.roundHsva=function(){function D(E){return{h:a(E.h),s:a(E.s),v:a(E.v),a:a(E.a,2)}}return D}(),w=r.rgbaToRgb=function(){function D(E){var P=E.r,R=E.g,j=E.b;return{r:P,g:R,b:j}}return D}(),T=r.hslaToHsl=function(){function D(E){var P=E.h,R=E.s,j=E.l;return{h:P,s:R,l:j}}return D}(),x=r.hsvaToHsv=function(){function D(E){var P=L(E),R=P.h,j=P.s,F=P.v;return{h:R,s:j,v:F}}return D}(),M=/^#?([0-9A-F]{3,8})$/i,O=r.validHex=function(){function D(E,P){var R=M.exec(E),j=R?R[1].length:0;return j===3||j===6||!!P&&j===4||!!P&&j===8}return D}()},92868:function(A,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** + */var n=1e-4,e=r.Color=function(){function D(O,R,j,F){O===void 0&&(O=0),R===void 0&&(R=0),j===void 0&&(j=0),F===void 0&&(F=1),this.r=void 0,this.g=void 0,this.b=void 0,this.a=void 0,this.r=O,this.g=R,this.b=j,this.a=F}var E=D.prototype;return E.toString=function(){function O(){return"rgba("+(this.r|0)+", "+(this.g|0)+", "+(this.b|0)+", "+(this.a|0)+")"}return O}(),D.fromHex=function(){function O(R){return new D(parseInt(R.substr(1,2),16),parseInt(R.substr(3,2),16),parseInt(R.substr(5,2),16))}return O}(),D.lerp=function(){function O(R,j,F){return new D((j.r-R.r)*F+R.r,(j.g-R.g)*F+R.g,(j.b-R.b)*F+R.b,(j.a-R.a)*F+R.a)}return O}(),D.lookup=function(){function O(R,j){j===void 0&&(j=[]);var F=j.length;if(F<2)throw new Error("Needs at least two colors!");var W=R*(F-1);if(R=1-n)return j[F-1];var z=W%1,K=W|0;return D.lerp(j[K],j[K+1],z)}return O}(),D}(),a=function(E,O,R){return O===void 0&&(O=0),R===void 0&&(R=Math.pow(10,O)),Math.round(R*E)/R},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function D(E){return y(f(E))}return D}(),f=r.hexToRgba=function(){function D(E){return E[0]==="#"&&(E=E.substring(1)),E.length<6?{r:parseInt(E[0]+E[0],16),g:parseInt(E[1]+E[1],16),b:parseInt(E[2]+E[2],16),a:E.length===4?a(parseInt(E[3]+E[3],16)/255,2):1}:{r:parseInt(E.substring(0,2),16),g:parseInt(E.substring(2,4),16),b:parseInt(E.substring(4,6),16),a:E.length===8?a(parseInt(E.substring(6,8),16)/255,2):1}}return D}(),b=r.parseHue=function(){function D(E,O){return O===void 0&&(O="deg"),Number(E)*(t[O]||1)}return D}(),B=r.hslaStringToHsva=function(){function D(E){var O=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(E);return R?k({h:b(R[1],R[2]),s:Number(R[3]),l:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),I=r.hslStringToHsva=B,k=r.hslaToHsva=function(){function D(E){var O=E.h,R=E.s,j=E.l,F=E.a;return R*=(j<50?j:100-j)/100,{h:O,s:R>0?2*R/(j+R)*100:0,v:j+R,a:F}}return D}(),g=r.hsvaToHex=function(){function D(E){return S(s(E))}return D}(),d=r.hsvaToHsla=function(){function D(E){var O=E.h,R=E.s,j=E.v,F=E.a,W=(200-R)*j/100;return{h:a(O),s:a(W>0&&W<200?R*j/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(F,2)}}return D}(),c=r.hsvaToHslString=function(){function D(E){var O=d(E),R=O.h,j=O.s,F=O.l;return"hsl("+R+", "+j+"%, "+F+"%)"}return D}(),m=r.hsvaToHsvString=function(){function D(E){var O=L(E),R=O.h,j=O.s,F=O.v;return"hsv("+R+", "+j+"%, "+F+"%)"}return D}(),i=r.hsvaToHsvaString=function(){function D(E){var O=L(E),R=O.h,j=O.s,F=O.v,W=O.a;return"hsva("+R+", "+j+"%, "+F+"%, "+W+")"}return D}(),u=r.hsvaToHslaString=function(){function D(E){var O=d(E),R=O.h,j=O.s,F=O.l,W=O.a;return"hsla("+R+", "+j+"%, "+F+"%, "+W+")"}return D}(),s=r.hsvaToRgba=function(){function D(E){var O=E.h,R=E.s,j=E.v,F=E.a;O=O/360*6,R=R/100,j=j/100;var W=Math.floor(O),z=j*(1-R),K=j*(1-(O-W)*R),G=j*(1-(1-O+W)*R),J=W%6;return{r:[j,K,z,z,G,j][J]*255,g:[G,j,j,K,z,z][J]*255,b:[z,z,G,j,j,K][J]*255,a:a(F,2)}}return D}(),l=r.hsvaToRgbString=function(){function D(E){var O=s(E),R=O.r,j=O.g,F=O.b;return"rgb("+a(R)+", "+a(j)+", "+a(F)+")"}return D}(),h=r.hsvaToRgbaString=function(){function D(E){var O=s(E),R=O.r,j=O.g,F=O.b,W=O.a;return"rgba("+a(R)+", "+a(j)+", "+a(F)+", "+a(W,2)+")"}return D}(),C=r.hsvaStringToHsva=function(){function D(E){var O=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(E);return R?L({h:b(R[1],R[2]),s:Number(R[3]),v:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),v=r.hsvStringToHsva=C,p=r.rgbaStringToHsva=function(){function D(E){var O=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(E);return R?y({r:Number(R[1])/(R[2]?100/255:1),g:Number(R[3])/(R[4]?100/255:1),b:Number(R[5])/(R[6]?100/255:1),a:R[7]===void 0?1:Number(R[7])/(R[8]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),N=r.rgbStringToHsva=p,V=function(E){var O=E.toString(16);return O.length<2?"0"+O:O},S=r.rgbaToHex=function(){function D(E){var O=E.r,R=E.g,j=E.b,F=E.a,W=F<1?V(a(F*255)):"";return"#"+V(a(O))+V(a(R))+V(a(j))+W}return D}(),y=r.rgbaToHsva=function(){function D(E){var O=E.r,R=E.g,j=E.b,F=E.a,W=Math.max(O,R,j),z=W-Math.min(O,R,j),K=z?W===O?(R-j)/z:W===R?2+(j-O)/z:4+(O-R)/z:0;return{h:60*(K<0?K+6:K),s:W?z/W*100:0,v:W/255*100,a:F}}return D}(),L=r.roundHsva=function(){function D(E){return{h:a(E.h),s:a(E.s),v:a(E.v),a:a(E.a,2)}}return D}(),w=r.rgbaToRgb=function(){function D(E){var O=E.r,R=E.g,j=E.b;return{r:O,g:R,b:j}}return D}(),T=r.hslaToHsl=function(){function D(E){var O=E.h,R=E.s,j=E.l;return{h:O,s:R,l:j}}return D}(),x=r.hsvaToHsv=function(){function D(E){var O=L(E),R=O.h,j=O.s,F=O.v;return{h:R,s:j,v:F}}return D}(),M=/^#?([0-9A-F]{3,8})$/i,P=r.validHex=function(){function D(E,O){var R=M.exec(E),j=R?R[1].length:0;return j===3||j===6||!!O&&j===4||!!O&&j===8}return D}()},92868:function(A,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.EventEmitter=function(){function e(){this.listeners={}}var a=e.prototype;return a.on=function(){function t(o,f){this.listeners[o]=this.listeners[o]||[],this.listeners[o].push(f)}return t}(),a.off=function(){function t(o,f){var b=this.listeners[o];if(!b)throw new Error('There is no listeners for "'+o+'"');this.listeners[o]=b.filter(function(B){return B!==f})}return t}(),a.emit=function(){function t(o){var f=this.listeners[o];if(f){for(var b=arguments.length,B=new Array(b>1?b-1:0),I=1;I1?b-1:0),I=1;I1?I-1:0),N=1;N1?k-1:0),d=1;d1?I-1:0),g=1;g1?k-1:0),d=1;dd?d:k}return I}(),e=r.clamp01=function(){function I(k){return k<0?0:k>1?1:k}return I}(),a=r.scale=function(){function I(k,N,d){return(k-N)/(d-N)}return I}(),t=r.round=function(){function I(k,N){if(!k||isNaN(k))return k;var d,c,m,l;return N|=0,d=Math.pow(10,N),k*=d,l=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(l>0)),(m?k:Math.round(k))/d}return I}(),o=r.toFixed=function(){function I(k,N){return N===void 0&&(N=0),Number(k).toFixed(Math.max(N,0))}return I}(),f=r.inRange=function(){function I(k,N){return N&&k>=N[0]&&k<=N[1]}return I}(),b=r.keyOfMatchingRange=function(){function I(k,N){for(var d=0,c=Object.keys(N);dd?d:k}return I}(),e=r.clamp01=function(){function I(k){return k<0?0:k>1?1:k}return I}(),a=r.scale=function(){function I(k,g,d){return(k-g)/(d-g)}return I}(),t=r.round=function(){function I(k,g){if(!k||isNaN(k))return k;var d,c,m,i;return g|=0,d=Math.pow(10,g),k*=d,i=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(i>0)),(m?k:Math.round(k))/d}return I}(),o=r.toFixed=function(){function I(k,g){return g===void 0&&(g=0),Number(k).toFixed(Math.max(g,0))}return I}(),f=r.inRange=function(){function I(k,g){return g&&k>=g[0]&&k<=g[1]}return I}(),b=r.keyOfMatchingRange=function(){function I(k,g){for(var d=0,c=Object.keys(g);d1?l-1:0),s=1;s1?V-1:0),y=1;y=0;--me){var Y=this.tryEntries[me],ve=Y.completion;if(Y.tryLoc==="root")return fe("end");if(Y.tryLoc<=this.prev){var he=g.call(Y,"catchLoc"),Ve=g.call(Y,"finallyLoc");if(he&&Ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&g.call(me,"finallyLoc")&&this.prev=0;--oe){var fe=this.tryEntries[oe];if(fe.finallyLoc===re)return this.complete(fe.completion,fe.afterLoc),q(fe),R}}return ee}(),catch:function(){function ee(re){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var fe=this.tryEntries[oe];if(fe.tryLoc===re){var me=fe.completion;if(me.type==="throw"){var Y=me.arg;q(fe)}return Y}}throw Error("illegal catch attempt")}return ee}(),delegateYield:function(){function ee(re,oe,fe){return this.delegate={iterator:le(re),resultName:oe,nextLoc:fe},this.method==="next"&&(this.arg=C),R}return ee}()},v}function e(C,v,p,g,V,S,y){try{var L=C[S](y),w=L.value}catch(T){return void p(T)}L.done?v(w):Promise.resolve(w).then(g,V)}function a(C){return function(){var v=this,p=arguments;return new Promise(function(g,V){var S=C.apply(v,p);function y(w){e(S,g,V,y,L,"next",w)}function L(w){e(S,g,V,y,L,"throw",w)}y(void 0)})}}/** + */var a=r.createStore=function(){function I(k,g){if(g)return g(I)(k);var d,c=[],m=function(){function s(){return d}return s}(),i=function(){function s(l){c.push(l)}return s}(),u=function(){function s(l){d=k(d,l);for(var h=0;h1?i-1:0),s=1;s1?V-1:0),y=1;y=0;--me){var Y=this.tryEntries[me],ve=Y.completion;if(Y.tryLoc==="root")return fe("end");if(Y.tryLoc<=this.prev){var he=N.call(Y,"catchLoc"),Ve=N.call(Y,"finallyLoc");if(he&&Ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&N.call(me,"finallyLoc")&&this.prev=0;--oe){var fe=this.tryEntries[oe];if(fe.finallyLoc===re)return this.complete(fe.completion,fe.afterLoc),q(fe),R}}return ee}(),catch:function(){function ee(re){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var fe=this.tryEntries[oe];if(fe.tryLoc===re){var me=fe.completion;if(me.type==="throw"){var Y=me.arg;q(fe)}return Y}}throw Error("illegal catch attempt")}return ee}(),delegateYield:function(){function ee(re,oe,fe){return this.delegate={iterator:le(re),resultName:oe,nextLoc:fe},this.method==="next"&&(this.arg=C),R}return ee}()},v}function e(C,v,p,N,V,S,y){try{var L=C[S](y),w=L.value}catch(T){return void p(T)}L.done?v(w):Promise.resolve(w).then(N,V)}function a(C){return function(){var v=this,p=arguments;return new Promise(function(N,V){var S=C.apply(v,p);function y(w){e(S,N,V,y,L,"next",w)}function L(w){e(S,N,V,y,L,"throw",w)}y(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,f=r.IMPL_INDEXED_DB=2,b=1,B="para-tgui",I="storage-v1",k="readonly",N="readwrite",d=function(v){return function(){try{return!!v()}catch(p){return!1}}},c=d(function(){return window.hubStorage&&window.hubStorage.getItem}),m=d(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),l=function(){function C(){this.impl=t,this.store={}}var v=C.prototype;return v.get=function(){var p=a(n().mark(function(){function V(S){return n().wrap(function(){function y(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[S]);case 1:case"end":return L.stop()}}return y}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.set=function(){var p=a(n().mark(function(){function V(S,y){return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:this.store[S]=y;case 1:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V,S){return p.apply(this,arguments)}return g}(),v.remove=function(){var p=a(n().mark(function(){function V(S){return n().wrap(function(){function y(L){for(;;)switch(L.prev=L.next){case 0:this.store[S]=void 0;case 1:case"end":return L.stop()}}return y}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.clear=function(){var p=a(n().mark(function(){function V(){return n().wrap(function(){function S(y){for(;;)switch(y.prev=y.next){case 0:this.store={};case 1:case"end":return y.stop()}}return S}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),C}(),u=function(){function C(){this.impl=o}var v=C.prototype;return v.get=function(){var p=a(n().mark(function(){function V(S){var y;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,window.hubStorage.getItem("paradise-"+S);case 2:if(y=w.sent,typeof y!="string"){w.next=5;break}return w.abrupt("return",JSON.parse(y));case 5:case"end":return w.stop()}}return L}(),V)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.set=function(){function p(g,V){window.hubStorage.setItem("paradise-"+g,JSON.stringify(V))}return p}(),v.remove=function(){function p(g){window.hubStorage.removeItem("paradise-"+g)}return p}(),v.clear=function(){function p(){window.hubStorage.clear()}return p}(),C}(),s=function(){function C(){this.impl=f,this.dbPromise=new Promise(function(p,g){var V=window.indexedDB||window.msIndexedDB,S=V.open(B,b);S.onupgradeneeded=function(){try{S.result.createObjectStore(I)}catch(y){g(new Error("Failed to upgrade IDB: "+S.error))}},S.onsuccess=function(){return p(S.result)},S.onerror=function(){g(new Error("Failed to open IDB: "+S.error))}})}var v=C.prototype;return v.getStore=function(){var p=a(n().mark(function(){function V(S){return n().wrap(function(){function y(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(w){return w.transaction(I,S).objectStore(I)}));case 1:case"end":return L.stop()}}return y}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.get=function(){var p=a(n().mark(function(){function V(S){var y;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(k);case 2:return y=w.sent,w.abrupt("return",new Promise(function(T,x){var M=y.get(S);M.onsuccess=function(){return T(M.result)},M.onerror=function(){return x(M.error)}}));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.set=function(){var p=a(n().mark(function(){function V(S,y){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(N);case 2:L=T.sent,L.put(y,S);case 4:case"end":return T.stop()}}return w}(),V,this)}return V}()));function g(V,S){return p.apply(this,arguments)}return g}(),v.remove=function(){var p=a(n().mark(function(){function V(S){var y;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(N);case 2:y=w.sent,y.delete(S);case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.clear=function(){var p=a(n().mark(function(){function V(){var S;return n().wrap(function(){function y(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(N);case 2:S=L.sent,S.clear();case 4:case"end":return L.stop()}}return y}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),C}(),i=function(){function C(){this.backendPromise=a(n().mark(function(){function p(){var g;return n().wrap(function(){function V(S){for(;;)switch(S.prev=S.next){case 0:if(!(!Byond.TRIDENT&&c())){S.next=2;break}return S.abrupt("return",new u);case 2:if(!m()){S.next=12;break}return S.prev=3,g=new s,S.next=7,g.dbPromise;case 7:return S.abrupt("return",g);case 10:S.prev=10,S.t0=S.catch(3);case 12:return S.abrupt("return",new l);case 13:case"end":return S.stop()}}return V}(),p,null,[[3,10]])}return p}()))()}var v=C.prototype;return v.get=function(){var p=a(n().mark(function(){function V(S){var y;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return y=w.sent,w.abrupt("return",y.get(S));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.set=function(){var p=a(n().mark(function(){function V(S,y){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.set(S,y));case 4:case"end":return T.stop()}}return w}(),V,this)}return V}()));function g(V,S){return p.apply(this,arguments)}return g}(),v.remove=function(){var p=a(n().mark(function(){function V(S){var y;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return y=w.sent,w.abrupt("return",y.remove(S));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),v.clear=function(){var p=a(n().mark(function(){function V(){var S;return n().wrap(function(){function y(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return S=L.sent,L.abrupt("return",S.clear());case 4:case"end":return L.stop()}}return y}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),C}(),h=r.storage=new i},25328:function(A,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(N,d){var c=typeof Symbol!="undefined"&&N[Symbol.iterator]||N["@@iterator"];if(c)return(c=c.call(N)).next.bind(c);if(Array.isArray(N)||(c=e(N))||d&&N&&typeof N.length=="number"){c&&(N=c);var m=0;return function(){return m>=N.length?{done:!0}:{done:!1,value:N[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(N,d){if(N){if(typeof N=="string")return a(N,d);var c={}.toString.call(N).slice(8,-1);return c==="Object"&&N.constructor&&(c=N.constructor.name),c==="Map"||c==="Set"?Array.from(N):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(N,d):void 0}}function a(N,d){(d==null||d>N.length)&&(d=N.length);for(var c=0,m=Array(d);c=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(g,d){if(g){if(typeof g=="string")return a(g,d);var c={}.toString.call(g).slice(8,-1);return c==="Object"&&g.constructor&&(c=g.constructor.name),c==="Map"||c==="Set"?Array.from(g):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(g,d):void 0}}function a(g,d){(d==null||d>g.length)&&(d=g.length);for(var c=0,m=Array(d);c",apos:"'"};return d.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(l,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(l,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return N}(),k=r.buildQueryString=function(){function N(d){return Object.keys(d).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(d[c])}).join("&")}return N}()},69214:function(A,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function g(d){if(Array.isArray(d))return g(d.join(""));for(var c=d.split("\n"),m,i=n(c),u;!(u=i()).done;)for(var s=u.value,l=0;l",apos:"'"};return d.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(i,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(i,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(i,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return g}(),k=r.buildQueryString=function(){function g(d){return Object.keys(d).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(d[c])}).join("&")}return g}()},69214:function(A,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,f,b){b===void 0&&(b=!1);var B;return function(){for(var I=arguments.length,k=new Array(I),N=0;N=f)o.apply(null,N),b=c;else{var m;B=setTimeout(function(){return I.apply(void 0,N)},f-(c-((m=b)!=null?m:0)))}}return I}()}return t}()},97450:function(A,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** + */var n=r.debounce=function(){function t(o,f,b){b===void 0&&(b=!1);var B;return function(){for(var I=arguments.length,k=new Array(I),g=0;g=f)o.apply(null,g),b=c;else{var m;B=setTimeout(function(){return I.apply(void 0,g)},f-(c-((m=b)!=null?m:0)))}}return I}()}return t}()},97450:function(A,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -62,11 +62,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(u,s){return u+s},t=function(u,s){return u-s},o=function(u,s){return u*s},f=function(u,s){return u/s},b=r.vecAdd=function(){function l(){for(var u=arguments.length,s=new Array(u),i=0;i0&&(g.style=x),g}return v}(),h=r.computeBoxClassName=function(){function v(p){var g=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([N(g)&&"color-"+g,N(V)&&"color-bg-"+V])}return v}(),C=r.Box=function(){function v(p){var g=p.as,V=g===void 0?"div":g,S=p.className,y=p.children,L=b(p,f);if(typeof y=="function")return y(i(p));var w=typeof S=="string"?S+" "+h(L):h(L),T=i(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,y,t.ChildFlags.UnknownChildren,T)}return v}();C.defaultHooks=e.pureComponentHooks},96184:function(A,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),B=n(62147),I=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],N=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],d=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** + */function b(v,p){if(v==null)return{};var N={};for(var V in v)if({}.hasOwnProperty.call(v,V)){if(p.includes(V))continue;N[V]=v[V]}return N}var B=r.unit=function(){function v(p){if(typeof p=="string")return p.endsWith("px")?parseFloat(p)/12+"rem":p;if(typeof p=="number")return p+"rem"}return v}(),I=r.halfUnit=function(){function v(p){if(typeof p=="string")return B(p);if(typeof p=="number")return B(p*.5)}return v}(),k=function(p){return!g(p)},g=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},d=function(p){return function(N,V){(typeof V=="number"||typeof V=="string")&&(N[p]=V)}},c=function(p,N){return function(V,S){(typeof S=="number"||typeof S=="string")&&(V[p]=N(S))}},m=function(p,N){return function(V,S){S&&(V[p]=N)}},i=function(p,N,V){return function(S,y){if(typeof y=="number"||typeof y=="string")for(var L=0;L0&&(N.style=x),N}return v}(),h=r.computeBoxClassName=function(){function v(p){var N=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([g(N)&&"color-"+N,g(V)&&"color-bg-"+V])}return v}(),C=r.Box=function(){function v(p){var N=p.as,V=N===void 0?"div":N,S=p.className,y=p.children,L=b(p,f);if(typeof y=="function")return y(l(p));var w=typeof S=="string"?S+" "+h(L):h(L),T=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,y,t.ChildFlags.UnknownChildren,T)}return v}();C.defaultHooks=e.pureComponentHooks},96184:function(A,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),B=n(62147),I=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],g=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],d=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,m(v,p)}function m(v,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,V){return g.__proto__=V,g},m(v,p)}function l(v,p){if(v==null)return{};var g={};for(var V in v)if({}.hasOwnProperty.call(v,V)){if(p.includes(V))continue;g[V]=v[V]}return g}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function v(p){var g=p.className,V=p.fluid,S=p.translucent,y=p.icon,L=p.iconRotation,w=p.iconSpin,T=p.color,x=p.textColor,M=p.disabled,O=p.selected,D=p.tooltip,E=p.tooltipPosition,P=p.ellipsis,R=p.compact,j=p.circular,F=p.content,W=p.iconColor,z=p.iconRight,K=p.iconStyle,G=p.children,J=p.onclick,Q=p.onClick,ue=p.multiLine,ie=l(p,I),pe=!!(F||G);J&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ie.onClick=function(q){!M&&Q&&Q(q)};var te=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",M&&"Button--disabled"+(S?"--translucent":""),O&&"Button--selected"+(S?"--translucent":""),pe&&"Button--hasContent",P&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",z&&"Button--iconRight",ue&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T+(S?"--translucent":""):"Button--color--default"+(S?"--translucent":""),g]),tabIndex:!M&&"0",color:x,onKeyDown:function(){function q(ne){var le=window.event?ne.which:ne.keyCode;if(le===t.KEY_SPACE||le===t.KEY_ENTER){ne.preventDefault(),!M&&Q&&Q(ne);return}if(le===t.KEY_ESCAPE){ne.preventDefault();return}}return q}()},ie,{children:[y&&!z&&(0,e.createComponentVNode)(2,b.Icon,{name:y,color:W,rotation:L,spin:w,style:K}),F,G,y&&z&&(0,e.createComponentVNode)(2,b.Icon,{name:y,color:W,rotation:L,spin:w,style:K})]})));return D&&(te=(0,e.createComponentVNode)(2,B.Tooltip,{content:D,position:E,children:te})),te}return v}();s.defaultHooks=a.pureComponentHooks;var i=r.ButtonCheckbox=function(){function v(p){var g=p.checked,V=l(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},V)))}return v}();s.Checkbox=i;var h=r.ButtonConfirm=function(v){function p(){var V;return V=v.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}c(p,v);var g=p.prototype;return g.setClickedOnce=function(){function V(S){var y=this;this.setState({clickedOnce:S}),S?setTimeout(function(){return window.addEventListener("click",y.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),g.render=function(){function V(){var S=this,y=this.props,L=y.confirmContent,w=L===void 0?"Confirm?":L,T=y.confirmColor,x=T===void 0?"bad":T,M=y.confirmIcon,O=y.icon,D=y.color,E=y.content,P=y.onClick,R=l(y,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:E,icon:this.state.clickedOnce?M:O,color:this.state.clickedOnce?x:D,onClick:function(){function j(F){return S.state.clickedOnce?P==null?void 0:P(F):S.setClickedOnce(!0)}return j}()},R)))}return V}(),p}(e.Component);s.Confirm=h;var C=r.ButtonInput=function(v){function p(){var V;return V=v.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}c(p,v);var g=p.prototype;return g.setInInput=function(){function V(S){var y=this.props.disabled;if(!y&&(this.setState({inInput:S}),this.inputRef)){var L=this.inputRef.current;if(S){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),g.commitResult=function(){function V(S){if(this.inputRef){var y=this.inputRef.current,L=y.value!=="";if(L){this.props.onCommit(S,y.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(S,this.props.defaultValue)}}}return V}(),g.render=function(){function V(){var S=this,y=this.props,L=y.fluid,w=y.content,T=y.icon,x=y.iconRotation,M=y.iconSpin,O=y.tooltip,D=y.tooltipPosition,E=y.color,P=E===void 0?"default":E,R=y.disabled,j=y.multiLine,F=l(y,d),W=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",R&&"Button--disabled","Button--color--"+P,j+"Button--multiLine"])},F,{onClick:function(){function z(){return S.setInInput(!0)}return z}(),children:[T&&(0,e.createComponentVNode)(2,b.Icon,{name:T,rotation:x,spin:M}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function z(K){S.state.inInput&&(S.setInInput(!1),S.commitResult(K))}return z}(),onKeyDown:function(){function z(K){if(K.keyCode===t.KEY_ENTER){S.setInInput(!1),S.commitResult(K);return}K.keyCode===t.KEY_ESCAPE&&S.setInInput(!1)}return z}()},null,this.inputRef)]})));return O&&(W=(0,e.createComponentVNode)(2,B.Tooltip,{content:O,position:D,children:W})),W}return V}(),p}(e.Component);s.Input=C},18982:function(A,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],B=["params"],I=["parent","params"];function k(h,C){if(h==null)return{};var v={};for(var p in h)if({}.hasOwnProperty.call(h,p)){if(C.includes(p))continue;v[p]=h[p]}return v}function N(h,C){h.prototype=Object.create(C.prototype),h.prototype.constructor=h,d(h,C)}function d(h,C){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,p){return v.__proto__=p,v},d(h,C)}/** + */function c(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,m(v,p)}function m(v,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,V){return N.__proto__=V,N},m(v,p)}function i(v,p){if(v==null)return{};var N={};for(var V in v)if({}.hasOwnProperty.call(v,V)){if(p.includes(V))continue;N[V]=v[V]}return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function v(p){var N=p.className,V=p.fluid,S=p.translucent,y=p.icon,L=p.iconRotation,w=p.iconSpin,T=p.color,x=p.textColor,M=p.disabled,P=p.selected,D=p.tooltip,E=p.tooltipPosition,O=p.ellipsis,R=p.compact,j=p.circular,F=p.content,W=p.iconColor,z=p.iconRight,K=p.iconStyle,G=p.children,J=p.onclick,Q=p.onClick,ue=p.multiLine,ie=i(p,I),pe=!!(F||G);J&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ie.onClick=function(q){!M&&Q&&Q(q)};var te=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",M&&"Button--disabled"+(S?"--translucent":""),P&&"Button--selected"+(S?"--translucent":""),pe&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",z&&"Button--iconRight",ue&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T+(S?"--translucent":""):"Button--color--default"+(S?"--translucent":""),N]),tabIndex:!M&&"0",color:x,onKeyDown:function(){function q(ne){var le=window.event?ne.which:ne.keyCode;if(le===t.KEY_SPACE||le===t.KEY_ENTER){ne.preventDefault(),!M&&Q&&Q(ne);return}if(le===t.KEY_ESCAPE){ne.preventDefault();return}}return q}()},ie,{children:[y&&!z&&(0,e.createComponentVNode)(2,b.Icon,{name:y,color:W,rotation:L,spin:w,style:K}),F,G,y&&z&&(0,e.createComponentVNode)(2,b.Icon,{name:y,color:W,rotation:L,spin:w,style:K})]})));return D&&(te=(0,e.createComponentVNode)(2,B.Tooltip,{content:D,position:E,children:te})),te}return v}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function v(p){var N=p.checked,V=i(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},V)))}return v}();s.Checkbox=l;var h=r.ButtonConfirm=function(v){function p(){var V;return V=v.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}c(p,v);var N=p.prototype;return N.setClickedOnce=function(){function V(S){var y=this;this.setState({clickedOnce:S}),S?setTimeout(function(){return window.addEventListener("click",y.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),N.render=function(){function V(){var S=this,y=this.props,L=y.confirmContent,w=L===void 0?"Confirm?":L,T=y.confirmColor,x=T===void 0?"bad":T,M=y.confirmIcon,P=y.icon,D=y.color,E=y.content,O=y.onClick,R=i(y,g);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:E,icon:this.state.clickedOnce?M:P,color:this.state.clickedOnce?x:D,onClick:function(){function j(F){return S.state.clickedOnce?O==null?void 0:O(F):S.setClickedOnce(!0)}return j}()},R)))}return V}(),p}(e.Component);s.Confirm=h;var C=r.ButtonInput=function(v){function p(){var V;return V=v.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}c(p,v);var N=p.prototype;return N.setInInput=function(){function V(S){var y=this.props.disabled;if(!y&&(this.setState({inInput:S}),this.inputRef)){var L=this.inputRef.current;if(S){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),N.commitResult=function(){function V(S){if(this.inputRef){var y=this.inputRef.current,L=y.value!=="";if(L){this.props.onCommit(S,y.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(S,this.props.defaultValue)}}}return V}(),N.render=function(){function V(){var S=this,y=this.props,L=y.fluid,w=y.content,T=y.icon,x=y.iconRotation,M=y.iconSpin,P=y.tooltip,D=y.tooltipPosition,E=y.color,O=E===void 0?"default":E,R=y.disabled,j=y.multiLine,F=i(y,d),W=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",R&&"Button--disabled","Button--color--"+O,j+"Button--multiLine"])},F,{onClick:function(){function z(){return S.setInInput(!0)}return z}(),children:[T&&(0,e.createComponentVNode)(2,b.Icon,{name:T,rotation:x,spin:M}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function z(K){S.state.inInput&&(S.setInInput(!1),S.commitResult(K))}return z}(),onKeyDown:function(){function z(K){if(K.keyCode===t.KEY_ENTER){S.setInInput(!1),S.commitResult(K);return}K.keyCode===t.KEY_ESCAPE&&S.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&(W=(0,e.createComponentVNode)(2,B.Tooltip,{content:P,position:D,children:W})),W}return V}(),p}(e.Component);s.Input=C},18982:function(A,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],B=["params"],I=["parent","params"];function k(h,C){if(h==null)return{};var v={};for(var p in h)if({}.hasOwnProperty.call(h,p)){if(C.includes(p))continue;v[p]=h[p]}return v}function g(h,C){h.prototype=Object.create(C.prototype),h.prototype.constructor=h,d(h,C)}function d(h,C){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,p){return v.__proto__=p,v},d(h,C)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],l=function(C){var v=m.length;m.push(null);var p=C||"byondui_"+v;return c.log("allocated '"+p+"'"),{render:function(){function g(V){c.log("unmounting '"+p+"'"),m[v]=null,Byond.winset(p,{parent:""}),c.log("rendering '"+p+"'"),m[v]=p,Byond.winset(p,V)}return g}(),unmount:function(){function g(){c.log("unmounting '"+p+"'"),m[v]=null,Byond.winset(p,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var h=0;h0){var E=D[0],P=D[D.length-1];D.push([O[0]+x,P[1]]),D.push([O[0]+x,-x]),D.push([-x,-x]),D.push([-x,E[1]])}var R=N(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},M,{children:function(){function j(F){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+O[1]+")",fill:y,stroke:w,"stroke-width":x,points:R}),2,{viewBox:"0 0 "+O[0]+" "+O[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},F),null,h.ref))}return j}()})))}return i}(),u}(e.Component);d.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:d}},4796:function(A,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,N){if(k==null)return{};var d={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(N.includes(c))continue;d[c]=k[c]}return d}function b(k,N){k.prototype=Object.create(N.prototype),k.prototype.constructor=k,B(k,N)}function B(k,N){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,c){return d.__proto__=c,d},B(k,N)}/** +*/var k=function(u,s,l,h){if(u.length===0)return[];var C=(0,a.zipWith)(Math.min).apply(void 0,u),v=(0,a.zipWith)(Math.max).apply(void 0,u);l!==void 0&&(C[0]=l[0],v[0]=l[1]),h!==void 0&&(C[1]=h[0],v[1]=h[1]);var p=(0,a.map)(function(N){return(0,a.zipWith)(function(V,S,y,L){return(V-S)/(y-S)*L})(N,C,v,s)})(u);return p},g=function(u){for(var s="",l=0;l0){var E=D[0],O=D[D.length-1];D.push([P[0]+x,O[1]]),D.push([P[0]+x,-x]),D.push([-x,-x]),D.push([-x,E[1]])}var R=g(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},M,{children:function(){function j(F){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:y,stroke:w,"stroke-width":x,points:R}),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({},F),null,h.ref))}return j}()})))}return l}(),u}(e.Component);d.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:d}},4796:function(A,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,g){if(k==null)return{};var d={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;d[c]=k[c]}return d}function b(k,g){k.prototype=Object.create(g.prototype),k.prototype.constructor=k,B(k,g)}function B(k,g){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,c){return d.__proto__=c,d},B(k,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var I=r.Collapsible=function(k){function N(c){var m;m=k.call(this,c)||this;var l=c.open;return m.state={open:l||!1},m}b(N,k);var d=N.prototype;return d.render=function(){function c(){var m=this,l=this.props,u=this.state.open,s=l.children,i=l.color,h=i===void 0?"default":i,C=l.title,v=l.buttons,p=l.contentStyle,g=f(l,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:h,icon:u?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!u})}return V}()},g,{children:C}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,style:p,children:s})]})}return c}(),N}(e.Component)},88894:function(A,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** +*/var I=r.Collapsible=function(k){function g(c){var m;m=k.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}b(g,k);var d=g.prototype;return d.render=function(){function c(){var m=this,i=this.props,u=this.state.open,s=i.children,l=i.color,h=l===void 0?"default":l,C=i.title,v=i.buttons,p=i.contentStyle,N=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:h,icon:u?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!u})}return V}()},N,{children:C}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,style:p,children:s})]})}return c}(),g}(e.Component)},88894:function(A,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(B,I){if(B==null)return{};var k={};for(var N in B)if({}.hasOwnProperty.call(B,N)){if(I.includes(N))continue;k[N]=B[N]}return k}var b=r.ColorBox=function(){function B(I){var k=I.content,N=I.children,d=I.className,c=I.color,m=I.backgroundColor,l=f(I,o);return l.color=k?null:"transparent",l.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",d,(0,t.computeBoxClassName)(l)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return B}();b.defaultHooks=a.pureComponentHooks},73379:function(A,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(I,k){if(I==null)return{};var N={};for(var d in I)if({}.hasOwnProperty.call(I,d)){if(k.includes(d))continue;N[d]=I[d]}return N}function f(I,k){I.prototype=Object.create(k.prototype),I.prototype.constructor=I,b(I,k)}function b(I,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,d){return N.__proto__=d,N},b(I,k)}var B=r.Countdown=function(I){function k(d){var c;return c=I.call(this,d)||this,c.timer=null,c.state={value:Math.max(d.timeLeft*100,0)},c}f(k,I);var N=k.prototype;return N.tick=function(){function d(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return d}(),N.componentDidMount=function(){function d(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return d}(),N.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),N.componentDidUpdate=function(){function d(c){var m=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return d}(),N.render=function(){function d(){var c=this.props,m=c.format,l=o(c,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:m?m(this.state.value,u):u})))}return d}(),k}(e.Component);B.defaultProps={rate:1e3}},61940:function(A,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** + */function f(B,I){if(B==null)return{};var k={};for(var g in B)if({}.hasOwnProperty.call(B,g)){if(I.includes(g))continue;k[g]=B[g]}return k}var b=r.ColorBox=function(){function B(I){var k=I.content,g=I.children,d=I.className,c=I.color,m=I.backgroundColor,i=f(I,o);return i.color=k?null:"transparent",i.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",d,(0,t.computeBoxClassName)(i)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return B}();b.defaultHooks=a.pureComponentHooks},73379:function(A,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(I,k){if(I==null)return{};var g={};for(var d in I)if({}.hasOwnProperty.call(I,d)){if(k.includes(d))continue;g[d]=I[d]}return g}function f(I,k){I.prototype=Object.create(k.prototype),I.prototype.constructor=I,b(I,k)}function b(I,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,d){return g.__proto__=d,g},b(I,k)}var B=r.Countdown=function(I){function k(d){var c;return c=I.call(this,d)||this,c.timer=null,c.state={value:Math.max(d.timeLeft*100,0)},c}f(k,I);var g=k.prototype;return g.tick=function(){function d(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return d}(),g.componentDidMount=function(){function d(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return d}(),g.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),g.componentDidUpdate=function(){function d(c){var m=this;this.props.current!==c.current&&this.setState(function(i){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return d}(),g.render=function(){function d(){var c=this.props,m=c.format,i=o(c,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},i,{children:m?m(this.state.value,u):u})))}return d}(),k}(e.Component);B.defaultProps={rate:1e3}},61940:function(A,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(B,I){if(B==null)return{};var k={};for(var N in B)if({}.hasOwnProperty.call(B,N)){if(I.includes(N))continue;k[N]=B[N]}return k}var b=r.Dimmer=function(){function B(I){var k=I.className,N=I.children,d=f(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},d,{children:(0,e.createVNode)(1,"div","Dimmer__inner",N,0)})))}return B}()},13605:function(A,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** + */function f(B,I){if(B==null)return{};var k={};for(var g in B)if({}.hasOwnProperty.call(B,g)){if(I.includes(g))continue;k[g]=B[g]}return k}var b=r.Dimmer=function(){function B(I){var k=I.className,g=I.children,d=f(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},d,{children:(0,e.createVNode)(1,"div","Dimmer__inner",g,0)})))}return B}()},13605:function(A,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var b=f.vertical,B=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",B&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(A,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),f=["className","direction","fallback","frame","icon_state","movement"];function b(u,s){if(u==null)return{};var i={};for(var h in u)if({}.hasOwnProperty.call(u,h)){if(s.includes(h))continue;i[h]=u[h]}return i}function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return s};var u,s={},i=Object.prototype,h=i.hasOwnProperty,C=Object.defineProperty||function(te,q,ne){te[q]=ne.value},v=typeof Symbol=="function"?Symbol:{},p=v.iterator||"@@iterator",g=v.asyncIterator||"@@asyncIterator",V=v.toStringTag||"@@toStringTag";function S(te,q,ne){return Object.defineProperty(te,q,{value:ne,enumerable:!0,configurable:!0,writable:!0}),te[q]}try{S({},"")}catch(te){S=function(ne,le,ee){return ne[le]=ee}}function y(te,q,ne,le){var ee=q&&q.prototype instanceof D?q:D,re=Object.create(ee.prototype),oe=new ie(le||[]);return C(re,"_invoke",{value:G(te,ne,oe)}),re}function L(te,q,ne){try{return{type:"normal",arg:te.call(q,ne)}}catch(le){return{type:"throw",arg:le}}}s.wrap=y;var w="suspendedStart",T="suspendedYield",x="executing",M="completed",O={};function D(){}function E(){}function P(){}var R={};S(R,p,function(){return this});var j=Object.getPrototypeOf,F=j&&j(j(pe([])));F&&F!==i&&h.call(F,p)&&(R=F);var W=P.prototype=D.prototype=Object.create(R);function z(te){["next","throw","return"].forEach(function(q){S(te,q,function(ne){return this._invoke(q,ne)})})}function K(te,q){function ne(ee,re,oe,fe){var me=L(te[ee],te,re);if(me.type!=="throw"){var Y=me.arg,ve=Y.value;return ve&&typeof ve=="object"&&h.call(ve,"__await")?q.resolve(ve.__await).then(function(he){ne("next",he,oe,fe)},function(he){ne("throw",he,oe,fe)}):q.resolve(ve).then(function(he){Y.value=he,oe(Y)},function(he){return ne("throw",he,oe,fe)})}fe(me.arg)}var le;C(this,"_invoke",{value:function(){function ee(re,oe){function fe(){return new q(function(me,Y){ne(re,oe,me,Y)})}return le=le?le.then(fe,fe):fe()}return ee}()})}function G(te,q,ne){var le=w;return function(ee,re){if(le===x)throw Error("Generator is already running");if(le===M){if(ee==="throw")throw re;return{value:u,done:!0}}for(ne.method=ee,ne.arg=re;;){var oe=ne.delegate;if(oe){var fe=J(oe,ne);if(fe){if(fe===O)continue;return fe}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(le===w)throw le=M,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);le=x;var me=L(te,q,ne);if(me.type==="normal"){if(le=ne.done?M:T,me.arg===O)continue;return{value:me.arg,done:ne.done}}me.type==="throw"&&(le=M,ne.method="throw",ne.arg=me.arg)}}}function J(te,q){var ne=q.method,le=te.iterator[ne];if(le===u)return q.delegate=null,ne==="throw"&&te.iterator.return&&(q.method="return",q.arg=u,J(te,q),q.method==="throw")||ne!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),O;var ee=L(le,te.iterator,q.arg);if(ee.type==="throw")return q.method="throw",q.arg=ee.arg,q.delegate=null,O;var re=ee.arg;return re?re.done?(q[te.resultName]=re.value,q.next=te.nextLoc,q.method!=="return"&&(q.method="next",q.arg=u),q.delegate=null,O):re:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,O)}function Q(te){var q={tryLoc:te[0]};1 in te&&(q.catchLoc=te[1]),2 in te&&(q.finallyLoc=te[2],q.afterLoc=te[3]),this.tryEntries.push(q)}function ue(te){var q=te.completion||{};q.type="normal",delete q.arg,te.completion=q}function ie(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(Q,this),this.reset(!0)}function pe(te){if(te||te===""){var q=te[p];if(q)return q.call(te);if(typeof te.next=="function")return te;if(!isNaN(te.length)){var ne=-1,le=function(){function ee(){for(;++ne=0;--ee){var re=this.tryEntries[ee],oe=re.completion;if(re.tryLoc==="root")return le("end");if(re.tryLoc<=this.prev){var fe=h.call(re,"catchLoc"),me=h.call(re,"finallyLoc");if(fe&&me){if(this.prev=0;--le){var ee=this.tryEntries[le];if(ee.tryLoc<=this.prev&&h.call(ee,"finallyLoc")&&this.prev=0;--ne){var le=this.tryEntries[ne];if(le.finallyLoc===q)return this.complete(le.completion,le.afterLoc),ue(le),O}}return te}(),catch:function(){function te(q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var le=this.tryEntries[ne];if(le.tryLoc===q){var ee=le.completion;if(ee.type==="throw"){var re=ee.arg;ue(le)}return re}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(q,ne,le){return this.delegate={iterator:pe(q),resultName:ne,nextLoc:le},this.method==="next"&&(this.arg=u),O}return te}()},s}function I(u,s,i,h,C,v,p){try{var g=u[v](p),V=g.value}catch(S){return void i(S)}g.done?s(V):Promise.resolve(V).then(h,C)}function k(u){return function(){var s=this,i=arguments;return new Promise(function(h,C){var v=u.apply(s,i);function p(V){I(v,h,C,p,g,"next",V)}function g(V){I(v,h,C,p,g,"throw",V)}p(void 0)})}}function N(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,d(u,s)}function d(u,s){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,h){return i.__proto__=h,i},d(u,s)}var c=function(u){return u[u.NORTH=1]="NORTH",u[u.SOUTH=2]="SOUTH",u[u.EAST=4]="EAST",u[u.WEST=8]="WEST",u[u.NORTHEAST=5]="NORTHEAST",u[u.NORTHWEST=9]="NORTHWEST",u[u.SOUTHEAST=6]="SOUTHEAST",u[u.SOUTHWEST=10]="SOUTHWEST",u}(c||{}),m,l=r.DmIcon=function(u){function s(h){var C;return C=u.call(this,h)||this,C.state={iconRef:""},C}N(s,u);var i=s.prototype;return i.fetchRefMap=function(){var h=k(B().mark(function(){function v(){var p,g;return B().wrap(function(){function V(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,S.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return p=S.sent,S.next=6,p.json();case 6:g=S.sent,m=g,this.setState({iconRef:g[this.props.icon]||""}),S.next=14;break;case 11:return S.prev=11,S.t0=S.catch(0),S.abrupt("return");case 14:case"end":return S.stop()}}return V}(),v,this,[[0,11]])}return v}()));function C(){return h.apply(this,arguments)}return C}(),i.componentDidMount=function(){function h(){m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap()}return h}(),i.componentDidUpdate=function(){function h(C){C.icon!==this.props.icon&&(m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap())}return h}(),i.render=function(){function h(){var C=this.props,v=C.className,p=C.direction,g=p===void 0?c.SOUTH:p,V=C.fallback,S=C.frame,y=S===void 0?1:S,L=C.icon_state,w=C.movement,T=w===void 0?!1:w,x=b(C,f),M=this.state.iconRef,O=M+"?state="+L+"&dir="+g+"&movement="+!!T+"&frame="+y;return M?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:O},x))):V||null}return h}(),s}(e.Component)},20342:function(A,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(N,d){N.prototype=Object.create(d.prototype),N.prototype.constructor=N,b(N,d)}function b(N,d){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},b(N,d)}var B=400,I=function(d,c){return d.screenX*c[0]+d.screenY*c[1]},k=r.DraggableControl=function(N){function d(m){var l;return l=N.call(this,m)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var u=l.props.suppressFlicker;u>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},u))},l.handleDragStart=function(u){var s=l.props,i=s.value,h=s.dragMatrix,C=s.disabled,v=l.state.editing;v||C||(document.body.style["pointer-events"]="none",l.ref=u.currentTarget,l.setState({originalValue:i,dragging:!1,value:i,origin:I(u,h)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var p=l.state,g=p.dragging,V=p.value,S=l.props.onDrag;g&&S&&S(u,V)},l.props.updateRate||B),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s,i=l.props,h=i.minValue,C=i.maxValue,v=i.step,p=i.dragMatrix,g=i.disabled;if(!g){var V=l.ref.offsetWidth/((C-h)/v),S=(s=l.props.stepPixelSize)!=null?s:V;typeof S=="function"&&(S=S(V)),l.setState(function(y){var L=Object.assign({},y),w=y.origin,T=I(u,p)-w;if(y.dragging){var x=Math.trunc(T/S);L.value=(0,a.clamp)(Math.floor(L.originalValue/v)*v+x*v,h,C)}else Math.abs(T)>4&&(L.dragging=!0);return L})}},l.handleDragEnd=function(u){var s=l.props,i=s.onChange,h=s.onDrag,C=l.state,v=C.dragging,p=C.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),v)l.suppressFlicker(),i&&i(u,p),h&&h(u,p);else if(l.inputRef){var g=l.inputRef.current;g.value=p;try{g.focus(),g.select()}catch(V){}}},l}f(d,N);var c=d.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,i=u.editing,h=u.value,C=u.suppressingFlicker,v=this.props,p=v.animated,g=v.value,V=v.unit,S=v.minValue,y=v.maxValue,L=v.format,w=v.onChange,T=v.onDrag,x=v.children,M=v.height,O=v.lineHeight,D=v.fontSize,E=v.disabled,P=g;(s||C)&&(P=h);var R=function(){function W(z){return z+(V?" "+V:"")}return W}(),j=p&&!s&&!C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:P,format:L,children:R})||R(L?L(P):P),F=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!i||E?"none":void 0,height:M,"line-height":O,"font-size":D},onBlur:function(){function W(z){if(i){var K=(0,a.clamp)(parseFloat(z.target.value),S,y);if(Number.isNaN(K)){l.setState({editing:!1});return}l.setState({editing:!1,value:K}),l.suppressFlicker(),w&&w(z,K),T&&T(z,K)}}return W}(),onKeyDown:function(){function W(z){if(z.keyCode===13){var K=(0,a.clamp)(parseFloat(z.target.value),S,y);if(Number.isNaN(K)){l.setState({editing:!1});return}l.setState({editing:!1,value:K}),l.suppressFlicker(),w&&w(z,K),T&&T(z,K);return}if(z.keyCode===27){l.setState({editing:!1});return}}return W}(),disabled:E},null,this.inputRef);return x({dragging:s,editing:i,value:g,displayValue:P,displayElement:j,inputElement:F,handleDragStart:this.handleDragStart})}return m}(),d}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(A,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(96184),b=n(1331),B=n(96690),I=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],k=["className"],N;function d(C,v){if(C==null)return{};var p={};for(var g in C)if({}.hasOwnProperty.call(C,g)){if(v.includes(g))continue;p[g]=C[g]}return p}function c(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,m(C,v)}function m(C,v){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},m(C,v)}var l={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},u={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function C(){return null}return C}()},s="Layout Dropdown__menu",i="Layout Dropdown__menu-scroll",h=r.Dropdown=function(C){function v(g){var V;return V=C.call(this,g)||this,V.menuContents=void 0,V.handleClick=function(){V.state.open&&V.setOpen(!1)},V.state={open:!1,selected:V.props.selected},V.menuContents=null,V}c(v,C);var p=v.prototype;return p.getDOMNode=function(){function g(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return g}(),p.componentDidMount=function(){function g(){var V=this.getDOMNode()}return g}(),p.openMenu=function(){function g(){var V=v.renderedMenu;V===void 0&&(V=document.createElement("div"),V.className=s,document.body.appendChild(V),v.renderedMenu=V);var S=this.getDOMNode();v.currentOpenMenu=S,V.scrollTop=0,V.style.width=this.props.menuWidth||S.offsetWidth+"px",V.style.opacity="1",V.style.pointerEvents="auto",setTimeout(function(){var y;(y=v.renderedMenu)==null||y.focus()},400),this.renderMenuContent()}return g}(),p.closeMenu=function(){function g(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return g}(),p.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),p.renderMenuContent=function(){function g(){var V=this,S=v.renderedMenu;if(S){S.offsetHeight>200?S.className=i:S.className=s;var y=this.props.options,L=y===void 0?[]:y,w=L.map(function(x){var M,O;return typeof x=="string"?(O=x,M=x):x!==null&&(O=x.displayText,M=x.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",V.state.selected===M&&"selected"]),O,0,{onClick:function(){function D(){V.setSelected(M)}return D}()},M)}),T=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,T,0),S,function(){var x=v.singletonPopper;x===void 0?(x=(0,a.createPopper)(v.virtualElement,S,Object.assign({},l,{placement:"bottom-start"})),v.singletonPopper=x):(x.setOptions(Object.assign({},l,{placement:"bottom-start"})),x.update())},this.context)}}return g}(),p.setOpen=function(){function g(V){var S=this;this.setState(function(y){return Object.assign({},y,{open:V})}),V?setTimeout(function(){S.openMenu(),window.addEventListener("click",S.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),p.setSelected=function(){function g(V){this.setState(function(S){return Object.assign({},S,{selected:V})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(V)}return g}(),p.getOptionValue=function(){function g(V){return typeof V=="string"?V:V.value}return g}(),p.getSelectedIndex=function(){function g(){var V=this,S=this.state.selected||this.props.selected,y=this.props.options,L=y===void 0?[]:y;return L.findIndex(function(w){return V.getOptionValue(w)===S})}return g}(),p.toPrevious=function(){function g(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),S=0,y=this.props.options.length-1,L=V>=0;L||(V=S);var w=V===S?y:V-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),p.toNext=function(){function g(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),S=0,y=this.props.options.length-1,L=V>=0;L||(V=y);var w=V===y?S:V+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),p.render=function(){function g(){var V=this,S=this.props,y=S.icon,L=S.iconRotation,w=S.iconSpin,T=S.clipSelectedText,x=T===void 0?!0:T,M=S.color,O=M===void 0?"default":M,D=S.dropdownStyle,E=S.over,P=S.nochevron,R=S.width,j=S.onClick,F=S.onSelected,W=S.selected,z=S.disabled,K=S.displayText,G=S.buttons,J=d(S,I),Q=J.className,ue=d(J,k),ie=E?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,B.Stack,{inline:!0,fill:!0,width:R,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+O,z&&"Button--disabled",Q]),onClick:function(){function pe(te){z&&!V.state.open||(V.setOpen(!V.state.open),j&&j(te))}return pe}()},ue,{children:[y&&(0,e.createComponentVNode)(2,b.Icon,{name:y,rotation:L,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:x?"hidden":"visible"}}),P||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,b.Icon,{name:ie?"chevron-up":"chevron-down"}),2)]})))}),G&&(0,e.createFragment)([(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-left",disabled:z,onClick:function(){function pe(){z||V.toPrevious()}return pe}()})}),(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-right",disabled:z,onClick:function(){function pe(){z||V.toNext()}return pe}()})})],4)]})}return g}(),v}(e.Component);N=h,h.renderedMenu=void 0,h.singletonPopper=void 0,h.currentOpenMenu=void 0,h.virtualElement={getBoundingClientRect:function(){function C(){var v,p;return(v=(p=N.currentOpenMenu)==null?void 0:p.getBoundingClientRect())!=null?v:u}return C}()}},39473:function(A,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],B=["className"];/** + */var t=r.Divider=function(){function o(f){var b=f.vertical,B=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",B&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(A,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),f=["className","direction","fallback","frame","icon_state","movement"];function b(u,s){if(u==null)return{};var l={};for(var h in u)if({}.hasOwnProperty.call(u,h)){if(s.includes(h))continue;l[h]=u[h]}return l}function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return s};var u,s={},l=Object.prototype,h=l.hasOwnProperty,C=Object.defineProperty||function(te,q,ne){te[q]=ne.value},v=typeof Symbol=="function"?Symbol:{},p=v.iterator||"@@iterator",N=v.asyncIterator||"@@asyncIterator",V=v.toStringTag||"@@toStringTag";function S(te,q,ne){return Object.defineProperty(te,q,{value:ne,enumerable:!0,configurable:!0,writable:!0}),te[q]}try{S({},"")}catch(te){S=function(ne,le,ee){return ne[le]=ee}}function y(te,q,ne,le){var ee=q&&q.prototype instanceof D?q:D,re=Object.create(ee.prototype),oe=new ie(le||[]);return C(re,"_invoke",{value:G(te,ne,oe)}),re}function L(te,q,ne){try{return{type:"normal",arg:te.call(q,ne)}}catch(le){return{type:"throw",arg:le}}}s.wrap=y;var w="suspendedStart",T="suspendedYield",x="executing",M="completed",P={};function D(){}function E(){}function O(){}var R={};S(R,p,function(){return this});var j=Object.getPrototypeOf,F=j&&j(j(pe([])));F&&F!==l&&h.call(F,p)&&(R=F);var W=O.prototype=D.prototype=Object.create(R);function z(te){["next","throw","return"].forEach(function(q){S(te,q,function(ne){return this._invoke(q,ne)})})}function K(te,q){function ne(ee,re,oe,fe){var me=L(te[ee],te,re);if(me.type!=="throw"){var Y=me.arg,ve=Y.value;return ve&&typeof ve=="object"&&h.call(ve,"__await")?q.resolve(ve.__await).then(function(he){ne("next",he,oe,fe)},function(he){ne("throw",he,oe,fe)}):q.resolve(ve).then(function(he){Y.value=he,oe(Y)},function(he){return ne("throw",he,oe,fe)})}fe(me.arg)}var le;C(this,"_invoke",{value:function(){function ee(re,oe){function fe(){return new q(function(me,Y){ne(re,oe,me,Y)})}return le=le?le.then(fe,fe):fe()}return ee}()})}function G(te,q,ne){var le=w;return function(ee,re){if(le===x)throw Error("Generator is already running");if(le===M){if(ee==="throw")throw re;return{value:u,done:!0}}for(ne.method=ee,ne.arg=re;;){var oe=ne.delegate;if(oe){var fe=J(oe,ne);if(fe){if(fe===P)continue;return fe}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(le===w)throw le=M,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);le=x;var me=L(te,q,ne);if(me.type==="normal"){if(le=ne.done?M:T,me.arg===P)continue;return{value:me.arg,done:ne.done}}me.type==="throw"&&(le=M,ne.method="throw",ne.arg=me.arg)}}}function J(te,q){var ne=q.method,le=te.iterator[ne];if(le===u)return q.delegate=null,ne==="throw"&&te.iterator.return&&(q.method="return",q.arg=u,J(te,q),q.method==="throw")||ne!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),P;var ee=L(le,te.iterator,q.arg);if(ee.type==="throw")return q.method="throw",q.arg=ee.arg,q.delegate=null,P;var re=ee.arg;return re?re.done?(q[te.resultName]=re.value,q.next=te.nextLoc,q.method!=="return"&&(q.method="next",q.arg=u),q.delegate=null,P):re:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,P)}function Q(te){var q={tryLoc:te[0]};1 in te&&(q.catchLoc=te[1]),2 in te&&(q.finallyLoc=te[2],q.afterLoc=te[3]),this.tryEntries.push(q)}function ue(te){var q=te.completion||{};q.type="normal",delete q.arg,te.completion=q}function ie(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(Q,this),this.reset(!0)}function pe(te){if(te||te===""){var q=te[p];if(q)return q.call(te);if(typeof te.next=="function")return te;if(!isNaN(te.length)){var ne=-1,le=function(){function ee(){for(;++ne=0;--ee){var re=this.tryEntries[ee],oe=re.completion;if(re.tryLoc==="root")return le("end");if(re.tryLoc<=this.prev){var fe=h.call(re,"catchLoc"),me=h.call(re,"finallyLoc");if(fe&&me){if(this.prev=0;--le){var ee=this.tryEntries[le];if(ee.tryLoc<=this.prev&&h.call(ee,"finallyLoc")&&this.prev=0;--ne){var le=this.tryEntries[ne];if(le.finallyLoc===q)return this.complete(le.completion,le.afterLoc),ue(le),P}}return te}(),catch:function(){function te(q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var le=this.tryEntries[ne];if(le.tryLoc===q){var ee=le.completion;if(ee.type==="throw"){var re=ee.arg;ue(le)}return re}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(q,ne,le){return this.delegate={iterator:pe(q),resultName:ne,nextLoc:le},this.method==="next"&&(this.arg=u),P}return te}()},s}function I(u,s,l,h,C,v,p){try{var N=u[v](p),V=N.value}catch(S){return void l(S)}N.done?s(V):Promise.resolve(V).then(h,C)}function k(u){return function(){var s=this,l=arguments;return new Promise(function(h,C){var v=u.apply(s,l);function p(V){I(v,h,C,p,N,"next",V)}function N(V){I(v,h,C,p,N,"throw",V)}p(void 0)})}}function g(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,d(u,s)}function d(u,s){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,h){return l.__proto__=h,l},d(u,s)}var c=function(u){return u[u.NORTH=1]="NORTH",u[u.SOUTH=2]="SOUTH",u[u.EAST=4]="EAST",u[u.WEST=8]="WEST",u[u.NORTHEAST=5]="NORTHEAST",u[u.NORTHWEST=9]="NORTHWEST",u[u.SOUTHEAST=6]="SOUTHEAST",u[u.SOUTHWEST=10]="SOUTHWEST",u}(c||{}),m,i=r.DmIcon=function(u){function s(h){var C;return C=u.call(this,h)||this,C.state={iconRef:""},C}g(s,u);var l=s.prototype;return l.fetchRefMap=function(){var h=k(B().mark(function(){function v(){var p,N;return B().wrap(function(){function V(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,S.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return p=S.sent,S.next=6,p.json();case 6:N=S.sent,m=N,this.setState({iconRef:N[this.props.icon]||""}),S.next=14;break;case 11:return S.prev=11,S.t0=S.catch(0),S.abrupt("return");case 14:case"end":return S.stop()}}return V}(),v,this,[[0,11]])}return v}()));function C(){return h.apply(this,arguments)}return C}(),l.componentDidMount=function(){function h(){m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap()}return h}(),l.componentDidUpdate=function(){function h(C){C.icon!==this.props.icon&&(m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap())}return h}(),l.render=function(){function h(){var C=this.props,v=C.className,p=C.direction,N=p===void 0?c.SOUTH:p,V=C.fallback,S=C.frame,y=S===void 0?1:S,L=C.icon_state,w=C.movement,T=w===void 0?!1:w,x=b(C,f),M=this.state.iconRef,P=M+"?state="+L+"&dir="+N+"&movement="+!!T+"&frame="+y;return M?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:P},x))):V||null}return h}(),s}(e.Component)},20342:function(A,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(g,d){g.prototype=Object.create(d.prototype),g.prototype.constructor=g,b(g,d)}function b(g,d){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},b(g,d)}var B=400,I=function(d,c){return d.screenX*c[0]+d.screenY*c[1]},k=r.DraggableControl=function(g){function d(m){var i;return i=g.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 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,l=s.value,h=s.dragMatrix,C=s.disabled,v=i.state.editing;v||C||(document.body.style["pointer-events"]="none",i.ref=u.currentTarget,i.setState({originalValue:l,dragging:!1,value:l,origin:I(u,h)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var p=i.state,N=p.dragging,V=p.value,S=i.props.onDrag;N&&S&&S(u,V)},i.props.updateRate||B),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s,l=i.props,h=l.minValue,C=l.maxValue,v=l.step,p=l.dragMatrix,N=l.disabled;if(!N){var V=i.ref.offsetWidth/((C-h)/v),S=(s=i.props.stepPixelSize)!=null?s:V;typeof S=="function"&&(S=S(V)),i.setState(function(y){var L=Object.assign({},y),w=y.origin,T=I(u,p)-w;if(y.dragging){var x=Math.trunc(T/S);L.value=(0,a.clamp)(Math.floor(L.originalValue/v)*v+x*v,h,C)}else Math.abs(T)>4&&(L.dragging=!0);return L})}},i.handleDragEnd=function(u){var s=i.props,l=s.onChange,h=s.onDrag,C=i.state,v=C.dragging,p=C.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(),l&&l(u,p),h&&h(u,p);else if(i.inputRef){var N=i.inputRef.current;N.value=p;try{N.focus(),N.select()}catch(V){}}},i}f(d,g);var c=d.prototype;return c.render=function(){function m(){var i=this,u=this.state,s=u.dragging,l=u.editing,h=u.value,C=u.suppressingFlicker,v=this.props,p=v.animated,N=v.value,V=v.unit,S=v.minValue,y=v.maxValue,L=v.format,w=v.onChange,T=v.onDrag,x=v.children,M=v.height,P=v.lineHeight,D=v.fontSize,E=v.disabled,O=N;(s||C)&&(O=h);var R=function(){function W(z){return z+(V?" "+V:"")}return W}(),j=p&&!s&&!C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:O,format:L,children:R})||R(L?L(O):O),F=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||E?"none":void 0,height:M,"line-height":P,"font-size":D},onBlur:function(){function W(z){if(l){var K=(0,a.clamp)(parseFloat(z.target.value),S,y);if(Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),w&&w(z,K),T&&T(z,K)}}return W}(),onKeyDown:function(){function W(z){if(z.keyCode===13){var K=(0,a.clamp)(parseFloat(z.target.value),S,y);if(Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),w&&w(z,K),T&&T(z,K);return}if(z.keyCode===27){i.setState({editing:!1});return}}return W}(),disabled:E},null,this.inputRef);return x({dragging:s,editing:l,value:N,displayValue:O,displayElement:j,inputElement:F,handleDragStart:this.handleDragStart})}return m}(),d}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(A,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(96184),b=n(1331),B=n(96690),I=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],k=["className"],g;function d(C,v){if(C==null)return{};var p={};for(var N in C)if({}.hasOwnProperty.call(C,N)){if(v.includes(N))continue;p[N]=C[N]}return p}function c(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,m(C,v)}function m(C,v){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},m(C,v)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},u={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function C(){return null}return C}()},s="Layout Dropdown__menu",l="Layout Dropdown__menu-scroll",h=r.Dropdown=function(C){function v(N){var V;return V=C.call(this,N)||this,V.menuContents=void 0,V.handleClick=function(){V.state.open&&V.setOpen(!1)},V.state={open:!1,selected:V.props.selected},V.menuContents=null,V}c(v,C);var p=v.prototype;return p.getDOMNode=function(){function N(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return N}(),p.componentDidMount=function(){function N(){var V=this.getDOMNode()}return N}(),p.openMenu=function(){function N(){var V=v.renderedMenu;V===void 0&&(V=document.createElement("div"),V.className=s,document.body.appendChild(V),v.renderedMenu=V);var S=this.getDOMNode();v.currentOpenMenu=S,V.scrollTop=0,V.style.width=this.props.menuWidth||S.offsetWidth+"px",V.style.opacity="1",V.style.pointerEvents="auto",setTimeout(function(){var y;(y=v.renderedMenu)==null||y.focus()},400),this.renderMenuContent()}return N}(),p.closeMenu=function(){function N(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return N}(),p.componentWillUnmount=function(){function N(){this.closeMenu(),this.setOpen(!1)}return N}(),p.renderMenuContent=function(){function N(){var V=this,S=v.renderedMenu;if(S){S.offsetHeight>200?S.className=l:S.className=s;var y=this.props.options,L=y===void 0?[]:y,w=L.map(function(x){var M,P;return typeof x=="string"?(P=x,M=x):x!==null&&(P=x.displayText,M=x.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",V.state.selected===M&&"selected"]),P,0,{onClick:function(){function D(){V.setSelected(M)}return D}()},M)}),T=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,T,0),S,function(){var x=v.singletonPopper;x===void 0?(x=(0,a.createPopper)(v.virtualElement,S,Object.assign({},i,{placement:"bottom-start"})),v.singletonPopper=x):(x.setOptions(Object.assign({},i,{placement:"bottom-start"})),x.update())},this.context)}}return N}(),p.setOpen=function(){function N(V){var S=this;this.setState(function(y){return Object.assign({},y,{open:V})}),V?setTimeout(function(){S.openMenu(),window.addEventListener("click",S.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),p.setSelected=function(){function N(V){this.setState(function(S){return Object.assign({},S,{selected:V})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(V)}return N}(),p.getOptionValue=function(){function N(V){return typeof V=="string"?V:V.value}return N}(),p.getSelectedIndex=function(){function N(){var V=this,S=this.state.selected||this.props.selected,y=this.props.options,L=y===void 0?[]:y;return L.findIndex(function(w){return V.getOptionValue(w)===S})}return N}(),p.toPrevious=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),S=0,y=this.props.options.length-1,L=V>=0;L||(V=S);var w=V===S?y:V-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),p.toNext=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),S=0,y=this.props.options.length-1,L=V>=0;L||(V=y);var w=V===y?S:V+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),p.render=function(){function N(){var V=this,S=this.props,y=S.icon,L=S.iconRotation,w=S.iconSpin,T=S.clipSelectedText,x=T===void 0?!0:T,M=S.color,P=M===void 0?"default":M,D=S.dropdownStyle,E=S.over,O=S.nochevron,R=S.width,j=S.onClick,F=S.onSelected,W=S.selected,z=S.disabled,K=S.displayText,G=S.buttons,J=d(S,I),Q=J.className,ue=d(J,k),ie=E?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,B.Stack,{inline:!0,fill:!0,width:R,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+P,z&&"Button--disabled",Q]),onClick:function(){function pe(te){z&&!V.state.open||(V.setOpen(!V.state.open),j&&j(te))}return pe}()},ue,{children:[y&&(0,e.createComponentVNode)(2,b.Icon,{name:y,rotation:L,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:x?"hidden":"visible"}}),O||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,b.Icon,{name:ie?"chevron-up":"chevron-down"}),2)]})))}),G&&(0,e.createFragment)([(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-left",disabled:z,onClick:function(){function pe(){z||V.toPrevious()}return pe}()})}),(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-right",disabled:z,onClick:function(){function pe(){z||V.toNext()}return pe}()})})],4)]})}return N}(),v}(e.Component);g=h,h.renderedMenu=void 0,h.singletonPopper=void 0,h.currentOpenMenu=void 0,h.virtualElement={getBoundingClientRect:function(){function C(){var v,p;return(v=(p=g.currentOpenMenu)==null?void 0:p.getBoundingClientRect())!=null?v:u}return C}()}},39473:function(A,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],B=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function I(u,s){if(u==null)return{};var i={};for(var h in u)if({}.hasOwnProperty.call(u,h)){if(s.includes(h))continue;i[h]=u[h]}return i}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),N=r.computeFlexProps=function(){function u(s){var i=s.className,h=s.direction,C=s.wrap,v=s.align,p=s.justify,g=s.inline,V=s.style,S=I(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":h,"flex-wrap":C===!0?"wrap":C,"align-items":v,"justify-content":p})},S))}return u}(),d=r.Flex=function(){function u(s){var i=s.className,h=I(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,k(h)]),null,1,Object.assign({},N(h))))}return u}();d.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var i=s.className,h=s.style,C=s.grow,v=s.order,p=s.shrink,g=s.basis,V=g===void 0?s.width:g,S=s.align,y=I(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},h,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(V),order:v,"align-self":S})},y))}return u}(),l=function(s){var i=s.className,h=I(s,B);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,c(s)]),null,1,Object.assign({},m(h))))};l.defaultHooks=a.pureComponentHooks,d.Item=l},79646:function(A,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],f=["size","style"];/** + */function I(u,s){if(u==null)return{};var l={};for(var h in u)if({}.hasOwnProperty.call(u,h)){if(s.includes(h))continue;l[h]=u[h]}return l}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),g=r.computeFlexProps=function(){function u(s){var l=s.className,h=s.direction,C=s.wrap,v=s.align,p=s.justify,N=s.inline,V=s.style,S=I(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":h,"flex-wrap":C===!0?"wrap":C,"align-items":v,"justify-content":p})},S))}return u}(),d=r.Flex=function(){function u(s){var l=s.className,h=I(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,k(h)]),null,1,Object.assign({},g(h))))}return u}();d.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var l=s.className,h=s.style,C=s.grow,v=s.order,p=s.shrink,N=s.basis,V=N===void 0?s.width:N,S=s.align,y=I(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},h,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(V),order:v,"align-self":S})},y))}return u}(),i=function(s){var l=s.className,h=I(s,B);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,c(s)]),null,1,Object.assign({},m(h))))};i.defaultHooks=a.pureComponentHooks,d.Item=i},79646:function(A,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(k,N){if(k==null)return{};var d={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(N.includes(c))continue;d[c]=k[c]}return d}var B=r.Grid=function(){function k(N){var d=N.children,c=b(N,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:d})})))}return k}();B.defaultHooks=t.pureComponentHooks;var I=r.GridColumn=function(){function k(N){var d=N.size,c=d===void 0?1:d,m=N.style,l=b(N,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},l)))}return k}();B.defaultHooks=t.pureComponentHooks,B.Column=I},1331:function(A,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** + */function b(k,g){if(k==null)return{};var d={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(g.includes(c))continue;d[c]=k[c]}return d}var B=r.Grid=function(){function k(g){var d=g.children,c=b(g,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:d})})))}return k}();B.defaultHooks=t.pureComponentHooks;var I=r.GridColumn=function(){function k(g){var d=g.size,c=d===void 0?1:d,m=g.style,i=b(g,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},i)))}return k}();B.defaultHooks=t.pureComponentHooks,B.Column=I},1331:function(A,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(N,d){if(N==null)return{};var c={};for(var m in N)if({}.hasOwnProperty.call(N,m)){if(d.includes(m))continue;c[m]=N[m]}return c}var B=/-o$/,I=r.Icon=function(){function N(d){var c=d.name,m=d.size,l=d.spin,u=d.className,s=d.style,i=s===void 0?{}:s,h=d.rotation,C=d.inverse,v=b(d,o);m&&(i["font-size"]=m*100+"%"),typeof h=="number"&&(i.transform="rotate("+h+"deg)");var p=B.test(c),g=c.replace(B,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,p?"far":"fas","fa-"+g,l&&"fa-spin"]),style:i},v)))}return N}();I.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function N(d){var c=d.className,m=d.style,l=m===void 0?{}:m,u=d.children,s=b(d,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:l},s,{children:u})))}return N}();I.Stack=k},91225:function(A,r,n){"use strict";r.__esModule=!0,r.Image=void 0;var e=n(89005),a=n(55937),t=["fixBlur","fixErrors","objectFit","src"];function o(k,N){if(k==null)return{};var d={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(N.includes(c))continue;d[c]=k[c]}return d}function f(k,N){k.prototype=Object.create(N.prototype),k.prototype.constructor=k,b(k,N)}function b(k,N){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,c){return d.__proto__=c,d},b(k,N)}var B=5,I=r.Image=function(k){function N(){for(var c,m=arguments.length,l=new Array(m),u=0;u0;u&&(l=c.containerRef)!=null&&l.current?c.props.onMove(b(c.containerRef.current,m)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(m){var l=m.which||m.keyCode;l<37||l>40||(m.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=d,c.containerRef=(0,e.createRef)(),c}t(k,I);var N=k.prototype;return N.toggleDocumentEvents=function(){function d(c){var m,l=(m=this.containerRef)==null?void 0:m.current,u=f(l),s=c?u.addEventListener:u.removeEventListener;s("mousemove",this.handleMove),s("mouseup",this.handleMoveEnd)}return d}(),N.componentDidMount=function(){function d(){this.toggleDocumentEvents(!0)}return d}(),N.componentWillUnmount=function(){function d(){this.toggleDocumentEvents(!1)}return d}(),N.render=function(){function d(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return d}(),k}(e.Component)},76334:function(A,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),B=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var g=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),d=r.Input=function(c){function m(){var u;return u=c.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var l=u.state.editing,h=u.props.onInput;l||u.setEditing(!0),h&&h(s,s.target.value)},u.handleFocus=function(s){var l=u.state.editing;l||u.setEditing(!0)},u.handleBlur=function(s){var l=u.state.editing,h=u.props.onChange;l&&(u.setEditing(!1),h&&h(s,s.target.value))},u.handleKeyDown=function(s){var l=u.props,h=l.onInput,C=l.onChange,v=l.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),C&&C(s,s.target.value),h&&h(s,s.target.value),v&&v(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=g(u.props.value),s.target.blur();return}},u}I(m,c);var i=m.prototype;return i.componentDidMount=function(){function u(){var s=this,l=this.props.value,h=this.inputRef.current;h&&(h.value=g(l),h.selectionStart=0,h.selectionEnd=h.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){h.focus(),s.props.autoSelect&&h.select()},1)}return u}(),i.componentDidUpdate=function(){function u(s,l){var h=this.state.editing,C=s.value,v=this.props.value,p=this.inputRef.current;p&&!h&&C!==v&&(p.value=g(v))}return u}(),i.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),i.render=function(){function u(){var s=this.props,l=s.selfClear,h=s.onInput,C=s.onChange,v=s.onEnter,p=s.value,N=s.maxLength,V=s.placeholder,S=s.autofocus,y=s.disabled,L=s.multiline,w=s.cols,T=w===void 0?32:w,x=s.rows,M=x===void 0?4:x,P=B(s,f),D=P.className,E=P.fluid,O=P.monospace,R=B(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",E&&"Input--fluid",O&&"Input--monospace",y&&"Input--disabled",D])},R,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:T,rows:M,disabled:y},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:y},null,this.inputRef)]})))}return u}(),m}(e.Component)},4454:function(A,r,n){"use strict";r.__esModule=!0,r.Interactive=void 0;var e=n(89005),a=n(44879);function t(I,k){I.prototype=Object.create(k.prototype),I.prototype.constructor=I,o(I,k)}function o(I,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,d){return g.__proto__=d,g},o(I,k)}var f=function(k){return k&&k.ownerDocument.defaultView||self},b=function(k,g){var d=k.getBoundingClientRect(),c=g;return{left:(0,a.clamp)((c.pageX-(d.left+f(k).pageXOffset))/d.width,0,1),top:(0,a.clamp)((c.pageY-(d.top+f(k).pageYOffset))/d.height,0,1)}},B=r.Interactive=function(I){function k(d){var c;return c=I.call(this)||this,c.containerRef=void 0,c.props=void 0,c.handleMoveStart=function(m){var i,u=(i=c.containerRef)==null?void 0:i.current;u&&(m.preventDefault(),u.focus(),c.props.onMove(b(u,m)),c.toggleDocumentEvents(!0))},c.handleMove=function(m){var i;m.preventDefault();var u=m.buttons>0;u&&(i=c.containerRef)!=null&&i.current?c.props.onMove(b(c.containerRef.current,m)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(m){var i=m.which||m.keyCode;i<37||i>40||(m.preventDefault(),c.props.onKey({left:i===39?.05:i===37?-.05:0,top:i===40?.05:i===38?-.05:0}))},c.props=d,c.containerRef=(0,e.createRef)(),c}t(k,I);var g=k.prototype;return g.toggleDocumentEvents=function(){function d(c){var m,i=(m=this.containerRef)==null?void 0:m.current,u=f(i),s=c?u.addEventListener:u.removeEventListener;s("mousemove",this.handleMove),s("mouseup",this.handleMoveEnd)}return d}(),g.componentDidMount=function(){function d(){this.toggleDocumentEvents(!0)}return d}(),g.componentWillUnmount=function(){function d(){this.toggleDocumentEvents(!1)}return d}(),g.render=function(){function d(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return d}(),k}(e.Component)},76334:function(A,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),B=["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 I(N,d){if(N==null)return{};var c={};for(var m in N)if({}.hasOwnProperty.call(N,m)){if(d.includes(m))continue;c[m]=N[m]}return c}var k=r.Knob=function(){function N(d){var c=d.animated,m=d.format,l=d.maxValue,u=d.minValue,s=d.onChange,i=d.onDrag,h=d.step,C=d.stepPixelSize,v=d.suppressFlicker,p=d.unit,g=d.value,V=d.className,S=d.style,y=d.fillValue,L=d.color,w=d.ranges,T=w===void 0?{}:w,x=d.size,M=x===void 0?1:x,O=d.bipolar,D=d.children,E=d.popUpPosition,P=I(d,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:u,onChange:s,onDrag:i,step:h,stepPixelSize:C,suppressFlicker:v,unit:p,value:g},{children:function(){function R(j){var F=j.dragging,W=j.editing,z=j.value,K=j.displayValue,G=j.displayElement,J=j.inputElement,Q=j.handleDragStart,ue=(0,a.scale)(y!=null?y:K,u,l),ie=(0,a.scale)(K,u,l),pe=L||(0,a.keyOfMatchingRange)(y!=null?y:z,T)||"default",te=(ie-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+pe,O&&"Knob--bipolar",V,(0,o.computeBoxClassName)(P)]),[(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("+te+"deg)"}}),2),F&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",E&&"Knob__popupValue--"+E]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((O?2.75:2)-ue*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),J],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":M+"em"},S)},P)),{onMouseDown:Q})))}return R}()})))}return N}()},78621:function(A,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function I(g,d){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(d.includes(m))continue;c[m]=g[m]}return c}var k=r.Knob=function(){function g(d){var c=d.animated,m=d.format,i=d.maxValue,u=d.minValue,s=d.onChange,l=d.onDrag,h=d.step,C=d.stepPixelSize,v=d.suppressFlicker,p=d.unit,N=d.value,V=d.className,S=d.style,y=d.fillValue,L=d.color,w=d.ranges,T=w===void 0?{}:w,x=d.size,M=x===void 0?1:x,P=d.bipolar,D=d.children,E=d.popUpPosition,O=I(d,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:i,minValue:u,onChange:s,onDrag:l,step:h,stepPixelSize:C,suppressFlicker:v,unit:p,value:N},{children:function(){function R(j){var F=j.dragging,W=j.editing,z=j.value,K=j.displayValue,G=j.displayElement,J=j.inputElement,Q=j.handleDragStart,ue=(0,a.scale)(y!=null?y:K,u,i),ie=(0,a.scale)(K,u,i),pe=L||(0,a.keyOfMatchingRange)(y!=null?y:z,T)||"default",te=(ie-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+pe,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(O)]),[(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("+te+"deg)"}}),2),F&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",E&&"Knob__popupValue--"+E]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ue*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),J],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":M+"em"},S)},O)),{onMouseDown:Q})))}return R}()})))}return g}()},78621:function(A,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(I,k){if(I==null)return{};var N={};for(var d in I)if({}.hasOwnProperty.call(I,d)){if(k.includes(d))continue;N[d]=I[d]}return N}var b=r.LabeledControls=function(){function I(k){var N=k.children,d=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},d,{children:N})))}return I}(),B=function(k){var N=k.label,d=k.children,c=f(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:N})]})))})};b.Item=B},29319:function(A,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),f=n(62147);/** + */function f(I,k){if(I==null)return{};var g={};for(var d in I)if({}.hasOwnProperty.call(I,d)){if(k.includes(d))continue;g[d]=I[d]}return g}var b=r.LabeledControls=function(){function I(k){var g=k.children,d=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},d,{children:g})))}return I}(),B=function(k){var g=k.label,d=k.children,c=f(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:g})]})))})};b.Item=B},29319:function(A,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),f=n(62147);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=r.LabeledList=function(){function k(N){var d=N.children;return(0,e.createVNode)(1,"table","LabeledList",d,0)}return k}();b.defaultHooks=a.pureComponentHooks;var B=function(N){var d=N.className,c=N.label,m=N.labelColor,l=m===void 0?"label":m,u=N.color,s=N.textAlign,i=N.buttons,h=N.tooltip,C=N.content,v=N.children,p=N.preserveWhitespace,g=N.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",d]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:g,children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:i?void 0:2,preserveWhitespace:p,children:[C,v]}),i&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",i,0)],0);return h&&(V=(0,e.createComponentVNode)(2,f.Tooltip,{content:h,children:V})),V};B.defaultHooks=a.pureComponentHooks;var I=function(N){var d=N.size?(0,t.unit)(Math.max(0,N.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":d,"padding-bottom":d}}),2)};I.defaultHooks=a.pureComponentHooks,b.Item=B,b.Divider=I},36077:function(A,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),f=["className","children","onEnter"];/** + */var b=r.LabeledList=function(){function k(g){var d=g.children;return(0,e.createVNode)(1,"table","LabeledList",d,0)}return k}();b.defaultHooks=a.pureComponentHooks;var B=function(g){var d=g.className,c=g.label,m=g.labelColor,i=m===void 0?"label":m,u=g.color,s=g.textAlign,l=g.buttons,h=g.tooltip,C=g.content,v=g.children,p=g.preserveWhitespace,N=g.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",d]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:N,children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,preserveWhitespace:p,children:[C,v]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return h&&(V=(0,e.createComponentVNode)(2,f.Tooltip,{content:h,children:V})),V};B.defaultHooks=a.pureComponentHooks;var I=function(g){var d=g.size?(0,t.unit)(Math.max(0,g.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":d,"padding-bottom":d}}),2)};I.defaultHooks=a.pureComponentHooks,b.Item=B,b.Divider=I},36077:function(A,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(I,k){if(I==null)return{};var N={};for(var d in I)if({}.hasOwnProperty.call(I,d)){if(k.includes(d))continue;N[d]=I[d]}return N}var B=r.Modal=function(){function I(k){var N=k.className,d=k.children,c=k.onEnter,m=b(k,f),l;return c&&(l=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",N,(0,t.computeBoxClassName)(m)]),d,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return I}()},73280:function(A,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),B=["x","y","icon","tooltip","color","children"],I=["icon","color"];function k(g,V){if(g==null)return{};var S={};for(var y in g)if({}.hasOwnProperty.call(g,y)){if(V.includes(y))continue;S[y]=g[y]}return S}function N(g,V){g.prototype=Object.create(V.prototype),g.prototype.constructor=g,d(g,V)}function d(g,V){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,y){return S.__proto__=y,S},d(g,V)}var c=510,m=2,l=function(V){return V.stopPropagation&&V.stopPropagation(),V.preventDefault&&V.preventDefault(),V.cancelBubble=!0,V.returnValue=!1,!1},u=r.NanoMap=function(g){function V(y){var L,w,T,x;x=g.call(this,y)||this;var M=window.innerWidth/2-256,O=window.innerHeight/2-256;return x.state={offsetX:(L=y.offsetX)!=null?L:0,offsetY:(w=y.offsetY)!=null?w:0,dragging:!1,originX:null,originY:null,zoom:(T=y.zoom)!=null?T:1},x.handleDragStart=function(D){x.ref=D.target,x.setState({dragging:!1,originX:D.screenX,originY:D.screenY}),document.addEventListener("mousemove",x.handleDragMove),document.addEventListener("mouseup",x.handleDragEnd),l(D)},x.handleDragMove=function(D){x.setState(function(E){var P=Object.assign({},E),R=D.screenX-P.originX,j=D.screenY-P.originY;return E.dragging?(P.offsetX+=R/P.zoom,P.offsetY+=j/P.zoom,P.originX=D.screenX,P.originY=D.screenY):P.dragging=!0,P}),l(D)},x.handleDragEnd=function(D){x.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",x.handleDragMove),document.removeEventListener("mouseup",x.handleDragEnd),y.onOffsetChange==null||y.onOffsetChange(D,x.state),l(D)},x.handleZoom=function(D,E){x.setState(function(P){var R=Math.min(Math.max(E,1),8);return P.zoom=R,y.onZoom&&y.onZoom(P.zoom),P})},x.handleReset=function(D){x.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,x.handleZoom(D,1),y.onOffsetChange==null||y.onOffsetChange(D,E)})},x}N(V,g);var S=V.prototype;return S.getChildContext=function(){function y(){return{map:{zoom:this.state.zoom}}}return y}(),S.render=function(){function y(){var L=(0,t.useBackend)(this.context),w=L.config,T=this.state,x=T.dragging,M=T.offsetX,O=T.offsetY,D=T.zoom,E=D===void 0?1:D,P=this.props.children,R=this.props.mapUrl||w.map+"_nanomap_z1.png",j=c*E+"px",F={width:j,height:j,"margin-top":O*E+"px","margin-left":M*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:x?"move":"auto"},W={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:F,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(R),style:W}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,h,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset}),(0,e.createComponentVNode)(2,p)]})}return y}(),V}(e.Component),s=function(V,S){var y=S.map.zoom,L=V.x,w=V.y,T=V.icon,x=V.tooltip,M=V.color,O=V.children,D=k(V,B),E=m*y,P=(L-1)*E,R=(w-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:R+"px",left:P+"px",width:E+"px",height:E+"px"},D,{children:O})))}),2)};u.Marker=s;var i=function(V,S){var y=S.map.zoom,L=V.icon,w=V.color,T=k(V,I),x=m*y+4/Math.ceil(y/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},T,{children:(0,e.createComponentVNode)(2,a.Icon,{name:L,color:w,fontSize:x+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=i;var h=function(V,S){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function y(L){return L+"x"}return y}(),value:V.zoom,onDrag:function(){function y(L,w){return V.onZoom(L,w)}return y}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function y(L){return V.onReset==null?void 0:V.onReset(L)}return y}()})]})})})})};u.Zoomer=h;var C,v=function(g){function V(y){var L;L=g.call(this,y)||this;var w=(0,t.useBackend)(L.props.context),T=w.act;return L.state={color:L.props.color},L.handleClick=function(x){C!==void 0&&C.setState({color:"blue"}),T("switch_camera",{name:L.props.name}),C=L,L.setState({color:"green"})},L}N(V,g);var S=V.prototype;return S.render=function(){function y(){var L=this.props.x*2*this.props.zoom-this.props.zoom-3,w=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:w+"px",left:L+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return y}(),V}(e.Component);u.NanoButton=v;var p=function(V,S){var y=(0,t.useBackend)(S),L=y.act,w=y.data;return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zchooser",children:[(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-up",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u0432\u044B\u0448\u0435",onClick:function(){function T(){return L("switch_z_level",{z_dir:1})}return T}()})}),(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-down",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u043D\u0438\u0436\u0435",onClick:function(){function T(){return L("switch_z_level",{z_dir:-1})}return T}()})})]})}},74733:function(A,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function b(I,k){if(I==null)return{};var g={};for(var d in I)if({}.hasOwnProperty.call(I,d)){if(k.includes(d))continue;g[d]=I[d]}return g}var B=r.Modal=function(){function I(k){var g=k.className,d=k.children,c=k.onEnter,m=b(k,f),i;return c&&(i=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",g,(0,t.computeBoxClassName)(m)]),d,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return I}()},73280:function(A,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),B=["x","y","icon","tooltip","color","children"],I=["icon","color"];function k(N,V){if(N==null)return{};var S={};for(var y in N)if({}.hasOwnProperty.call(N,y)){if(V.includes(y))continue;S[y]=N[y]}return S}function g(N,V){N.prototype=Object.create(V.prototype),N.prototype.constructor=N,d(N,V)}function d(N,V){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,y){return S.__proto__=y,S},d(N,V)}var c=510,m=2,i=function(V){return V.stopPropagation&&V.stopPropagation(),V.preventDefault&&V.preventDefault(),V.cancelBubble=!0,V.returnValue=!1,!1},u=r.NanoMap=function(N){function V(y){var L,w,T,x;x=N.call(this,y)||this;var M=window.innerWidth/2-256,P=window.innerHeight/2-256;return x.state={offsetX:(L=y.offsetX)!=null?L:0,offsetY:(w=y.offsetY)!=null?w:0,dragging:!1,originX:null,originY:null,zoom:(T=y.zoom)!=null?T:1},x.handleDragStart=function(D){x.ref=D.target,x.setState({dragging:!1,originX:D.screenX,originY:D.screenY}),document.addEventListener("mousemove",x.handleDragMove),document.addEventListener("mouseup",x.handleDragEnd),i(D)},x.handleDragMove=function(D){x.setState(function(E){var O=Object.assign({},E),R=D.screenX-O.originX,j=D.screenY-O.originY;return E.dragging?(O.offsetX+=R/O.zoom,O.offsetY+=j/O.zoom,O.originX=D.screenX,O.originY=D.screenY):O.dragging=!0,O}),i(D)},x.handleDragEnd=function(D){x.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",x.handleDragMove),document.removeEventListener("mouseup",x.handleDragEnd),y.onOffsetChange==null||y.onOffsetChange(D,x.state),i(D)},x.handleZoom=function(D,E){x.setState(function(O){var R=Math.min(Math.max(E,1),8);return O.zoom=R,y.onZoom&&y.onZoom(O.zoom),O})},x.handleReset=function(D){x.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,x.handleZoom(D,1),y.onOffsetChange==null||y.onOffsetChange(D,E)})},x}g(V,N);var S=V.prototype;return S.getChildContext=function(){function y(){return{map:{zoom:this.state.zoom}}}return y}(),S.render=function(){function y(){var L=(0,t.useBackend)(this.context),w=L.config,T=this.state,x=T.dragging,M=T.offsetX,P=T.offsetY,D=T.zoom,E=D===void 0?1:D,O=this.props.children,R=this.props.mapUrl||w.map+"_nanomap_z1.png",j=c*E+"px",F={width:j,height:j,"margin-top":P*E+"px","margin-left":M*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:x?"move":"auto"},W={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:F,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(R),style:W}),(0,e.createComponentVNode)(2,a.Box,{children:O})]}),(0,e.createComponentVNode)(2,h,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset}),(0,e.createComponentVNode)(2,p)]})}return y}(),V}(e.Component),s=function(V,S){var y=S.map.zoom,L=V.x,w=V.y,T=V.icon,x=V.tooltip,M=V.color,P=V.children,D=k(V,B),E=m*y,O=(L-1)*E,R=(w-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:R+"px",left:O+"px",width:E+"px",height:E+"px"},D,{children:P})))}),2)};u.Marker=s;var l=function(V,S){var y=S.map.zoom,L=V.icon,w=V.color,T=k(V,I),x=m*y+4/Math.ceil(y/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},T,{children:(0,e.createComponentVNode)(2,a.Icon,{name:L,color:w,fontSize:x+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=l;var h=function(V,S){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function y(L){return L+"x"}return y}(),value:V.zoom,onDrag:function(){function y(L,w){return V.onZoom(L,w)}return y}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function y(L){return V.onReset==null?void 0:V.onReset(L)}return y}()})]})})})})};u.Zoomer=h;var C,v=function(N){function V(y){var L;L=N.call(this,y)||this;var w=(0,t.useBackend)(L.props.context),T=w.act;return L.state={color:L.props.color},L.handleClick=function(x){C!==void 0&&C.setState({color:"blue"}),T("switch_camera",{name:L.props.name}),C=L,L.setState({color:"green"})},L}g(V,N);var S=V.prototype;return S.render=function(){function y(){var L=this.props.x*2*this.props.zoom-this.props.zoom-3,w=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:w+"px",left:L+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return y}(),V}(e.Component);u.NanoButton=v;var p=function(V,S){var y=(0,t.useBackend)(S),L=y.act,w=y.data;return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zchooser",children:[(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-up",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u0432\u044B\u0448\u0435",onClick:function(){function T(){return L("switch_z_level",{z_dir:1})}return T}()})}),(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-down",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u043D\u0438\u0436\u0435",onClick:function(){function T(){return L("switch_z_level",{z_dir:-1})}return T}()})})]})}},74733:function(A,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(B,I){if(B==null)return{};var k={};for(var N in B)if({}.hasOwnProperty.call(B,N)){if(I.includes(N))continue;k[N]=B[N]}return k}var b=r.NoticeBox=function(){function B(I){var k=I.className,N=I.color,d=I.info,c=I.warning,m=I.success,l=I.danger,u=f(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",N&&"NoticeBox--color--"+N,d&&"NoticeBox--type--info",m&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",k])},u)))}return B}();b.defaultHooks=a.pureComponentHooks},59263:function(A,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),f=n(55937);function b(N,d){N.prototype=Object.create(d.prototype),N.prototype.constructor=N,B(N,d)}function B(N,d){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},B(N,d)}/** + */function f(B,I){if(B==null)return{};var k={};for(var g in B)if({}.hasOwnProperty.call(B,g)){if(I.includes(g))continue;k[g]=B[g]}return k}var b=r.NoticeBox=function(){function B(I){var k=I.className,g=I.color,d=I.info,c=I.warning,m=I.success,i=I.danger,u=f(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",g&&"NoticeBox--color--"+g,d&&"NoticeBox--type--info",m&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",k])},u)))}return B}();b.defaultHooks=a.pureComponentHooks},59263:function(A,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),f=n(55937);function b(g,d){g.prototype=Object.create(d.prototype),g.prototype.constructor=g,B(g,d)}function B(g,d){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},B(g,d)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var I=400,k=r.NumberInput=function(N){function d(m){var l;l=N.call(this,m)||this;var u=m.value;return l.inputRef=(0,e.createRef)(),l.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var s=l.props.suppressFlicker;s>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},s))},l.handleDragStart=function(s){var i=l.props.value,h=l.state.editing;h||(document.body.style["pointer-events"]="none",l.ref=s.target,l.setState({dragging:!1,origin:s.screenY,value:i,internalValue:i}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var C=l.state,v=C.dragging,p=C.value,g=l.props.onDrag;v&&g&&g(s,p)},l.props.updateRate||I),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(s){var i=l.props,h=i.minValue,C=i.maxValue,v=i.step,p=i.stepPixelSize;l.setState(function(g){var V=Object.assign({},g),S=V.origin-s.screenY;if(g.dragging){var y=Number.isFinite(h)?h%v:0;V.internalValue=(0,a.clamp)(V.internalValue+S*v/p,h-v,C+v),V.value=(0,a.clamp)(V.internalValue-V.internalValue%v+y,h,C),V.origin=s.screenY}else Math.abs(S)>4&&(V.dragging=!0);return V})},l.handleDragEnd=function(s){var i=l.props,h=i.onChange,C=i.onDrag,v=l.state,p=v.dragging,g=v.value,V=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),p)l.suppressFlicker(),h&&h(s,g),C&&C(s,g);else if(l.inputRef){var S=l.inputRef.current;S.value=V;try{S.focus(),S.select()}catch(y){}}},l}b(d,N);var c=d.prototype;return c.render=function(){function m(){var l=this,u=this.state,s=u.dragging,i=u.editing,h=u.value,C=u.suppressingFlicker,v=this.props,p=v.className,g=v.fluid,V=v.animated,S=v.value,y=v.unit,L=v.minValue,w=v.maxValue,T=v.height,x=v.width,M=v.lineHeight,O=v.fontSize,D=v.format,E=v.onChange,P=v.onDrag,R=S;(s||C)&&(R=h);var j=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!C?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:D}):D?D(R):R,y?" "+y:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",p]),minWidth:x,minHeight:T,lineHeight:M,fontSize:O,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)((R-L)/(w-L)*100,0,100)+"%"}}),2),j,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?void 0:"none",height:T,"line-height":M,"font-size":O},onBlur:function(){function F(W){if(i){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),E&&E(W,z),P&&P(W,z)}}return F}(),onKeyDown:function(){function F(W){if(W.keyCode===13){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),E&&E(W,z),P&&P(W,z);return}if(W.keyCode===27){l.setState({editing:!1});return}}return F}()},null,this.inputRef)]})}return m}(),d}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(A,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(f){var b=f.className,B=f.color,I=f.left,k=f.top,N=k===void 0?.5:k,d=(0,a.classes)(["react-colorful__pointer",b]),c={top:N*100+"%",left:I*100+"%"};return(0,e.createVNode)(1,"div",d,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":B}}),2,{style:c})}return o}()},50186:function(A,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,o(b,B)}function o(b,B){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,k){return I.__proto__=k,I},o(b,B)}var f=r.Popper=function(b){function B(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,B.id+=1,k}t(B,b);var I=B.prototype;return I.componentDidMount=function(){function k(){var N=this,d=this.props,c=d.additionalStyles,m=d.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,u=Object.entries(c);l0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},s))},i.handleDragStart=function(s){var l=i.props.value,h=i.state.editing;h||(document.body.style["pointer-events"]="none",i.ref=s.target,i.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var C=i.state,v=C.dragging,p=C.value,N=i.props.onDrag;v&&N&&N(s,p)},i.props.updateRate||I),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(s){var l=i.props,h=l.minValue,C=l.maxValue,v=l.step,p=l.stepPixelSize;i.setState(function(N){var V=Object.assign({},N),S=V.origin-s.screenY;if(N.dragging){var y=Number.isFinite(h)?h%v:0;V.internalValue=(0,a.clamp)(V.internalValue+S*v/p,h-v,C+v),V.value=(0,a.clamp)(V.internalValue-V.internalValue%v+y,h,C),V.origin=s.screenY}else Math.abs(S)>4&&(V.dragging=!0);return V})},i.handleDragEnd=function(s){var l=i.props,h=l.onChange,C=l.onDrag,v=i.state,p=v.dragging,N=v.value,V=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),p)i.suppressFlicker(),h&&h(s,N),C&&C(s,N);else if(i.inputRef){var S=i.inputRef.current;S.value=V;try{S.focus(),S.select()}catch(y){}}},i}b(d,g);var c=d.prototype;return c.render=function(){function m(){var i=this,u=this.state,s=u.dragging,l=u.editing,h=u.value,C=u.suppressingFlicker,v=this.props,p=v.className,N=v.fluid,V=v.animated,S=v.value,y=v.unit,L=v.minValue,w=v.maxValue,T=v.height,x=v.width,M=v.lineHeight,P=v.fontSize,D=v.format,E=v.onChange,O=v.onDrag,R=S;(s||C)&&(R=h);var j=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!C?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:D}):D?D(R):R,y?" "+y:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",p]),minWidth:x,minHeight:T,lineHeight:M,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)((R-L)/(w-L)*100,0,100)+"%"}}),2),j,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:T,"line-height":M,"font-size":P},onBlur:function(){function F(W){if(l){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),E&&E(W,z),O&&O(W,z)}}return F}(),onKeyDown:function(){function F(W){if(W.keyCode===13){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),E&&E(W,z),O&&O(W,z);return}if(W.keyCode===27){i.setState({editing:!1});return}}return F}()},null,this.inputRef)]})}return m}(),d}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(A,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(f){var b=f.className,B=f.color,I=f.left,k=f.top,g=k===void 0?.5:k,d=(0,a.classes)(["react-colorful__pointer",b]),c={top:g*100+"%",left:I*100+"%"};return(0,e.createVNode)(1,"div",d,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":B}}),2,{style:c})}return o}()},50186:function(A,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,o(b,B)}function o(b,B){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,k){return I.__proto__=k,I},o(b,B)}var f=r.Popper=function(b){function B(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,B.id+=1,k}t(B,b);var I=B.prototype;return I.componentDidMount=function(){function k(){var g=this,d=this.props,c=d.additionalStyles,m=d.options;if(this.renderedContent=document.createElement("div"),c)for(var i=0,u=Object.entries(c);i=N.length)){var m=document.body.offsetHeight-c.getBoundingClientRect().bottom,l=Math.ceil(c.offsetHeight/d);if(m>0){var u=Math.min(N.length,d+Math.max(1,Math.ceil(m/l)));k.setState({visibleElements:u,padding:(N.length-u)*l})}}},k.containerRef=(0,e.createRef)(),k.state={visibleElements:1,padding:0},k}a(b,f);var B=b.prototype;return B.componentDidMount=function(){function I(){this.adjustExtents(),this.intervalId=setInterval(this.adjustExtents,100)}return I}(),B.componentWillUnmount=function(){function I(){clearInterval(this.intervalId)}return I}(),B.render=function(){function I(){var k=this.props.children,N=this.state,d=N.visibleElements,c=N.padding;return(0,e.createVNode)(1,"div","VirtualList",[(0,e.createVNode)(1,"div","VirtualList__Container",Array.isArray(k)?k.slice(0,d):null,0,null,null,this.containerRef),(0,e.createVNode)(1,"div","VirtualList__Padding",null,1,{style:{"padding-bottom":c+"px"}})],4)}return I}(),b}(e.Component)},36036:function(A,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var f=n(55937);r.Box=f.Box;var b=n(96184);r.Button=b.Button;var B=n(18982);r.ByondUi=B.ByondUi;var I=n(66820);r.Chart=I.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var N=n(88894);r.ColorBox=N.ColorBox;var d=n(73379);r.Countdown=d.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var m=n(13605);r.Divider=m.Divider;var l=n(20342);r.DraggableControl=l.DraggableControl;var u=n(87099);r.Dropdown=u.Dropdown;var s=n(39473);r.Flex=s.Flex;var i=n(79646);r.Grid=i.Grid;var h=n(4454);r.Interactive=h.Interactive;var C=n(91225);r.Image=C.Image;var v=n(60218);r.DmIcon=v.DmIcon;var p=n(1331);r.Icon=p.Icon;var g=n(79825);r.ImageButton=g.ImageButton;var V=n(79652);r.Input=V.Input;var S=n(76334);r.Knob=S.Knob;var y=n(78621);r.LabeledControls=y.LabeledControls;var L=n(29319);r.LabeledList=L.LabeledList;var w=n(36077);r.Modal=w.Modal;var T=n(73280);r.NanoMap=T.NanoMap;var x=n(74733);r.NoticeBox=x.NoticeBox;var M=n(59263);r.NumberInput=M.NumberInput;var O=n(33337);r.Pointer=O.Pointer;var D=n(50186);r.Popper=D.Popper;var E=n(92704);r.ProgressBar=E.ProgressBar;var P=n(9075);r.RestrictedInput=P.RestrictedInput;var R=n(11441);r.RoundGauge=R.RoundGauge;var j=n(97079);r.Section=j.Section;var F=n(79911);r.Slider=F.Slider;var W=n(96690);r.Stack=W.Stack;var z=n(36352);r.Table=z.Table;var K=n(85138);r.Tabs=K.Tabs;var G=n(44868);r.TextArea=G.TextArea;var J=n(5169);r.TimeDisplay=J.TimeDisplay;var Q=n(62147);r.Tooltip=Q.Tooltip},76910:function(A,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"VoxCom",freq:1220,color:"#952aa5"}],B=[{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"}],I=r.getGasLabel=function(){function d(c,m){var l=String(c).toLowerCase(),u=B.find(function(s){return s.id===l||s.name.toLowerCase()===l});return u&&u.label||m||c}return d}(),k=r.getGasColor=function(){function d(c){var m=String(c).toLowerCase(),l=B.find(function(u){return u.id===m||u.name.toLowerCase()===m});return l&&l.color}return d}(),N=r.timeAgo=function(){function d(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var u=Math.round(l/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(l>60){var s=Math.round(l/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var i=Math.round(l);return i+" second"+(i===1?"":"s")+" ago"}return"just now"}return d}()},40944:function(A,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var d=r.TextArea=function(c){function m(u,s){var l;l=c.call(this,u,s)||this,l.textareaRef=u.innerRef||(0,e.createRef)(),l.fillerRef=(0,e.createRef)(),l.state={editing:!1};var h=u.dontUseTabForIndent,C=h===void 0?!1:h;return l.handleOnInput=function(v){var p=l.state.editing,N=l.props.onInput;p||l.setEditing(!0),N&&N(v,v.target.value)},l.handleOnChange=function(v){var p=l.state.editing,N=l.props.onChange;N&&N(v,v.target.value)},l.handleKeyPress=function(v){var p=l.state.editing,N=l.props.onKeyPress;p||l.setEditing(!0),N&&N(v,v.target.value)},l.handleKeyDown=function(v){var p=l.state.editing,N=l.props,V=N.onChange,S=N.onInput,y=N.onEnter,L=N.onKeyDown;if(v.keyCode===f.KEY_ENTER){l.setEditing(!1),V&&V(v,v.target.value),S&&S(v,v.target.value),y&&y(v,v.target.value),l.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){l.props.onEscape&&l.props.onEscape(v),l.setEditing(!1),l.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(l.props.value),v.target.blur());return}if(p||l.setEditing(!0),L&&L(v,v.target.value),!C){var w=v.keyCode||v.which;if(w===f.KEY_TAB){v.preventDefault();var T=v.target,x=T.value,M=T.selectionStart,P=T.selectionEnd;v.target.value=x.substring(0,M)+" "+x.substring(P),v.target.selectionEnd=M+1}}},l.handleFocus=function(v){var p=l.state.editing;p||l.setEditing(!0)},l.handleBlur=function(v){var p=l.state.editing,N=l.props.onChange;p&&(l.setEditing(!1),N&&N(v,v.target.value))},l}k(m,c);var i=m.prototype;return i.componentDidMount=function(){function u(){var s=this,l=this.props.value,h=this.textareaRef.current;h&&(h.value=(0,o.toInputValue)(l)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){h.focus(),s.props.autoSelect&&h.select()},1)}return u}(),i.componentDidUpdate=function(){function u(s,l){var h=s.value,C=this.props.value,v=this.textareaRef.current;v&&typeof C=="string"&&h!==C&&(v.value=(0,o.toInputValue)(C))}return u}(),i.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),i.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),i.render=function(){function u(){var s=this.props,l=s.onChange,h=s.onKeyDown,C=s.onKeyPress,v=s.onInput,p=s.onFocus,N=s.onBlur,V=s.onEnter,S=s.value,y=s.maxLength,L=s.placeholder,w=I(s,b),T=w.className,x=w.fluid,M=I(w,B);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",T])},M,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:y},null,this.textareaRef)})))}return u}(),m}(e.Component)},5169:function(A,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(b){return b.length<2?"0"+b:b}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},62147:function(A,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(k,g){k.prototype=Object.create(g.prototype),k.prototype.constructor=k,f(k,g)}function f(k,g){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,c){return d.__proto__=c,d},f(k,g)}var b={modifiers:[{name:"eventListeners",enabled:!1}]},B={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},I=r.Tooltip=function(k){function g(){return k.apply(this,arguments)||this}o(g,k);var d=g.prototype;return d.getDOMNode=function(){function c(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return c}(),d.componentDidMount=function(){function c(){var m=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var u=g.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),g.renderedTooltip=u),g.currentHoveredElement=i,u.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),d.fadeOut=function(){function c(){g.currentHoveredElement===this.getDOMNode()&&(g.currentHoveredElement=void 0,g.renderedTooltip.style.opacity="0")}return c}(),d.renderPopperContent=function(){function c(){var m=this,i=g.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var u=g.singletonPopper;u===void 0?(u=(0,a.createPopper)(g.virtualElement,i,Object.assign({},b,{placement:m.props.position||"auto"})),g.singletonPopper=u):(u.setOptions(Object.assign({},b,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),d.componentDidUpdate=function(){function c(){g.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),d.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),d.render=function(){function c(){return this.props.children}return c}(),g}(e.Component);t=I,I.renderedTooltip=void 0,I.singletonPopper=void 0,I.currentHoveredElement=void 0,I.virtualElement={getBoundingClientRect:function(){function k(){var g,d;return(g=(d=t.currentHoveredElement)==null?void 0:d.getBoundingClientRect())!=null?g:B}return k}()}},46095:function(A,r,n){"use strict";r.__esModule=!0,r.VirtualList=void 0;var e=n(89005);function a(f,b){f.prototype=Object.create(b.prototype),f.prototype.constructor=f,t(f,b)}function t(f,b){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,I){return B.__proto__=I,B},t(f,b)}var o=r.VirtualList=function(f){function b(I){var k;return k=f.call(this,I)||this,k.containerRef=void 0,k.intervalId=void 0,k.adjustExtents=function(){var g=k.props.children,d=k.state.visibleElements,c=k.containerRef.current;if(!(!g||!Array.isArray(g)||!c||d>=g.length)){var m=document.body.offsetHeight-c.getBoundingClientRect().bottom,i=Math.ceil(c.offsetHeight/d);if(m>0){var u=Math.min(g.length,d+Math.max(1,Math.ceil(m/i)));k.setState({visibleElements:u,padding:(g.length-u)*i})}}},k.containerRef=(0,e.createRef)(),k.state={visibleElements:1,padding:0},k}a(b,f);var B=b.prototype;return B.componentDidMount=function(){function I(){this.adjustExtents(),this.intervalId=setInterval(this.adjustExtents,100)}return I}(),B.componentWillUnmount=function(){function I(){clearInterval(this.intervalId)}return I}(),B.render=function(){function I(){var k=this.props.children,g=this.state,d=g.visibleElements,c=g.padding;return(0,e.createVNode)(1,"div","VirtualList",[(0,e.createVNode)(1,"div","VirtualList__Container",Array.isArray(k)?k.slice(0,d):null,0,null,null,this.containerRef),(0,e.createVNode)(1,"div","VirtualList__Padding",null,1,{style:{"padding-bottom":c+"px"}})],4)}return I}(),b}(e.Component)},36036:function(A,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var f=n(55937);r.Box=f.Box;var b=n(96184);r.Button=b.Button;var B=n(18982);r.ByondUi=B.ByondUi;var I=n(66820);r.Chart=I.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var g=n(88894);r.ColorBox=g.ColorBox;var d=n(73379);r.Countdown=d.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var m=n(13605);r.Divider=m.Divider;var i=n(20342);r.DraggableControl=i.DraggableControl;var u=n(87099);r.Dropdown=u.Dropdown;var s=n(39473);r.Flex=s.Flex;var l=n(79646);r.Grid=l.Grid;var h=n(4454);r.Interactive=h.Interactive;var C=n(91225);r.Image=C.Image;var v=n(60218);r.DmIcon=v.DmIcon;var p=n(1331);r.Icon=p.Icon;var N=n(79825);r.ImageButton=N.ImageButton;var V=n(79652);r.Input=V.Input;var S=n(76334);r.Knob=S.Knob;var y=n(78621);r.LabeledControls=y.LabeledControls;var L=n(29319);r.LabeledList=L.LabeledList;var w=n(36077);r.Modal=w.Modal;var T=n(73280);r.NanoMap=T.NanoMap;var x=n(74733);r.NoticeBox=x.NoticeBox;var M=n(59263);r.NumberInput=M.NumberInput;var P=n(33337);r.Pointer=P.Pointer;var D=n(50186);r.Popper=D.Popper;var E=n(92704);r.ProgressBar=E.ProgressBar;var O=n(9075);r.RestrictedInput=O.RestrictedInput;var R=n(11441);r.RoundGauge=R.RoundGauge;var j=n(97079);r.Section=j.Section;var F=n(79911);r.Slider=F.Slider;var W=n(96690);r.Stack=W.Stack;var z=n(36352);r.Table=z.Table;var K=n(85138);r.Tabs=K.Tabs;var G=n(44868);r.TextArea=G.TextArea;var J=n(5169);r.TimeDisplay=J.TimeDisplay;var Q=n(62147);r.Tooltip=Q.Tooltip},76910:function(A,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"VoxCom",freq:1220,color:"#952aa5"}],B=[{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"}],I=r.getGasLabel=function(){function d(c,m){var i=String(c).toLowerCase(),u=B.find(function(s){return s.id===i||s.name.toLowerCase()===i});return u&&u.label||m||c}return d}(),k=r.getGasColor=function(){function d(c){var m=String(c).toLowerCase(),i=B.find(function(u){return u.id===m||u.name.toLowerCase()===m});return i&&i.color}return d}(),g=r.timeAgo=function(){function d(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var i=m-c;if(i>3600){var u=Math.round(i/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(i>60){var s=Math.round(i/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(i);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return d}()},40944:function(A,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(4085),b=function(){return f.keys().map(function(k){return f(k)})},B=r.KitchenSink=function(){function I(k,N){var d=k.panel,c=(0,a.useLocalState)(N,"kitchenSinkTheme"),m=c[0],l=(0,a.useLocalState)(N,"pageIndex",0),u=l[0],s=l[1],i=b(),h=i[u],C=d?o.Pane:o.Window;return(0,e.createComponentVNode)(2,C,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:i.map(function(v,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===u,onClick:function(){function g(){return s(p)}return g}(),children:v.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,C.Content,{scrollable:!0,children:h.meta.render()})})]})})}return I}()},77384:function(A,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** + */var f=n(4085),b=function(){return f.keys().map(function(k){return f(k)})},B=r.KitchenSink=function(){function I(k,g){var d=k.panel,c=(0,a.useLocalState)(g,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(g,"pageIndex",0),u=i[0],s=i[1],l=b(),h=l[u],C=d?o.Pane:o.Window;return(0,e.createComponentVNode)(2,C,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(v,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===u,onClick:function(){function N(){return s(p)}return N}(),children:v.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,C.Content,{scrollable:!0,children:h.meta.render()})})]})})}return I}()},77384:function(A,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -210,7 +210,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=["backend/update","chat/message"],b=r.debugMiddleware=function(){function I(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(N){N.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),N.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),N.ctrl&&N.alt&&N.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(N){return function(d){return N(d)}}}return I}(),B=r.relayMiddleware=function(){function I(k){var N=n(7435),d=location.search==="?external";return d?N.subscribe(function(c){var m=c.type,l=c.payload;m==="relay"&&l.windowId===Byond.windowId&&k.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var l=m.type,u=m.payload,s=m.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(l)&&!s&&!d&&N.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return I}()},19147:function(A,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["backend/update","chat/message"],b=r.debugMiddleware=function(){function I(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(g){g.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),g.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),g.ctrl&&g.alt&&g.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(g){return function(d){return g(d)}}}return I}(),B=r.relayMiddleware=function(){function I(k){var g=n(7435),d=location.search==="?external";return d?g.subscribe(function(c){var m=c.type,i=c.payload;m==="relay"&&i.windowId===Byond.windowId&&k.dispatch(Object.assign({},i.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var i=m.type,u=m.payload,s=m.relayed;if(i===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(i)&&!s&&!d&&g.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return I}()},19147:function(A,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -222,13 +222,13 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var B=(0,t.createLogger)("drag"),I=Byond.windowId,k=!1,N=!1,d=[0,0],c,m,l,u,s,i=r.setWindowKey=function(){function R(j){I=j}return R}(),h=r.getWindowPosition=function(){function R(){return[window.screenLeft,window.screenTop]}return R}(),C=r.getWindowSize=function(){function R(){return[window.innerWidth,window.innerHeight]}return R}(),v=r.setWindowPosition=function(){function R(j){var F=(0,a.vecAdd)(j,d);return Byond.winset(Byond.windowId,{pos:F[0]+","+F[1]})}return R}(),p=r.setWindowSize=function(){function R(j){return Byond.winset(Byond.windowId,{size:j[0]+"x"+j[1]})}return R}(),g=r.getScreenPosition=function(){function R(){return[0-d[0],0-d[1]]}return R}(),V=r.getScreenSize=function(){function R(){return[window.screen.availWidth,window.screen.availHeight]}return R}(),S=function(j,F,W){W===void 0&&(W=50);for(var z=[F],K,G=0;Gue&&(K[J]=ue-F[J],G=!0)}return[G,K]},x=r.dragStartHandler=function(){function R(j){B.log("drag start"),k=!0,m=[window.screenLeft-j.screenX,window.screenTop-j.screenY],document.addEventListener("mousemove",O),document.addEventListener("mouseup",M),O(j)}return R}(),M=function R(j){B.log("drag end"),O(j),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",R),k=!1,y()},O=function(j){k&&(j.preventDefault(),v((0,a.vecAdd)([j.screenX,j.screenY],m)))},D=r.resizeStartHandler=function(){function R(j,F){return function(W){l=[j,F],B.log("resize start",l),N=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}}return R}(),E=function R(j){B.log("resize end",s),P(j),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R),N=!1,y()},P=function(j){N&&(j.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(l,(0,a.vecAdd)([j.screenX,j.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(A,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** +*/var B=(0,t.createLogger)("drag"),I=Byond.windowId,k=!1,g=!1,d=[0,0],c,m,i,u,s,l=r.setWindowKey=function(){function R(j){I=j}return R}(),h=r.getWindowPosition=function(){function R(){return[window.screenLeft,window.screenTop]}return R}(),C=r.getWindowSize=function(){function R(){return[window.innerWidth,window.innerHeight]}return R}(),v=r.setWindowPosition=function(){function R(j){var F=(0,a.vecAdd)(j,d);return Byond.winset(Byond.windowId,{pos:F[0]+","+F[1]})}return R}(),p=r.setWindowSize=function(){function R(j){return Byond.winset(Byond.windowId,{size:j[0]+"x"+j[1]})}return R}(),N=r.getScreenPosition=function(){function R(){return[0-d[0],0-d[1]]}return R}(),V=r.getScreenSize=function(){function R(){return[window.screen.availWidth,window.screen.availHeight]}return R}(),S=function(j,F,W){W===void 0&&(W=50);for(var z=[F],K,G=0;Gue&&(K[J]=ue-F[J],G=!0)}return[G,K]},x=r.dragStartHandler=function(){function R(j){B.log("drag start"),k=!0,m=[window.screenLeft-j.screenX,window.screenTop-j.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",M),P(j)}return R}(),M=function R(j){B.log("drag end"),P(j),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R),k=!1,y()},P=function(j){k&&(j.preventDefault(),v((0,a.vecAdd)([j.screenX,j.screenY],m)))},D=r.resizeStartHandler=function(){function R(j,F){return function(W){i=[j,F],B.log("resize start",i),g=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",O),document.addEventListener("mouseup",E),O(W)}}return R}(),E=function R(j){B.log("resize end",s),O(j),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",R),g=!1,y()},O=function(j){g&&(j.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(i,(0,a.vecAdd)([j.screenX,j.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(A,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return p}(),b,B=!0,I=function p(g,V){if(o){B=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return p(g)});return}B!==g&&(B=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},k=null,N=r.canStealFocus=function(){function p(g){var V=String(g.tagName).toLowerCase();return V==="input"||V==="textarea"}return p}(),d=function(g){c(),k=g,k.addEventListener("blur",c)},c=function p(){k&&(k.removeEventListener("blur",p),k=null)},m=null,l=null,u=[],s=r.addScrollableNode=function(){function p(g){u.push(g)}return p}(),i=r.removeScrollableNode=function(){function p(g){var V=u.indexOf(g);V>=0&&u.splice(V,1)}return p}(),h=function(g){if(!(k||!B))for(var V=document.body;g&&g!==V;){if(u.includes(g)){if(g.contains(m))return;m=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(p){var g=p.target;g!==l&&(l=g,h(g))}),window.addEventListener("focusin",function(p){if(l=null,m=p.target,I(!0),N(p.target)){d(p.target);return}}),window.addEventListener("focusout",function(p){l=null,I(!1,!0)}),window.addEventListener("blur",function(p){l=null,I(!1,!0)}),window.addEventListener("beforeunload",function(p){I(!1)});var C={},v=r.KeyEvent=function(){function p(V,S,y){this.event=V,this.type=S,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!y}var g=p.prototype;return g.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),g.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),g.isDown=function(){function V(){return this.type==="keydown"}return V}(),g.isUp=function(){function V(){return this.type==="keyup"}return V}(),g.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),p}();document.addEventListener("keydown",function(p){if(!N(p.target)){var g=p.keyCode,V=new v(p,"keydown",C[g]);t.emit("keydown",V),t.emit("key",V),C[g]=!0}}),document.addEventListener("keyup",function(p){if(!N(p.target)){var g=p.keyCode,V=new v(p,"keyup");t.emit("keyup",V),t.emit("key",V),C[g]=!1}})},87695:function(A,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return p}(),b,B=!0,I=function p(N,V){if(o){B=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return p(N)});return}B!==N&&(B=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,g=r.canStealFocus=function(){function p(N){var V=String(N.tagName).toLowerCase();return V==="input"||V==="textarea"}return p}(),d=function(N){c(),k=N,k.addEventListener("blur",c)},c=function p(){k&&(k.removeEventListener("blur",p),k=null)},m=null,i=null,u=[],s=r.addScrollableNode=function(){function p(N){u.push(N)}return p}(),l=r.removeScrollableNode=function(){function p(N){var V=u.indexOf(N);V>=0&&u.splice(V,1)}return p}(),h=function(N){if(!(k||!B))for(var V=document.body;N&&N!==V;){if(u.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(p){var N=p.target;N!==i&&(i=N,h(N))}),window.addEventListener("focusin",function(p){if(i=null,m=p.target,I(!0),g(p.target)){d(p.target);return}}),window.addEventListener("focusout",function(p){i=null,I(!1,!0)}),window.addEventListener("blur",function(p){i=null,I(!1,!0)}),window.addEventListener("beforeunload",function(p){I(!1)});var C={},v=r.KeyEvent=function(){function p(V,S,y){this.event=V,this.type=S,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!y}var N=p.prototype;return N.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),N.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),N.isDown=function(){function V(){return this.type==="keydown"}return V}(),N.isUp=function(){function V(){return this.type==="keyup"}return V}(),N.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),p}();document.addEventListener("keydown",function(p){if(!g(p.target)){var N=p.keyCode,V=new v(p,"keydown",C[N]);t.emit("keydown",V),t.emit("key",V),C[N]=!0}}),document.addEventListener("keyup",function(p){if(!g(p.target)){var N=p.keyCode,V=new v(p,"keyup");t.emit("keyup",V),t.emit("key",V),C[N]=!1}})},87695:function(A,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -238,32 +238,32 @@ * @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 I(k,N,d){if(N===void 0&&(N=-t),d===void 0&&(d=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(N*3,c)),l=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),i=a[s],h=k/Math.pow(1e3,u),C=l>N?2+u*3-m:0,v=(0,e.toFixed)(h,C)+" "+i+d;return v.trim()}return I}(),f=r.formatPower=function(){function I(k,N){return N===void 0&&(N=0),o(k,N,"W")}return I}(),b=r.formatMoney=function(){function I(k,N){if(N===void 0&&(N=0),!Number.isFinite(k))return k;var d=(0,e.round)(k,N);N>0&&(d=(0,e.toFixed)(k,N)),d=String(d);var c=d.length,m=d.indexOf(".");m===-1&&(m=c);for(var l="",u=0;u0&&u=0?"+":N<0?"\u2013":"",c=Math.abs(N);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),d+c+" dB"}return I}()},56518:function(A,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var i=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:i})(s)}function f(s,i){if(!i&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var h=o(i);if(h&&h.has(s))return h.get(s);var C={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var g=v?Object.getOwnPropertyDescriptor(s,p):null;g&&(g.get||g.set)?Object.defineProperty(C,p,g):C[p]=s[p]}return C.default=s,h&&h.set(s,C),C}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function I(k,g,d){if(g===void 0&&(g=-t),d===void 0&&(d=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(g*3,c)),i=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),l=a[s],h=k/Math.pow(1e3,u),C=i>g?2+u*3-m:0,v=(0,e.toFixed)(h,C)+" "+l+d;return v.trim()}return I}(),f=r.formatPower=function(){function I(k,g){return g===void 0&&(g=0),o(k,g,"W")}return I}(),b=r.formatMoney=function(){function I(k,g){if(g===void 0&&(g=0),!Number.isFinite(k))return k;var d=(0,e.round)(k,g);g>0&&(d=(0,e.toFixed)(k,g)),d=String(d);var c=d.length,m=d.indexOf(".");m===-1&&(m=c);for(var i="",u=0;u0&&u=0?"+":g<0?"\u2013":"",c=Math.abs(g);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),d+c+" dB"}return I}()},56518:function(A,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var l=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:l})(s)}function f(s,l){if(!l&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var h=o(l);if(h&&h.has(s))return h.get(s);var C={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var N=v?Object.getOwnPropertyDescriptor(s,p):null;N&&(N.get||N.set)?Object.defineProperty(C,p,N):C[p]=s[p]}return C.default=s,h&&h.set(s,C),C}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=(0,t.createLogger)("hotkeys"),B={},I=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},N=function(i){if(i===16)return"Shift";if(i===17)return"Ctrl";if(i===18)return"Alt";if(i===33)return"Northeast";if(i===34)return"Southeast";if(i===35)return"Southwest";if(i===36)return"Northwest";if(i===37)return"West";if(i===38)return"North";if(i===39)return"East";if(i===40)return"South";if(i===45)return"Insert";if(i===46)return"Delete";if(i>=48&&i<=57||i>=65&&i<=90)return String.fromCharCode(i);if(i>=96&&i<=105)return"Numpad"+(i-96);if(i>=112&&i<=123)return"F"+(i-111);if(i===188)return",";if(i===189)return"-";if(i===190)return"."},d=function(i){var h=String(i);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||I.includes(i.code))){h==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var C=N(i.code);if(C){var v=B[C];if(v)return b.debug("macro",v),Byond.command(v);if(i.isDown()&&!k[C]){k[C]=!0;var p='Key_Down "'+C+'"';return b.debug(p),Byond.command(p)}if(i.isUp()&&k[C]){k[C]=!1;var g='Key_Up "'+C+'"';return b.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function s(i){I.push(i)}return s}(),m=r.releaseHotKey=function(){function s(i){var h=I.indexOf(i);h>=0&&I.splice(h,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var i=0,h=Object.keys(k);i0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(b){return b.json()}).then(function(b){return Byond.iconRefMap=b}).catch(function(b){return t.logger.log(b)})}return f}()},1090:function(A,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AICard=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;if(d.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 d.integrity>=75?c="green":d.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:d.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:d.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.laws.map(function(m,l){return(0,e.createComponentVNode)(2,t.Box,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:d.wireless?"check":"times",content:d.wireless?"Enabled":"Disabled",color:d.wireless?"green":"red",onClick:function(){function m(){return N("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:d.radio?"check":"times",content:d.radio?"Enabled":"Disabled",color:d.radio?"green":"red",onClick:function(){function m(){return N("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:d.flushing||d.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return N("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(A,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;if(d.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;(d.stat===2||d.stat===null)&&(c=!1);var m=null;d.integrity>=75?m="green":d.integrity>=25?m="yellow":m="red";var l=!0;return d.integrity>=100&&d.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:d.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:d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.wireless?"times":"check",content:d.wireless?"Disabled":"Enabled",color:d.wireless?"red":"green",onClick:function(){function u(){return N("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.radio?"times":"check",content:d.radio?"Disabled":"Enabled",color:d.radio?"red":"green",onClick:function(){function u(){return N("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||d.active,content:!l||d.active?"Already Repaired":"Repair",onClick:function(){function u(){return N("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:d.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(A,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function N(d,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return N}(),B={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"}},I={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.locked&&!u.siliconUser,i=u.normallyLocked,h=B[u.externalPower]||B[0],C=B[u.chargingStatus]||B[0],v=u.powerChannels||[],p=I[u.malfStatus]||I[0],g=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return l("breaker")}return V}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return l("charge")}return V}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(V){var S=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function y(){return l("channel",S.auto)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function y(){return l("channel",S.on)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function y(){return l("channel",S.off)}return y}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return l(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return l("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return l("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return l("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return l("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(A,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.view_screen,v=h.authenticated_account,p=h.ticks_left_locked_down,g=h.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(C){case 1:V=(0,e.createComponentVNode)(2,B);break;case 2:V=(0,e.createComponentVNode)(2,I);break;case 3:V=(0,e.createComponentVNode)(2,d);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.machine_id,v=h.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 p(){return i("insert_card")}return p}()})})})]})},B=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function v(){return i("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:C===2,onClick:function(){function v(){return i("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)]})},I=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=(0,a.useLocalState)(u,"targetAccNumber",0),v=C[0],p=C[1],g=(0,a.useLocalState)(u,"fundsAmount",0),V=g[0],S=g[1],y=(0,a.useLocalState)(u,"purpose",0),L=y[0],w=y[1],T=h.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:["$",T]}),(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(M,O){return p(O)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(M,O){return S(O)}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(M,O){return w(O)}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 i("transfer",{target_acc_number:v,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=(0,a.useLocalState)(u,"fundsAmount",0),v=C[0],p=C[1],g=h.owner_name,V=h.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function S(){return i("logout")}return S}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function S(y,L){return p(L)}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function S(){return i("withdrawal",{funds_amount:v})}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function S(){return i("view_screen",{view_screen:1})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function S(){return i("view_screen",{view_screen:2})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function S(){return i("view_screen",{view_screen:3})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function S(){return i("balance_statement")}return S}()})})]})],4)},N=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=(0,a.useLocalState)(u,"accountID",null),v=C[0],p=C[1],g=(0,a.useLocalState)(u,"accountPin",null),V=g[0],S=g[1],y=h.machine_id,L=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(T,x){return p(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(T,x){return S(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return i("attempt_auth",{account_num:v,account_pin:V})}return w}()})})]})})},d=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(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(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return i("view_screen",{view_screen:0})}return C}()})}},86423:function(A,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),B=n(321),I=n(5485),k=r.AccountsUplinkTerminal=function(){function h(C,v){var p=(0,t.useBackend)(v),g=p.act,V=p.data,S=V.loginState,y=V.currentPage,L;if(S.logged_in)y===1?L=(0,e.createComponentVNode)(2,d):y===2?L=(0,e.createComponentVNode)(2,s):y===3&&(L=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,I.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.LoginInfo),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return h}(),N=function(C,v){var p=(0,t.useBackend)(v),g=p.data,V=(0,t.useLocalState)(v,"tabIndex",0),S=V[0],y=V[1],L=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:S===0,onClick:function(){function w(){return y(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:S===1,onClick:function(){function w(){return y(1)}return w}(),children:"Department Accounts"})]})})})},d=function(C,v){var p=(0,t.useLocalState)(v,"tabIndex",0),g=p[0];switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,v){var p=(0,t.useBackend)(v),g=p.act,V=p.data,S=V.accounts,y=(0,t.useLocalState)(v,"searchText",""),L=y[0],w=y[1],T=(0,t.useLocalState)(v,"sortId","owner_name"),x=T[0],M=T[1],O=(0,t.useLocalState)(v,"sortOrder",!0),D=O[0],E=O[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,l,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,l,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,l,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,l,{id:"money",children:"Account Balance"})]}),S.filter((0,a.createSearch)(L,function(P){return P.owner_name+"|"+P.account_number+"|"+P.suspended+"|"+P.money})).sort(function(P,R){var j=D?1:-1;return P[x].localeCompare(R[x])*j}).map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+P.suspended,onClick:function(){function R(){return g("view_account_detail",{account_num:P.account_number})}return R}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",P.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.money})]},P.account_number)})]})})})]})},m=function(C,v){var p=(0,t.useBackend)(v),g=p.act,V=p.data,S=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),S.map(function(y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+y.suspended,onClick:function(){function L(){return g("view_account_detail",{account_num:y.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",y.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:y.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:y.money})]},y.account_number)})]})})})})},l=function(C,v){var p=(0,t.useLocalState)(v,"sortId","name"),g=p[0],V=p[1],S=(0,t.useLocalState)(v,"sortOrder",!0),y=S[0],L=S[1],w=C.id,T=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==w&&"transparent",width:"100%",onClick:function(){function x(){g===w?L(!y):(V(w),L(!0))}return x}(),children:[T,g===w&&(0,e.createComponentVNode)(2,o.Icon,{name:y?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(C,v){var p=(0,t.useBackend)(v),g=p.act,V=p.data,S=V.is_printing,y=(0,t.useLocalState)(v,"searchText",""),L=y[0],w=y[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 T(){return g("create_new_account")}return T}()})}),(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 T(x,M){return w(M)}return T}()})})]})},s=function(C,v){var p=(0,t.useBackend)(v),g=p.act,V=p.data,S=V.account_number,y=V.owner_name,L=V.money,w=V.suspended,T=V.transactions,x=V.account_pin,M=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+S+" / "+y,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function O(){return g("back")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",S]}),!!M&&(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:!!M,onClick:function(){function O(){return g("set_account_pin",{account_number:S})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:y}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function O(){return g("toggle_suspension")}return O}()})]})]})})}),(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"})]}),T.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:O.is_deposit?"green":"red",children:["$",O.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.target_name})]},O)})]})})})]})},i=function(C,v){var p=(0,t.useBackend)(v),g=p.act,V=p.data,S=(0,t.useLocalState)(v,"accName",""),y=S[0],L=S[1],w=(0,t.useLocalState)(v,"accDeposit",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return g("back")}return M}()}),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 M(O,D){return L(D)}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function M(O,D){return x(D)}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function M(){return g("finalise_create_account",{holder_name:y,starting_funds:T})}return M}()})]})}},23001:function(A,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),B=n(321),I=n(5485),k=function(h){switch(h){case 0:return"Antagonists";case 1:return"Objectives";case 2:return"Security";case 3:return"All High Value Items";default:return"Something went wrong with this menu, make an issue report please!"}},N=function(h){switch(h){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,u);default:return"Something went wrong with this menu, make an issue report please!"}},d=r.AdminAntagMenu=function(){function i(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.loginState,S=g.currentPage,y=(0,t.useLocalState)(C,"tabIndex",0),L=y[0],w=y[1],T=(0,t.useLocalState)(C,"searchText",""),x=T[0],M=T[1];return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{children:"This menu is a Work in Progress. Some antagonists like Nuclear Operatives and Biohazards will not show up."})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===0,onClick:function(){function O(){w(0)}return O}(),icon:"user",children:"Antagonists"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function O(){w(1)}return O}(),icon:"people-robbery",children:"Objectives"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function O(){w(2)}return O}(),icon:"handcuffs",children:"Security"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===3,onClick:function(){function O(){w(3)}return O}(),icon:"lock",children:"High Value Items"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:k(L),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",width:"300px",onInput:function(){function O(D,E){return M(E)}return O}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function O(){return p("refresh")}return O}(),children:"Refresh"})]}),children:N(L)})})]})})})}return i}(),c=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.antagonists,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId","antag_name"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),O=M[0],D=M[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{id:"name",children:"Mob Name"}),(0,e.createComponentVNode)(2,s,{id:"",children:"Buttons"}),(0,e.createComponentVNode)(2,s,{id:"antag_name",children:"Antagonist Type"}),(0,e.createComponentVNode)(2,s,{id:"status",children:"Status"})]}),V.filter((0,a.createSearch)(y,function(E){return E.name+"|"+E.status+"|"+E.antag_name})).sort(function(E,P){var R=O?1:-1;return E[T]===void 0||E[T]===null?R:P[T]===void 0||P[T]===null?-1*R:typeof E[T]=="number"?(E[T]-P[T])*R:E[T].localeCompare(P[T])*R}).map(function(E,P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:E.body_destroyed?E.name:(0,e.createComponentVNode)(2,o.Button,{color:E.is_hijacker||!E.name?"red":"",tooltip:E.is_hijacker?"Hijacker":"",onClick:function(){function R(){return p("show_player_panel",{mind_uid:E.antag_mind_uid})}return R}(),children:E.name?E.name:"??? (NO NAME)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("pm",{ckey:E.ckey})}return R}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("follow",{datum_uid:E.antag_mind_uid})}return R}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("obs",{mind_uid:E.antag_mind_uid})}return R}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("tp",{mind_uid:E.antag_mind_uid})}return R}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:E.antag_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.status?"red":"grey",children:E.status?E.status:"Alive"})})]},P)})]}):"No Antagonists!"},m=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.objectives,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId2","target_name"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),O=M[0],D=M[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"obj_name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"target_name",children:"Target"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"owner_name",children:"Owner"})]}),V.filter((0,a.createSearch)(y,function(E){return E.obj_name+"|"+E.target_name+"|"+(E.status?"success":"incompleted")+"|"+E.owner_name})).sort(function(E,P){var R=O?1:-1;return E[T]===void 0||E[T]===null||T==="target_name"&&E.no_target?R:P[T]===void 0||P[T]===null||T==="target_name"&&P.no_target?-1*R:typeof E[T]=="number"?(E[T]-P[T])*R:E[T].localeCompare(P[T])*R}).map(function(E,P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:E.obj_desc,onClick:function(){function R(){return p("vv",{uid:E.obj_uid})}return R}(),children:E.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:E.no_target?"":E.track.length?E.track.map(function(R,j){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){return p("follow",{datum_uid:R})}return F}(),children:[E.target_name," ",E.track.length>1?"("+(parseInt(j,10)+1)+")":""]},j)}):"No "+E.target_name+" Found"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.status?"green":"grey",children:E.status?"Success":"Incomplete"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("obj_owner",{owner_uid:E.owner_uid})}return R}(),children:E.owner_name})})]},P)})]}):"No Objectives!"},l=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.security,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId3","health"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),O=M[0],D=M[1],E=function(j){return j.status===2?"red":j.status===1?"orange":j.broken_bone||j.internal_bleeding?"yellow":"grey"},P=function(j){return j.status===2?"Dead":j.status===1?"Unconscious":j.broken_bone&&j.internal_bleeding?"Broken Bone, IB":j.broken_bone?"Broken Bone":j.internal_bleeding?"IB":"Alive"};return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"role",children:"Role"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"antag",children:"Antag"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"health",children:"Health"})]}),V.filter((0,a.createSearch)(y,function(R){return R.name+"|"+R.role+"|"+P(R)+"|"+R.antag})).sort(function(R,j){var F=O?1:-1;return R[T]===void 0||R[T]===null?F:j[T]===void 0||j[T]===null?-1*F:typeof R[T]=="number"?(R[T]-j[T])*F:R[T].localeCompare(j[T])*F}).map(function(R,j){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){return p("show_player_panel",{mind_uid:R.mind_uid})}return F}(),children:R.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:R.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:E(R),children:P(R)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:R.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function F(){p("tp",{mind_uid:R.mind_uid})}return F}(),children:R.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:R.health/R.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:R.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){p("pm",{ckey:R.ckey})}return F}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){p("follow",{datum_uid:R.mind_uid})}return F}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){p("obs",{mind_uid:R.mind_uid})}return F}(),children:"OBS"})]})]},j)})]}):"No Security!"},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.high_value_items,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId4","person"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),O=M[0],D=M[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"person",children:"Carrier"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"loc",children:"Location"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"admin_z",children:"On Admin Z-level"})]}),V.filter((0,a.createSearch)(y,function(E){return E.name+"|"+E.loc})).sort(function(E,P){var R=O?1:-1;return E[T]===void 0||E[T]===null?R:P[T]===void 0||P[T]===null?-1*R:typeof E[T]=="number"?(E[T]-P[T])*R:E[T].localeCompare(P[T])*R}).map(function(E,P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:E.obj_desc,translucent:E.admin_z,onClick:function(){function R(){return p("vv",{uid:E.uid})}return R}(),children:E.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.admin_z?"grey":"",children:E.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.admin_z?"grey":"",children:E.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:E.admin_z?"On Admin Z-level":""})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("follow",{datum_uid:E.uid})}return R}(),children:"FLW"})})]},P)})]}):"No High Value Items!"},s=function(h,C){var v=h.id,p=h.sort_group,g=p===void 0?"sortId":p,V=h.default_sort,S=V===void 0?"antag_name":V,y=h.children,L=(0,t.useLocalState)(C,g,S),w=L[0],T=L[1],x=(0,t.useLocalState)(C,"sortOrder",!0),M=x[0],O=x[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:w!==v&&"transparent",width:"100%",onClick:function(){function D(){w===v?O(!M):(T(v),O(!0))}return D}(),children:[y,w===v&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},39683:function(A,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],b=["A+","A-","B+","B-","AB+","AB-","O+","O-"],B="Empty",I=function(m){var l=m.label,u=m.value,s=m.onCommit,i=m.onClick,h=m.onRClick,C=m.tooltip;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,textAlign:"center",content:u||B,onCommit:s})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-signature",tooltip:C,tooltipPosition:"bottom-end",onClick:i,onContextMenu:h})})]})})},k=r.AgentCard=function(){function c(m,l){var u=(0,a.useLocalState)(l,"tabIndex",0),s=u[0],i=u[1],h=function(){function C(v){switch(v){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,d);default:return(0,e.createComponentVNode)(2,N)}}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:435,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function C(){return i(0)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function C(){return i(1)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),h(s)]})})})}return c}(),N=r.AgentCardInfo=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.registered_name,C=i.sex,v=i.age,p=i.assignment,g=i.job_assets,V=i.job_icon,S=i.associated_account_number,y=i.blood_type,L=i.dna_hash,w=i.fingerprint_hash,T=i.photo,x=i.ai_tracking,M=i.photo_cooldown,O=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill someone else data.")],4),D=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill with random data.")],4);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,I,{label:"Name",value:h,tooltip:O,onCommit:function(){function E(P,R){return s("change_name",{name:R})}return E}(),onClick:function(){function E(){return s("change_name",{option:"Primary"})}return E}(),onRClick:function(){function E(P){P.preventDefault(),s("change_name",{option:"Secondary"})}return E}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:f.map(function(E){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:E.icon,content:E.name,selected:C===E.name,onClick:function(){function P(){return s("change_sex",{sex:E.name})}return P}()})},E.name)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Slider,{fluid:!0,minValue:17,value:v||0,maxValue:300,onChange:function(){function E(P,R){return s("change_age",{age:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function E(){return s("change_occupation")}return E}(),textAlign:"middle",children:p||"[UNSET]"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{tooltip:"Change HUD icon",tooltipPosition:"bottom-end",onClick:function(){function E(){return s("change_occupation",{option:"Primary"})}return E}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{fill:!0,icon:g,icon_state:V,verticalAlign:"bottom",my:"2px",width:"16px"})," "]})})]})}),(0,e.createComponentVNode)(2,I,{label:"Fingerprint",value:w,onCommit:function(){function E(P,R){return s("change_fingerprints",{new_fingerprints:R})}return E}(),onClick:function(){function E(){return s("change_fingerprints",{option:"Primary"})}return E}(),onRClick:function(){function E(P){P.preventDefault(),s("change_fingerprints",{option:"Secondary"})}return E}(),tooltip:D}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[b.map(function(E){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:E,selected:y===E,onClick:function(){function P(){return s("change_blood_type",{new_type:E})}return P}()})},E)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-signature",onClick:function(){function E(){return s("change_blood_type",{option:"Primary"})}return E}()})})]})}),(0,e.createComponentVNode)(2,I,{label:"DNA",value:L,onCommit:function(){function E(P,R){return s("change_dna_hash",{new_dna:R})}return E}(),onClick:function(){function E(){return s("change_dna_hash",{option:"Primary"})}return E}(),onRClick:function(){function E(P){P.preventDefault(),s("change_dna_hash",{option:"Secondary"})}return E}(),tooltip:D}),(0,e.createComponentVNode)(2,I,{label:"Account",value:S||0,onCommit:function(){function E(P,R){return s("change_money_account",{new_account:R})}return E}(),onClick:function(){function E(){return s("change_money_account",{option:"Primary"})}return E}(),onRClick:function(){function E(P){P.preventDefault(),s("change_money_account",{option:"Secondary"})}return E}(),tooltip:D}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!M,tooltip:M?"":"You can't generate a new photo yet.",onClick:function(){function E(){return s("change_photo")}return E}(),children:T?"Update":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.Confirm,{fluid:!0,textAlign:"center",content:"Delete Card Info",confirmContent:"Are you sure?",onClick:function(){function E(){return s("delete_info")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Reset Access",confirmContent:"Are you sure?",onClick:function(){function E(){return s("clear_access")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",onClick:function(){function E(){return s("change_ai_tracking")}return E}(),children:x?"Untrackable":"Trackable"})})]})})})],4)}return c}(),d=r.AgentCardAppearances=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=(0,a.useSharedState)(l,"selectedAppearance",null),C=h[0],v=h[1],p=i.appearances,g=i.id_icon;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:p.map(function(V){return(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:g,dmIconState:V,imageSize:64,compact:!0,selected:V===C,tooltip:V,style:{opacity:V===C&&"1"||"0.5"},onClick:function(){function S(){v(V),s("change_appearance",{new_appearance:V})}return S}()},V)})})})}return c}()},56793:function(A,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return d("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return d("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return d("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return d("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return d("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return d("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return d("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return d("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return d("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return d("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return d("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return d("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return B}()},72475:function(A,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,I),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,N)],4)]})})}return u}(),B=function(s){return s===0?"green":s===1?"orange":"red"},I=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.air,g=v.mode,V=v.atmos_alarm,S=v.locked,y=v.alarmActivated,L=v.rcon,w=v.target_temp,T;return p.danger.overall===0?V===0?T="Optimal":T="Caution: Atmos alert in area":p.danger.overall===1?T="Caution":T="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:B(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!S&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:g===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:B(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:B(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:B(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:B(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:B(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:B(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:B(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:B(p.danger.overall),children:[T,!S&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:y?"Reset Alarm":"Activate Alarm",selected:y,onClick:function(){function x(){return C(y?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,i){var h=(0,a.useLocalState)(i,"tabIndex",0),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return v(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return v(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function p(){return v(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function p(){return v(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},N=function(s,i){var h=(0,a.useLocalState)(i,"tabIndex",0),C=h[0],v=h[1];switch(C){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},d=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.vents;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.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:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function V(){return C("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function V(){return C("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},c=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.scrubbers;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.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:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return C("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function V(){return C("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function V(){return C("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function V(){return C("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function V(){return C("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function V(){return C("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},m=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.modes,g=v.presets,V=v.emagged,S=v.mode,y=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:Object.keys(p).map(function(L){var w=p[L];if(!w.emagonly||V)return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===S,onClick:function(){function T(){return C("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:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===y,onClick:function(){function w(){return C("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=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"})]}),p.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function S(){return C("command",{cmd:"set_threshold",env:V.env,var:V.val})}return S}()})},V.val)})]},g.name)})]})})}},12333:function(A,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.exterior_status,m=d.interior_status,l=d.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return N("force_ext")}return i}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return N("cycle_ext_door")}return i}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:m==="open"?"red":l?"yellow":null,onClick:function(){function i(){return N("force_int")}return i}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return N("cycle_int_door")}return i}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(A,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,B=2,I=4,k=8,N=r.AirlockElectronics=function(){function m(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})})}return m}(),d=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&I,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:I})}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:C&B,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:B})}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:C&k,onClick:function(){function v(){return i("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-down",content:"North",selected:C&b,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:b})}return v}()})})]})]})})},c=function(l,u){var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.selected_accesses,v=h.one_access,p=h.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 g(){return i("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return i("set_one_access",{access:"all"})}return g}()})],4),accesses:p,selectedList:C,accessMod:function(){function g(V){return i("set",{access:V})}return g}(),grantAll:function(){function g(){return i("grant_all")}return g}(),denyAll:function(){function g(){return i("clear_all")}return g}(),grantDep:function(){function g(V){return i("grant_region",{region:V})}return g}(),denyDep:function(){function g(V){return i("deny_region",{region:V})}return g}()})}},47365:function(A,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),B=-1,I=1,k=r.AlertModal=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=i.autofocus,C=i.buttons,v=C===void 0?[]:C,p=i.large_buttons,g=i.message,V=g===void 0?"":g,S=i.timeout,y=i.title,L=(0,t.useLocalState)(l,"selected",0),w=L[0],T=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),M=325+(v.length>2?100:0),O=function(){function D(E){w===0&&E===B?T(v.length-1):w===v.length-1&&E===I?T(0):T(w+E)}return D}();return(0,e.createComponentVNode)(2,b.Window,{title:y,height:x,width:M,children:[!!S&&(0,e.createComponentVNode)(2,a.Loader,{value:S}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function D(E){var P=window.event?E.which:E.keyCode;P===o.KEY_SPACE||P===o.KEY_ENTER?s("choose",{choice:v[w]}):P===o.KEY_ESCAPE?s("cancel"):P===o.KEY_LEFT?(E.preventDefault(),O(B)):(P===o.KEY_TAB||P===o.KEY_RIGHT)&&(E.preventDefault(),O(I))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!h&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,N,{selected:w})]})]})})})]})}return c}(),N=function(m,l){var u=(0,t.useBackend)(l),s=u.data,i=s.buttons,h=i===void 0?[]:i,C=s.large_buttons,v=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:h==null?void 0:h.map(function(g,V){return C&&h.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{button:g,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,d,{button:g,id:V.toString(),selected:p===V})},V)})})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=i.large_buttons,C=m.button,v=m.selected,p=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:h?1:0,pt:h?.33:0,content:C,fluid:!!h,onClick:function(){function g(){return s("choose",{choice:C})}return g}(),selected:v,textAlign:"center",height:!!h&&2,width:!h&&p})}},71824:function(A,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.change_race,l=c.species,u=c.specimen,s=c.change_gender,i=c.gender,h=c.change_eye_color,C=c.change_skin_tone,v=c.change_skin_color,p=c.change_runechat_color,g=c.change_head_accessory_color,V=c.change_hair_color,S=c.change_secondary_hair_color,y=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,T=c.change_body_marking_color,x=c.change_tail_marking_color,M=c.change_head_accessory,O=c.head_accessory_styles,D=c.head_accessory_style,E=c.change_hair,P=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,F=c.change_facial_hair,W=c.facial_hair_styles,z=c.facial_hair_style,K=c.change_head_markings,G=c.head_marking_styles,J=c.head_marking_style,Q=c.change_body_markings,ue=c.body_marking_styles,ie=c.body_marking_style,pe=c.change_tail_markings,te=c.tail_marking_styles,q=c.tail_marking_style,ne=c.change_body_accessory,le=c.body_accessory_styles,ee=c.body_accessory_style,re=c.change_alt_head,oe=c.alt_head_styles,fe=c.alt_head_style,me=!1;return(h||C||v||g||p||V||S||y||L||w||T||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:l.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.specimen,selected:Y.specimen===u,onClick:function(){function ve(){return d("race",{race:Y.specimen})}return ve}()},Y.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function Y(){return d("gender",{gender:"male"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function Y(){return d("gender",{gender:"female"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function Y(){return d("gender",{gender:"plural"})}return Y}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headaccessorystyle,selected:Y.headaccessorystyle===D,onClick:function(){function ve(){return d("head_accessory",{head_accessory:Y.headaccessorystyle})}return ve}()},Y.headaccessorystyle)})}),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:P.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.hairstyle,selected:Y.hairstyle===R,onClick:function(){function ve(){return d("hair",{hair:Y.hairstyle})}return ve}()},Y.hairstyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function Y(){return d("hair_gradient")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function Y(){return d("hair_gradient_offset")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function Y(){return d("hair_gradient_colour")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function Y(){return d("hair_gradient_alpha")}return Y}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.facialhairstyle,selected:Y.facialhairstyle===z,onClick:function(){function ve(){return d("facial_hair",{facial_hair:Y.facialhairstyle})}return ve}()},Y.facialhairstyle)})}),!!K&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headmarkingstyle,selected:Y.headmarkingstyle===J,onClick:function(){function ve(){return d("head_marking",{head_marking:Y.headmarkingstyle})}return ve}()},Y.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ue.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodymarkingstyle,selected:Y.bodymarkingstyle===ie,onClick:function(){function ve(){return d("body_marking",{body_marking:Y.bodymarkingstyle})}return ve}()},Y.bodymarkingstyle)})}),!!pe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:te.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.tailmarkingstyle,selected:Y.tailmarkingstyle===q,onClick:function(){function ve(){return d("tail_marking",{tail_marking:Y.tailmarkingstyle})}return ve}()},Y.tailmarkingstyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:le.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodyaccessorystyle,selected:Y.bodyaccessorystyle===ee,onClick:function(){function ve(){return d("body_accessory",{body_accessory:Y.bodyaccessorystyle})}return ve}()},Y.bodyaccessorystyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:oe.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.altheadstyle,selected:Y.altheadstyle===fe,onClick:function(){function ve(){return d("alt_head",{alt_head:Y.altheadstyle})}return ve}()},Y.altheadstyle)})})]})})})}return B}(),b=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function u(){return d(l.action)}return u}()},l.key)})})}},72285:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.priority||[],m=d.minor||[],l=d.mode||{};return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li","color-bad",u,0,null,u)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)}),Object.keys(l).length===0&&(0,e.createVNode)(1,"li","color-good","All Areas Filtering",16),Object.keys(l).map(function(u){return(0,e.createVNode)(1,"li","color-good",[u,(0,e.createTextVNode)(" mode is "),l[u]],0,null,alert)})],0)})})})}return b}()},65805:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},B=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},I=r.AtmosControl=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=(0,a.useLocalState)(m,"tabIndex",0),h=i[0],C=i[1],v=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,N);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:h===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:h===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return d}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return u("open_alarm",{aref:h.ref})}return C}()})})]},h.name)})]})})},N=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:i.filter(function(h){return h.z===3}).map(function(h){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:h.x,y:h.y,icon:"circle",tooltip:h.name,color:B(h.danger),onClick:function(){function C(){return u("open_alarm",{aref:h.ref})}return C}()},h.ref)})})})}},87816:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.on,m=d.pressure,l=d.max_pressure,u=d.filter_type,s=d.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 i(){return N("power")}return i}()})}),(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 i(){return N("min_pressure")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:m,onDrag:function(){function i(h,C){return N("custom_pressure",{pressure:C})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function i(){return N("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===u,content:i.label,onClick:function(){function h(){return N("set_filter",{filter:i.gas_type})}return h}()},i.label)})})]})})})})}return b}()},57258:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=n(88510),B=n(35840),I=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(i,h){if(i==null)return{};var C={};for(var v in i)if({}.hasOwnProperty.call(i,v)){if(h.includes(v))continue;C[v]=i[v]}return C}function N(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,d(i,h)}function d(i,h){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,v){return C.__proto__=v,C},d(i,h)}var c=r.AtmosGraphMonitor=function(){function i(h,C){var v=(0,a.useBackend)(C),p=v.data,g=(0,a.useLocalState)(C,"tabIndex",0),V=g[0],S=g[1],y=function(){function w(T){switch(T){case 0:return(0,e.createComponentVNode)(2,m,{data:p,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 60 \u0441. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 3 \u0441.",pressureListName:"pressure_history",temperatureListName:"temperature_history"});case 1:return(0,e.createComponentVNode)(2,m,{data:p,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 10 \u043C\u0438\u043D. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 30 \u0441.",pressureListName:"long_pressure_history",temperatureListName:"long_temperature_history"});default:return"WE SHOULDN'T BE HERE!"}}return w}(),L=function(){function w(T){switch(T){case 0:return 180;case 1:return 350;case 2:return 590;case 3:return 830;default:return 870}}return w}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:L(Object.keys(p.sensors).length),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:V===0,onClick:function(){function w(){return S(0)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"area-chart"})," \u0422\u0435\u043A\u0443\u0449\u0438\u0435"]},"View"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function w(){return S(1)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bar-chart"})," \u0418\u0441\u0442\u043E\u0440\u0438\u044F"]},"History")]}),y(V),Object.keys(p.sensors).length===0&&(0,e.createComponentVNode)(2,t.Box,{pt:2,textAlign:"center",textColor:"gray",bold:!0,fontSize:1.3,children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 gas sensor \u0438\u043B\u0438 meter \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E multitool"})]})})})}return i}(),m=function(h){var C=h.data,v=h.info,p=h.pressureListName,g=h.temperatureListName,V=C.sensors||{},S=function(x,M){return V[x][M].slice(-1)[0]},y=function(x,M){return Math.min.apply(Math,V[x][M])},L=function(x,M){return Math.max.apply(Math,V[x][M])},w=function(x,M){return V[x][M].map(function(O,D){return[D,O]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:v}),Object.keys(V).map(function(T){return(0,e.createComponentVNode)(2,t.Section,{title:T,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[g in V[T]&&(0,e.createComponentVNode)(2,t.Box,{mb:4,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430: "+(0,f.toFixed)(S(T,g),0)+"\u041A (MIN: "+(0,f.toFixed)(y(T,g),0)+"\u041A; MAX: "+(0,f.toFixed)(L(T,g),0)+"\u041A)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(T,g),rangeX:[0,w(T,g).length-1],rangeY:[y(T,g)-10,L(T,g)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(T,g).length-2,labelViewBoxSize:400})})]}),p in V[T]&&(0,e.createComponentVNode)(2,t.Box,{mb:-1,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+(0,f.toFixed)(S(T,p),0)+"\u043A\u041F\u0430 (MIN: "+(0,f.toFixed)(y(T,p),0)+"\u043A\u041F\u0430; MAX: "+(0,f.toFixed)(L(T,p),0)+"\u043A\u041F\u0430)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(T,p),rangeX:[0,w(T,p).length-1],rangeY:[y(T,p)-10,L(T,p)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(T,p).length-2,labelViewBoxSize:400})})]})]})},T)})]})},l=function(h,C,v,p){if(h.length===0)return[];var g=(0,b.zipWith)(Math.min).apply(void 0,h),V=(0,b.zipWith)(Math.max).apply(void 0,h);v!==void 0&&(g[0]=v[0],V[0]=v[1]),p!==void 0&&(g[1]=p[0],V[1]=p[1]);var S=function(T,x,M,O){return(T-x)/(M-x)*O},y=(0,b.zipWith)(S),L=(0,b.map)(function(w){return y(w,g,V,C)});return L(h)},u=function(h){for(var C="",v=0;v0){var le=ne[0],ee=ne[ne.length-1];ne.push([q[0]+D,ee[1]]),ne.push([q[0]+D,-D]),ne.push([-D,-D]),ne.push([-D,le[1]])}var re=u(ne);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},te,{children:function(){function oe(fe){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:P}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(Y+1)*(q[1]/(P+1)),x2:q[0],y2:(Y+1)*(q[1]/(P+1)),stroke:W,"stroke-width":K},"horizontal-line-"+Y)}),Array.from({length:j}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:(Y+1)*(q[0]/(j+1)),y1:0,x2:(Y+1)*(q[0]/(j+1)),y2:q[1],stroke:W,"stroke-width":K},"vertical-line-"+Y)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+q[1]+")",fill:T,points:re}),S.map(function(me,Y){return Y===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:ne[Y-1][0],y1:q[1]-ne[Y-1][1],x2:ne[Y][0],y2:q[1]-ne[Y][1],stroke:M,"stroke-width":D},"line-"+Y)}),S.map(function(me,Y){return(0,e.createVNode)(32,"circle",null,null,1,{cx:ne[Y][0],cy:q[1]-ne[Y][1],r:2,fill:"#ffffff",stroke:M,"stroke-width":1},"point-"+Y)}),S.map(function(me,Y){return q[0]>pe&&Y%2===1&&(0,e.createVNode)(32,"text",null,me[1]!==null?me[1].toFixed(0):"N/A",0,{x:ne[Y][0],y:q[1]-ne[Y][1],fill:J,"font-size":ue,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+Y)})],0,{viewBox:"0 0 "+q[0]+" "+q[1]}),2,Object.assign({},fe),null,p.ref))}return oe}()})))}return v}(),h}(e.Component);s.defaultHooks=void 0,s.defaultHooks=B.pureComponentHooks},52977:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.on,l=c.pressure,u=c.max_pressure,s=c.node1_concentration,i=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 h(){return d("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function h(){return d("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:l,onDrag:function(){function h(C,v){return d("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===u,width:2.2,onClick:function(){function h(){return d("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:i})]})})})})}return B}(),b=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=I.node_name,l=I.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(l-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function u(s,i){return d("set_node",{node_name:m,concentration:i/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(l+10)/100})}return u}()})]})}},11748:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.on,m=d.rate,l=d.max_rate,u=d.gas_unit,s=d.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 i(){return N("power")}return i}()})}),(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 i(){return N("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:m,onDrag:function(){function i(h,C){return N("custom_rate",{rate:C})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function i(){return N("max_rate")}return i}()})]})]})})})})}return b}()},69321:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),B=r.AtmosTankControl=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[u].pressure," kpa"]}):"",Object.keys(l[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:l[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"inlet",val:i})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"outlet",val:i})}return u}()})})]})}):""]})})}return I}()},92444:function(A,r,n){"use strict";r.__esModule=!0,r.AugmentMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.AugmentMenu=function(){function k(N,d){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:660,theme:"malfunction",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,B,{context:d})})})})}return k}(),B=function(N){var d=N.context,c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.usable_swarms,s=l.ability_tabs,i=l.known_abilities,h=(0,a.useLocalState)(d,"selectedTab",s[0]),C=h[0],v=h[1],p=(0,a.useLocalState)(d,"searchText",""),g=p[0],V=p[1],S=function(){var M=s.find(function(D){return D.category_name===C.category_name});if(!M)return[];var O=Math.min(M.category_stage,4);return M.abilities.filter(function(D){return D.stage<=O&&(!g||D.name.toLowerCase().includes(g.toLowerCase()))}).sort(function(D,E){return["intruder","destroyer"].includes(C.category_name.toLowerCase())?D.stage-E.stage:0})},y=S(),L=s.find(function(x){return x.category_name===C.category_name}),w=["intruder","destroyer"].includes(C.category_name.toLowerCase()),T=function(M){var O=i.find(function(P){return P.ability_path===M.ability_path}),D=O?O.cost:M.cost,E=O&&O.current_level>0?O.current_level+" / "+O.max_level:"0 / "+M.max_level;return(0,e.createComponentVNode)(2,t.Stack.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{height:"20px",width:"35px",mb:1,textAlign:"center",content:D,disabled:D>u||O&&O.current_level===O.max_level,tooltip:"Purchase this ability?",onClick:function(){function P(){m("purchase",{ability_path:M.ability_path}),v(C)}return P}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:M.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:M.desc||"Description not available"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level: ",(0,e.createVNode)(1,"span",null,E,0,{style:{color:"green"}}),w&&M.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),M.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},M.name)};return(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,style:{marginRight:"10px"},children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Swarms: "),(0,e.createVNode)(1,"span",null,u,0,{style:{color:"green"}})],4),w&&L&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Category Stage: "),(0,e.createVNode)(1,"span",null,Math.min(L.category_stage,4),0,{style:{color:"green"}})],4)]}),(0,e.createVNode)(1,"div","Section__buttons",(0,e.createComponentVNode)(2,t.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function x(M,O){return V(O)}return x}(),value:g}),2)],4,{style:{display:"flex",alignItems:"center"}}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[s.map(function(x){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name===x.category_name,onClick:function(){function M(){v(x),V("")}return M}(),children:(0,f.capitalize)(x.category_name)},x.category_name)}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name==="upgrades",onClick:function(){function x(){return v({category_name:"upgrades"})}return x}(),children:"Upgrades"},"upgrades")]}),C.category_name==="upgrades"?(0,e.createComponentVNode)(2,I,{act:m,abilityTabs:s,knownAbilities:i,usableSwarms:u}):(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:y.map(T)})]})},I=function(N){var d=N.act,c=N.abilityTabs,m=N.knownAbilities,l=N.usableSwarms,u=m.filter(function(i){return i.current_levell,tooltip:"Upgrade this ability?",onClick:function(){function v(){return d("purchase",{ability_path:h.ability_path})}return v}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:h.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:h.upgrade_text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level:"," ",(0,e.createVNode)(1,"span",null,h.current_level+" / "+h.max_level,0,{style:{color:"green"}}),C&&C.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),C.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},h.name)};return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:u.map(s)})}},59179:function(A,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),B=n(25328),I=function(d,c,m,l){return d.requirements===null?!0:!(d.requirements.metal*l>c||d.requirements.glass*l>m)},k=r.Autolathe=function(){function N(d,c){var m=(0,o.useBackend)(c),l=m.act,u=m.data,s=u.total_amount,i=u.max_amount,h=u.metal_amount,C=u.glass_amount,v=u.busyname,p=u.busyamt,g=u.showhacked,V=u.buildQueue,S=u.buildQueueLen,y=u.recipes,L=u.categories,w=(0,o.useSharedState)(c,"category",0),T=w[0],x=w[1];T===0&&(T="Tools");var M=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),E=(0,o.useSharedState)(c,"search_text",""),P=E[0],R=E[1],j=(0,B.createSearch)(P,function(K){return K.name}),F="";S>0&&(F=V.map(function(K,G){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[G][0],onClick:function(){function J(){return l("remove_from_queue",{remove_from_queue:V.indexOf(K)+1})}return J}()},K)},G)}));var W=(0,a.flow)([(0,t.filter)(function(K){return(K.category.indexOf(T)>-1||P)&&(u.showhacked||!K.hacked)}),P&&(0,t.filter)(j),(0,t.sortBy)(function(K){return K.name.toLowerCase()})])(y),z="Build";return P?z="Results for: '"+P+"':":T&&(z="Build ("+T+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:T,onSelected:function(){function K(G){return x(G)}return K}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,J){return R(J)}return K}(),mb:1}),W.map(function(K){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+K.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===1,disabled:!I(K,u.metal_amount,u.glass_amount,1),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:1})}return G}(),children:(0,B.toTitleCase)(K.name)}),K.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===10,disabled:!I(K,u.metal_amount,u.glass_amount,10),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:10})}return G}(),children:"10x"}),K.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===25,disabled:!I(K,u.metal_amount,u.glass_amount,25),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:25})}return G}(),children:"25x"}),K.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===K.max_multiplier,disabled:!I(K,u.metal_amount,u.glass_amount,K.max_multiplier),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:K.max_multiplier})}return G}(),children:[K.max_multiplier,"x"]}),K.requirements&&Object.keys(K.requirements).map(function(G){return(0,B.toTitleCase)(G)+": "+K.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},K.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:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[F,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function K(){return l("clear_queue")}return K}()})]})]})]})})})}return N}()},29943:function(A,r,n){"use strict";r.__esModule=!0,r.Autolathe220=void 0;var e=n(89005),a=n(25328),t=n(88510),o=n(64795),f=n(72253),b=n(36036),B=n(98595),I="icons/obj/stacks/minerals.dmi",k=["metal","glass"],N=function(C,v,p,g){return C.requirements===null?!0:!(C.requirements.metal*g>v||C.requirements.glass*g>p)},d=function(C,v){var p=C*v/2e3;return p===0?0:p<.01&&p>0?(0,e.createComponentVNode)(2,b.Box,{fontSize:.75,children:"< 0.01"}):Math.floor(p*100)/100},c=r.Autolathe220=function(){function h(C,v){var p=(0,f.useSharedState)(v,"category","Tools"),g=p[0],V=p[1];return(0,e.createComponentVNode)(2,B.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m,{category:g,setCategory:V})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"55%",children:(0,e.createComponentVNode)(2,l,{category:g})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,i)]})})]})})})}return h}(),m=function(C,v){var p=(0,f.useBackend)(v),g=p.data,V=C.category,S=C.setCategory,y=g.categories,L=["All"].concat(y);return(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Categories",children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{mb:.5,height:"2.5em",color:"blue",selected:w===V,onClick:function(){function T(){return S(w)}return T}(),children:w},w)})})})},l=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.metal_amount,y=V.glass_amount,L=V.recipes,w=C.category,T=(0,f.useSharedState)(v,"searchText",""),x=T[0],M=T[1],O=(0,o.flow)([(0,t.filter)(function(P){return w==="All"||P.category.includes(w)||x&&(V.showhacked||!P.hacked)}),x&&(0,t.filter)((0,a.createSearch)(x,function(P){return P.name})),(0,t.sortBy)(function(P){return P.name.toLowerCase()})])(L),D=function(R,j){return(0,e.createComponentVNode)(2,b.Button,{translucent:!0,tooltip:E(R,j),tooltipPosition:"top",disabled:!N(R,S,y,j),onClick:function(){function F(){return g("make",{make:R.uid,multiplier:j})}return F}(),children:[j,"x"]})},E=function(R,j){return(0,e.createFragment)(k.map(function(F){return R.requirements[F]&&(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:I,dmIconState:"sheet-"+F,imageSize:32,children:d(R.requirements[F],j)},F)}),0)};return(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Build ("+w+")",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function P(R,j){return M(j)}return P}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{mt:.5,mb:-2.33,grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:O.map(function(P){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:P.image,imageSize:32,textAlign:"left",color:P.category.includes("hacked")&&"brown",tooltip:E(P,1),tooltipPosition:"top",disabled:!N(P,S,y,1),buttons:P.max_multiplier>1&&(0,e.createFragment)([P.max_multiplier>=10&&D(P,10),P.max_multiplier>=25&&D(P,25),P.max_multiplier>25&&D(P,P.max_multiplier)],0),onClick:function(){function R(){return g("make",{make:P.uid,multiplier:1})}return R}(),children:P.name},P.name)})})})]})})},u=function(C,v){var p=(0,f.useBackend)(v),g=p.data,V=g.metal_amount,S=g.glass_amount,y=g.fill_percent,L=function(T,x){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,imageSize:32,dmIcon:I,dmIconState:"sheet-"+T,color:"nope",buttons:(0,e.createComponentVNode)(2,b.Box,{backgroundColor:"rgba(255, 255, 255, 0.05)",width:"45px",children:d(x,1)}),children:(0,a.toTitleCase)(T)})};return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Materials",children:[L("metal",V),L("glass",S),(0,e.createComponentVNode)(2,b.ProgressBar,{minValue:0,value:y,maxValue:100,children:["Storage ",y,"% full"]})]})})},s=function(C,v){var p=(0,f.useBackend)(v),g=p.data,V=g.recipes,S=g.busyname,y=g.busyamt,L=V.find(function(w){return w.name===S});return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Building",children:(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,color:S&&"green",base64:L==null?void 0:L.image,imageSize:32,children:S?y>1?S+" x"+y:S:"Nothing"})})})},i=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.recipes,y=V.buildQueue,L=V.buildQueueLen,w;return L>0&&(w=y.map(function(T,x){var M=S.find(function(O){return O.name===y[x][0]});return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:M.image,imageSize:32,buttons:(0,e.createComponentVNode)(2,b.Button,{translucent:!0,width:"32px",icon:"times",iconColor:"red",onClick:function(){function O(){return g("remove_from_queue",{remove_from_queue:y.indexOf(T)+1})}return O}()},T),children:[M.name," ",Number(y[x][1])>1&&"x"+y[x][1]]},x)})),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Queue "+(L>0?L:""),children:w})}),(0,e.createComponentVNode)(2,b.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,b.Section,{fitted:!0,p:.75,children:(0,e.createComponentVNode)(2,b.Button,{fluid:!0,translucent:!L,color:"red",icon:"trash-can",disabled:!L,onClick:function(){function T(){return g("clear_queue")}return T}(),children:"Clear Queue"})})})]})})}},5147:function(A,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.implant,m=d.contains_case,l=d.gps,u=d.tag,s=(0,a.useLocalState)(I,"newTag",u),i=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function C(){return N("eject_case")}return C}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return N("tag",{newtag:i})}return C}(),onInput:function(){function C(v,p){return h(p)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===i,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return N("tag",{newtag:i})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(A,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.config,i=u.container,h=u.processing,C=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:h,name:C}),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),i?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,B)]})})})}return d}(),B=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."]})})})},I=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.biomass,h=s.container,C=s.container_curr_reagents,v=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:i}),(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:"}),h?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.has_plants,h=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!i,tooltip:i?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!h,tooltip:h?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!i,tooltip:i?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},N=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.biomass,h=s.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),v=C[0],p=C[1],g=Object.entries(h).map(function(V,S){var y=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:y.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*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:i.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,e.createComponentVNode)(2,t.Stack,{mb:"30px",fontsize:"256px",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"skull",size:14,mb:"64px"}),(0,e.createVNode)(1,"br"),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})}return k}(),B=r.BluespaceTap=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.product||[],s=l.desiredMiningPower,i=l.miningPower,h=l.points,C=l.totalPoints,v=l.powerUse,p=l.availablePower,g=l.emagged,V=l.autoShutown,S=l.stabilizers,y=l.stabilizerPower,L=l.stabilizerPriority,w=s>i&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:V&&!g?"toggle-on":"toggle-off",content:"Auto shutdown",color:V&&!g?"green":"red",disabled:!!g,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){function T(){return m("auto_shutdown")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:S&&!g?"toggle-on":"toggle-off",content:"Stabilizers",color:S&&!g?"green":"red",disabled:!!g,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){function T(){return m("stabilizers")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:L&&!g?"toggle-on":"toggle-off",content:"Stabilizer priority",color:L&&!g?"green":"red",disabled:!!g,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){function T(){return m("stabilizer_priority")}return T}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Mining Power",children:(0,f.formatPower)(s)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{labelStyle:{"vertical-align":"top"},label:"Set Desired Mining Power",children:(0,e.createComponentVNode)(2,t.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",disabled:s===0||g,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:0})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:s===0||g,onClick:function(){function T(){return m("set",{set_power:s-1e7})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:s===0||g,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:s-1e6})}return T}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mx:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{disabled:g,minvalue:0,value:s,maxvalue:1/0,step:1,onChange:function(){function T(x,M){return m("set",{set_power:M})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:s+1e6})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:s+1e7})}return T}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(p)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:C})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:T.price>=h,onClick:function(){function x(){return m("vend",{target:T.key})}return x}(),content:T.price})},T.key)})})})})]})})]})})})}return k}(),I=r.Alerts=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.product||[],s=l.miningPower,i=l.stabilizerPower,h=l.emagged,C=l.safeLevels,v=l.autoShutown,p=l.stabilizers,g=l.overhead;return(0,e.createFragment)([!v&&!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),h?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):s<=15e6?"":p?s>i+15e6?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return k}()},33758:function(A,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),B=[["good","Alive"],["average","Critical"],["bad","DEAD"]],I=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],N={average:[.25,.5],bad:[.5,1/0]},d=function(S,y){for(var L=[],w=0;w0?S.filter(function(y){return!!y}).reduce(function(y,L){return(0,e.createFragment)([y,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},l=r.BodyScanner=function(){function V(S,y){var L=(0,o.useBackend)(y),w=L.data,T=w.occupied,x=w.occupant,M=x===void 0?{}:x,O=T?(0,e.createComponentVNode)(2,u,{occupant:M}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:O})})}return V}(),u=function(S){var y=S.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:y}),(0,e.createComponentVNode)(2,i,{occupant:y}),(0,e.createComponentVNode)(2,h,{occupant:y}),(0,e.createComponentVNode)(2,v,{organs:y.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:y.intOrgan})]})},s=function(S,y){var L=(0,o.useBackend)(y),w=L.act,T=L.data,x=T.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function M(){return w("print_p")}return M}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function M(){return w("ejectify")}return M}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:B[x.stat][0],children:B[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(M){return M.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},i=function(S){var y=S.occupant;return y.hasBorer||y.blind||y.colourblind||y.nearsighted||y.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:I.map(function(L,w){if(y[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},h=function(S){var y=S.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:d(k,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:y[L[1]],marginBottom:T100)&&"average"||!!y.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(y.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:y.maxHealth,mt:L>0&&"0.5rem",value:y.totalLoss/y.maxHealth,ranges:N,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(y.totalLoss)]})}),!!y.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(y.bruteLoss)]})}),!!y.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(y.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!y.internalBleeding&&"Internal bleeding",!!y.burnWound&&"Critical tissue burns",!!y.lungRuptured&&"Ruptured lung",!!y.status.broken&&y.status.broken,m(y.germ_level),!!y.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!y.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!y.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!y.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(y.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(S){return S.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),S.organs.map(function(y,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!y.dead&&"bad"||y.germ_level>100&&"average"||y.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(y.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:y.maxHealth,value:y.damage/y.maxHealth,mt:L>0&&"0.5rem",ranges:N,children:(0,a.round)(y.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(y.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([y.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),y.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!y.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(A,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),B=r.BookBinder=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.selectedbook,u=m.book_categories,s=[];return u.map(function(i){return s[i.description]=i.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 i(){return c("print_book")}return i}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function i(){return(0,f.modalOpen)(N,"edit_selected_title")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function i(){return(0,f.modalOpen)(N,"edit_selected_author")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(i){return i.description}),onSelected:function(){function i(h){return c("toggle_binder_category",{category_id:s[h]})}return i}()})})}),(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 i(){return(0,f.modalOpen)(N,"edit_selected_summary")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(i){return l.categories.includes(i.category_id)}).map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.description,selected:!0,icon:"unlink",onClick:function(){function h(){return c("toggle_binder_category",{category_id:i.category_id})}return h}()},i.category_id)})]})})]})})})]})}return I}()},61925:function(A,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(d){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(l){return l.modes.includes(d)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function N(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),i=s[0],h=s[1],C={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},v=function(){function p(g){return C[g]?(0,e.createComponentVNode)(2,B,{model:C[g]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:i===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,g){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===g,onClick:function(){function V(){return h(g)}return V}(),children:C[g]},g)})})}),v(i)]})})})}return N}(),B=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return s[d.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[d.model]}):(0,e.createComponentVNode)(2,I,{model:[d.model]})},I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[d.model]," detected"]})})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[d.model].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.on?f(i.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function h(){return l("interface",{botref:i.UID})}return h}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function h(){return l("call",{botref:i.UID})}return h}()})})]},i.UID)})]})})})}},20464:function(A,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,h=c.canhack,C=c.emagged,v=c.remote_disabled,p=c.painame,g=c.cleanblood,V=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:l,onClick:function(){function S(){return d("blood")}return S}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function S(){return d("area")}return S}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:l,onClick:function(){function S(){return d("ejectpai")}return S}()})})]})})}return B}()},69479:function(A,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.noaccess,l=c.painame,u=c.hullplating,s=c.replace,i=c.eat,h=c.make,C=c.fixfloor,v=c.nag_empty,p=c.magnet,g=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:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return d("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return d("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return d("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Finds tiles",disabled:m,onClick:function(){function V(){return d("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return d("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return d("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return d("anchored")}return V}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function V(){return d("ejectpai")}return V}()})})]})})}return B}()},59887:function(A,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.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 B}()},80063:function(A,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.locked,l=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,h=c.canhack,C=c.emagged,v=c.remote_disabled,p=c.painame,g=c.shut_up,V=c.declare_crit,S=c.stationary_mode,y=c.heal_threshold,L=c.injection_amount,w=c.use_beaker,T=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:!g,disabled:l,onClick:function(){function M(){return d("toggle_speaker")}return M}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:l,onClick:function(){function M(){return d("toggle_critical_alerts")}return M}()})]}),(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:y.value,minValue:y.min,maxValue:y.max,step:5,disabled:l,onChange:function(){function M(O,D){return d("set_heal_threshold",{target:D})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function M(O){return O+"u"}return M}(),disabled:l,onChange:function(){function M(O,D){return d("set_injection_amount",{target:D})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:l,onClick:function(){function M(){return d("toggle_use_beaker")}return M}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function M(){return d("eject_reagent_glass")}return M}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:T,disabled:l,onClick:function(){function M(){return d("toggle_treat_viral")}return M}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:S,disabled:l,onClick:function(){function M(){return d("toggle_stationary_mode")}return M}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:l,onClick:function(){function M(){return d("ejectpai")}return M}()})})]})})})}return B}()},74439:function(A,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.noaccess,l=c.painame,u=c.check_id,s=c.check_weapons,i=c.check_warrant,h=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return d("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return d("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return d("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return d("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return d("arrdeclare")}return v}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function v(){return d("ejectpai")}return v}()})})]})})}return B}()},10833:function(A,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,N){var d=k.cell,c=(0,o.useBackend)(N),m=c.act,l=d.cell_id,u=d.occupant,s=d.crimes,i=d.brigged_by,h=d.time_left_seconds,C=d.time_set_seconds,v=d.ref,p="";h>0&&(p+=" BrigCells__listRow--active");var g=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},b=function(k){var N=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),N.map(function(d){return(0,e.createComponentVNode)(2,f,{cell:d},d.ref)})]})},B=r.BrigCells=function(){function I(k,N){var d=(0,o.useBackend)(N),c=d.act,m=d.data,l=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:l})})})})})}return I}()},45761:function(A,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;d.nameText=d.occupant,d.timing&&(d.prisoner_hasrec?d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.occupant}):d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d.occupant}));var c="pencil-alt";d.prisoner_name&&(d.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var k=function(l,u){var s,i;if(!u)return[];var h=l.findIndex(function(C){return C.name===u.name});return[(s=l[h-1])==null?void 0:s.name,(i=l[h+1])==null?void 0:i.name]},N=function(l,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(i){return i.name});return(0,t.flow)([(0,a.filter)(function(i){return i==null?void 0:i.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(i){return i.name})])(l)},d=r.CameraConsole=function(){function m(l,u){var s=(0,b.useBackend)(u),i=s.act,h=s.data,C=s.config,v=h.mapRef,p=h.activeCamera,g=N(h.cameras),V=k(g,p),S=V[0],y=V[1];return(0,e.createComponentVNode)(2,I.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-left",disabled:!S,onClick:function(){function L(){return i("switch_camera",{name:S})}return L}()}),(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-right",disabled:!y,onClick:function(){function L(){return i("switch_camera",{name:y})}return L}()})],4),(0,e.createComponentVNode)(2,B.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,u){var s=(0,b.useBackend)(u),i=s.act,h=s.data,C=(0,b.useLocalState)(u,"searchText",""),v=C[0],p=C[1],g=h.activeCamera,V=N(h.cameras,v);return(0,e.createComponentVNode)(2,B.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{children:(0,e.createComponentVNode)(2,B.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function S(y,L){return p(L)}return S}()})}),(0,e.createComponentVNode)(2,B.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,B.Section,{fill:!0,scrollable:!0,children:V.map(function(S){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&S.name===g.name&&"Button--selected"]),S.name.trimLongStr(23),0,{title:S.name,onClick:function(){function y(){return i("switch_camera",{name:S.name})}return y}()},S.name)})})})]})}return m}()},39222:function(A,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),f=n(25328),b=n(72253),B=n(36036),I=n(98595),k=function(u,s){var i,h;if(!s)return[];var C=u.findIndex(function(v){return v.name===s.name});return[(i=u[C-1])==null?void 0:i.name,(h=u[C+1])==null?void 0:h.name]},N=function(u,s){s===void 0&&(s="");var i=(0,f.createSearch)(s,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),s&&(0,a.filter)(i),(0,a.sortBy)(function(h){return h.name})])(u)},d=r.CameraConsole220=function(){function l(u,s){var i=(0,b.useLocalState)(s,"tabIndex",0),h=i[0],C=i[1],v=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,I.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.Stack,{children:(0,e.createComponentVNode)(2,B.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{width:h===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,B.Tabs,{fluid:!0,ml:h===1?1:0,mt:h===1?1:0,children:[(0,e.createComponentVNode)(2,B.Tabs.Tab,{selected:h===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,B.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,B.Tabs.Tab,{selected:h===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,B.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(h)]})})})})}return l}(),c=r.CameraConsoleMapContent=function(){function l(u,s){var i=(0,b.useBackend)(s),h=i.act,C=i.data,v=N(C.cameras),p=(0,b.useLocalState)(s,"zoom",1),g=p[0],V=p[1],S=C.mapRef,y=C.activeCamera,L=C.stationLevel,w=C.mapUrl,T=C.selected_z_level,x=k(v,y),M=x[0],O=x[1];return(0,e.createComponentVNode)(2,B.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",style:{flex:"0 0 474px"},children:(0,e.createComponentVNode)(2,B.NanoMap,{onZoom:function(){function D(E){return V(E)}return D}(),mapUrl:w,children:v.filter(function(D){return D.z===(Number(T)||L)}).map(function(D){return(0,e.createComponentVNode)(2,B.NanoMap.NanoButton,{activeCamera:y,x:D.x,y:D.y,context:s,zoom:g,icon:"circle",tooltip:D.name,name:D.name,color:"blue",status:D.status},D.ref)})})}),(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",m:.1,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),y&&y.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-left",disabled:!M,onClick:function(){function D(){return h("switch_camera",{name:M})}return D}()}),(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-right",disabled:!O,onClick:function(){function D(){return h("switch_camera",{name:O})}return D}()})],4)],4),(0,e.createComponentVNode)(2,B.ByondUi,{className:"CameraConsole__map",overflow:"hidden",params:{id:S,type:"map"}})]})]})}return l}(),m=r.CameraConsoleOldContent=function(){function l(u,s){var i=(0,b.useBackend)(s),h=i.act,C=i.data,v=i.config,p=C.mapRef,g=C.activeCamera,V=(0,b.useLocalState)(s,"searchText",""),S=V[0],y=V[1],L=N(C.cameras,S),w=k(L,g),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,B.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{children:(0,e.createComponentVNode)(2,B.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function M(O,D){return y(D)}return M}()})}),(0,e.createComponentVNode)(2,B.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B.Section,{fill:!0,scrollable:!0,children:L.map(function(M){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",M.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",g&&M.name===g.name&&"Button--selected"]),M.name,0,{title:M.name,onClick:function(){function O(){return h("switch_camera",{name:M.name})}return O}()},M.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),g&&g.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-left",disabled:!T,onClick:function(){function M(){return h("switch_camera",{name:T})}return M}()}),(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function M(){return h("switch_camera",{name:x})}return M}()})],4),(0,e.createComponentVNode)(2,B.ByondUi,{className:"CameraConsole__map",params:{id:p,type:"map"}})],4)]})}return l}()},52927:function(A,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),B=r.Canister=function(){function I(k,N){var d=(0,t.useBackend)(N),c=d.act,m=d.data,l=m.portConnected,u=m.tankPressure,s=m.releasePressure,i=m.defaultReleasePressure,h=m.minReleasePressure,C=m.maxReleasePressure,v=m.valveOpen,p=m.name,g=m.canLabel,V=m.colorContainer,S=m.color_index,y=m.hasHoldingTank,L=m.holdingTank,w="";S.prim&&(w=V.prim.options[S.prim].name);var T="";S.sec&&(T=V.sec.options[S.sec].name);var x="";S.ter&&(x=V.ter.options[S.ter].name);var M="";S.quart&&(M=V.quart.options[S.quart].name);var O=[],D=[],E=[],P=[],R=0;for(R=0;Rp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:i.cooldown_time||!p.can_close,onClick:function(){function g(){return s("make_job_unavailable",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!p.can_open,onClick:function(){function g(){return s("make_job_available",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:i.cooldown_time||!p.can_prioritize,onClick:function(){function g(){return s("prioritize_job",{job:p.title})}return g}()})})]},p.title)})]})})]}):v=(0,e.createComponentVNode)(2,I);break;case 2:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,I):i.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function p(g){return s("set",{access:g})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(g){return s("grant_region",{region:g})}return p}(),denyDep:function(){function p(g){return s("deny_region",{region:g})}return p}()}):v=(0,e.createComponentVNode)(2,k);break;case 3:i.authenticated?i.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:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),i.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!i.authenticated||i.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):v=(0,e.createComponentVNode)(2,N):v=(0,e.createComponentVNode)(2,I);break;case 4:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,I):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"})]}),i.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function g(){return s("remote_demote",{remote_demote:p.name})}return g}()})})]},p.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:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(A,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),B=n(25328),I=r.CargoConsole=function(){function u(s,i){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return u}(),k=function(s,i){var h=(0,o.useLocalState)(i,"contentsModal",null),C=h[0],v=h[1],p=(0,o.useLocalState)(i,"contentsModalTitle",null),g=p[0],V=p[1];if(C!==null&&g!==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,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(S){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",S]},S)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function S(){v(null),V(null)}return S}()})})]})},N=function(s,i){var h=(0,o.useBackend)(i),C=h.act,v=h.data,p=v.is_public,g=v.timeleft,V=v.moving,S=v.at_station,y,L;return!V&&!S?(y="Docked off-station",L="Call Shuttle"):!V&&S?(y="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",g!==1?y="Shuttle is en route (ETA: "+g+" minutes)":y="Shuttle is en route (ETA: "+g+" 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:y}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return C("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return C("showMessages")}return w}()})]})]})})})},d=function(s,i){var h,C=(0,o.useBackend)(i),v=C.act,p=C.data,g=p.accounts,V=(0,o.useLocalState)(i,"selectedAccount"),S=V[0],y=V[1],L=[];return g.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(w){return w.name}),selected:(h=g.filter(function(w){return w.account_UID===S})[0])==null?void 0:h.name,onSelected:function(){function w(T){return y(L[T])}return w}()}),g.filter(function(w){return w.account_UID===S}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},c=function(s,i){var h=(0,o.useBackend)(i),C=h.act,v=h.data,p=v.requests,g=v.categories,V=v.supply_packs,S=(0,o.useSharedState)(i,"category","Emergency"),y=S[0],L=S[1],w=(0,o.useSharedState)(i,"search_text",""),T=w[0],x=w[1],M=(0,o.useLocalState)(i,"contentsModal",null),O=M[0],D=M[1],E=(0,o.useLocalState)(i,"contentsModalTitle",null),P=E[0],R=E[1],j=(0,B.createSearch)(T,function(J){return J.name}),F=(0,o.useLocalState)(i,"selectedAccount"),W=F[0],z=F[1],K=(0,a.flow)([(0,t.filter)(function(J){return J.cat===g.filter(function(Q){return Q.name===y})[0].category||T}),T&&(0,t.filter)(j),(0,t.sortBy)(function(J){return J.name.toLowerCase()})])(V),G="Crate Catalogue";return T?G="Results for '"+T+"':":y&&(G="Browsing "+y),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(J){return J.name}),selected:y,onSelected:function(){function J(Q){return L(Q)}return J}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function J(Q,ue){return x(ue)}return J}(),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:K.map(function(J){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[J.name," (",J.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 Q(){return C("order",{crate:J.ref,multiple:!1,account:W})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W||J.singleton,onClick:function(){function Q(){return C("order",{crate:J.ref,multiple:!0,account:W})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){D(J.contents),R(J.name)}return Q}()})]})]},J.name)})})})]})})},m=function(s,i){var h=s.request,C,v;switch(h.department){case"Engineering":v="CE",C="orange";break;case"Medical":v="CMO",C="teal";break;case"Science":v="RD",C="purple";break;case"Supply":v="CT",C="brown";break;case"Service":v="HOP",C="olive";break;case"Security":v="HOS",C="red";break;case"Command":v="CAP",C="blue";break;case"Assistant":v="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!h.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"})}),!!h.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:v,disabled:h.req_cargo_approval,icon:"user-tie",tooltip:h.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"})})]})},l=function(s,i){var h=(0,o.useBackend)(i),C=h.act,v=h.data,p=v.requests,g=v.orders,V=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:p.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",S.ordernum,": ",S.supply_type," (",S.cost," credits) for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)," with"," ",S.department?"The "+S.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]}),(0,e.createComponentVNode)(2,m,{request:S})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!S.can_approve,onClick:function(){function y(){return C("approve",{ordernum:S.ordernum})}return y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!S.can_deny,onClick:function(){function y(){return C("deny",{ordernum:S.ordernum})}return y}()})]})]},S.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",S.ordernum,": ",S.supply_type," for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]})]})},S.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",S.ordernum,": ",S.supply_type," for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]})]})},S.ordernum)})})]})}},36232:function(A,r,n){"use strict";r.__esModule=!0,r.ChameleonAppearances=r.Chameleon=void 0;var e=n(89005),a=n(25328),t=n(64795),o=n(88510),f=n(72253),b=n(36036),B=n(98595),I=r.Chameleon=function(){function d(c,m){return(0,e.createComponentVNode)(2,B.Window,{width:431,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,N)})})}return d}(),k=function(c,m){m===void 0&&(m="");var l=(0,a.createSearch)(m,function(u){return u.name});return(0,t.flow)([(0,o.filter)(function(u){return u==null?void 0:u.name}),m&&(0,o.filter)(l)])(c)},N=r.ChameleonAppearances=function(){function d(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,i=(0,f.useLocalState)(m,"searchText",""),h=i[0],C=i[1],v=k(s.chameleon_skins,h),p=s.selected_appearance;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for an appearance",onInput:function(){function g(V,S){return C(S)}return g}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Item Appearance",children:v.map(function(g){var V=g.name+"_"+g.icon_state;return(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:g.icon,dmIconState:g.icon_state,imageSize:64,m:.5,compact:!0,selected:V===p,tooltip:g.name,style:{opacity:V===p&&"1"||"0.5"},onClick:function(){function S(){u("change_appearance",{new_appearance:V})}return S}()},V)})})})]})}return d}()},87331:function(A,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=(0,a.useLocalState)(I,"onlyRecent",0),m=c[0],l=c[1],u=d.cl_data,s=d.last_cl,i={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"})},h=function(){function C(v){return v in i?i[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return l(!m)}return C}()}),children:u.map(function(C){return!m&&C.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function v(){return N("open_pr",{pr_number:C.num})}return v}()}),children:C.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[h(v.etype)," ",v.etext]},v)})},C)})})})})}return b}()},91360:function(A,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(98595),B=r.CheckboxListInputModal=function(){function k(N,d){var c=(0,f.useBackend)(d),m=c.act,l=c.data,u=l.items,s=u===void 0?[]:u,i=l.message,h=i===void 0?"":i,C=l.init_value,v=l.timeout,p=l.title,g=(0,f.useLocalState)(d,"edittedItems",s),V=g[0],S=g[1],y=330+Math.ceil(h.length/3),L=function(){function w(T){T===void 0&&(T=null);var x=[].concat(V);x=x.map(function(M){return M.key===T.key?Object.assign({},M,{checked:!T.checked}):M}),S(x)}return w}();return(0,e.createComponentVNode)(2,b.Window,{title:p,width:325,height:y,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{filteredItems:V,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return k}(),I=function(N,d){var c=N.filteredItems,m=N.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,u){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:u,onClick:function(){function s(){return m(l)}return s}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(s){return s.toUpperCase()})},u)})})}},36108:function(A,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],B=[1,5,10],I=r.ChemDispenser=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+h.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,d)]})})})}return c}(),k=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.amount,C=i.energy,v=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[C," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},g)})})})]})})})},N=function(m,l){for(var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.chemicals,C=h===void 0?[]:h,v=[],p=0;p<(C.length+1)%3;p++)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:i.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(g,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function S(){return s("dispense",{reagent:g.id})}return S}()},V)}),v.map(function(g,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},d=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.isBeakerLoaded,C=i.beakerCurrentVolume,v=i.beakerMaxVolume,p=i.beakerContents,g=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:i.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function V(S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function y(){return s("remove",{reagent:S.id,amount:-1})}return y}()}),B.map(function(y,L){return(0,e.createComponentVNode)(2,t.Button,{content:y,onClick:function(){function w(){return s("remove",{reagent:S.id,amount:y})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function y(){return s("remove",{reagent:S.id,amount:S.volume})}return y}()})],0)}return V}()})})})}},13146:function(A,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),B=r.ChemHeater=function(){function N(d,c){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return N}(),I=function(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.targetTemp,i=u.targetTempReached,h=u.autoEject,C=u.isActive,v=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!p,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function g(V,S){return l("adjust_temperature",{target:S})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:i?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(V){return(0,a.toFixed)(V)+" K"}return g}()})||"\u2014"})]})})})},k=function(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerCurrentVolume,h=u.beakerMaxVolume,C=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",h," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:C})})})}},56541:function(A,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),B=n(35840),I=["icon"];function k(y,L){if(y==null)return{};var w={};for(var T in y)if({}.hasOwnProperty.call(y,T)){if(L.includes(T))continue;w[T]=y[T]}return w}function N(y,L){y.prototype=Object.create(L.prototype),y.prototype.constructor=y,d(y,L)}function d(y,L){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,T){return w.__proto__=T,w},d(y,L)}var c=[1,5,10],m=function(L,w){var T=(0,a.useBackend)(w),x=T.act,M=T.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:M.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:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!M.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:M.printing?"spinner":"print",disabled:M.printing,iconSpin:!!M.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:O.idx,beaker:L.args.beaker})}return D}()})]})})})})},l=function(y){return y[y.ToDisposals=0]="ToDisposals",y[y.ToBeaker=1]="ToBeaker",y}(l||{}),u=r.ChemMaster=function(){function y(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,S)]})})]})}return y}(),s=function(L,w){var T=(0,a.useBackend)(w),x=T.act,M=T.data,O=M.beaker,D=M.beaker_reagents,E=M.buffer_reagents,P=E.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:P?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function R(){return x("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function R(){return x("eject")}return R}()}),children:O?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function R(j,F){return(0,e.createComponentVNode)(2,t.Box,{mb:F0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function E(P,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(P=E.map(function(R){var j=R.id,F=R.sprite;return(0,e.createComponentVNode)(2,g,{icon:F,translucent:!0,onClick:function(){function W(){return x("set_sprite_style",{production_mode:O,style:j})}return W}(),selected:D===j},j)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:P})})},S=function(L,w){var T=(0,a.useBackend)(w),x=T.act,M=T.data,O=M.loaded_pill_bottle_style,D=M.containerstyles,E=M.loaded_pill_bottle,P={width:"20px",height:"20px"},R=D.map(function(j){var F=j.color,W=j.name,z=O===F;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:P.width,height:P.height},onClick:function(){function K(){return x("set_container_style",{style:F})}return K}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,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:P.width,height:P.height,"background-color":F,opacity:.6,filter:"alpha(opacity=60)"}})]},F)});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:!E,content:"Eject Container",onClick:function(){function j(){return x("ejectp")}return j}()}),children:E?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:P.width,height:P.height},icon:"tint-slash",onClick:function(){function j(){return x("clear_container_style")}return j}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(A,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,B=32,I=128,k=r.CloningConsole=function(){function u(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.tab,g=v.has_scanner,V=v.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:g?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function S(){return C("menu",{tab:1})}return S}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function S(){return C("menu",{tab:2})}return S}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)})]})})}return u}(),N=function(s,i){var h=(0,a.useBackend)(i),C=h.data,v=C.tab,p;return v===1?p=(0,e.createComponentVNode)(2,d):v===2&&(p=(0,e.createComponentVNode)(2,c)),p},d=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.pods,g=v.pod_amount,V=v.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!g&&p.map(function(S,y){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(y+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(S.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===S.uid,onClick:function(){function L(){return C("select_pod",{uid:S.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!S.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!S.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:S.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:S.biomass,ranges:{good:[2*S.biomass_storage_capacity/3,S.biomass_storage_capacity],average:[S.biomass_storage_capacity/3,2*S.biomass_storage_capacity/3],bad:[0,S.biomass_storage_capacity/3]},minValue:0,maxValue:S.biomass_storage_capacity,children:[S.biomass,"/",S.biomass_storage_capacity+" ("+100*S.biomass/S.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:S.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:S.osseous_reagent})]})})]})},S)})]})},c=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.selected_pod_data,g=v.has_scanned,V=v.scanner_has_patient,S=v.feedback,y=v.scan_successful,L=v.cloning_cost,w=v.has_scanner,T=v.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return C("scan")}return x}(),disabled:!V||T,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return C("eject")}return x}(),disabled:!V||T,children:"Eject Patient"})]}),children:[!g&&!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!g||!!T)&&(0,e.createComponentVNode)(2,t.Box,{color:S.color,children:S.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!y||!g)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!y&&!!g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.patient_limb_data,g=v.limb_list,V=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:g.map(function(S,y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[S][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[S][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[S][0]+V[S][1],maxValue:p[S][5],ranges:{good:[0,p[S][5]/3],average:[p[S][5]/3,2*p[S][5]/3],bad:[2*p[S][5]/3,p[S][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[S][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[S][1]]})}),p[S][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[S][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[S][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[S][3],onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[S][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][0]||p[S][1]),checked:!(V[S][0]||V[S][1]),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&b),checked:!(V[S][2]&b),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&B),checked:!(V[S][2]&B),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&I),checked:!(V[S][2]&I),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},S)})})},l=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.patient_organ_data,g=v.organ_list,V=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:g.map(function(S,y){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[S][3],":"," "]}),p[S][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[S][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[S][2]&&!V[S][1],onClick:function(){function L(){return C("toggle_organ_repair",{organ:S,type:"replace"})}return L}(),children:"Replace Organ"}),!p[S][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[S][0],checked:!V[S][0],onClick:function(){function L(){return C("toggle_organ_repair",{organ:S,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[S][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[S][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[S][3]," is missing!"]}),!p[S][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[S][0],maxValue:p[S][4],ranges:{good:[0,p[S][4]/3],average:[p[S][4]/3,2*p[S][4]/3],bad:[2*p[S][4]/3,p[S][4]]},children:"Post-Cloning Damage: "+V[S][0]})]})]})},S)})})}},98723:function(A,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.biomass,m=d.biomass_storage_capacity,l=d.sanguine_reagent,u=d.osseous_reagent,s=d.organs,i=d.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function h(C,v){return N("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return N("purge_reagent",{reagent:"sanguine_reagent"})}return h}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function h(C,v){return N("remove_reagent",{reagent:"osseous_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return N("purge_reagent",{reagent:"osseous_reagent"})}return h}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!i&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(h){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:h.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function C(){return N("eject_organ",{organ_ref:h.ref})}return C}()})})]},h)})]}),!!i&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(A,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function B(I,k){var N=(0,t.useBackend)(k),d=N.act,c=N.data,m=c.materials,l=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,i=(l?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:i,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"Need a money bag",disabled:!l,onClick:function(){function h(){return d("activate")}return h}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function h(){return d("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:h.id===c.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function C(){return d("selectMaterial",{material:h.id})}return C}()},h.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function h(){return d("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return B}()},93858:function(A,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),f=n(98595),b=n(44879),B=n(14448),I=n(4454),k=n(35840),N=n(9394),d=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** + */var b=(0,t.createLogger)("hotkeys"),B={},I=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},g=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},d=function(l){var h=String(l);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||I.includes(l.code))){h==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var C=g(l.code);if(C){var v=B[C];if(v)return b.debug("macro",v),Byond.command(v);if(l.isDown()&&!k[C]){k[C]=!0;var p='Key_Down "'+C+'"';return b.debug(p),Byond.command(p)}if(l.isUp()&&k[C]){k[C]=!1;var N='Key_Up "'+C+'"';return b.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(l){I.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var h=I.indexOf(l);h>=0&&I.splice(h,1)}return s}(),i=r.releaseHeldKeys=function(){function s(){for(var l=0,h=Object.keys(k);l0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(b){return b.json()}).then(function(b){return Byond.iconRefMap=b}).catch(function(b){return t.logger.log(b)})}return f}()},1090:function(A,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AICard=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;if(d.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 d.integrity>=75?c="green":d.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:d.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:d.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.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:d.wireless?"check":"times",content:d.wireless?"Enabled":"Disabled",color:d.wireless?"green":"red",onClick:function(){function m(){return g("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:d.radio?"check":"times",content:d.radio?"Enabled":"Disabled",color:d.radio?"green":"red",onClick:function(){function m(){return g("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:d.flushing||d.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return g("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(A,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;if(d.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;(d.stat===2||d.stat===null)&&(c=!1);var m=null;d.integrity>=75?m="green":d.integrity>=25?m="yellow":m="red";var i=!0;return d.integrity>=100&&d.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:d.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:d.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:!!d.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:d.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.wireless?"times":"check",content:d.wireless?"Disabled":"Enabled",color:d.wireless?"red":"green",onClick:function(){function u(){return g("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.radio?"times":"check",content:d.radio?"Disabled":"Enabled",color:d.radio?"red":"green",onClick:function(){function u(){return g("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||d.active,content:!i||d.active?"Already Repaired":"Repair",onClick:function(){function u(){return g("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:d.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(A,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function g(d,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return g}(),B={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"}},I={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.locked&&!u.siliconUser,l=u.normallyLocked,h=B[u.externalPower]||B[0],C=B[u.chargingStatus]||B[0],v=u.powerChannels||[],p=I[u.malfStatus]||I[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return i("breaker")}return V}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return i("charge")}return V}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(V){var S=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function y(){return i("channel",S.auto)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function y(){return i("channel",S.on)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function y(){return i("channel",S.off)}return y}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return i(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return i("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return i("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return i("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return i("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(A,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.view_screen,v=h.authenticated_account,p=h.ticks_left_locked_down,N=h.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(C){case 1:V=(0,e.createComponentVNode)(2,B);break;case 2:V=(0,e.createComponentVNode)(2,I);break;case 3:V=(0,e.createComponentVNode)(2,d);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.machine_id,v=h.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 p(){return l("insert_card")}return p}()})})})]})},B=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function v(){return l("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:C===2,onClick:function(){function v(){return l("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)]})},I=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=(0,a.useLocalState)(u,"targetAccNumber",0),v=C[0],p=C[1],N=(0,a.useLocalState)(u,"fundsAmount",0),V=N[0],S=N[1],y=(0,a.useLocalState)(u,"purpose",0),L=y[0],w=y[1],T=h.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:["$",T]}),(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(M,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(M,P){return S(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(M,P){return w(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return l("transfer",{target_acc_number:v,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=(0,a.useLocalState)(u,"fundsAmount",0),v=C[0],p=C[1],N=h.owner_name,V=h.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function S(){return l("logout")}return S}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function S(y,L){return p(L)}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function S(){return l("withdrawal",{funds_amount:v})}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function S(){return l("view_screen",{view_screen:1})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function S(){return l("view_screen",{view_screen:2})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function S(){return l("view_screen",{view_screen:3})}return S}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function S(){return l("balance_statement")}return S}()})})]})],4)},g=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=(0,a.useLocalState)(u,"accountID",null),v=C[0],p=C[1],N=(0,a.useLocalState)(u,"accountPin",null),V=N[0],S=N[1],y=h.machine_id,L=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(T,x){return p(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(T,x){return S(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return l("attempt_auth",{account_num:v,account_pin:V})}return w}()})})]})})},d=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(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,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return l("view_screen",{view_screen:0})}return C}()})}},86423:function(A,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),B=n(321),I=n(5485),k=r.AccountsUplinkTerminal=function(){function h(C,v){var p=(0,t.useBackend)(v),N=p.act,V=p.data,S=V.loginState,y=V.currentPage,L;if(S.logged_in)y===1?L=(0,e.createComponentVNode)(2,d):y===2?L=(0,e.createComponentVNode)(2,s):y===3&&(L=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,I.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.LoginInfo),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return h}(),g=function(C,v){var p=(0,t.useBackend)(v),N=p.data,V=(0,t.useLocalState)(v,"tabIndex",0),S=V[0],y=V[1],L=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:S===0,onClick:function(){function w(){return y(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:S===1,onClick:function(){function w(){return y(1)}return w}(),children:"Department Accounts"})]})})})},d=function(C,v){var p=(0,t.useLocalState)(v,"tabIndex",0),N=p[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,v){var p=(0,t.useBackend)(v),N=p.act,V=p.data,S=V.accounts,y=(0,t.useLocalState)(v,"searchText",""),L=y[0],w=y[1],T=(0,t.useLocalState)(v,"sortId","owner_name"),x=T[0],M=T[1],P=(0,t.useLocalState)(v,"sortOrder",!0),D=P[0],E=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,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"})]}),S.filter((0,a.createSearch)(L,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,R){var j=D?1:-1;return O[x].localeCompare(R[x])*j}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function R(){return N("view_account_detail",{account_num:O.account_number})}return R}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},m=function(C,v){var p=(0,t.useBackend)(v),N=p.act,V=p.data,S=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),S.map(function(y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+y.suspended,onClick:function(){function L(){return N("view_account_detail",{account_num:y.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",y.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:y.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:y.money})]},y.account_number)})]})})})})},i=function(C,v){var p=(0,t.useLocalState)(v,"sortId","name"),N=p[0],V=p[1],S=(0,t.useLocalState)(v,"sortOrder",!0),y=S[0],L=S[1],w=C.id,T=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==w&&"transparent",width:"100%",onClick:function(){function x(){N===w?L(!y):(V(w),L(!0))}return x}(),children:[T,N===w&&(0,e.createComponentVNode)(2,o.Icon,{name:y?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(C,v){var p=(0,t.useBackend)(v),N=p.act,V=p.data,S=V.is_printing,y=(0,t.useLocalState)(v,"searchText",""),L=y[0],w=y[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 T(){return N("create_new_account")}return T}()})}),(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 T(x,M){return w(M)}return T}()})})]})},s=function(C,v){var p=(0,t.useBackend)(v),N=p.act,V=p.data,S=V.account_number,y=V.owner_name,L=V.money,w=V.suspended,T=V.transactions,x=V.account_pin,M=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+S+" / "+y,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return N("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",S]}),!!M&&(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:!!M,onClick:function(){function P(){return N("set_account_pin",{account_number:S})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:y}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return N("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),T.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)})]})})})]})},l=function(C,v){var p=(0,t.useBackend)(v),N=p.act,V=p.data,S=(0,t.useLocalState)(v,"accName",""),y=S[0],L=S[1],w=(0,t.useLocalState)(v,"accDeposit",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return N("back")}return M}()}),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 M(P,D){return L(D)}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function M(P,D){return x(D)}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function M(){return N("finalise_create_account",{holder_name:y,starting_funds:T})}return M}()})]})}},23001:function(A,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),B=n(321),I=n(5485),k=function(h){switch(h){case 0:return"Antagonists";case 1:return"Objectives";case 2:return"Security";case 3:return"All High Value Items";default:return"Something went wrong with this menu, make an issue report please!"}},g=function(h){switch(h){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,u);default:return"Something went wrong with this menu, make an issue report please!"}},d=r.AdminAntagMenu=function(){function l(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.loginState,S=N.currentPage,y=(0,t.useLocalState)(C,"tabIndex",0),L=y[0],w=y[1],T=(0,t.useLocalState)(C,"searchText",""),x=T[0],M=T[1];return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{children:"This menu is a Work in Progress. Some antagonists like Nuclear Operatives and Biohazards will not show up."})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0)}return P}(),icon:"user",children:"Antagonists"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1)}return P}(),icon:"people-robbery",children:"Objectives"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2)}return P}(),icon:"handcuffs",children:"Security"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===3,onClick:function(){function P(){w(3)}return P}(),icon:"lock",children:"High Value Items"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:k(L),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",width:"300px",onInput:function(){function P(D,E){return M(E)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return p("refresh")}return P}(),children:"Refresh"})]}),children:g(L)})})]})})})}return l}(),c=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.antagonists,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId","antag_name"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),P=M[0],D=M[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{id:"name",children:"Mob Name"}),(0,e.createComponentVNode)(2,s,{id:"",children:"Buttons"}),(0,e.createComponentVNode)(2,s,{id:"antag_name",children:"Antagonist Type"}),(0,e.createComponentVNode)(2,s,{id:"status",children:"Status"})]}),V.filter((0,a.createSearch)(y,function(E){return E.name+"|"+E.status+"|"+E.antag_name})).sort(function(E,O){var R=P?1:-1;return E[T]===void 0||E[T]===null?R:O[T]===void 0||O[T]===null?-1*R:typeof E[T]=="number"?(E[T]-O[T])*R:E[T].localeCompare(O[T])*R}).map(function(E,O){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:E.body_destroyed?E.name:(0,e.createComponentVNode)(2,o.Button,{color:E.is_hijacker||!E.name?"red":"",tooltip:E.is_hijacker?"Hijacker":"",onClick:function(){function R(){return p("show_player_panel",{mind_uid:E.antag_mind_uid})}return R}(),children:E.name?E.name:"??? (NO NAME)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("pm",{ckey:E.ckey})}return R}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("follow",{datum_uid:E.antag_mind_uid})}return R}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("obs",{mind_uid:E.antag_mind_uid})}return R}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("tp",{mind_uid:E.antag_mind_uid})}return R}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:E.antag_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.status?"red":"grey",children:E.status?E.status:"Alive"})})]},O)})]}):"No Antagonists!"},m=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.objectives,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId2","target_name"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),P=M[0],D=M[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"obj_name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"target_name",children:"Target"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId2",id:"owner_name",children:"Owner"})]}),V.filter((0,a.createSearch)(y,function(E){return E.obj_name+"|"+E.target_name+"|"+(E.status?"success":"incompleted")+"|"+E.owner_name})).sort(function(E,O){var R=P?1:-1;return E[T]===void 0||E[T]===null||T==="target_name"&&E.no_target?R:O[T]===void 0||O[T]===null||T==="target_name"&&O.no_target?-1*R:typeof E[T]=="number"?(E[T]-O[T])*R:E[T].localeCompare(O[T])*R}).map(function(E,O){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:E.obj_desc,onClick:function(){function R(){return p("vv",{uid:E.obj_uid})}return R}(),children:E.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:E.no_target?"":E.track.length?E.track.map(function(R,j){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){return p("follow",{datum_uid:R})}return F}(),children:[E.target_name," ",E.track.length>1?"("+(parseInt(j,10)+1)+")":""]},j)}):"No "+E.target_name+" Found"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.status?"green":"grey",children:E.status?"Success":"Incomplete"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("obj_owner",{owner_uid:E.owner_uid})}return R}(),children:E.owner_name})})]},O)})]}):"No Objectives!"},i=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.security,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId3","health"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),P=M[0],D=M[1],E=function(j){return j.status===2?"red":j.status===1?"orange":j.broken_bone||j.internal_bleeding?"yellow":"grey"},O=function(j){return j.status===2?"Dead":j.status===1?"Unconscious":j.broken_bone&&j.internal_bleeding?"Broken Bone, IB":j.broken_bone?"Broken Bone":j.internal_bleeding?"IB":"Alive"};return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"role",children:"Role"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"status",children:"Status"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"antag",children:"Antag"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId3",id:"health",children:"Health"})]}),V.filter((0,a.createSearch)(y,function(R){return R.name+"|"+R.role+"|"+O(R)+"|"+R.antag})).sort(function(R,j){var F=P?1:-1;return R[T]===void 0||R[T]===null?F:j[T]===void 0||j[T]===null?-1*F:typeof R[T]=="number"?(R[T]-j[T])*F:R[T].localeCompare(j[T])*F}).map(function(R,j){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){return p("show_player_panel",{mind_uid:R.mind_uid})}return F}(),children:R.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:R.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:E(R),children:O(R)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:R.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function F(){p("tp",{mind_uid:R.mind_uid})}return F}(),children:R.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:R.health/R.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:R.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){p("pm",{ckey:R.ckey})}return F}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){p("follow",{datum_uid:R.mind_uid})}return F}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function F(){p("obs",{mind_uid:R.mind_uid})}return F}(),children:"OBS"})]})]},j)})]}):"No Security!"},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.high_value_items,S=(0,t.useLocalState)(C,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(C,"sortId4","person"),T=w[0],x=w[1],M=(0,t.useLocalState)(C,"sortOrder",!0),P=M[0],D=M[1];return V.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"person",children:"Carrier"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"loc",children:"Location"}),(0,e.createComponentVNode)(2,s,{sort_group:"sortId4",id:"admin_z",children:"On Admin Z-level"})]}),V.filter((0,a.createSearch)(y,function(E){return E.name+"|"+E.loc})).sort(function(E,O){var R=P?1:-1;return E[T]===void 0||E[T]===null?R:O[T]===void 0||O[T]===null?-1*R:typeof E[T]=="number"?(E[T]-O[T])*R:E[T].localeCompare(O[T])*R}).map(function(E,O){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:E.obj_desc,translucent:E.admin_z,onClick:function(){function R(){return p("vv",{uid:E.uid})}return R}(),children:E.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.admin_z?"grey":"",children:E.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:E.admin_z?"grey":"",children:E.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:E.admin_z?"On Admin Z-level":""})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){p("follow",{datum_uid:E.uid})}return R}(),children:"FLW"})})]},O)})]}):"No High Value Items!"},s=function(h,C){var v=h.id,p=h.sort_group,N=p===void 0?"sortId":p,V=h.default_sort,S=V===void 0?"antag_name":V,y=h.children,L=(0,t.useLocalState)(C,N,S),w=L[0],T=L[1],x=(0,t.useLocalState)(C,"sortOrder",!0),M=x[0],P=x[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:w!==v&&"transparent",width:"100%",onClick:function(){function D(){w===v?P(!M):(T(v),P(!0))}return D}(),children:[y,w===v&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},39683:function(A,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],b=["A+","A-","B+","B-","AB+","AB-","O+","O-"],B="Empty",I=function(m){var i=m.label,u=m.value,s=m.onCommit,l=m.onClick,h=m.onRClick,C=m.tooltip;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,textAlign:"center",content:u||B,onCommit:s})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-signature",tooltip:C,tooltipPosition:"bottom-end",onClick:l,onContextMenu:h})})]})})},k=r.AgentCard=function(){function c(m,i){var u=(0,a.useLocalState)(i,"tabIndex",0),s=u[0],l=u[1],h=function(){function C(v){switch(v){case 0:return(0,e.createComponentVNode)(2,g);case 1:return(0,e.createComponentVNode)(2,d);default:return(0,e.createComponentVNode)(2,g)}}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:435,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function C(){return l(0)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function C(){return l(1)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),h(s)]})})})}return c}(),g=r.AgentCardInfo=function(){function c(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.registered_name,C=l.sex,v=l.age,p=l.assignment,N=l.job_assets,V=l.job_icon,S=l.associated_account_number,y=l.blood_type,L=l.dna_hash,w=l.fingerprint_hash,T=l.photo,x=l.ai_tracking,M=l.photo_cooldown,P=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill someone else data.")],4),D=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill with random data.")],4);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,I,{label:"Name",value:h,tooltip:P,onCommit:function(){function E(O,R){return s("change_name",{name:R})}return E}(),onClick:function(){function E(){return s("change_name",{option:"Primary"})}return E}(),onRClick:function(){function E(O){O.preventDefault(),s("change_name",{option:"Secondary"})}return E}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:f.map(function(E){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:E.icon,content:E.name,selected:C===E.name,onClick:function(){function O(){return s("change_sex",{sex:E.name})}return O}()})},E.name)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Slider,{fluid:!0,minValue:17,value:v||0,maxValue:300,onChange:function(){function E(O,R){return s("change_age",{age:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function E(){return s("change_occupation")}return E}(),textAlign:"middle",children:p||"[UNSET]"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{tooltip:"Change HUD icon",tooltipPosition:"bottom-end",onClick:function(){function E(){return s("change_occupation",{option:"Primary"})}return E}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{fill:!0,icon:N,icon_state:V,verticalAlign:"bottom",my:"2px",width:"16px"})," "]})})]})}),(0,e.createComponentVNode)(2,I,{label:"Fingerprint",value:w,onCommit:function(){function E(O,R){return s("change_fingerprints",{new_fingerprints:R})}return E}(),onClick:function(){function E(){return s("change_fingerprints",{option:"Primary"})}return E}(),onRClick:function(){function E(O){O.preventDefault(),s("change_fingerprints",{option:"Secondary"})}return E}(),tooltip:D}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[b.map(function(E){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:E,selected:y===E,onClick:function(){function O(){return s("change_blood_type",{new_type:E})}return O}()})},E)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-signature",onClick:function(){function E(){return s("change_blood_type",{option:"Primary"})}return E}()})})]})}),(0,e.createComponentVNode)(2,I,{label:"DNA",value:L,onCommit:function(){function E(O,R){return s("change_dna_hash",{new_dna:R})}return E}(),onClick:function(){function E(){return s("change_dna_hash",{option:"Primary"})}return E}(),onRClick:function(){function E(O){O.preventDefault(),s("change_dna_hash",{option:"Secondary"})}return E}(),tooltip:D}),(0,e.createComponentVNode)(2,I,{label:"Account",value:S||0,onCommit:function(){function E(O,R){return s("change_money_account",{new_account:R})}return E}(),onClick:function(){function E(){return s("change_money_account",{option:"Primary"})}return E}(),onRClick:function(){function E(O){O.preventDefault(),s("change_money_account",{option:"Secondary"})}return E}(),tooltip:D}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!M,tooltip:M?"":"You can't generate a new photo yet.",onClick:function(){function E(){return s("change_photo")}return E}(),children:T?"Update":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.Confirm,{fluid:!0,textAlign:"center",content:"Delete Card Info",confirmContent:"Are you sure?",onClick:function(){function E(){return s("delete_info")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Reset Access",confirmContent:"Are you sure?",onClick:function(){function E(){return s("clear_access")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",onClick:function(){function E(){return s("change_ai_tracking")}return E}(),children:x?"Untrackable":"Trackable"})})]})})})],4)}return c}(),d=r.AgentCardAppearances=function(){function c(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=(0,a.useSharedState)(i,"selectedAppearance",null),C=h[0],v=h[1],p=l.appearances,N=l.id_icon;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:p.map(function(V){return(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:N,dmIconState:V,imageSize:64,compact:!0,selected:V===C,tooltip:V,style:{opacity:V===C&&"1"||"0.5"},onClick:function(){function S(){v(V),s("change_appearance",{new_appearance:V})}return S}()},V)})})})}return c}()},56793:function(A,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return d("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return d("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return d("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return d("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return d("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return d("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return d("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return d("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return d("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return d("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return d("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return d("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return B}()},72475:function(A,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,I),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g)],4)]})})}return u}(),B=function(s){return s===0?"green":s===1?"orange":"red"},I=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.air,N=v.mode,V=v.atmos_alarm,S=v.locked,y=v.alarmActivated,L=v.rcon,w=v.target_temp,T;return p.danger.overall===0?V===0?T="Optimal":T="Caution: Atmos alert in area":p.danger.overall===1?T="Caution":T="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:B(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!S&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:B(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:B(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:B(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:B(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:B(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:B(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:B(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:B(p.danger.overall),children:[T,!S&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:y?"Reset Alarm":"Activate Alarm",selected:y,onClick:function(){function x(){return C(y?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,l){var h=(0,a.useLocalState)(l,"tabIndex",0),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return v(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return v(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function p(){return v(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function p(){return v(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},g=function(s,l){var h=(0,a.useLocalState)(l,"tabIndex",0),C=h[0],v=h[1];switch(C){case 0:return(0,e.createComponentVNode)(2,d);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!"}},d=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.vents;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function V(){return C("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function V(){return C("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},c=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.scrubbers;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return C("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return C("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function V(){return C("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function V(){return C("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function V(){return C("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function V(){return C("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function V(){return C("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},m=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.modes,N=v.presets,V=v.emagged,S=v.mode,y=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:Object.keys(p).map(function(L){var w=p[L];if(!w.emagonly||V)return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===S,onClick:function(){function T(){return C("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(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===y,onClick:function(){function w(){return C("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},i=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=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"})]}),p.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function S(){return C("command",{cmd:"set_threshold",env:V.env,var:V.val})}return S}()})},V.val)})]},N.name)})]})})}},12333:function(A,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.exterior_status,m=d.interior_status,i=d.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function l(){return g("force_ext")}return l}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function l(){return g("cycle_ext_door")}return l}()}),m==="open"?s=(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 l(){return g("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function l(){return g("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(A,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,B=2,I=4,k=8,g=r.AirlockElectronics=function(){function m(i,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})})}return m}(),d=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&I,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:I})}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:C&B,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:B})}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:C&k,onClick:function(){function v(){return l("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-down",content:"North",selected:C&b,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:b})}return v}()})})]})]})})},c=function(i,u){var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.selected_accesses,v=h.one_access,p=h.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 l("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function N(){return l("set_one_access",{access:"all"})}return N}()})],4),accesses:p,selectedList:C,accessMod:function(){function N(V){return l("set",{access:V})}return N}(),grantAll:function(){function N(){return l("grant_all")}return N}(),denyAll:function(){function N(){return l("clear_all")}return N}(),grantDep:function(){function N(V){return l("grant_region",{region:V})}return N}(),denyDep:function(){function N(V){return l("deny_region",{region:V})}return N}()})}},47365:function(A,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),B=-1,I=1,k=r.AlertModal=function(){function c(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=l.autofocus,C=l.buttons,v=C===void 0?[]:C,p=l.large_buttons,N=l.message,V=N===void 0?"":N,S=l.timeout,y=l.title,L=(0,t.useLocalState)(i,"selected",0),w=L[0],T=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),M=325+(v.length>2?100:0),P=function(){function D(E){w===0&&E===B?T(v.length-1):w===v.length-1&&E===I?T(0):T(w+E)}return D}();return(0,e.createComponentVNode)(2,b.Window,{title:y,height:x,width:M,children:[!!S&&(0,e.createComponentVNode)(2,a.Loader,{value:S}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function D(E){var O=window.event?E.which:E.keyCode;O===o.KEY_SPACE||O===o.KEY_ENTER?s("choose",{choice:v[w]}):O===o.KEY_ESCAPE?s("cancel"):O===o.KEY_LEFT?(E.preventDefault(),P(B)):(O===o.KEY_TAB||O===o.KEY_RIGHT)&&(E.preventDefault(),P(I))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!h&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,g,{selected:w})]})]})})})]})}return c}(),g=function(m,i){var u=(0,t.useBackend)(i),s=u.data,l=s.buttons,h=l===void 0?[]:l,C=s.large_buttons,v=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:h==null?void 0:h.map(function(N,V){return C&&h.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{button:N,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,d,{button:N,id:V.toString(),selected:p===V})},V)})})},d=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=l.large_buttons,C=m.button,v=m.selected,p=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:h?1:0,pt:h?.33:0,content:C,fluid:!!h,onClick:function(){function N(){return s("choose",{choice:C})}return N}(),selected:v,textAlign:"center",height:!!h&&2,width:!h&&p})}},71824:function(A,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.change_race,i=c.species,u=c.specimen,s=c.change_gender,l=c.gender,h=c.change_eye_color,C=c.change_skin_tone,v=c.change_skin_color,p=c.change_runechat_color,N=c.change_head_accessory_color,V=c.change_hair_color,S=c.change_secondary_hair_color,y=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,T=c.change_body_marking_color,x=c.change_tail_marking_color,M=c.change_head_accessory,P=c.head_accessory_styles,D=c.head_accessory_style,E=c.change_hair,O=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,F=c.change_facial_hair,W=c.facial_hair_styles,z=c.facial_hair_style,K=c.change_head_markings,G=c.head_marking_styles,J=c.head_marking_style,Q=c.change_body_markings,ue=c.body_marking_styles,ie=c.body_marking_style,pe=c.change_tail_markings,te=c.tail_marking_styles,q=c.tail_marking_style,ne=c.change_body_accessory,le=c.body_accessory_styles,ee=c.body_accessory_style,re=c.change_alt_head,oe=c.alt_head_styles,fe=c.alt_head_style,me=!1;return(h||C||v||N||p||V||S||y||L||w||T||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(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.specimen,selected:Y.specimen===u,onClick:function(){function ve(){return d("race",{race:Y.specimen})}return ve}()},Y.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function Y(){return d("gender",{gender:"male"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function Y(){return d("gender",{gender:"female"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function Y(){return d("gender",{gender:"plural"})}return Y}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headaccessorystyle,selected:Y.headaccessorystyle===D,onClick:function(){function ve(){return d("head_accessory",{head_accessory:Y.headaccessorystyle})}return ve}()},Y.headaccessorystyle)})}),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:O.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.hairstyle,selected:Y.hairstyle===R,onClick:function(){function ve(){return d("hair",{hair:Y.hairstyle})}return ve}()},Y.hairstyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function Y(){return d("hair_gradient")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function Y(){return d("hair_gradient_offset")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function Y(){return d("hair_gradient_colour")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function Y(){return d("hair_gradient_alpha")}return Y}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.facialhairstyle,selected:Y.facialhairstyle===z,onClick:function(){function ve(){return d("facial_hair",{facial_hair:Y.facialhairstyle})}return ve}()},Y.facialhairstyle)})}),!!K&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headmarkingstyle,selected:Y.headmarkingstyle===J,onClick:function(){function ve(){return d("head_marking",{head_marking:Y.headmarkingstyle})}return ve}()},Y.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ue.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodymarkingstyle,selected:Y.bodymarkingstyle===ie,onClick:function(){function ve(){return d("body_marking",{body_marking:Y.bodymarkingstyle})}return ve}()},Y.bodymarkingstyle)})}),!!pe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:te.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.tailmarkingstyle,selected:Y.tailmarkingstyle===q,onClick:function(){function ve(){return d("tail_marking",{tail_marking:Y.tailmarkingstyle})}return ve}()},Y.tailmarkingstyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:le.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodyaccessorystyle,selected:Y.bodyaccessorystyle===ee,onClick:function(){function ve(){return d("body_accessory",{body_accessory:Y.bodyaccessorystyle})}return ve}()},Y.bodyaccessorystyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:oe.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.altheadstyle,selected:Y.altheadstyle===fe,onClick:function(){function ve(){return d("alt_head",{alt_head:Y.altheadstyle})}return ve}()},Y.altheadstyle)})})]})})})}return B}(),b=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function u(){return d(i.action)}return u}()},i.key)})})}},72285:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.priority||[],m=d.minor||[],i=d.mode||{};return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li","color-bad",u,0,null,u)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)}),Object.keys(i).length===0&&(0,e.createVNode)(1,"li","color-good","All Areas Filtering",16),Object.keys(i).map(function(u){return(0,e.createVNode)(1,"li","color-good",[u,(0,e.createTextVNode)(" mode is "),i[u]],0,null,alert)})],0)})})})}return b}()},65805:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},B=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},I=r.AtmosControl=function(){function d(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=(0,a.useLocalState)(m,"tabIndex",0),h=l[0],C=l[1],v=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,g);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:h===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:h===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return d}(),k=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return u("open_alarm",{aref:h.ref})}return C}()})})]},h.name)})]})})},g=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:l.filter(function(h){return h.z===3}).map(function(h){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:h.x,y:h.y,icon:"circle",tooltip:h.name,color:B(h.danger),onClick:function(){function C(){return u("open_alarm",{aref:h.ref})}return C}()},h.ref)})})})}},87816:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.on,m=d.pressure,i=d.max_pressure,u=d.filter_type,s=d.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 l(){return g("power")}return l}()})}),(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 l(){return g("min_pressure")}return l}()}),(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 l(h,C){return g("custom_pressure",{pressure:C})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function l(){return g("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===u,content:l.label,onClick:function(){function h(){return g("set_filter",{filter:l.gas_type})}return h}()},l.label)})})]})})})})}return b}()},57258:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=n(88510),B=n(35840),I=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(l,h){if(l==null)return{};var C={};for(var v in l)if({}.hasOwnProperty.call(l,v)){if(h.includes(v))continue;C[v]=l[v]}return C}function g(l,h){l.prototype=Object.create(h.prototype),l.prototype.constructor=l,d(l,h)}function d(l,h){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,v){return C.__proto__=v,C},d(l,h)}var c=r.AtmosGraphMonitor=function(){function l(h,C){var v=(0,a.useBackend)(C),p=v.data,N=(0,a.useLocalState)(C,"tabIndex",0),V=N[0],S=N[1],y=function(){function w(T){switch(T){case 0:return(0,e.createComponentVNode)(2,m,{data:p,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 60 \u0441. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 3 \u0441.",pressureListName:"pressure_history",temperatureListName:"temperature_history"});case 1:return(0,e.createComponentVNode)(2,m,{data:p,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 10 \u043C\u0438\u043D. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 30 \u0441.",pressureListName:"long_pressure_history",temperatureListName:"long_temperature_history"});default:return"WE SHOULDN'T BE HERE!"}}return w}(),L=function(){function w(T){switch(T){case 0:return 180;case 1:return 350;case 2:return 590;case 3:return 830;default:return 870}}return w}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:L(Object.keys(p.sensors).length),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:V===0,onClick:function(){function w(){return S(0)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"area-chart"})," \u0422\u0435\u043A\u0443\u0449\u0438\u0435"]},"View"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function w(){return S(1)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bar-chart"})," \u0418\u0441\u0442\u043E\u0440\u0438\u044F"]},"History")]}),y(V),Object.keys(p.sensors).length===0&&(0,e.createComponentVNode)(2,t.Box,{pt:2,textAlign:"center",textColor:"gray",bold:!0,fontSize:1.3,children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 gas sensor \u0438\u043B\u0438 meter \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E multitool"})]})})})}return l}(),m=function(h){var C=h.data,v=h.info,p=h.pressureListName,N=h.temperatureListName,V=C.sensors||{},S=function(x,M){return V[x][M].slice(-1)[0]},y=function(x,M){return Math.min.apply(Math,V[x][M])},L=function(x,M){return Math.max.apply(Math,V[x][M])},w=function(x,M){return V[x][M].map(function(P,D){return[D,P]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:v}),Object.keys(V).map(function(T){return(0,e.createComponentVNode)(2,t.Section,{title:T,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[N in V[T]&&(0,e.createComponentVNode)(2,t.Box,{mb:4,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430: "+(0,f.toFixed)(S(T,N),0)+"\u041A (MIN: "+(0,f.toFixed)(y(T,N),0)+"\u041A; MAX: "+(0,f.toFixed)(L(T,N),0)+"\u041A)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(T,N),rangeX:[0,w(T,N).length-1],rangeY:[y(T,N)-10,L(T,N)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(T,N).length-2,labelViewBoxSize:400})})]}),p in V[T]&&(0,e.createComponentVNode)(2,t.Box,{mb:-1,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+(0,f.toFixed)(S(T,p),0)+"\u043A\u041F\u0430 (MIN: "+(0,f.toFixed)(y(T,p),0)+"\u043A\u041F\u0430; MAX: "+(0,f.toFixed)(L(T,p),0)+"\u043A\u041F\u0430)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(T,p),rangeX:[0,w(T,p).length-1],rangeY:[y(T,p)-10,L(T,p)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(T,p).length-2,labelViewBoxSize:400})})]})]})},T)})]})},i=function(h,C,v,p){if(h.length===0)return[];var N=(0,b.zipWith)(Math.min).apply(void 0,h),V=(0,b.zipWith)(Math.max).apply(void 0,h);v!==void 0&&(N[0]=v[0],V[0]=v[1]),p!==void 0&&(N[1]=p[0],V[1]=p[1]);var S=function(T,x,M,P){return(T-x)/(M-x)*P},y=(0,b.zipWith)(S),L=(0,b.map)(function(w){return y(w,N,V,C)});return L(h)},u=function(h){for(var C="",v=0;v0){var le=ne[0],ee=ne[ne.length-1];ne.push([q[0]+D,ee[1]]),ne.push([q[0]+D,-D]),ne.push([-D,-D]),ne.push([-D,le[1]])}var re=u(ne);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},te,{children:function(){function oe(fe){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:O}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(Y+1)*(q[1]/(O+1)),x2:q[0],y2:(Y+1)*(q[1]/(O+1)),stroke:W,"stroke-width":K},"horizontal-line-"+Y)}),Array.from({length:j}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:(Y+1)*(q[0]/(j+1)),y1:0,x2:(Y+1)*(q[0]/(j+1)),y2:q[1],stroke:W,"stroke-width":K},"vertical-line-"+Y)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+q[1]+")",fill:T,points:re}),S.map(function(me,Y){return Y===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:ne[Y-1][0],y1:q[1]-ne[Y-1][1],x2:ne[Y][0],y2:q[1]-ne[Y][1],stroke:M,"stroke-width":D},"line-"+Y)}),S.map(function(me,Y){return(0,e.createVNode)(32,"circle",null,null,1,{cx:ne[Y][0],cy:q[1]-ne[Y][1],r:2,fill:"#ffffff",stroke:M,"stroke-width":1},"point-"+Y)}),S.map(function(me,Y){return q[0]>pe&&Y%2===1&&(0,e.createVNode)(32,"text",null,me[1]!==null?me[1].toFixed(0):"N/A",0,{x:ne[Y][0],y:q[1]-ne[Y][1],fill:J,"font-size":ue,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+Y)})],0,{viewBox:"0 0 "+q[0]+" "+q[1]}),2,Object.assign({},fe),null,p.ref))}return oe}()})))}return v}(),h}(e.Component);s.defaultHooks=void 0,s.defaultHooks=B.pureComponentHooks},52977:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.on,i=c.pressure,u=c.max_pressure,s=c.node1_concentration,l=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 h(){return d("power")}return h}()})}),(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 h(){return d("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:i,onDrag:function(){function h(C,v){return d("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===u,width:2.2,onClick:function(){function h(){return d("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:l})]})})})})}return B}(),b=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=I.node_name,i=I.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 u(){return d("set_node",{node_name:m,concentration:(i-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function u(s,l){return d("set_node",{node_name:m,concentration:l/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function u(){return d("set_node",{node_name:m,concentration:(i+10)/100})}return u}()})]})}},11748:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.on,m=d.rate,i=d.max_rate,u=d.gas_unit,s=d.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 l(){return g("power")}return l}()})}),(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 l(){return g("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:i,value:m,onDrag:function(){function l(h,C){return g("custom_rate",{rate:C})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function l(){return g("max_rate")}return l}()})]})]})})})})}return b}()},69321:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),B=r.AtmosTankControl=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[u].pressure," kpa"]}):"",Object.keys(i[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(i[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:i[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(i[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,l){return c("set_pressure",{dev:"inlet",val:l})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,l){return c("set_pressure",{dev:"outlet",val:l})}return u}()})})]})}):""]})})}return I}()},92444:function(A,r,n){"use strict";r.__esModule=!0,r.AugmentMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.AugmentMenu=function(){function k(g,d){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:660,theme:"malfunction",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,B,{context:d})})})})}return k}(),B=function(g){var d=g.context,c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.usable_swarms,s=i.ability_tabs,l=i.known_abilities,h=(0,a.useLocalState)(d,"selectedTab",s[0]),C=h[0],v=h[1],p=(0,a.useLocalState)(d,"searchText",""),N=p[0],V=p[1],S=function(){var M=s.find(function(D){return D.category_name===C.category_name});if(!M)return[];var P=Math.min(M.category_stage,4);return M.abilities.filter(function(D){return D.stage<=P&&(!N||D.name.toLowerCase().includes(N.toLowerCase()))}).sort(function(D,E){return["intruder","destroyer"].includes(C.category_name.toLowerCase())?D.stage-E.stage:0})},y=S(),L=s.find(function(x){return x.category_name===C.category_name}),w=["intruder","destroyer"].includes(C.category_name.toLowerCase()),T=function(M){var P=l.find(function(O){return O.ability_path===M.ability_path}),D=P?P.cost:M.cost,E=P&&P.current_level>0?P.current_level+" / "+P.max_level:"0 / "+M.max_level;return(0,e.createComponentVNode)(2,t.Stack.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{height:"20px",width:"35px",mb:1,textAlign:"center",content:D,disabled:D>u||P&&P.current_level===P.max_level,tooltip:"Purchase this ability?",onClick:function(){function O(){m("purchase",{ability_path:M.ability_path}),v(C)}return O}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:M.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:M.desc||"Description not available"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level: ",(0,e.createVNode)(1,"span",null,E,0,{style:{color:"green"}}),w&&M.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),M.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},M.name)};return(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,style:{marginRight:"10px"},children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Swarms: "),(0,e.createVNode)(1,"span",null,u,0,{style:{color:"green"}})],4),w&&L&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Category Stage: "),(0,e.createVNode)(1,"span",null,Math.min(L.category_stage,4),0,{style:{color:"green"}})],4)]}),(0,e.createVNode)(1,"div","Section__buttons",(0,e.createComponentVNode)(2,t.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function x(M,P){return V(P)}return x}(),value:N}),2)],4,{style:{display:"flex",alignItems:"center"}}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[s.map(function(x){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name===x.category_name,onClick:function(){function M(){v(x),V("")}return M}(),children:(0,f.capitalize)(x.category_name)},x.category_name)}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C.category_name==="upgrades",onClick:function(){function x(){return v({category_name:"upgrades"})}return x}(),children:"Upgrades"},"upgrades")]}),C.category_name==="upgrades"?(0,e.createComponentVNode)(2,I,{act:m,abilityTabs:s,knownAbilities:l,usableSwarms:u}):(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:y.map(T)})]})},I=function(g){var d=g.act,c=g.abilityTabs,m=g.knownAbilities,i=g.usableSwarms,u=m.filter(function(l){return l.current_leveli,tooltip:"Upgrade this ability?",onClick:function(){function v(){return d("purchase",{ability_path:h.ability_path})}return v}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:h.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:h.upgrade_text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level:"," ",(0,e.createVNode)(1,"span",null,h.current_level+" / "+h.max_level,0,{style:{color:"green"}}),C&&C.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),C.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},h.name)};return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:u.map(s)})}},59179:function(A,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),B=n(25328),I=function(d,c,m,i){return d.requirements===null?!0:!(d.requirements.metal*i>c||d.requirements.glass*i>m)},k=r.Autolathe=function(){function g(d,c){var m=(0,o.useBackend)(c),i=m.act,u=m.data,s=u.total_amount,l=u.max_amount,h=u.metal_amount,C=u.glass_amount,v=u.busyname,p=u.busyamt,N=u.showhacked,V=u.buildQueue,S=u.buildQueueLen,y=u.recipes,L=u.categories,w=(0,o.useSharedState)(c,"category",0),T=w[0],x=w[1];T===0&&(T="Tools");var M=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),E=(0,o.useSharedState)(c,"search_text",""),O=E[0],R=E[1],j=(0,B.createSearch)(O,function(K){return K.name}),F="";S>0&&(F=V.map(function(K,G){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[G][0],onClick:function(){function J(){return i("remove_from_queue",{remove_from_queue:V.indexOf(K)+1})}return J}()},K)},G)}));var W=(0,a.flow)([(0,t.filter)(function(K){return(K.category.indexOf(T)>-1||O)&&(u.showhacked||!K.hacked)}),O&&(0,t.filter)(j),(0,t.sortBy)(function(K){return K.name.toLowerCase()})])(y),z="Build";return O?z="Results for: '"+O+"':":T&&(z="Build ("+T+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:T,onSelected:function(){function K(G){return x(G)}return K}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,J){return R(J)}return K}(),mb:1}),W.map(function(K){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+K.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===1,disabled:!I(K,u.metal_amount,u.glass_amount,1),onClick:function(){function G(){return i("make",{make:K.uid,multiplier:1})}return G}(),children:(0,B.toTitleCase)(K.name)}),K.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===10,disabled:!I(K,u.metal_amount,u.glass_amount,10),onClick:function(){function G(){return i("make",{make:K.uid,multiplier:10})}return G}(),children:"10x"}),K.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===25,disabled:!I(K,u.metal_amount,u.glass_amount,25),onClick:function(){function G(){return i("make",{make:K.uid,multiplier:25})}return G}(),children:"25x"}),K.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===K.name&&u.busyamt===K.max_multiplier,disabled:!I(K,u.metal_amount,u.glass_amount,K.max_multiplier),onClick:function(){function G(){return i("make",{make:K.uid,multiplier:K.max_multiplier})}return G}(),children:[K.max_multiplier,"x"]}),K.requirements&&Object.keys(K.requirements).map(function(G){return(0,B.toTitleCase)(G)+": "+K.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},K.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:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[F,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function K(){return i("clear_queue")}return K}()})]})]})]})})})}return g}()},29943:function(A,r,n){"use strict";r.__esModule=!0,r.Autolathe220=void 0;var e=n(89005),a=n(25328),t=n(88510),o=n(64795),f=n(72253),b=n(36036),B=n(98595),I="icons/obj/stacks/minerals.dmi",k=["metal","glass"],g=function(C,v,p,N){return C.requirements===null?!0:!(C.requirements.metal*N>v||C.requirements.glass*N>p)},d=function(C,v){var p=C*v/2e3;return p===0?0:p<.01&&p>0?(0,e.createComponentVNode)(2,b.Box,{fontSize:.75,children:"< 0.01"}):Math.floor(p*100)/100},c=r.Autolathe220=function(){function h(C,v){var p=(0,f.useSharedState)(v,"category","Tools"),N=p[0],V=p[1];return(0,e.createComponentVNode)(2,B.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m,{category:N,setCategory:V})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"55%",children:(0,e.createComponentVNode)(2,i,{category:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)]})})]})})})}return h}(),m=function(C,v){var p=(0,f.useBackend)(v),N=p.data,V=C.category,S=C.setCategory,y=N.categories,L=["All"].concat(y);return(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Categories",children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{mb:.5,height:"2.5em",color:"blue",selected:w===V,onClick:function(){function T(){return S(w)}return T}(),children:w},w)})})})},i=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.metal_amount,y=V.glass_amount,L=V.recipes,w=C.category,T=(0,f.useSharedState)(v,"searchText",""),x=T[0],M=T[1],P=(0,o.flow)([(0,t.filter)(function(O){return w==="All"||O.category.includes(w)||x&&(V.showhacked||!O.hacked)}),x&&(0,t.filter)((0,a.createSearch)(x,function(O){return O.name})),(0,t.sortBy)(function(O){return O.name.toLowerCase()})])(L),D=function(R,j){return(0,e.createComponentVNode)(2,b.Button,{translucent:!0,tooltip:E(R,j),tooltipPosition:"top",disabled:!g(R,S,y,j),onClick:function(){function F(){return N("make",{make:R.uid,multiplier:j})}return F}(),children:[j,"x"]})},E=function(R,j){return(0,e.createFragment)(k.map(function(F){return R.requirements[F]&&(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:I,dmIconState:"sheet-"+F,imageSize:32,children:d(R.requirements[F],j)},F)}),0)};return(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Build ("+w+")",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function O(R,j){return M(j)}return O}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{mt:.5,mb:-2.33,grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:P.map(function(O){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:O.image,imageSize:32,textAlign:"left",color:O.category.includes("hacked")&&"brown",tooltip:E(O,1),tooltipPosition:"top",disabled:!g(O,S,y,1),buttons:O.max_multiplier>1&&(0,e.createFragment)([O.max_multiplier>=10&&D(O,10),O.max_multiplier>=25&&D(O,25),O.max_multiplier>25&&D(O,O.max_multiplier)],0),onClick:function(){function R(){return N("make",{make:O.uid,multiplier:1})}return R}(),children:O.name},O.name)})})})]})})},u=function(C,v){var p=(0,f.useBackend)(v),N=p.data,V=N.metal_amount,S=N.glass_amount,y=N.fill_percent,L=function(T,x){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,imageSize:32,dmIcon:I,dmIconState:"sheet-"+T,color:"nope",buttons:(0,e.createComponentVNode)(2,b.Box,{backgroundColor:"rgba(255, 255, 255, 0.05)",width:"45px",children:d(x,1)}),children:(0,a.toTitleCase)(T)})};return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Materials",children:[L("metal",V),L("glass",S),(0,e.createComponentVNode)(2,b.ProgressBar,{minValue:0,value:y,maxValue:100,children:["Storage ",y,"% full"]})]})})},s=function(C,v){var p=(0,f.useBackend)(v),N=p.data,V=N.recipes,S=N.busyname,y=N.busyamt,L=V.find(function(w){return w.name===S});return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Building",children:(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,color:S&&"green",base64:L==null?void 0:L.image,imageSize:32,children:S?y>1?S+" x"+y:S:"Nothing"})})})},l=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.recipes,y=V.buildQueue,L=V.buildQueueLen,w;return L>0&&(w=y.map(function(T,x){var M=S.find(function(P){return P.name===y[x][0]});return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:M.image,imageSize:32,buttons:(0,e.createComponentVNode)(2,b.Button,{translucent:!0,width:"32px",icon:"times",iconColor:"red",onClick:function(){function P(){return N("remove_from_queue",{remove_from_queue:y.indexOf(T)+1})}return P}()},T),children:[M.name," ",Number(y[x][1])>1&&"x"+y[x][1]]},x)})),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Queue "+(L>0?L:""),children:w})}),(0,e.createComponentVNode)(2,b.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,b.Section,{fitted:!0,p:.75,children:(0,e.createComponentVNode)(2,b.Button,{fluid:!0,translucent:!L,color:"red",icon:"trash-can",disabled:!L,onClick:function(){function T(){return N("clear_queue")}return T}(),children:"Clear Queue"})})})]})})}},5147:function(A,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.implant,m=d.contains_case,i=d.gps,u=d.tag,s=(0,a.useLocalState)(I,"newTag",u),l=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function C(){return g("eject_case")}return C}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return g("tag",{newtag:l})}return C}(),onInput:function(){function C(v,p){return h(p)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return g("tag",{newtag:l})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(A,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function d(c,m){var i=(0,a.useBackend)(m),u=i.data,s=i.config,l=u.container,h=u.processing,C=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:h,name:C}),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),l?(0,e.createComponentVNode)(2,g):(0,e.createComponentVNode)(2,B)]})})})}return d}(),B=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."]})})})},I=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.biomass,h=s.container,C=s.container_curr_reagents,v=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:l}),(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:"}),h?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.has_plants,h=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!h,tooltip:h?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},g=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.biomass,h=s.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),v=C[0],p=C[1],N=Object.entries(h).map(function(V,S){var y=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:y.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*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:l.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,e.createComponentVNode)(2,t.Stack,{mb:"30px",fontsize:"256px",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"skull",size:14,mb:"64px"}),(0,e.createVNode)(1,"br"),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})}return k}(),B=r.BluespaceTap=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.product||[],s=i.desiredMiningPower,l=i.miningPower,h=i.points,C=i.totalPoints,v=i.powerUse,p=i.availablePower,N=i.emagged,V=i.autoShutown,S=i.stabilizers,y=i.stabilizerPower,L=i.stabilizerPriority,w=s>l&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:V&&!N?"toggle-on":"toggle-off",content:"Auto shutdown",color:V&&!N?"green":"red",disabled:!!N,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){function T(){return m("auto_shutdown")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:S&&!N?"toggle-on":"toggle-off",content:"Stabilizers",color:S&&!N?"green":"red",disabled:!!N,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){function T(){return m("stabilizers")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:L&&!N?"toggle-on":"toggle-off",content:"Stabilizer priority",color:L&&!N?"green":"red",disabled:!!N,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){function T(){return m("stabilizer_priority")}return T}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Mining Power",children:(0,f.formatPower)(s)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{labelStyle:{"vertical-align":"top"},label:"Set Desired Mining Power",children:(0,e.createComponentVNode)(2,t.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",disabled:s===0||N,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:0})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:s===0||N,onClick:function(){function T(){return m("set",{set_power:s-1e7})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:s===0||N,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:s-1e6})}return T}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mx:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{disabled:N,minvalue:0,value:s,maxvalue:1/0,step:1,onChange:function(){function T(x,M){return m("set",{set_power:M})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:s+1e6})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){function T(){return m("set",{set_power:s+1e7})}return T}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(l)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(p)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:C})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:T.price>=h,onClick:function(){function x(){return m("vend",{target:T.key})}return x}(),content:T.price})},T.key)})})})})]})})]})})})}return k}(),I=r.Alerts=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.product||[],s=i.miningPower,l=i.stabilizerPower,h=i.emagged,C=i.safeLevels,v=i.autoShutown,p=i.stabilizers,N=i.overhead;return(0,e.createFragment)([!v&&!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),h?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):s<=15e6?"":p?s>l+15e6?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return k}()},33758:function(A,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),B=[["good","Alive"],["average","Critical"],["bad","DEAD"]],I=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],g={average:[.25,.5],bad:[.5,1/0]},d=function(S,y){for(var L=[],w=0;w0?S.filter(function(y){return!!y}).reduce(function(y,L){return(0,e.createFragment)([y,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},i=r.BodyScanner=function(){function V(S,y){var L=(0,o.useBackend)(y),w=L.data,T=w.occupied,x=w.occupant,M=x===void 0?{}:x,P=T?(0,e.createComponentVNode)(2,u,{occupant:M}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(S){var y=S.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:y}),(0,e.createComponentVNode)(2,l,{occupant:y}),(0,e.createComponentVNode)(2,h,{occupant:y}),(0,e.createComponentVNode)(2,v,{organs:y.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:y.intOrgan})]})},s=function(S,y){var L=(0,o.useBackend)(y),w=L.act,T=L.data,x=T.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function M(){return w("print_p")}return M}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function M(){return w("ejectify")}return M}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:B[x.stat][0],children:B[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(M){return M.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},l=function(S){var y=S.occupant;return y.hasBorer||y.blind||y.colourblind||y.nearsighted||y.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:I.map(function(L,w){if(y[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},h=function(S){var y=S.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:d(k,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:y[L[1]],marginBottom:T100)&&"average"||!!y.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(y.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:y.maxHealth,mt:L>0&&"0.5rem",value:y.totalLoss/y.maxHealth,ranges:g,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(y.totalLoss)]})}),!!y.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(y.bruteLoss)]})}),!!y.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(y.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!y.internalBleeding&&"Internal bleeding",!!y.burnWound&&"Critical tissue burns",!!y.lungRuptured&&"Ruptured lung",!!y.status.broken&&y.status.broken,m(y.germ_level),!!y.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!y.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!y.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!y.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(y.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(S){return S.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),S.organs.map(function(y,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!y.dead&&"bad"||y.germ_level>100&&"average"||y.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(y.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:y.maxHealth,value:y.damage/y.maxHealth,mt:L>0&&"0.5rem",ranges:g,children:(0,a.round)(y.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(y.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([y.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),y.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!y.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(A,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),B=r.BookBinder=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.selectedbook,u=m.book_categories,s=[];return u.map(function(l){return s[l.description]=l.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 l(){return c("print_book")}return l}()}),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 l(){return(0,f.modalOpen)(g,"edit_selected_title")}return l}()})}),(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 l(){return(0,f.modalOpen)(g,"edit_selected_author")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(l){return l.description}),onSelected:function(){function l(h){return c("toggle_binder_category",{category_id:s[h]})}return l}()})})}),(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 l(){return(0,f.modalOpen)(g,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(l){return i.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function h(){return c("toggle_binder_category",{category_id:l.category_id})}return h}()},l.category_id)})]})})]})})})]})}return I}()},61925:function(A,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(d){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(i){return i.modes.includes(d)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function g(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),l=s[0],h=s[1],C={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},v=function(){function p(N){return C[N]?(0,e.createComponentVNode)(2,B,{model:C[N]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===N,onClick:function(){function V(){return h(N)}return V}(),children:C[N]},N)})})}),v(l)]})})})}return g}(),B=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.bots;return s[d.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[d.model]}):(0,e.createComponentVNode)(2,I,{model:[d.model]})},I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[d.model]," detected"]})})},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[d.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?f(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function h(){return i("interface",{botref:l.UID})}return h}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function h(){return i("call",{botref:l.UID})}return h}()})})]},l.UID)})]})})})}},20464:function(A,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.locked,i=c.noaccess,u=c.maintpanel,s=c.on,l=c.autopatrol,h=c.canhack,C=c.emagged,v=c.remote_disabled,p=c.painame,N=c.cleanblood,V=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:i,onClick:function(){function S(){return d("blood")}return S}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function S(){return d("area")}return S}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:i,onClick:function(){function S(){return d("ejectpai")}return S}()})})]})})}return B}()},69479:function(A,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.noaccess,i=c.painame,u=c.hullplating,s=c.replace,l=c.eat,h=c.make,C=c.fixfloor,v=c.nag_empty,p=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return d("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return d("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return d("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function V(){return d("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return d("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return d("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return d("anchored")}return V}()})]}),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 V(){return d("ejectpai")}return V}()})})]})})}return B}()},59887:function(A,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return B}()},80063:function(A,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.locked,i=c.noaccess,u=c.maintpanel,s=c.on,l=c.autopatrol,h=c.canhack,C=c.emagged,v=c.remote_disabled,p=c.painame,N=c.shut_up,V=c.declare_crit,S=c.stationary_mode,y=c.heal_threshold,L=c.injection_amount,w=c.use_beaker,T=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 M(){return d("toggle_speaker")}return M}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:i,onClick:function(){function M(){return d("toggle_critical_alerts")}return M}()})]}),(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:y.value,minValue:y.min,maxValue:y.max,step:5,disabled:i,onChange:function(){function M(P,D){return d("set_heal_threshold",{target:D})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function M(P){return P+"u"}return M}(),disabled:i,onChange:function(){function M(P,D){return d("set_injection_amount",{target:D})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:i,onClick:function(){function M(){return d("toggle_use_beaker")}return M}()})}),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 M(){return d("eject_reagent_glass")}return M}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:T,disabled:i,onClick:function(){function M(){return d("toggle_treat_viral")}return M}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:S,disabled:i,onClick:function(){function M(){return d("toggle_stationary_mode")}return M}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:i,onClick:function(){function M(){return d("ejectpai")}return M}()})})]})})})}return B}()},74439:function(A,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.noaccess,i=c.painame,u=c.check_id,s=c.check_weapons,l=c.check_warrant,h=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return d("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return d("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return d("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return d("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return d("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 d("ejectpai")}return v}()})})]})})}return B}()},10833:function(A,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,g){var d=k.cell,c=(0,o.useBackend)(g),m=c.act,i=d.cell_id,u=d.occupant,s=d.crimes,l=d.brigged_by,h=d.time_left_seconds,C=d.time_set_seconds,v=d.ref,p="";h>0&&(p+=" BrigCells__listRow--active");var N=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},b=function(k){var g=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),g.map(function(d){return(0,e.createComponentVNode)(2,f,{cell:d},d.ref)})]})},B=r.BrigCells=function(){function I(k,g){var d=(0,o.useBackend)(g),c=d.act,m=d.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,b,{cells:i})})})})})}return I}()},45761:function(A,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;d.nameText=d.occupant,d.timing&&(d.prisoner_hasrec?d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.occupant}):d.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d.occupant}));var c="pencil-alt";d.prisoner_name&&(d.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;im?this.substring(0,m)+"...":this};var k=function(i,u){var s,l;if(!u)return[];var h=i.findIndex(function(C){return C.name===u.name});return[(s=i[h-1])==null?void 0:s.name,(l=i[h+1])==null?void 0:l.name]},g=function(i,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(i)},d=r.CameraConsole=function(){function m(i,u){var s=(0,b.useBackend)(u),l=s.act,h=s.data,C=s.config,v=h.mapRef,p=h.activeCamera,N=g(h.cameras),V=k(N,p),S=V[0],y=V[1];return(0,e.createComponentVNode)(2,I.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-left",disabled:!S,onClick:function(){function L(){return l("switch_camera",{name:S})}return L}()}),(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-right",disabled:!y,onClick:function(){function L(){return l("switch_camera",{name:y})}return L}()})],4),(0,e.createComponentVNode)(2,B.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,u){var s=(0,b.useBackend)(u),l=s.act,h=s.data,C=(0,b.useLocalState)(u,"searchText",""),v=C[0],p=C[1],N=h.activeCamera,V=g(h.cameras,v);return(0,e.createComponentVNode)(2,B.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{children:(0,e.createComponentVNode)(2,B.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function S(y,L){return p(L)}return S}()})}),(0,e.createComponentVNode)(2,B.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,B.Section,{fill:!0,scrollable:!0,children:V.map(function(S){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&S.name===N.name&&"Button--selected"]),S.name.trimLongStr(23),0,{title:S.name,onClick:function(){function y(){return l("switch_camera",{name:S.name})}return y}()},S.name)})})})]})}return m}()},39222:function(A,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),f=n(25328),b=n(72253),B=n(36036),I=n(98595),k=function(u,s){var l,h;if(!s)return[];var C=u.findIndex(function(v){return v.name===s.name});return[(l=u[C-1])==null?void 0:l.name,(h=u[C+1])==null?void 0:h.name]},g=function(u,s){s===void 0&&(s="");var l=(0,f.createSearch)(s,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),s&&(0,a.filter)(l),(0,a.sortBy)(function(h){return h.name})])(u)},d=r.CameraConsole220=function(){function i(u,s){var l=(0,b.useLocalState)(s,"tabIndex",0),h=l[0],C=l[1],v=function(){function p(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 p}();return(0,e.createComponentVNode)(2,I.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.Stack,{children:(0,e.createComponentVNode)(2,B.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{width:h===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,B.Tabs,{fluid:!0,ml:h===1?1:0,mt:h===1?1:0,children:[(0,e.createComponentVNode)(2,B.Tabs.Tab,{selected:h===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,B.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,B.Tabs.Tab,{selected:h===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,B.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(h)]})})})})}return i}(),c=r.CameraConsoleMapContent=function(){function i(u,s){var l=(0,b.useBackend)(s),h=l.act,C=l.data,v=g(C.cameras),p=(0,b.useLocalState)(s,"zoom",1),N=p[0],V=p[1],S=C.mapRef,y=C.activeCamera,L=C.stationLevel,w=C.mapUrl,T=C.selected_z_level,x=k(v,y),M=x[0],P=x[1];return(0,e.createComponentVNode)(2,B.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",style:{flex:"0 0 474px"},children:(0,e.createComponentVNode)(2,B.NanoMap,{onZoom:function(){function D(E){return V(E)}return D}(),mapUrl:w,children:v.filter(function(D){return D.z===(Number(T)||L)}).map(function(D){return(0,e.createComponentVNode)(2,B.NanoMap.NanoButton,{activeCamera:y,x:D.x,y:D.y,context:s,zoom:N,icon:"circle",tooltip:D.name,name:D.name,color:"blue",status:D.status},D.ref)})})}),(0,e.createComponentVNode)(2,B.Stack.Item,{height:"100%",m:.1,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),y&&y.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-left",disabled:!M,onClick:function(){function D(){return h("switch_camera",{name:M})}return D}()}),(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-right",disabled:!P,onClick:function(){function D(){return h("switch_camera",{name:P})}return D}()})],4)],4),(0,e.createComponentVNode)(2,B.ByondUi,{className:"CameraConsole__map",overflow:"hidden",params:{id:S,type:"map"}})]})]})}return i}(),m=r.CameraConsoleOldContent=function(){function i(u,s){var l=(0,b.useBackend)(s),h=l.act,C=l.data,v=l.config,p=C.mapRef,N=C.activeCamera,V=(0,b.useLocalState)(s,"searchText",""),S=V[0],y=V[1],L=g(C.cameras,S),w=k(L,N),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,B.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.Stack.Item,{children:(0,e.createComponentVNode)(2,B.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function M(P,D){return y(D)}return M}()})}),(0,e.createComponentVNode)(2,B.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B.Section,{fill:!0,scrollable:!0,children:L.map(function(M){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",M.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",N&&M.name===N.name&&"Button--selected"]),M.name,0,{title:M.name,onClick:function(){function P(){return h("switch_camera",{name:M.name})}return P}()},M.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,B.Button,{icon:"chevron-left",disabled:!T,onClick:function(){function M(){return h("switch_camera",{name:T})}return M}()}),(0,e.createComponentVNode)(2,B.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function M(){return h("switch_camera",{name:x})}return M}()})],4),(0,e.createComponentVNode)(2,B.ByondUi,{className:"CameraConsole__map",params:{id:p,type:"map"}})],4)]})}return i}()},52927:function(A,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),B=r.Canister=function(){function I(k,g){var d=(0,t.useBackend)(g),c=d.act,m=d.data,i=m.portConnected,u=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,h=m.minReleasePressure,C=m.maxReleasePressure,v=m.valveOpen,p=m.name,N=m.canLabel,V=m.colorContainer,S=m.color_index,y=m.hasHoldingTank,L=m.holdingTank,w="";S.prim&&(w=V.prim.options[S.prim].name);var T="";S.sec&&(T=V.sec.options[S.sec].name);var x="";S.ter&&(x=V.ter.options[S.ter].name);var M="";S.quart&&(M=V.quart.options[S.quart].name);var P=[],D=[],E=[],O=[],R=0;for(R=0;Rp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!p.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!p.can_open,onClick:function(){function N(){return s("make_job_available",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:l.cooldown_time||!p.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:p.title})}return N}()})})]},p.title)})]})})]}):v=(0,e.createComponentVNode)(2,I);break;case 2:!l.authenticated||!l.scan_name?v=(0,e.createComponentVNode)(2,I):l.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function p(N){return s("set",{access:N})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(N){return s("grant_region",{region:N})}return p}(),denyDep:function(){function p(N){return s("deny_region",{region:N})}return p}()}):v=(0,e.createComponentVNode)(2,k);break;case 3:l.authenticated?l.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:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):v=(0,e.createComponentVNode)(2,g):v=(0,e.createComponentVNode)(2,I);break;case 4:!l.authenticated||!l.scan_name?v=(0,e.createComponentVNode)(2,I):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"})]}),l.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:p.name})}return N}()})})]},p.title)})]})});break;default: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:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(A,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),B=n(25328),I=r.CargoConsole=function(){function u(s,l){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return u}(),k=function(s,l){var h=(0,o.useLocalState)(l,"contentsModal",null),C=h[0],v=h[1],p=(0,o.useLocalState)(l,"contentsModalTitle",null),N=p[0],V=p[1];if(C!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(S){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",S]},S)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function S(){v(null),V(null)}return S}()})})]})},g=function(s,l){var h=(0,o.useBackend)(l),C=h.act,v=h.data,p=v.is_public,N=v.timeleft,V=v.moving,S=v.at_station,y,L;return!V&&!S?(y="Docked off-station",L="Call Shuttle"):!V&&S?(y="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",N!==1?y="Shuttle is en route (ETA: "+N+" minutes)":y="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:y}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return C("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return C("showMessages")}return w}()})]})]})})})},d=function(s,l){var h,C=(0,o.useBackend)(l),v=C.act,p=C.data,N=p.accounts,V=(0,o.useLocalState)(l,"selectedAccount"),S=V[0],y=V[1],L=[];return N.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(w){return w.name}),selected:(h=N.filter(function(w){return w.account_UID===S})[0])==null?void 0:h.name,onSelected:function(){function w(T){return y(L[T])}return w}()}),N.filter(function(w){return w.account_UID===S}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},c=function(s,l){var h=(0,o.useBackend)(l),C=h.act,v=h.data,p=v.requests,N=v.categories,V=v.supply_packs,S=(0,o.useSharedState)(l,"category","Emergency"),y=S[0],L=S[1],w=(0,o.useSharedState)(l,"search_text",""),T=w[0],x=w[1],M=(0,o.useLocalState)(l,"contentsModal",null),P=M[0],D=M[1],E=(0,o.useLocalState)(l,"contentsModalTitle",null),O=E[0],R=E[1],j=(0,B.createSearch)(T,function(J){return J.name}),F=(0,o.useLocalState)(l,"selectedAccount"),W=F[0],z=F[1],K=(0,a.flow)([(0,t.filter)(function(J){return J.cat===N.filter(function(Q){return Q.name===y})[0].category||T}),T&&(0,t.filter)(j),(0,t.sortBy)(function(J){return J.name.toLowerCase()})])(V),G="Crate Catalogue";return T?G="Results for '"+T+"':":y&&(G="Browsing "+y),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(J){return J.name}),selected:y,onSelected:function(){function J(Q){return L(Q)}return J}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function J(Q,ue){return x(ue)}return J}(),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:K.map(function(J){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[J.name," (",J.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 Q(){return C("order",{crate:J.ref,multiple:!1,account:W})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W||J.singleton,onClick:function(){function Q(){return C("order",{crate:J.ref,multiple:!0,account:W})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){D(J.contents),R(J.name)}return Q}()})]})]},J.name)})})})]})})},m=function(s,l){var h=s.request,C,v;switch(h.department){case"Engineering":v="CE",C="orange";break;case"Medical":v="CMO",C="teal";break;case"Science":v="RD",C="purple";break;case"Supply":v="CT",C="brown";break;case"Service":v="HOP",C="olive";break;case"Security":v="HOS",C="red";break;case"Command":v="CAP",C="blue";break;case"Assistant":v="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!h.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"})}),!!h.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:v,disabled:h.req_cargo_approval,icon:"user-tie",tooltip:h.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(s,l){var h=(0,o.useBackend)(l),C=h.act,v=h.data,p=v.requests,N=v.orders,V=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:p.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",S.ordernum,": ",S.supply_type," (",S.cost," credits) for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)," with"," ",S.department?"The "+S.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]}),(0,e.createComponentVNode)(2,m,{request:S})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!S.can_approve,onClick:function(){function y(){return C("approve",{ordernum:S.ordernum})}return y}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!S.can_deny,onClick:function(){function y(){return C("deny",{ordernum:S.ordernum})}return y}()})]})]},S.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",S.ordernum,": ",S.supply_type," for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]})]})},S.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(S){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",S.ordernum,": ",S.supply_type," for ",(0,e.createVNode)(1,"b",null,S.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",S.comment]})]})},S.ordernum)})})]})}},36232:function(A,r,n){"use strict";r.__esModule=!0,r.ChameleonAppearances=r.Chameleon=void 0;var e=n(89005),a=n(25328),t=n(64795),o=n(88510),f=n(72253),b=n(36036),B=n(98595),I=r.Chameleon=function(){function d(c,m){return(0,e.createComponentVNode)(2,B.Window,{width:431,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,g)})})}return d}(),k=function(c,m){m===void 0&&(m="");var i=(0,a.createSearch)(m,function(u){return u.name});return(0,t.flow)([(0,o.filter)(function(u){return u==null?void 0:u.name}),m&&(0,o.filter)(i)])(c)},g=r.ChameleonAppearances=function(){function d(c,m){var i=(0,f.useBackend)(m),u=i.act,s=i.data,l=(0,f.useLocalState)(m,"searchText",""),h=l[0],C=l[1],v=k(s.chameleon_skins,h),p=s.selected_appearance;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for an appearance",onInput:function(){function N(V,S){return C(S)}return N}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Item Appearance",children:v.map(function(N){var V=N.name+"_"+N.icon_state;return(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:N.icon,dmIconState:N.icon_state,imageSize:64,m:.5,compact:!0,selected:V===p,tooltip:N.name,style:{opacity:V===p&&"1"||"0.5"},onClick:function(){function S(){u("change_appearance",{new_appearance:V})}return S}()},V)})})})]})}return d}()},87331:function(A,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=(0,a.useLocalState)(I,"onlyRecent",0),m=c[0],i=c[1],u=d.cl_data,s=d.last_cl,l={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"})},h=function(){function C(v){return v in l?l[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return i(!m)}return C}()}),children:u.map(function(C){return!m&&C.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function v(){return g("open_pr",{pr_number:C.num})}return v}()}),children:C.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[h(v.etype)," ",v.etext]},v)})},C)})})})})}return b}()},91360:function(A,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(98595),B=r.CheckboxListInputModal=function(){function k(g,d){var c=(0,f.useBackend)(d),m=c.act,i=c.data,u=i.items,s=u===void 0?[]:u,l=i.message,h=l===void 0?"":l,C=i.init_value,v=i.timeout,p=i.title,N=(0,f.useLocalState)(d,"edittedItems",s),V=N[0],S=N[1],y=330+Math.ceil(h.length/3),L=function(){function w(T){T===void 0&&(T=null);var x=[].concat(V);x=x.map(function(M){return M.key===T.key?Object.assign({},M,{checked:!T.checked}):M}),S(x)}return w}();return(0,e.createComponentVNode)(2,b.Window,{title:p,width:325,height:y,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{filteredItems:V,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return k}(),I=function(g,d){var c=g.filteredItems,m=g.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(i,u){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:u,onClick:function(){function s(){return m(i)}return s}(),checked:i.checked,style:{animation:"none",transition:"none"},children:i.key.replace(/^\w/,function(s){return s.toUpperCase()})},u)})})}},36108:function(A,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],B=[1,5,10],I=r.ChemDispenser=function(){function c(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+h.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,d)]})})})}return c}(),k=function(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.amount,C=l.energy,v=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[C," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},N)})})})]})})})},g=function(m,i){for(var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.chemicals,C=h===void 0?[]:h,v=[],p=0;p<(C.length+1)%3;p++)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:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(N,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function S(){return s("dispense",{reagent:N.id})}return S}()},V)}),v.map(function(N,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},d=function(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.isBeakerLoaded,C=l.beakerCurrentVolume,v=l.beakerMaxVolume,p=l.beakerContents,N=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:N,buttons:function(){function V(S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function y(){return s("remove",{reagent:S.id,amount:-1})}return y}()}),B.map(function(y,L){return(0,e.createComponentVNode)(2,t.Button,{content:y,onClick:function(){function w(){return s("remove",{reagent:S.id,amount:y})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function y(){return s("remove",{reagent:S.id,amount:S.volume})}return y}()})],0)}return V}()})})})}},13146:function(A,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),B=r.ChemHeater=function(){function g(d,c){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return g}(),I=function(d,c){var m=(0,t.useBackend)(c),i=m.act,u=m.data,s=u.targetTemp,l=u.targetTempReached,h=u.autoEject,C=u.isActive,v=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function N(){return i("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!p,onClick:function(){function N(){return 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)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(V,S){return i("adjust_temperature",{target:S})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function N(V){return(0,a.toFixed)(V)+" K"}return N}()})||"\u2014"})]})})})},k=function(d,c){var m=(0,t.useBackend)(c),i=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerCurrentVolume,h=u.beakerMaxVolume,C=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",h," 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:s,beakerContents:C})})})}},56541:function(A,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),B=n(35840),I=["icon"];function k(y,L){if(y==null)return{};var w={};for(var T in y)if({}.hasOwnProperty.call(y,T)){if(L.includes(T))continue;w[T]=y[T]}return w}function g(y,L){y.prototype=Object.create(L.prototype),y.prototype.constructor=y,d(y,L)}function d(y,L){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,T){return w.__proto__=T,w},d(y,L)}var c=[1,5,10],m=function(L,w){var T=(0,a.useBackend)(w),x=T.act,M=T.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:M.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!M.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:M.printing?"spinner":"print",disabled:M.printing,iconSpin:!!M.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:P.idx,beaker:L.args.beaker})}return D}()})]})})})})},i=function(y){return y[y.ToDisposals=0]="ToDisposals",y[y.ToBeaker=1]="ToBeaker",y}(i||{}),u=r.ChemMaster=function(){function y(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,S)]})})]})}return y}(),s=function(L,w){var T=(0,a.useBackend)(w),x=T.act,M=T.data,P=M.beaker,D=M.beaker_reagents,E=M.buffer_reagents,O=E.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:O?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function R(){return x("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function R(){return x("eject")}return R}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function R(j,F){return(0,e.createComponentVNode)(2,t.Box,{mb:F0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function E(O,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(O=E.map(function(R){var j=R.id,F=R.sprite;return(0,e.createComponentVNode)(2,N,{icon:F,translucent:!0,onClick:function(){function W(){return x("set_sprite_style",{production_mode:P,style:j})}return W}(),selected:D===j},j)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:O})})},S=function(L,w){var T=(0,a.useBackend)(w),x=T.act,M=T.data,P=M.loaded_pill_bottle_style,D=M.containerstyles,E=M.loaded_pill_bottle,O={width:"20px",height:"20px"},R=D.map(function(j){var F=j.color,W=j.name,z=P===F;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:O.width,height:O.height},onClick:function(){function K(){return x("set_container_style",{style:F})}return K}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,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:O.width,height:O.height,"background-color":F,opacity:.6,filter:"alpha(opacity=60)"}})]},F)});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:!E,content:"Eject Container",onClick:function(){function j(){return x("ejectp")}return j}()}),children:E?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:O.width,height:O.height},icon:"tint-slash",onClick:function(){function j(){return x("clear_container_style")}return j}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(A,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,B=32,I=128,k=r.CloningConsole=function(){function u(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.tab,N=v.has_scanner,V=v.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function S(){return C("menu",{tab:1})}return S}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function S(){return C("menu",{tab:2})}return S}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,g)})]})})}return u}(),g=function(s,l){var h=(0,a.useBackend)(l),C=h.data,v=C.tab,p;return v===1?p=(0,e.createComponentVNode)(2,d):v===2&&(p=(0,e.createComponentVNode)(2,c)),p},d=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.pods,N=v.pod_amount,V=v.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&p.map(function(S,y){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(y+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(S.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===S.uid,onClick:function(){function L(){return C("select_pod",{uid:S.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!S.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!S.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:S.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:S.biomass,ranges:{good:[2*S.biomass_storage_capacity/3,S.biomass_storage_capacity],average:[S.biomass_storage_capacity/3,2*S.biomass_storage_capacity/3],bad:[0,S.biomass_storage_capacity/3]},minValue:0,maxValue:S.biomass_storage_capacity,children:[S.biomass,"/",S.biomass_storage_capacity+" ("+100*S.biomass/S.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:S.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:S.osseous_reagent})]})})]})},S)})]})},c=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.selected_pod_data,N=v.has_scanned,V=v.scanner_has_patient,S=v.feedback,y=v.scan_successful,L=v.cloning_cost,w=v.has_scanner,T=v.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return C("scan")}return x}(),disabled:!V||T,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return C("eject")}return x}(),disabled:!V||T,children:"Eject Patient"})]}),children:[!N&&!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!N||!!T)&&(0,e.createComponentVNode)(2,t.Box,{color:S.color,children:S.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!y||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!y&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return C("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})]})})]})]})},m=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.patient_limb_data,N=v.limb_list,V=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(S,y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[S][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[S][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[S][0]+V[S][1],maxValue:p[S][5],ranges:{good:[0,p[S][5]/3],average:[p[S][5]/3,2*p[S][5]/3],bad:[2*p[S][5]/3,p[S][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[S][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[S][1]]})}),p[S][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[S][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[S][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[S][3],onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[S][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][0]||p[S][1]),checked:!(V[S][0]||V[S][1]),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&b),checked:!(V[S][2]&b),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&B),checked:!(V[S][2]&B),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[S][2]&I),checked:!(V[S][2]&I),onClick:function(){function L(){return C("toggle_limb_repair",{limb:S,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},S)})})},i=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.patient_organ_data,N=v.organ_list,V=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(S,y){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[S][3],":"," "]}),p[S][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[S][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[S][2]&&!V[S][1],onClick:function(){function L(){return C("toggle_organ_repair",{organ:S,type:"replace"})}return L}(),children:"Replace Organ"}),!p[S][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[S][0],checked:!V[S][0],onClick:function(){function L(){return C("toggle_organ_repair",{organ:S,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[S][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[S][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[S][3]," is missing!"]}),!p[S][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[S][0],maxValue:p[S][4],ranges:{good:[0,p[S][4]/3],average:[p[S][4]/3,2*p[S][4]/3],bad:[2*p[S][4]/3,p[S][4]]},children:"Post-Cloning Damage: "+V[S][0]})]})]})},S)})})}},98723:function(A,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.biomass,m=d.biomass_storage_capacity,i=d.sanguine_reagent,u=d.osseous_reagent,s=d.organs,l=d.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:i+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:i,step:1,unit:"units",onChange:function(){function h(C,v){return g("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return g("purge_reagent",{reagent:"sanguine_reagent"})}return h}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function h(C,v){return g("remove_reagent",{reagent:"osseous_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return g("purge_reagent",{reagent:"osseous_reagent"})}return h}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(h){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:h.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function C(){return g("eject_organ",{organ_ref:h.ref})}return C}()})})]},h)})]}),!!l&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(A,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function B(I,k){var g=(0,t.useBackend)(k),d=g.act,c=g.data,m=c.materials,i=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,l=(i?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!i&&"Need a money bag",disabled:!i,onClick:function(){function h(){return d("activate")}return h}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function h(){return d("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:h.id===c.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function C(){return d("selectMaterial",{material:h.id})}return C}()},h.id)})})]})})}),!!i&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function h(){return d("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return B}()},93858:function(A,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),f=n(98595),b=n(44879),B=n(14448),I=n(4454),k=n(35840),g=n(9394),d=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT - */function m(w,T){w.prototype=Object.create(T.prototype),w.prototype.constructor=w,l(w,T)}function l(w,T){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,M){return x.__proto__=M,x},l(w,T)}function u(w,T){if(w==null)return{};var x={};for(var M in w)if({}.hasOwnProperty.call(w,M)){if(T.includes(M))continue;x[M]=w[M]}return x}var s=r.ColorPickerModal=function(){function w(T,x){var M=(0,t.useBackend)(x),O=M.data,D=O.timeout,E=O.message,P=O.title,R=O.autofocus,j=O.default_color,F=j===void 0?"#000000":j,W=(0,t.useLocalState)(x,"color_picker_choice",(0,B.hexToHsva)(F)),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,f.Window,{height:400,title:P,width:600,theme:"generic",children:[!!D&&(0,e.createComponentVNode)(2,a.Loader,{value:D}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[E&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:E})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,i,{color:z,setColor:K,defaultColor:F})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d.InputButtons,{input:(0,B.hsvaToHex)(z)})})]})})]})}return w}(),i=r.ColorSelector=function(){function w(T,x){var M=T.color,O=T.setColor,D=T.defaultColor,E=function(){function j(F){O(function(W){return Object.assign({},W,F)})}return j}(),P=(0,B.hsvaToRgba)(M),R=(0,B.hsvaToHex)(M);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:M,onChange:E}),(0,e.createComponentVNode)(2,V,{hue:M.h,onChange:E,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:D,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:D})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,B.hsvaToHex)(M).substring(1),onChange:function(){function j(F){N.logger.info(F),O((0,B.hexToHsva)(F))}return j}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{hue:M.h,onChange:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:M.h,callback:function(){function j(F,W){return E({h:W})}return j}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{color:M,onChange:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:M.s,callback:function(){function j(F,W){return E({s:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{color:M,onChange:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:M.v,callback:function(){function j(F,W){return E({v:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:M,onChange:E,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:P.r,callback:function(){function j(F,W){P.r=W,E((0,B.rgbaToHsva)(P))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:M,onChange:E,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:P.g,callback:function(){function j(F,W){P.g=W,E((0,B.rgbaToHsva)(P))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:M,onChange:E,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:P.b,callback:function(){function j(F,W){P.b=W,E((0,B.rgbaToHsva)(P))}return j}(),max:255})})]})})]})})]})}return w}(),h=function(T){var x=T.value,M=T.callback,O=T.min,D=O===void 0?0:O,E=T.max,P=E===void 0?100:E,R=T.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(x),step:1,minValue:D,maxValue:P,onChange:M,unit:R})},C=function(T){return"#"+T},v=r.HexColorInput=function(){function w(T){var x=T.prefixed,M=T.alpha,O=T.color,D=T.fluid,E=T.onChange,P=u(T,c),R=function(){function F(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,M?8:6)}return F}(),j=function(){function F(W){return(0,B.validHex)(W,M)}return F}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({},P,{fluid:D,color:O,onChange:E,escape:R,format:x?C:void 0,validate:j})))}return w}(),p=r.ColorInput=function(w){function T(M){var O;return O=w.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(D){var E=O.props.escape(D.currentTarget.value);O.setState({localValue:E})},O.handleBlur=function(D){D.currentTarget&&(O.props.validate(D.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(D.currentTarget.value):D.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=M,O.state={localValue:O.props.escape(O.props.color)},O}m(T,w);var x=T.prototype;return x.componentDidUpdate=function(){function M(O,D){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return M}(),x.render=function(){function M(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,k.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return M}(),T}(e.Component),g=function(T){var x=T.hsva,M=T.onChange,O=function(R){M({s:R.left*100,v:100-R.top*100})},D=function(R){M({s:(0,b.clamp)(x.s+R.left*100,0,100),v:(0,b.clamp)(x.v-R.top*100,0,100)})},E={"background-color":(0,B.hsvaToHslString)({h:x.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,I.Interactive,{onMove:O,onKey:D,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(x.s)+"%, Brightness "+Math.round(x.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-x.v/100,left:x.s/100,color:(0,B.hsvaToHslString)(x)})}),2,{style:E})},V=function(T){var x=T.className,M=T.hue,O=T.onChange,D=function(j){O({h:360*j.left})},E=function(j){O({h:(0,b.clamp)(M+j.left*360,0,360)})},P=(0,k.classes)(["react-colorful__hue",x]);return(0,e.createVNode)(1,"div",P,(0,e.createComponentVNode)(2,I.Interactive,{onMove:D,onKey:E,"aria-label":"Hue","aria-valuenow":Math.round(M),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:M/360,color:(0,B.hsvaToHslString)({h:M,s:100,v:100,a:1})})}),2)},S=function(T){var x=T.className,M=T.color,O=T.onChange,D=function(j){O({s:100*j.left})},E=function(j){O({s:(0,b.clamp)(M.s+j.left*100,0,100)})},P=(0,k.classes)(["react-colorful__saturation",x]);return(0,e.createVNode)(1,"div",P,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,B.hsvaToHslString)({h:M.h,s:0,v:M.v,a:1})+", "+(0,B.hsvaToHslString)({h:M.h,s:100,v:M.v,a:1})+")"},onMove:D,onKey:E,"aria-label":"Saturation","aria-valuenow":Math.round(M.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:M.s/100,color:(0,B.hsvaToHslString)({h:M.h,s:M.s,v:M.v,a:1})})}),2)},y=function(T){var x=T.className,M=T.color,O=T.onChange,D=function(j){O({v:100*j.left})},E=function(j){O({v:(0,b.clamp)(M.v+j.left*100,0,100)})},P=(0,k.classes)(["react-colorful__value",x]);return(0,e.createVNode)(1,"div",P,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,B.hsvaToHslString)({h:M.h,s:M.s,v:0,a:1})+", "+(0,B.hsvaToHslString)({h:M.h,s:M.s,v:100,a:1})+")"},onMove:D,onKey:E,"aria-label":"Value","aria-valuenow":Math.round(M.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:M.v/100,color:(0,B.hsvaToHslString)({h:M.h,s:M.s,v:M.v,a:1})})}),2)},L=function(T){var x=T.className,M=T.color,O=T.onChange,D=T.target,E=(0,B.hsvaToRgba)(M),P=function(K){E[D]=K,O((0,B.rgbaToHsva)(E))},R=function(K){P(255*K.left)},j=function(K){P((0,b.clamp)(E[D]+K.left*255,0,255))},F=(0,k.classes)(["react-colorful__"+D,x]),W=D==="r"?"rgb("+Math.round(E.r)+",0,0)":D==="g"?"rgb(0,"+Math.round(E.g)+",0)":"rgb(0,0,"+Math.round(E.b)+")";return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,I.Interactive,{onMove:R,onKey:j,"aria-valuenow":E[D],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+D+"-pointer",left:E[D]/255,color:W})}),2)}},8444:function(A,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(i,h){return N("setvalue",{idx:u.idx+1,value:h})}return s}()})]},u.name)})},l)})})})})})}return b}()},63818:function(A,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,d);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=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,B),f(p)]})})})}return u}(),B=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.authenticated,g=v.noauthbutton,V=v.esc_section,S=v.esc_callable,y=v.esc_recallable,L=v.esc_status,w=v.authhead,T=v.is_ai,x=v.lastCallLoc,M=!1,O;return p?p===1?O="Command":p===2?O="Captain":p===3?O="CentComm Officer":p===4?(O="CentComm Secure Connection",M=!0):O="ERROR: Report This Bug!":O="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:M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:O})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:g,content:p?"Log Out ("+O+")":"Log In",onClick:function(){function D(){return C("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!S&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function D(){return C("callshuttle")}return D}()})}),!!y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||T,onClick:function(){function D(){return C("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},I=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,N)},k=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.is_admin,g=v.gamma_armory_location,V=v.admin_levels,S=v.authenticated,y=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:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return C("send_to_cc_announcement_page")}return L}()}),S===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return C("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return C("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:y,content:y?"ERT calling enabled":"ERT calling disabled",tooltip:y?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return C("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return C("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return C("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return C("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return C("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,N)})]})},N=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.msg_cooldown,g=v.emagged,V=v.cc_cooldown,S=v.security_level_color,y=v.str_security_level,L=v.levels,w=v.authcapt,T=v.authhead,x=v.messages,M="Make Priority Announcement";p>0&&(M+=" ("+p+"s)");var O=g?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return V>0&&(O+=" ("+V+"s)",D+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:S,children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:M,disabled:!w||p>0,onClick:function(){function E(){return C("announce")}return E}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:O,disabled:!w||V>0,onClick:function(){function E(){return C("MessageSyndicate")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function E(){return C("RestoreBackup")}return E}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:O,disabled:!w||V>0,onClick:function(){function E(){return C("MessageCentcomm")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!w||V>0,onClick:function(){function E(){return C("nukerequest")}return E}()})})]})})}),(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:!T,onClick:function(){function E(){return C("status")}return E}()})}),(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:!T,onClick:function(){function E(){return C("messagelist")}return E}()})})]})})})],4)},d=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.stat_display,g=v.authhead,V=v.current_message_title,S=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!g,onClick:function(){function w(){return C("setstat",{statdisp:L.name})}return w}()},L.name)}),y=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!g,onClick:function(){function w(){return C("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return C("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!g,onClick:function(){function L(){return C("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!g,onClick:function(){function L(){return C("setmsg2")}return L}()})})]})})})},c=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.authhead,g=v.current_message_title,V=v.current_message,S=v.messages,y=v.security_level,L;if(g)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function T(){return C("messagelist")}return T}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=S.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||g===T.title,onClick:function(){function x(){return C("messagelist",{msgid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return C("delmessage",{msgid:T.id})}return x}()})]},T.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function T(){return C("main")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=s.levels,g=s.required_access,V=s.use_confirm,S=v.security_level;return V?p.map(function(y){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:y.icon,content:y.name,disabled:!g||y.id===S,tooltip:y.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:y.id})}return L}()},y.name)}):p.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{icon:y.icon,content:y.name,disabled:!g||y.id===S,tooltip:y.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:y.id})}return L}()},y.name)})},l=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.is_admin,g=v.possible_cc_sounds;if(!p)return C("main");var V=(0,a.useLocalState)(i,"subtitle",""),S=V[0],y=V[1],L=(0,a.useLocalState)(i,"text",""),w=L[0],T=L[1],x=(0,a.useLocalState)(i,"classified",0),M=x[0],O=x[1],D=(0,a.useLocalState)(i,"beepsound","Beep"),E=D[0],P=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function R(){return C("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:S,onChange:function(){function R(j,F){return y(F)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function R(j,F){return T(F)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return C("make_cc_announcement",{subtitle:S,text:w,classified:M,beepsound:E})}return R}()}),(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:g,selected:E,onSelected:function(){function R(j){return P(j)}return R}(),disabled:M})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:M,tooltip:"Test sound",onClick:function(){function R(){return C("test_sound",{sound:E})}return R}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:M,content:"Classified",fluid:!0,tooltip:M?"Sent to station communications consoles":"Publically announced",onClick:function(){function R(){return O(!M)}return R}()})})]})]})})}},20562:function(A,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.biomass,m=d.compost,l=d.biomass_capacity,u=d.compost_capacity,s=d.potassium,i=d.potassium_capacity,h=d.potash,C=d.potash_capacity,v=(0,a.useSharedState)(I,"vendAmount",1),p=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[c," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[s," / ",i," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:h,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[h," / ",C," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(S,y){return g(y)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return N("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(A,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function B(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,I(C,v)}function I(C,v){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},I(C,v)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},N=["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"],d=r.Contractor=function(){function C(v,p){var g=(0,t.useBackend)(p),V=g.act,S=g.data,y;S.unauthorized?y=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):S.load_animation_completed?y=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:S.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):y=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:N,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:y})})]})}return C}(),c=function(v,p){var g=(0,t.useBackend)(p),V=g.act,S=g.data,y=S.tc_available,L=S.tc_paid_out,w=S.completed_contracts,T=S.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[T," 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:[y," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:y<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,p){var g=(0,t.useBackend)(p),V=g.act,S=g.data,y=S.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:y===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:y===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,p){var g=(0,t.useBackend)(p),V=g.act,S=g.data,y=S.contracts,L=S.contract_active,w=S.can_extract,T=!!L&&y.filter(function(E){return E.status===1})[0],x=T&&T.time_left>0,M=(0,t.useLocalState)(p,"viewingPhoto",""),O=M[0],D=M[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:T.time_left,format:function(){function E(P,R){return" ("+R.substr(3)+")"}return E}()})],onClick:function(){function E(){return V("extract")}return E}()})},v,{children:y.slice().sort(function(E,P){return E.status===1?-1:P.status===1?1:E.status-P.status}).map(function(E){var P;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:E.status===1&&"good",children:E.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:E.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return D("target_photo_"+E.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[E.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[E.status][1],inline:!0,mt:E.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[E.status][0]}),E.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return V("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[E.fluff_message,!!E.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 ",E.completed_time]}),!!E.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."]}),!!E.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: ",E.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(E)]}),(P=E.difficulties)==null?void 0:P.map(function(R,j){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function F(){return V("activate",{uid:E.uid,difficulty:j+1})}return F}()},j)}),!!E.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[E.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(E.objective.rewards.tc||0)+" TC",",\xA0",(E.objective.rewards.credits||0)+" Credits",")"]})]})]})},E.uid)})})))},u=function(v){if(!(!v.objective||v.status>1)){var p=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,V=v.objective.locs.target_area_id,S=v.objective.locs.target_coords,y=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:y?"dot-circle-o":"arrow-alt-circle-right-o",color:y?"green":"yellow",rotation:y?null:-(0,a.rad2deg)(Math.atan2(S[1]-g[1],S[0]-g[0])),lineHeight:y?null:"0.85",size:"1.5"})})}},s=function(v,p){var g=(0,t.useBackend)(p),V=g.act,S=g.data,y=S.rep,L=S.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:y-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},i=function(C){function v(g){var V;return V=C.call(this,g)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}B(v,C);var p=v.prototype;return p.tick=function(){function g(){var V=this.props,S=this.state;if(S.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var y=S.currentDisplay;y.push(V.allMessages[S.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return g}(),p.componentDidMount=function(){function g(){var V=this,S=this.props.linesPerSecond,y=S===void 0?2.5:S;this.timer=setInterval(function(){return V.tick()},1e3/y)}return g}(),p.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),p.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return g}(),v}(e.Component),h=function(v,p){var g=(0,t.useLocalState)(p,"viewingPhoto",""),V=g[0],S=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function y(){return S("")}return y}()})]})}},54151:function(A,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.slowFactor,m=d.oneWay,l=d.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return N("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return N("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return N("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,i){return N("slowFactor",{value:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return N("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return N("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(A,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),B=n(76910),I=n(98595),k=n(96184),N=["color"];function d(h,C){if(h==null)return{};var v={};for(var p in h)if({}.hasOwnProperty.call(h,p)){if(C.includes(p))continue;v[p]=h[p]}return v}var c=function(C,v){return C.dead?"Deceased":parseInt(C.health,10)<=v?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},m=function(C,v){return C.dead?"red":parseInt(C.health,10)<=v?"orange":parseInt(C.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function h(C,v){var p=(0,o.useBackend)(v),g=p.act,V=p.data,S=(0,o.useLocalState)(v,"tabIndex",V.tabIndex),y=S[0],L=S[1],w=function(){function x(M){L(M),g("set_tab_index",{tab_index:M})}return x}(),T=function(){function x(M){switch(M){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,I.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,I.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:y===0,onClick:function(){function x(){return w(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:y===1,onClick:function(){function x(){return w(1)}return x}(),children:"Map View"},"MapView")]})}),T(y)]})})})}return h}(),u=function(C,v){var p=(0,o.useBackend)(v),g=p.act,V=p.data,S=V.possible_levels,y=V.viewing_current_z_level,L=V.is_advanced,w=V.highlightedNames,T=(0,a.sortBy)(function(E){return!w.includes(E.name)},function(E){return E.name})(V.crewmembers||[]),x=(0,o.useLocalState)(v,"search",""),M=x[0],O=x[1],D=(0,t.createSearch)(M,function(E){return E.name+"|"+E.assignment+"|"+E.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 E(P,R){return O(R)}return E}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:L?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:S,selected:y,onSelected:function(){function E(P){return g("switch_level",{new_level:P})}return E}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function E(){return g("clear_highlighted_names")}return E}()})}),(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"})]}),T.filter(D).map(function(E,P){var R=w.includes(E.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!E.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:R,tooltip:"Mark on map",onClick:function(){function j(){return g(R?"remove_highlighted_name":"add_highlighted_name",{name:E.name})}return j}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[E.name," (",E.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(E,V.critThreshold),children:c(E,V.critThreshold)}),E.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.oxy,children:E.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.toxin,children:E.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.burn,children:E.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.brute,children:E.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:E.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:E.area+" ("+E.x+", "+E.y+")",onClick:function(){function j(){return g("track",{track:E.ref})}return j}()}):E.area+" ("+E.x+", "+E.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},P)})]})]})},s=function(C,v){var p=C.color,g=d(C,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},g,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},i=function(C,v){var p=(0,o.useBackend)(v),g=p.act,V=p.data,S=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function y(L){return g("set_zoom",{zoom:L})}return y}(),onOffsetChange:function(){function y(L,w){return g("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return y}(),children:V.crewmembers.filter(function(y){return y.sensor_type===3||V.ignoreSensors}).map(function(y){var L=m(y,V.critThreshold),w=S.includes(y.name),T=function(){return V.isObserver?g("track",{track:y.ref}):null},x=function(){return g(w?"remove_highlighted_name":"add_highlighted_name",{name:y.name})},M=y.name+" ("+y.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:y.x,y:y.y,tooltip:M,color:L,onClick:T,onDblClick:x},y.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:y.x,y:y.y,icon:"circle",tooltip:M,color:L,onClick:T,onDblClick:x},y.ref)})})})}},63987:function(A,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],B=r.Cryo=function(){function N(d,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,I)})})})}return N}(),I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isOperating,i=u.hasOccupant,h=u.occupant,C=h===void 0?[]:h,v=u.cellTemperature,p=u.cellTemperatureStatus,g=u.isBeakerLoaded,V=u.cooldownProgress,S=u.auto_eject_healthy,y=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return l("ejectOccupant")}return L}(),disabled:!i,children:"Eject"}),children:i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return l("ejectBeaker")}return L}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return l(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function L(){return l(S?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:S?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){function L(){return l(y?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:y?"On":"Off"})})]})})})],4)},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerLabel,h=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!i&&"average",children:[i||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!h&&"bad",ml:1,children:h?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h,format:function(){function C(v){return Math.round(v)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(A,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.data,l=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,B),!!u&&(0,e.createComponentVNode)(2,I)]})})}return k}(),B=function(N,d){var c=(0,a.useBackend)(d),m=c.data,l=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},I=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.frozen_items,s=function(h){var C=h.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return m("one_item",{item:i.uid})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return m("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(A,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],B=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],I=[5,10,20,30,50],k=r.DNAModifier=function(){function p(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.irradiating,T=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=T,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var M;return w&&(M=(0,e.createComponentVNode)(2,C,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),M,(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,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)})]})})]})}return p}(),N=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.locked,T=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function M(){return y("toggleLock")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T||w,icon:"user-slash",content:"Eject",onClick:function(){function M(){return y("ejectOccupant")}return M}()})],4),children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},d=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.selectedMenuKey,T=L.hasOccupant,x=L.occupant;if(T){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var M;return w==="ui"?M=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):w==="se"?M=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):w==="buffer"?M=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(M=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:B.map(function(O,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:w===O[0],onClick:function(){function E(){return y("selectMenuKey",{key:O[0]})}return E}(),children:O[1]},D)})}),M]})},c=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.selectedUIBlock,T=L.selectedUISubBlock,x=L.selectedUITarget,M=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:M.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function O(D){return D.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(D,E){return y("changeUITarget",{value:E})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return y("pulseUIRadiation")}return O}()})]})},m=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.selectedSEBlock,T=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function M(){return y("pulseSERadiation")}return M}()})]})},l=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.radiationIntensity,T=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function x(M,O){return y("radiationIntensity",{value:O})}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:T,popUpPosition:"right",ml:"0",onChange:function(){function x(M,O){return y("radiationDuration",{value:O})}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 y("pulseRadiation")}return x}()})]})},u=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.buffers,T=w.map(function(x,M){return(0,e.createComponentVNode)(2,s,{id:M+1,name:"Buffer "+(M+1),buffer:x},M)});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:T})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},s=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=g.id,T=g.name,x=g.buffer,M=L.isInjectorReady,O=T+(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:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return y("bufferOption",{option:"clear",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return y("bufferOption",{option:"changeLabel",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return y("bufferOption",{option:"saveDisk",id:w})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"saveUI",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"saveUIAndUE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"saveSE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"loadDisk",id:w})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!M,icon:M?"syringe":"spinner",iconSpin:!M,content:"Injector",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"createInjector",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M,icon:M?"syringe":"spinner",iconSpin:!M,content:"Block Injector",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"createInjector",id:w,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"transfer",id:w})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},i=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.hasDisk,T=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!T.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return y("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function x(){return y("ejectDisk")}return x}()})],4),children:w?T.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:T.label?T.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner?T.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.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."]})})},h=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.isBeakerLoaded,T=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function M(){return y("ejectBeaker")}return M}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[I.map(function(M,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:M>T,icon:"syringe",content:M,onClick:function(){function D(){return y("injectRejuvenators",{amount:M})}return D}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:T<=0,icon:"syringe",content:"All",onClick:function(){function M(){return y("injectRejuvenators",{amount:T})}return M}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),T?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[T," unit",T===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(g,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,V){for(var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=g.dnaString,T=g.selectedBlock,x=g.selectedSubblock,M=g.blockSize,O=g.action,D=w.split(""),E=0,P=[],R=function(){for(var W=j/M+1,z=[],K=function(){var Q=G+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:T===W&&x===Q,content:D[j+G],mb:"0",onClick:function(){function ue(){return y(O,{block:W,subblock:Q})}return ue}()}))},G=0;Gi.spawnpoints?"red":"green",children:[i.total," total, versus ",i.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 g(){return s("dispatch_ert",{silent:v})}return g}()})})]})})})},N=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:h&&h.length?h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:C.sender_uid})}return v}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},d=function(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=(0,a.useLocalState)(l,"text",""),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function p(g,V){return v(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:C})}return p}()})]})})}},90217:function(A,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function I(k,N){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,B)})]})}return I}(),B=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(A,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function B(I,k){var N=(0,t.useBackend)(k),d=N.act,c=N.data,m=c.power,l=c.code,u=c.frequency,s=c.minFrequency,i=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 h(){return d("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return d("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:i/10,value:u/10,format:function(){function h(C){return(0,a.toFixed)(C,1)}return h}(),width:"80px",onChange:function(){function h(C,v){return d("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return d("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function h(C,v){return d("code",{code:v})}return h}()})})]})})})})}return B}()},11243:function(A,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function I(k,N){var d=(0,t.useBackend)(N),c=d.data,m=c.emoji_list,l=(0,t.useLocalState)(N,"searchText",""),u=l[0],s=l[1],i=m.filter(function(h){return h.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function h(C,v){return s(v)}return h}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:i.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+h.name]),style:{transform:"scale(1.5)"},tooltip:h.name,onClick:function(){function C(){B(h.name)}return C}()},h.name)})})})})}return I}(),B=function(k){var N=document.createElement("input"),d=":"+k+":";N.value=d,document.body.appendChild(N),N.select(),document.execCommand("copy"),document.body.removeChild(N)}},69784:function(A,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(25328),b=r.EmotePanel=function(){function I(k,N){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,B)})})})}return I}(),B=r.EmotePanelContent=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.emotes,u=(0,a.useLocalState)(N,"searchText",""),s=u[0],i=u[1],h=(0,a.useLocalState)(N,"filterVisible",""),C=h[0],v=h[1],p=(0,a.useLocalState)(N,"filterAudible",""),g=p[0],V=p[1],S=(0,a.useLocalState)(N,"filterSound",""),y=S[0],L=S[1],w=(0,a.useLocalState)(N,"filterHands",""),T=w[0],x=w[1],M=(0,a.useLocalState)(N,"filterTargettable",""),O=M[0],D=M[1],E=(0,a.useLocalState)(N,"useTarget",""),P=E[0],R=E[1],j=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function F(W,z){return i(z)}return F}()});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:C,onClick:function(){function F(){return v(!C)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function F(){return V(!g)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:y,onClick:function(){function F(){return L(!y)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:T,onClick:function(){function F(){return x(!T)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:O,onClick:function(){function F(){return D(!O)}return F}()})]}),children:j})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:P,onClick:function(){function F(){return R(!P)}return F}(),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:l.filter(function(F){return F.key&&(s.length>0?F.key.toLowerCase().includes(s.toLowerCase())||F.name.toLowerCase().includes(s.toLowerCase()):!0)&&(C?F.visible:!0)&&(g?F.audible:!0)&&(y?F.sound:!0)&&(T?F.hands:!0)&&(O?F.targettable:!0)}).map(function(F){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function W(){return c("play_emote",{emote_key:F.key,useTarget:P})}return W}(),children:[F.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",F.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",F.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",F.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",F.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",F.name]},F.name)})})})})})],4)}return I}()},36730:function(A,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),B=n(88510),I=r.EvolutionMenu=function(){function d(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,N)]})})})}return d}(),k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.evo_points,h=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:i}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!h,content:"Readapt",icon:"sync",onClick:function(){function C(){return u("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},N=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.evo_points,h=s.ability_tabs,C=s.purchased_abilities,v=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",h[0]),g=p[0],V=p[1],S=(0,t.useLocalState)(m,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(m,"ability_tabs",h[0].abilities),T=w[0],x=w[1],M=function(P,R){if(R===void 0&&(R=""),!P||P.length===0)return[];var j=(0,a.createSearch)(R,function(F){return F.name+"|"+F.description});return(0,b.flow)([(0,B.filter)(function(F){return F==null?void 0:F.name}),(0,B.filter)(j),(0,B.sortBy)(function(F){return F==null?void 0:F.name})])(P)},O=function(P){if(L(P),P==="")return x(g.abilities);x(M(h.map(function(R){return R.abilities}).flat(),P))},D=function(P){V(P),x(P.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function E(P,R){O(R)}return E}(),value:y}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function E(){return u("set_view_mode",{mode:0})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function E(){return u("set_view_mode",{mode:1})}return E}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(E){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:y===""&&g===E,onClick:function(){function P(){D(E)}return P}(),children:E.category},E)})}),T.map(function(E,P){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:E.name}),C.includes(E.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:E.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:E.cost>i||C.includes(E.power_path),content:"Evolve",onClick:function(){function R(){return u("purchase",{power_path:E.power_path})}return R}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:E.description+" "+E.helptext})]},P)})]})})}},17370:function(A,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),B=n(98595),I=["id","amount","lineDisplay","onClick"];function k(p,g){if(p==null)return{};var V={};for(var S in p)if({}.hasOwnProperty.call(p,S)){if(g.includes(S))continue;V[S]=p[S]}return V}var N=2e3,d={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function p(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.building,T=L.linked;return T?(0,e.createComponentVNode)(2,B.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,B.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,C)}return p}(),m=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.materials,T=L.capacity,x=Object.values(w).reduce(function(M,O){return M+O},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(x/T*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(M){return(0,e.createComponentVNode)(2,i,{mt:-2,id:M,bold:M==="metal"||M==="glass",onClick:function(){function O(){return y("withdraw",{id:M})}return O}()},M)})})},l=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.curCategory,T=L.categories,x=L.designs,M=L.syncing,O=(0,o.useLocalState)(V,"searchText",""),D=O[0],E=O[1],P=(0,t.createSearch)(D,function(z){return z.name}),R=x.filter(P),j=(0,o.useLocalState)(V,"levelsModal",!1),F=j[0],W=j[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{width:"19rem",className:"Exofab__dropdown",selected:w,options:T,onSelected:function(){function z(K){return y("category",{cat:K})}return z}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function z(){return y("queueall")}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function z(){return W(!0)}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function z(){return y("unlink")}return z}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function z(K,G){return E(G)}return z}()}),R.map(function(z){return(0,e.createComponentVNode)(2,h,{design:z},z.id)}),R.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.building,T=L.buildStart,x=L.buildEnd,M=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:T,current:M,end:x,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:M,timeLeft:x-M,format:function(){function O(D,E){return E.substr(3)}return O}()}),")"]})]})})})},s=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.queue,T=L.processingQueue,x=Object.entries(L.queueDeficit).filter(function(O){return O[1]<0}),M=w.reduce(function(O,D){return O+D.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:"Process",onClick:function(){function O(){return y("process")}return O}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function O(){return y("unqueueall")}return O}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(O,D){return(0,e.createComponentVNode)(2,f.Box,{color:O.notEnough&&"bad",children:[D+1,". ",O.name,D>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function E(){return y("queueswap",{from:D+1,to:D})}return E}()}),D0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(M/10*1e3).toISOString().substr(14,5)})]}),Object.keys(x).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",x.map(function(O){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:O[0],amount:-O[1],lineDisplay:!0})},O[0])})]})],0)})})},i=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=g.id,T=g.amount,x=g.lineDisplay,M=g.onClick,O=k(g,I),D=L.materials[w]||0,E=T||D;if(!(E<=0&&!(w==="metal"||w==="glass"))){var P=T&&T>D;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",x&&"Exofab__material--line"])},O,{children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:P&&"bad",ml:0,mr:1,children:E.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:M,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[E.toLocaleString("en-US")," cm\xB3 (",Math.round(E/N*10)/10," ","sheets)"]})]})],4)})))}},h=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function T(){return y("build",{id:w.id})}return T}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function T(){return y("queue",{id:w.id})}return T}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(T){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:T[0],amount:T[1],lineDisplay:!0})},T[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},C=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.controllers;return(0,e.createComponentVNode)(2,B.Window,{children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(T){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:T.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:T.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function x(){return y("linktonetworkcontroller",{target_controller:T.addr})}return x}()})})]},T.addr)})]})})})})},v=function(g,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.tech_levels,T=(0,o.useLocalState)(V,"levelsModal",!1),x=T[0],M=T[1];return x?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function O(){M(!1)}return O}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(O){var D=O.name,E=O.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:D,children:E},D)})})})}):null}},59128:function(A,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),B=r.ExperimentConsole=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.open,u=m.feedback,s=m.occupant,i=m.occupant_name,h=m.occupant_status,C=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function S(){return f.get(h)}return S}(),V=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(S){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(S).icon,content:b.get(S).label,onClick:function(){function y(){return c("experiment",{experiment_type:S})}return y}()},S)})})]})}return p}(),v=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function p(){return c("door")}return p}()}),children:v})]})})}return I}()},97086:function(A,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,B=function(N){var d="good",c=80,m=95,l=110,u=120;return Nl?d="average":N>u&&(d="bad"),d},I=r.ExternalAirlockController=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.chamber_pressure,s=l.exterior_status,i=l.interior_status,h=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:B(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return k}()},96142:function(A,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.scan_name?"eject":"id-card",selected:d.scan_name,content:d.scan_name?d.scan_name:"-----",tooltip:d.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return N("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.authenticated?"sign-out-alt":"id-card",selected:d.authenticated,disabled:d.nologin,content:d.realauth?"Log Out":"Log In",onClick:function(){function c(){return N("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:d.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d.paper?"eject":"paperclip",disabled:!d.authenticated&&!d.paper,content:d.paper?d.paper:"-----",onClick:function(){function c(){return N("paper")}return c}()}),!!d.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return N("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:d.destination?d.destination:"-----",disabled:!d.authenticated,onClick:function(){function c(){return N("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:d.sendError?d.sendError:"Send",disabled:!d.paper||!d.destination||!d.authenticated||d.sendError,onClick:function(){function c(){return N("send")}return c}()})})]})})]})})}return b}()},74123:function(A,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=k.config,m=d.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return N("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(A,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=k.icon_state,u=k.direction,s=k.isSelected,i=k.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:m.icon,icon_state:l,direction:u,onClick:i,style:{"border-style":s&&"solid"||"none","border-width":"2px","border-color":"orange",padding:s&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},B=r.FloorPainter=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.availableStyles,u=m.selectedStyle,s=m.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function i(){return c("cycle_style",{offset:-1})}return i}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:u,width:"150px",nochevron:!0,onSelected:function(){function i(h){return c("select_style",{style:h})}return i}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function i(){return c("cycle_style",{offset:1})}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{icon_state:i,isSelected:u===i,onSelect:function(){function h(){return c("select_style",{style:i})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[i+b.WEST,i,i+b.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{icon_state:u,direction:h,isSelected:h===s,onSelect:function(){function C(){return c("select_direction",{direction:h})}return C}()})},h)})},i)})})})})]})})})}return I}()},53424:function(A,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(l){return l?"("+l.join(", ")+")":"ERROR"},B=function(l,u){if(!(!l||!u)){if(l[2]!==u[2])return null;var s=Math.atan2(u[1]-l[1],u[0]-l[0]),i=Math.sqrt(Math.pow(u[1]-l[1],2)+Math.pow(u[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:i}}},I=r.GPS=function(){function m(l,u){var s=(0,t.useBackend)(u),i=s.data,h=i.emped,C=i.active,v=i.area,p=i.position,g=i.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:h?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{area:v,position:p})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(l,u){var s=l.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},N=function(l,u){var s=(0,t.useBackend)(u),i=s.act,h=s.data,C=h.active,v=h.tag,p=h.same_z,g=(0,t.useLocalState)(u,"newTag",v),V=g[0],S=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function y(){return i("toggle")}return y}()}),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 y(){return i("tag",{newtag:V})}return y}(),onInput:function(){function y(L,w){return S(w)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function y(){return i("tag",{newtag:V})}return y}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function y(){return i("same_z")}return y}()})})]})})},d=function(l,u){var s=l.title,i=l.area,h=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),b(h)]})})},c=function(l,u){var s=(0,t.useBackend)(u),i=s.data,h=i.position,C=i.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(v){return Object.assign({},v,B(h,v.position))}).map(function(v,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children: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:b(v.position)})]},p)})})})))}},89124:function(A,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,i){var h=(0,a.useBackend)(i),C=h.data,v=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,l,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,B)]})}),2)]})}return u}(),B=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})},I=function(s,i){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.has_seed,g=v.seed,V=v.has_disk,S=v.disk,y,L;return p?y=(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,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:g.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}()})]}):y=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?L=S.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return C("select_empty_disk")}return w}()})})})]})})},N=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function S(){return C("extract",{id:V.id})}return S}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return C("bulk_extract_core")}return V}()})})})]},"Core Genes")},d=function(s,i){var h=(0,a.useBackend)(i),C=h.data,v=C.reagent_genes,p=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:v,do_we_show:p})},c=function(s,i){var h=(0,a.useBackend)(i),C=h.data,v=C.trait_genes,p=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:v,do_we_show:p})},m=function(s,i){var h=s.title,C=s.gene_set,v=s.do_we_show,p=(0,a.useBackend)(i),g=p.act,V=p.data,S=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:h,open:!0,children:v?C.map(function(y){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:y.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(S!=null&&S.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:y.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 g("remove",{id:y.id})}return L}()})})]},y)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},h)},l=function(s,i){var h=s.title,C=s.gene_set,v=s.do_we_show,p=(0,a.useBackend)(i),g=p.act,V=p.data,S=V.has_seed,y=V.empty_disks,L=V.stat_disks,w=V.trait_disks,T=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",y,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return g("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,M){return x.display_name.localeCompare(M.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!S,icon:"arrow-circle-down",onClick:function(){function M(){return g("bulk_replace_core",{index:x.index})}return M}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!S,content:"Replace",onClick:function(){function M(){return g("replace",{index:x.index,stat:x.stat})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function M(){return g("select",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function M(){return g("eject_disk",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function M(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return M}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(x,M){return x.display_name.localeCompare(M.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function M(){return g("insert",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function M(){return g("select",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function M(){return g("eject_disk",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function M(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return M}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[T.slice().sort(function(x,M){return x.display_name.localeCompare(M.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function M(){return g("insert",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function M(){return g("select",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function M(){return g("eject_disk",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function M(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return M}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(A,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(B,I){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(A,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.data,c=d.security,m=d.medical,l=d.diagnostic,u=d.pressure,s=d.radioactivity,i=d.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:217,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,b,{label:"Pressure",type:"pressure",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:s,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:i,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return B}(),b=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=I.label,m=I.type,l=m===void 0?null:m,u=I.is_active,s=I.act_on,i=s===void 0?"hud_on":s,h=I.act_off,C=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function v(){return d(u?C:i,{hud_type:l})}return v}()})})]})}},25825:function(A,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function u(){return N("dispense",{gland_id:l.id})}return u}()},l.id)})})})})}return b}()},10270:function(A,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.charging_state,m=d.charge_count,l=d.breaker,u=d.ext_power,s=function(){function h(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return h}(),i=function(){function h(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return h}();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:[i(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function h(){return N("breaker")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(A,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.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 d("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 d("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 d("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 d("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 d("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 d("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 d("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return d("access",{access:l})}return m}(),grantAll:function(){function m(){return d("grant_all")}return m}(),denyAll:function(){function m(){return d("clear_all")}return m}(),grantDep:function(){function m(l){return d("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return d("deny_region",{region:l})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return d("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return B}()},67834:function(A,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,B=r.HandheldChemDispenser=function(){function N(d,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,I),(0,e.createComponentVNode)(2,k)]})})})}return N}(),I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.amount,i=u.energy,h=u.maxEnergy,C=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[i," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},k=function(d,c){for(var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.chemicals,i=s===void 0?[]:s,h=u.current_reagent,C=[],v=0;v<(i.length+1)%3;v++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[i.map(function(p,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return l("dispense",{reagent:p.id})}return V}()},g)}),C.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},46098:function(A,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function I(k,N){var d=(0,t.useBackend)(N),c=d.act,m=d.data,l=m.on,u=m.user_health,s=m.minHealth,i=m.maxHealth,h=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:i,value:h,format:function(){function C(v){return(0,a.toFixed)(v,1)}return C}(),width:"80px",onDrag:function(){function C(v,p){return c("alarm_health",{alarm_health:p})}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:B(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return I}(),B=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(A,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=(0,a.useLocalState)(k,"currentDeck",""),l=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),i=s[0],h=s[1],C=c.decks,v=c.ai_override,p=c.emagged,g=function(){function V(S){d("select_deck",{deck:S}),u(S),h(!0),setTimeout(function(){h(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[i&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",l]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===l,onClick:function(){function S(){return g(V)}return S}()},V)}),(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:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return d("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return d("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return B}(),b=function(I,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(A,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function d(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,N)]})})]})}return d}(),B=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.help;if(i)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return u("help")}return h}()})]})})})},I=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.lines,h=s.playing,C=s.repeat,v=s.maxRepeats,p=s.tempo,g=s.minTempo,V=s.maxTempo,S=s.tickLag,y=s.volume,L=s.minVolume,w=s.maxVolume,T=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:i.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:C,stepPixelSize:59,onChange:function(){function x(M,O){return u("repeat",{new:O})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p+S})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p-S})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:y,stepPixelSize:6,onDrag:function(){function x(M,O){return u("setvolume",{new:O})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:T?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.allowedInstrumentNames,h=s.instrumentLoaded,C=s.instrument,v=s.canNoteShift,p=s.noteShift,g=s.noteShiftMin,V=s.noteShiftMax,S=s.sustainMode,y=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,T=s.sustainDropoffVolume,x=s.sustainHeldNote,M,O;return S===1?(M="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:y,step:.5,stepPixelSize:85,format:function(){function D(E){return(0,a.round)(E*100)/100+" seconds"}return D}(),onChange:function(){function D(E,P){return u("setlinearfalloff",{new:P/10})}return D}()})):S===2&&(M="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function D(E){return(0,a.round)(E*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(E,P){return u("setexpfalloff",{new:P})}return D}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:C,width:"50%",onSelected:function(){function D(E){return u("switchinstrument",{name:E})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:V,value:p,stepPixelSize:2,format:function(){function D(E){return E+" keys / "+(0,a.round)(E/12*100)/100+" octaves"}return D}(),onChange:function(){function D(E,P){return u("setnoteshift",{new:P})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:M,mb:"0.4rem",onSelected:function(){function D(E){return u("setsustainmode",{new:E})}return D}()}),O]}),(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:T,stepPixelSize:6,onChange:function(){function D(E,P){return u("setdropoffvolume",{new:P})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},N=function(c,m){var l=(0,t.useBackend)(m),u=l.act,s=l.data,i=s.playing,h=s.lines,C=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||i,icon:"plus",content:"Add Line",onClick:function(){function v(){return u("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function v(){return u("edit")}return v}()})],4),children:!!C&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function g(){return u("modifyline",{line:p+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function g(){return u("deleteline",{line:p+1})}return g}()})],4),children:v},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},52736:function(A,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(72253),f=n(36036),b=n(98595),B=r.Jukebox=function(){function N(d,c){var m=(0,o.useBackend)(c),l=m.act,u=m.data,s=u.active,i=u.looping,h=u.track_selected,C=u.volume,v=u.max_volume,p=u.songs,g=u.startTime,V=u.endTime,S=u.worldTime,y=u.need_coin,L=u.payment,w=u.advanced_admin,T=35,x=!L&&y&&!w,M=(0,t.flow)([(0,a.sortBy)(function(j){return j.name})])(p),O=p.find(function(j){return j.name===h}),D=M.length,E=O?M.findIndex(function(j){return j.name===O.name})+1:0,P=function(){function j(F){var W=Math.floor(F/60),z=F%60,K=String(W).padStart(2,"0")+":"+String(z).padStart(2,"0");return K}return j}(),R=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[s?i?"\u221E":P(Math.round((S-g)/10)):i?"\u221E":P(O.length)," ","/ ",i?"\u221E":P(O.length)]});return(0,e.createComponentVNode)(2,b.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,k):null,(0,e.createComponentVNode)(2,b.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:O.name.length>T?(0,e.createVNode)(1,"marquee",null,O.name,0):O.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:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function j(){return l("toggle")}return j}()})}),(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:s||y&&!w,tooltip:y&&!w?"\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:i,onClick:function(){function j(){return l("loop",{looping:!i})}return j}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:g,current:i?V:S,end:V,children:R})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[s?(0,e.createComponentVNode)(2,I):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 j(){return l("set_volume",{volume:"min"})}return j}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function j(){return l("set_volume",{volume:"reset"})}return j}()})}),(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 j(){return l("set_volume",{volume:"max"})}return j}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:C<=25?"green":C<=50?"":C<=75?"orange":"red",value:C,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function j(F,W){return l("set_volume",{volume:W})}return j}()}),"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:E+"/"+D,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 j(){var F=Math.floor(Math.random()*D),W=M[F];l("select_track",{track:W.name})}return j}()}),children:M.map(function(j){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:O.name===j.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:j.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:P(j.length)})]}),onClick:function(){function F(){l("select_track",{track:j.name})}return F}()})},j.name)})})})]})})]})}return N}(),I=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"})]})},k=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"})]})}},13618:function(A,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),B=n(51057),I=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},N=3,d=function(l){var u="";if(l.altKey&&(u+="Alt"),l.ctrlKey&&(u+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(u+="Shift"),l.location===N&&(u+="Numpad"),I(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var s=l.keyCode-48;u+="Shift"+s}else{var i=l.key.toUpperCase();u+=k[i]||i}return u},c=r.KeyComboModal=function(){function m(l,u){var s=(0,t.useBackend)(u),i=s.act,h=s.data,C=h.init_value,v=h.large_buttons,p=h.message,g=p===void 0?"":p,V=h.title,S=h.timeout,y=(0,t.useLocalState)(u,"input",C),L=y[0],w=y[1],T=(0,t.useLocalState)(u,"binding",!0),x=T[0],M=T[1],O=function(){function P(R){if(!x){R.key===a.KEY.Enter&&i("submit",{entry:L}),(0,a.isEscape)(R.key)&&i("cancel");return}if(R.preventDefault(),I(R)){D(d(R)),M(!1);return}else if(R.key===a.KEY.Escape){D(C),M(!1);return}}return P}(),D=function(){function P(R){R!==L&&w(R)}return P}(),E=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:E,children:[S&&(0,e.createComponentVNode)(2,B.Loader,{value:S}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function P(R){O(R)}return P}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function P(){D(C),M(!0)}return P}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(A,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!d.swiping&&!d.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:!d.redAvailable,onClick:function(){function l(){return N("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return N("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return N("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return N("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return N("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return N("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!d.hasSwiped&&!d.ertreason&&d.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):d.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):d.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):d.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,d.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:d.ertreason?"":"red",icon:d.ertreason?"check":"pencil-alt",content:d.ertreason?d.ertreason:"-----",disabled:d.busy,onClick:function(){function l(){return N("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:d.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:d.busy||d.hasConfirm,onClick:function(){function l(){return N("reset")}return l}()}),children:m})]})})}return b}()},62955:function(A,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.data,m=d.config,l=c.ingredients,u=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,B)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(i){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:i.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," ",i.units]}),2)]},i.name)})})})})]})})})}return I}(),B=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},9525:function(A,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.isAdmin,s=l.isSlaved,i=l.isMalf,h=l.isAIMalf,C=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(i||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),C===0&&(0,e.createComponentVNode)(2,b),C===1&&(0,e.createComponentVNode)(2,B)]})})}return k}(),b=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.has_zeroth_laws,s=l.zeroth_laws,i=l.has_ion_laws,h=l.ion_laws,C=l.ion_law_nr,v=l.has_inherent_laws,p=l.inherent_laws,g=l.has_supplied_laws,V=l.supplied_laws,S=l.channels,y=l.channel,L=l.isMalf,w=l.isAdmin,T=l.zeroth_law,x=l.ion_law,M=l.inherent_law,O=l.supplied_law,D=l.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,I,{title:"ERR_NULL_VALUE",laws:s,ctx:d}),!!i&&(0,e.createComponentVNode)(2,I,{title:C,laws:h,ctx:d}),!!v&&(0,e.createComponentVNode)(2,I,{title:"Inherent",laws:p,ctx:d}),!!g&&(0,e.createComponentVNode)(2,I,{title:"Supplied",laws:V,ctx:d}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:S.map(function(E){return(0,e.createComponentVNode)(2,t.Button,{content:E.channel,selected:E.channel===y,onClick:function(){function P(){return m("law_channel",{law_channel:E.channel})}return P}()},E.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function E(){return m("state_laws")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function E(){return m("notify_laws")}return E}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:T}),(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 E(){return m("change_zeroth_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_zeroth_law")}return E}()})]})]}),(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 E(){return m("change_ion_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_ion_law")}return E}()})]})]}),(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:M}),(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 E(){return m("change_inherent_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_inherent_law")}return E}()})]})]}),(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:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function E(){return m("change_supplied_law_position")}return E}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function E(){return m("change_supplied_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_supplied_law")}return E}()})]})]})]})})],0)},B=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return m("transfer_laws",{transfer_laws:s.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},s.name)})})},I=function(N,d){var c=(0,a.useBackend)(N.ctx),m=c.act,l=c.data,u=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:N.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?"})]}),N.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function i(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return i}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return m("edit_law",{edit_law:s.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return m("delete_law",{delete_law:s.ref})}return i}()})],4)]})]},s.law)})]})})}},85066:function(A,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function C(v,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),B=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=v.args,L=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:y.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:y.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:y.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[y.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!y.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:y.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===y.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:y.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:y.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:y.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:y.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:y.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:y.id})}return w}()})]})},I=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=v.args,L=S.selected_report,w=S.report_categories,T=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:y.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(x,M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function O(){return V("set_report",{report_type:x.category_id})}return O}()}),(0,e.createVNode)(1,"br")],4,M)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:y.id,user_ckey:T})}return x}()})]})},k=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.selected_rating,L=Array(10).fill().map(function(w,T){return 1+T});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:y>=w?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:w})}return x}()})},T)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[y+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},N=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=v.args,L=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:y.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:y.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[y.current_rating?y.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:y.total_ratings?y.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:y.id,user_ckey:L})}return w}()})]})},d=function(v,p){var g=(0,a.useBackend)(p),V=g.data,S=(0,a.useLocalState)(p,"tabIndex",0),y=S[0],L=S[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===0,onClick:function(){function T(){return L(0)}return T}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===1,onClick:function(){function T(){return L(1)}return T}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===2,onClick:function(){function T(){return L(2)}return T}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===3,onClick:function(){function T(){return L(3)}return T}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===4,onClick:function(){function T(){return L(4)}return T}(),children:"Inventory"})]})})},c=function(v,p){var g=(0,a.useLocalState)(p,"tabIndex",0),V=g[0];switch(V){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,i);case 4:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.searchcontent,L=S.book_categories,w=S.user_ckey,T=[];return L.map(function(x){return T[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:y.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:y.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:y.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:y.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(M){return V("toggle_search_category",{category_id:T[M]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return y.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 M(){return V("toggle_search_category",{category_id:x.category_id})}return M}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),y.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:w})}return x}()})]})]})},l=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.external_booklist,L=S.archive_pagenumber,w=S.num_pages,T=S.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),y.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:[T===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function M(){return V("order_external_book",{bookid:x.id})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function M(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return M}()})]})]},x.id)})]})]})},u=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.programmatic_booklist,L=S.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),y.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:w.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return x}()})]})]},T)})]})})},s=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.selectedbook,L=S.book_categories,w=S.user_ckey,T=[];return L.map(function(x){return T[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:y.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:w})}return x}()}),children:[y.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:y.copyright,content:y.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:y.copyright,content:y.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(M){return V("toggle_upload_category",{category_id:T[M]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return y.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:y.copyright,selected:!0,icon:"unlink",onClick:function(){function M(){return V("toggle_upload_category",{category_id:x.category_id})}return M}()},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:y.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:y.summary})]})})]})]})},i=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),y.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function T(){return V("reportlost",{libraryid:L.libraryid})}return T}()})})]},w)})]})})},h=function(v,p){var g=(0,a.useBackend)(p),V=g.act,S=g.data,y=S.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),y.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",B),(0,f.modalRegisterBodyOverride)("report_book",I),(0,f.modalRegisterBodyOverride)("rate_info",N)},9516:function(A,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function d(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,B)})]})}return d}(),B=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.pagestate;switch(i){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,N);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},I=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return i}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_search")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function i(){return u("view_reported_books")}return i}()})]})},k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function h(){return u("return")}return h}()}),(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"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),h.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return u("delete_book",{bookid:h.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return u("unflag_book",{bookid:h.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:h.id})}return C}()})]})]},h.id)})]})})},N=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.ckey,h=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",i,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return u("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),h.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return u("delete_book",{bookid:C.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return u("view_book",{bookid:C.id})}return v}()})]})]},C.id)})]})})}},90447:function(A,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),B=n(98595),I=r.ListInputModal=function(){function d(c,m){var l=(0,f.useBackend)(m),u=l.act,s=l.data,i=s.items,h=i===void 0?[]:i,C=s.message,v=C===void 0?"":C,p=s.init_value,g=s.timeout,V=s.title,S=(0,f.useLocalState)(m,"selected",h.indexOf(p)),y=S[0],L=S[1],w=(0,f.useLocalState)(m,"searchBarVisible",h.length>10),T=w[0],x=w[1],M=(0,f.useLocalState)(m,"searchQuery",""),O=M[0],D=M[1],E=function(){function G(J){var Q=z.length-1;if(J===b.KEY_DOWN)if(y===null||y===Q){var ue;L(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView()}else{var ie;L(y+1),(ie=document.getElementById((y+1).toString()))==null||ie.scrollIntoView()}else if(J===b.KEY_UP)if(y===null||y===0){var pe;L(Q),(pe=document.getElementById(Q.toString()))==null||pe.scrollIntoView()}else{var te;L(y-1),(te=document.getElementById((y-1).toString()))==null||te.scrollIntoView()}}return G}(),P=function(){function G(J){J!==y&&L(J)}return G}(),R=function(){function G(){x(!1),x(!0)}return G}(),j=function(){function G(J){var Q=String.fromCharCode(J),ue=h.find(function(te){return te==null?void 0:te.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(ue){var ie,pe=h.indexOf(ue);L(pe),(ie=document.getElementById(pe.toString()))==null||ie.scrollIntoView()}}return G}(),F=function(){function G(J){var Q;J!==O&&(D(J),L(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return G}(),W=function(){function G(){x(!T),D("")}return G}(),z=h.filter(function(G){return G==null?void 0:G.toLowerCase().includes(O.toLowerCase())}),K=330+Math.ceil(v.length/3);return T||setTimeout(function(){var G;return(G=document.getElementById(y.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,B.Window,{title:V,width:325,height:K,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,B.Window.Content,{onKeyDown:function(){function G(J){var Q=window.event?J.which:J.keyCode;(Q===b.KEY_DOWN||Q===b.KEY_UP)&&(J.preventDefault(),E(Q)),Q===b.KEY_ENTER&&(J.preventDefault(),u("submit",{entry:z[y]})),!T&&Q>=b.KEY_A&&Q<=b.KEY_Z&&(J.preventDefault(),j(Q)),Q===b.KEY_ESCAPE&&(J.preventDefault(),u("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:T?"search":"font",selected:!0,tooltip:T?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return W()}return G}()}),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,k,{filteredItems:z,onClick:P,onFocusSearch:R,searchBarVisible:T,selected:y})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:T&&(0,e.createComponentVNode)(2,N,{filteredItems:z,onSearch:F,searchQuery:O,selected:y})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[y]})})]})})})]})}return d}(),k=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,i=c.onClick,h=c.onFocusSearch,C=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function V(){return i(g)}return V}(),onDblClick:function(){function V(S){S.preventDefault(),u("submit",{entry:s[v]})}return V}(),onKeyDown:function(){function V(S){var y=window.event?S.which:S.keyCode;C&&y>=b.KEY_A&&y<=b.KEY_Z&&(S.preventDefault(),h())}return V}(),selected:g===v,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},g)})})},N=function(c,m){var l=(0,f.useBackend)(m),u=l.act,s=c.filteredItems,i=c.onSearch,h=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(p){p.preventDefault(),u("submit",{entry:s[C]})}return v}(),onInput:function(){function v(p,g){return i(g)}return v}(),placeholder:"Search...",value:h})}},26826:function(A,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b={Default:function(){function c(m,l){return m.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(m,l){return m.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(m,l){return m.gear.cost-l.gear.cost}return c}()},B=r.Loadout=function(){function c(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=(0,t.useLocalState)(l,"search",!1),C=h[0],v=h[1],p=(0,t.useLocalState)(l,"searchText",""),g=p[0],V=p[1],S=(0,t.useLocalState)(l,"category",Object.keys(i.gears)[0]),y=S[0],L=S[1],w=(0,t.useLocalState)(l,"tweakedGear",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,f.Window,{width:1105,height:650,children:[T&&(0,e.createComponentVNode)(2,d,{tweakedGear:T,setTweakedGear:x}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,I,{category:y,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,N,{setTweakedGear:x})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,k,{category:y,search:C,setSearch:v,searchText:g,setSearchText:V})})]})})]})})]})}return c}(),I=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=m.category,C=m.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(i.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function p(){return C(v)}return p}(),children:v},v)})})},k=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=i.user_tier,C=i.gear_slots,v=i.max_gear_slots,p=m.category,g=m.search,V=m.setSearch,S=m.searchText,y=m.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),w=L[0],T=L[1],x=(0,t.useLocalState)(l,"sortReverse",!1),M=x[0],O=x[1],D=(0,a.createSearch)(S,function(P){return P.name}),E;return S.length>2?E=Object.entries(i.gears).reduce(function(P,R){var j=R[0],F=R[1];return P.concat(Object.entries(F).map(function(W){var z=W[0],K=W[1];return{key:z,gear:K}}))},[]).filter(function(P){var R=P.gear;return D(R)}):E=Object.entries(i.gears[p]).map(function(P){var R=P[0],j=P[1];return{key:R,gear:j}}),E.sort(b[w]),M&&(E=E.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:w,options:Object.keys(b),onSelected:function(){function P(R){return T(R)}return P}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:M?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:M?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function P(){return O(!M)}return P}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:S,onInput:function(){function P(R){return y(R.target.value)}return P}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function P(){V(!g),y("")}return P}()})})]}),children:E.map(function(P){var R=P.key,j=P.gear,F=12,W=Object.keys(i.selected_gears).includes(R),z=j.cost===1?j.cost+" Point":j.cost+" Points",K=(0,e.createComponentVNode)(2,o.Box,{children:[j.name.length>F&&(0,e.createComponentVNode)(2,o.Box,{children:j.name}),j.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:j.name.length>F&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),G=(0,e.createFragment)([j.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:j.allowed_roles.map(function(Q){return(0,e.createComponentVNode)(2,o.Box,{children:Q},Q)})}),tooltipPosition:"left"}),Object.entries(j.tweaks).map(function(Q){var ue=Q[0],ie=Q[1];return ie.map(function(pe){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:pe.icon,tooltip:pe.tooltip,tooltipPosition:"top"},ue)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:j.desc,tooltipPosition:"top"})],0),J=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:j.gear_tier>0&&"Tier "+j.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:z})]});return(0,e.createComponentVNode)(2,o.ImageButton,{m:.5,imageSize:84,dmIcon:j.icon,dmIconState:j.icon_state,tooltip:(j.name.length>F||j.gear_tier>0)&&K,tooltipPosition:"bottom",selected:W,disabled:j.gear_tier>h||C+j.cost>v&&!W,buttons:G,buttonsAlt:J,onClick:function(){function Q(){return s("toggle_gear",{gear:R})}return Q}(),children:j.name},R)})})},N=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=m.setTweakedGear,C=Object.entries(i.gears).reduce(function(v,p){var g=p[0],V=p[1],S=Object.entries(V).filter(function(y){var L=y[0];return Object.keys(i.selected_gears).includes(L)}).map(function(y){var L=y[0],w=y[1];return Object.assign({key:L},w)});return v.concat(S)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return s("clear_loadout")}return v}()}),children:C.map(function(v){return(0,e.createComponentVNode)(2,o.ImageButton,{fluid:!0,imageSize:32,dmIcon:v.icon,dmIconState:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function p(){return h(v)}return p}()}),(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"times",iconColor:"red",width:"32px",onClick:function(){function p(){return s("toggle_gear",{gear:v.key})}return p}()})],0),children:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i.gear_slots,maxValue:i.max_gear_slots,ranges:{bad:[i.max_gear_slots,1/0],average:[i.max_gear_slots*.66,i.max_gear_slots],good:[0,i.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",i.gear_slots,"/",i.max_gear_slots]})})})})]})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=m.tweakedGear,C=m.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return C("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var p=v[0],g=v[1];return g.map(function(V){var S=i.selected_gears[h.key][p];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V.name,color:S?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function y(){return s("set_tweak",{gear:h.key,tweak:p})}return y}()}),children:[S||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+S}})]},p)})})})})})})}},77613:function(A,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(y,L){var w=y.name,T=y.value,x=y.module_ref,M=(0,a.useBackend)(L),O=M.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(E,P){return O("configure",{key:w,value:P,ref:x})}return D}()})},b=function(y,L){var w=y.name,T=y.value,x=y.module_ref,M=(0,a.useBackend)(L),O=M.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:T,onClick:function(){function D(){return O("configure",{key:w,value:!T,ref:x})}return D}()})},B=function(y,L){var w=y.name,T=y.value,x=y.module_ref,M=(0,a.useBackend)(L),O=M.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return O("configure",{key:w,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:T,mr:.5})],4)},I=function(y,L){var w=y.name,T=y.value,x=y.values,M=y.module_ref,O=(0,a.useBackend)(L),D=O.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:T,options:x,onSelected:function(){function E(P){return D("configure",{key:w,value:P,ref:M})}return E}()})},k=function(y,L){var w=y.name,T=y.display_name,x=y.type,M=y.value,O=y.values,D=y.module_ref,E={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},y))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},y))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,B,Object.assign({},y))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,I,Object.assign({},y)))};return(0,e.createComponentVNode)(2,t.Box,{children:[T,": ",E[x]]})},N=function(y,L){var w=y.active,T=y.userradiated,x=y.usertoxins,M=y.usermaxtoxins,O=y.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&T?"bad":"good",children:w&&T?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&O?"bad":"good",bold:!0,children:w&&O?O:0})})]})},d=function(y,L){var w=y.active,T=y.userhealth,x=y.usermaxhealth,M=y.userbrute,O=y.userburn,D=y.usertoxin,E=y.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?T/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?T:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?O:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})})]})],4)},c=function(y,L){var w=y.active,T=y.statustime,x=y.statusid,M=y.statushealth,O=y.statusmaxhealth,D=y.statusbrute,E=y.statusburn,P=y.statustoxin,R=y.statusoxy,j=y.statustemp,F=y.statusnutrition,W=y.statusfingerprints,z=y.statusdna,K=y.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?T:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/O:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:P})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?j:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?F:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?W:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?z:"???"})]})}),!!w&&!!K&&(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"})})]}),K.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:N,health_analyzer:d,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(y,L){var w=y.configuration_data,T=y.module_ref,x=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(M){var O=w[M];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:M,display_name:O.display_name,type:O.type,value:O.value,values:O.values,module_ref:T})},O.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:y.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},i=function(y){switch(y){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},h=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.active,O=x.malfunctioning,D=x.locked,E=x.open,P=x.selected_module,R=x.complexity,j=x.complexity_max,F=x.wearer_name,W=x.wearer_job,z=O?"Malfunctioning":M?"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:M?"Deactivate":"Activate",onClick:function(){function K(){return T("activate")}return K}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function K(){return T("lock")}return K}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:E?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[R," (",j,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[F,", ",W]})]})})},C=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.active,O=x.control,D=x.helmet,E=x.chestplate,P=x.gauntlets,R=x.boots,j=x.core,F=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:O}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:E||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:R||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:j&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:j}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:F/100,content:F+"%",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(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.active,O=x.modules,D=O.filter(function(E){return!!E.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(E){var P=m[E.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!M&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,P,Object.assign({},E,{active:M})))]},E.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.complexity_max,O=x.modules,D=(0,a.useLocalState)(L,"module_configuration",null),E=D[0],P=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:O.length!==0&&O.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:R.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[E===R.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:R.configuration_data,module_ref:R.ref,onExit:function(){function j(){return P(null)}return j}()}),(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:[R.module_complexity,"/",M]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[R.cooldown>0&&R.cooldown/10||"0","/",R.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return T("select",{ref:R.ref})}return j}(),icon:"bullseye",selected:R.module_active,tooltip:i(R.module_type),tooltipPosition:"left",disabled:!R.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return P(R.ref)}return j}(),icon:"cog",selected:E===R.ref,tooltip:"Configure",tooltipPosition:"left",disabled:R.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return T("pin",{ref:R.ref})}return j}(),icon:"thumbtack",selected:R.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!R.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:R.description})]})})},R.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function S(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.ui_theme,O=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!O,children:!!O&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(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,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return S}(),V=r.MODsuit=function(){function S(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.ui_theme,O=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:M,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,g)})})})}return S}()},78624:function(A,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),B=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"}]]),I=r.MagnetController=function(){function k(N,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.autolink,s=l.code,i=l.frequency,h=l.linkedMagnets,C=l.magnetConfiguration,v=l.path,p=l.pathPosition,g=l.probing,V=l.powerState,S=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function y(){return m("probe_magnets")}return y}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(i/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function y(){return m("toggle_power")}return y}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:S.value,minValue:S.min,maxValue:S.max,onChange:function(){function y(L,w){return m("set_speed",{speed:w})}return y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(B.entries()).map(function(y){var L=y[0],w=y[1],T=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:T,tooltip:x,onClick:function(){function M(){return m("path_add",{code:L})}return M}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function y(){return m("path_clear")}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function y(){return(0,b.modalOpen)(d,"path_custom_input")}return y}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(y,L){var w=B.get(y)||{icon:"question"},T=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:T,confirmIcon:T,confirmContent:"",tooltip:x,onClick:function(){function M(){return m("path_remove",{index:L+1,code:y})}return M}()},L)})})]})]})}),h.map(function(y,L){var w=y.uid,T=y.powerState,x=y.electricityLevel,M=y.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:T?"power-off":"times",content:T?"On":"Off",selected:T,onClick:function(){function O(){return m("toggle_magnet_power",{id:w})}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function O(D,E){return m("set_electricity_level",{id:w,electricityLevel:E})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:M,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function O(D,E){return m("set_magnetic_field",{id:w,magneticField:E})}return O}()})})]})},w)})]})]})}return k}()},72106:function(A,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.recharge_port,m=c&&c.mech,l=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return N("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return b}()},7466:function(A,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),B=r.MechaControlConsole=function(){function I(k,N){var d=(0,t.useBackend)(N),c=d.act,m=d.data,l=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:l.length&&l.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return c("send_message",{mt:s.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return c("get_log",{mt:s.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function i(){return c("shock",{mt:s.uid})}return i}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return I}()},79625:function(A,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),B=n(321),I=n(5485),k=n(22091),N={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},d={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,x){(0,f.modalOpen)(T,"edit",{field:x.edit,value:x.value})},m=function(T,x){var M=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M.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:M.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[M.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:M.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:M.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:N[M.severity],children:M.severity})]})})})},l=r.MedicalRecords=function(){function w(T,x){var M=(0,t.useBackend)(x),O=M.data,D=O.loginState,E=O.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,I.LoginScreen)})});var P;return E===2?P=(0,e.createComponentVNode)(2,u):E===3?P=(0,e.createComponentVNode)(2,s):E===4?P=(0,e.createComponentVNode)(2,i):E===5?P=(0,e.createComponentVNode)(2,p):E===6?P=(0,e.createComponentVNode)(2,g):E===7&&(P=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),P]})})]})}return w}(),u=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.records,P=(0,t.useLocalState)(x,"searchText",""),R=P[0],j=P[1],F=(0,t.useLocalState)(x,"sortId","name"),W=F[0],z=F[1],K=(0,t.useLocalState)(x,"sortOrder",!0),G=K[0],J=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 Q(){return O("screen",{screen:3})}return Q}()})}),(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 Q(ue,ie){return j(ie)}return Q}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,S,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,S,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,S,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,S,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,S,{id:"m_stat",children:"Mental Status"})]}),E.filter((0,a.createSearch)(R,function(Q){return Q.name+"|"+Q.id+"|"+Q.rank+"|"+Q.p_stat+"|"+Q.m_stat})).sort(function(Q,ue){var ie=G?1:-1;return Q[W].localeCompare(ue[W])*ie}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+d[Q.p_stat],onClick:function(){function ue(){return O("view_record",{view_record:Q.ref})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.m_stat})]},Q.id)})]})})})],4)},s=function(T,x){var M=(0,t.useBackend)(x),O=M.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function D(){return O("del_all_med_records")}return D}()})})]})})},i=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.medical,P=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return O("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,h)})}),!E||!E.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 R(){return O("new_med_record")}return R}()}),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:!!E.empty,content:"Delete Medical Record",onClick:function(){function R(){return O("del_med_record")}return R}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(T,x){var M=(0,t.useBackend)(x),O=M.data,D=O.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(E,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:E.value}),!!E.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(x,E)}return R}()})]},P)})})}),!!D.has_photos&&D.photos.map(function(E,P){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:E,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",P+1]},P)})]})},C=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.medical;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:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:E.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function j(){return c(x,P)}return j}()})]},R)})})})})},v=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function P(){return(0,f.modalOpen)(x,"add_comment")}return P}()}),children:E.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):E.comments.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return O("del_comment",{del_comment:R+1})}return j}()})]},R)})})})},p=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.virus,P=(0,t.useLocalState)(x,"searchText",""),R=P[0],j=P[1],F=(0,t.useLocalState)(x,"sortId2","name"),W=F[0],z=F[1],K=(0,t.useLocalState)(x,"sortOrder2",!0),G=K[0],J=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 Q(ue,ie){return j(ie)}return Q}()})}),(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,y,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,y,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,y,{id:"severity",children:"Severity"})]}),E.filter((0,a.createSearch)(R,function(Q){return Q.name+"|"+Q.max_stages+"|"+Q.severity})).sort(function(Q,ue){var ie=G?1:-1;return Q[W].localeCompare(ue[W])*ie}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Q.severity,onClick:function(){function ue(){return O("vir",{vir:Q.D})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:N[Q.severity],children:Q.severity})]},Q.id)})]})})})})],4)},g=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:E.length!==0&&E.map(function(P){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:P.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:P.delivered,minValue:0,maxValue:P.deliverygoal,ranges:{good:[P.deliverygoal*.5,1/0],average:[P.deliverygoal*.25,P.deliverygoal*.5],bad:[-1/0,P.deliverygoal*.25]},children:[P.delivered," / ",P.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:P.report})]})},P.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.medbots;return E.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"})]}),E.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"Unknown"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.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:P.use_beaker?"Reservoir: "+P.total_volume+"/"+P.maximum_volume:"Using internal synthesizer"})]},P.id)})]})})})},S=function(T,x){var M=(0,t.useLocalState)(x,"sortId","name"),O=M[0],D=M[1],E=(0,t.useLocalState)(x,"sortOrder",!0),P=E[0],R=E[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:O!==j&&"transparent",onClick:function(){function W(){O===j?R(!P):(D(j),R(!0))}return W}(),children:[F,O===j&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},y=function(T,x){var M=(0,t.useLocalState)(x,"sortId2","name"),O=M[0],D=M[1],E=(0,t.useLocalState)(x,"sortOrder2",!0),P=E[0],R=E[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:O!==j&&"transparent",onClick:function(){function W(){O===j?R(!P):(D(j),R(!0))}return W}(),children:[F,O===j&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(T,x){var M=(0,t.useBackend)(x),O=M.act,D=M.data,E=D.screen,P=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:E===2,onClick:function(){function R(){O("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:E===5,onClick:function(){function R(){O("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:E===6,onClick:function(){function R(){O("screen",{screen:6})}return R}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:E===7,onClick:function(){function R(){return O("screen",{screen:7})}return R}(),children:"Medibot Tracking"}),E===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:E===3,children:"Record Maintenance"}),E===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:E===4,children:["Record: ",P.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(A,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=N.product,s=N.productImage,i=N.productCategory,h=l.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>h,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:u.name,category:i})}return C}()})})]})},b=function(N,d){var c=(0,a.useBackend)(d),m=c.data,l=(0,a.useLocalState)(d,"tabIndex",1),u=l[0],s=m.products,i=m.imagelist,h=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[h[u]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:i[C.path],productCategory:h[u]},C.name)})})},B=r.MerchVendor=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.user_cash,s=l.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function i(){return m("change")}return i}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),I=function(N,d){var c=(0,a.useBackend)(d),m=c.data,l=(0,a.useLocalState)(d,"tabIndex",1),u=l[0],s=l[1],i=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function h(){return s(1)}return h}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function h(){return s(2)}return h}(),children:"Decorations"})]})}},87684:function(A,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items","gridLayout"];function B(l,u){if(l==null)return{};var s={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(u.includes(i))continue;s[i]=l[i]}return s}var I={Alphabetical:function(){function l(u,s){return u-s}return l}(),Availability:function(){function l(u,s){return-(u.affordable-s.affordable)}return l}(),Price:function(){function l(u,s){return u.price-s.price}return l}()},k=r.MiningVendor=function(){function l(u,s){var i=(0,t.useLocalState)(s,"gridLayout",!1),h=i[0],C=i[1];return(0,e.createComponentVNode)(2,f.Window,{width:400,height:525,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,c,{gridLayout:h,setGridLayout:C}),(0,e.createComponentVNode)(2,d,{gridLayout:h})]})})})}return l}(),N=function(u,s){var i=(0,t.useBackend)(s),h=i.act,C=i.data,v=C.has_id,p=C.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 ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return h("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(u,s){var i=(0,t.useBackend)(s),h=i.act,C=i.data,v=C.has_id,p=C.id,g=C.items,V=u.gridLayout,S=(0,t.useLocalState)(s,"search",""),y=S[0],L=S[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],x=w[1],M=(0,t.useLocalState)(s,"descending",!1),O=M[0],D=M[1],E=(0,a.createSearch)(y,function(j){return j[0]}),P=!1,R=Object.entries(g).map(function(j,F){var W=Object.entries(j[1]).filter(E).map(function(z){return z[1].affordable=v&&p.points>=z[1].price,z[1]}).sort(I[T]);if(W.length!==0)return O&&(W=W.reverse()),P=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W,gridLayout:V},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:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var i=u.gridLayout,h=u.setGridLayout,C=(0,t.useLocalState)(s,"search",""),v=C[0],p=C[1],g=(0,t.useLocalState)(s,"sort",""),V=g[0],S=g[1],y=(0,t.useLocalState)(s,"descending",!1),L=y[0],w=y[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 T(x,M){return p(M)}return T}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:i?"list":"table-cells-large",height:1.75,tooltip:i?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){function T(){return h(!i)}return T}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(I),width:"100%",onSelected:function(){function T(x){return S(x)}return T}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:L?"arrow-down":"arrow-up",height:1.75,tooltip:L?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function T(){return w(!L)}return T}()})})]})})},m=function(u,s){var i=(0,t.useBackend)(s),h=i.act,C=i.data,v=u.title,p=u.items,g=u.gridLayout,V=B(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:p.map(function(S){return g?(0,e.createComponentVNode)(2,o.ImageButton,{mb:.5,imageSize:57.5,dmIcon:S.icon,dmIconState:S.icon_state,disabled:!C.has_id||C.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\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(h){return h.name&&(u.length>0?h.name.toLowerCase().includes(u.toLowerCase())||h.desc.toLowerCase().includes(u.toLowerCase())||h.author.toLowerCase().includes(u.toLowerCase()):!0)}).map(function(h){return(0,e.createComponentVNode)(2,o.Collapsible,{title:h.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:h.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:h.desc})]},h.name)})})})})})],4)}return B}()},59783:function(A,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NTRecruiter=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.gamestatus,m=d.cand_name,l=d.cand_birth,u=d.cand_age,s=d.cand_species,i=d.cand_planet,h=d.cand_job,C=d.cand_records,v=d.cand_curriculum,p=d.total_curriculums,g=d.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 V(){return N("start_game")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function V(){return N("instructions")}return V}()})]})]})})});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 V(){return N("back_to_menu")}return V}()}),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,p,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,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,l,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,h,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,C,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 V(){return N("dismiss")}return V}()})}),(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 V(){return N("hire")}return V}()})})]})})})]})})});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:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",p]})]})}),(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 V(){return N("back_to_menu")}return V}()})})]})})})}return b}()},64713:function(A,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(76910),b=n(98595),B=n(3939),I=n(22091),k=["icon","iconSpin","selected","security","onClick","title","children"],N=["name"];function d(y,L){if(y==null)return{};var w={};for(var T in y)if({}.hasOwnProperty.call(y,T)){if(L.includes(T))continue;w[T]=y[T]}return w}var c=128,m=["security","engineering","medical","science","service","supply"],l={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"}},u=r.Newscaster=function(){function y(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=M.is_security,D=M.is_admin,E=M.is_silent,P=M.is_printing,R=M.screen,j=M.channels,F=M.channel_idx,W=F===void 0?-1:F,z=(0,t.useLocalState)(w,"menuOpen",!1),K=z[0],G=z[1],J=(0,t.useLocalState)(w,"viewingPhoto",""),Q=J[0],ue=J[1],ie=(0,t.useLocalState)(w,"censorMode",!1),pe=ie[0],te=ie[1],q;R===0||R===2?q=(0,e.createComponentVNode)(2,i):R===1&&(q=(0,e.createComponentVNode)(2,h));var ne=j.reduce(function(le,ee){return le+ee.unread},0);return(0,e.createComponentVNode)(2,b.Window,{theme:O&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,B.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,b.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",K&&"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,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function le(){return G(!K)}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function le(){return x("headlines")}return le}(),children:ne>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ne>=10?"9+":ne})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function le(){return x("jobs")}return le}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:j.map(function(le){return(0,e.createComponentVNode)(2,s,{icon:le.icon,title:le.name,selected:R===2&&j[W-1]===le,onClick:function(){function ee(){return x("channel",{uid:le.uid})}return ee}(),children:le.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:le.unread>=10?"9+":le.unread})},le)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function le(){return(0,B.modalOpen)(w,"wanted_notice")}return le}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:pe?"minus-square":"minus-square-o",title:"Censor Mode: "+(pe?"On":"Off"),mb:"0.5rem",onClick:function(){function le(){return te(!pe)}return le}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function le(){return(0,B.modalOpen)(w,"create_story")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function le(){return(0,B.modalOpen)(w,"create_channel")}return le}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:P?"spinner":"print",iconSpin:P,title:P?"Printing...":"Print Newspaper",onClick:function(){function le(){return x("print_newspaper")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:E?"volume-mute":"volume-up",title:"Mute: "+(E?"On":"Off"),onClick:function(){function le(){return x("toggle_mute")}return le}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,I.TemporaryNotice),q]})]})})]})}return y}(),s=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=L.icon,O=M===void 0?"":M,D=L.iconSpin,E=L.selected,P=E===void 0?!1:E,R=L.security,j=R===void 0?!1:R,F=L.onClick,W=L.title,z=L.children,K=d(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",P&&"Newscaster__menuButton--selected",j&&"Newscaster__menuButton--security"]),onClick:F},K,{children:[P&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),z]})))},i=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=M.screen,D=M.is_admin,E=M.channel_idx,P=M.channel_can_manage,R=M.channels,j=M.stories,F=M.wanted,W=(0,t.useLocalState)(w,"fullStories",[]),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"censorMode",!1),J=G[0],Q=G[1],ue=O===2&&E>-1?R[E-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!F&&(0,e.createComponentVNode)(2,C,{story:F,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ue?ue.icon:"newspaper",mr:"0.5rem"}),ue?ue.name:"Headlines"],0),children:j.length>0?j.slice().reverse().map(function(ie){return!z.includes(ie.uid)&&ie.body.length+3>c?Object.assign({},ie,{body_short:ie.body.substr(0,c-4)+"..."}):ie}).map(function(ie,pe){return(0,e.createComponentVNode)(2,C,{story:ie},pe)}):(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."]})}),!!ue&&(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)([J&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ue.admin&&!D,selected:ue.censored,icon:ue.censored?"comment-slash":"comment",content:ue.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ie(){return x("censor_channel",{uid:ue.uid})}return ie}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!P,icon:"cog",content:"Manage",onClick:function(){function ie(){return(0,B.modalOpen)(w,"manage_channel",{uid:ue.uid})}return ie}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ue.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ue.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ue.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ue.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"}),j.reduce(function(ie,pe){return ie+pe.view_count},0).toLocaleString()]})]})})]})},h=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=M.jobs,D=M.wanted,E=Object.entries(O).reduce(function(P,R){var j=R[0],F=R[1];return P+F.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,C,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:E>0?m.map(function(P){return Object.assign({},l[P],{id:P,jobs:O[P]})}).filter(function(P){return!!P&&P.jobs.length>0}).map(function(P){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+P.id]),title:P.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:P.fluff_text}),children:P.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},P.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},C=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=L.story,D=L.wanted,E=D===void 0?!1:D,P=M.is_admin,R=(0,t.useLocalState)(w,"fullStories",[]),j=R[0],F=R[1],W=(0,t.useLocalState)(w,"censorMode",!1),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",E&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([E&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!E&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:O.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!!P&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),O.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!E&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(O.publish_time,M.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,J){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},J)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return F([].concat(j,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,w){var T=L.name,x=d(L,N),M=(0,t.useLocalState)(w,"viewingPhoto",""),O=M[0],D=M[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:T,onClick:function(){function E(){return D(T)}return E}()},x)))},p=function(L,w){var T=(0,t.useLocalState)(w,"viewingPhoto",""),x=T[0],M=T[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 O(){return M("")}return O}()})]})},g=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=!!L.args.uid&&M.channels.filter(function(oe){return oe.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,B.modalClose)(w);return}var D=L.id==="manage_channel",E=!!L.args.is_admin,P=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(O==null?void 0:O.author)||P||"Unknown"),j=R[0],F=R[1],W=(0,t.useLocalState)(w,"name",(O==null?void 0:O.name)||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(O==null?void 0:O.description)||""),J=G[0],Q=G[1],ue=(0,t.useLocalState)(w,"icon",(O==null?void 0:O.icon)||"newspaper"),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"isPublic",D?!!(O!=null&&O.public):!1),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",(O==null?void 0:O.admin)===1||!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+O.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:!E,width:"100%",value:j,onInput:function(){function oe(fe,me){return F(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(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:J,onInput:function(){function oe(fe,me){return Q(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!E,value:ie,width:"35%",mr:"0.5rem",onInput:function(){function oe(fe,me){return pe(me)}return oe}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ie,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:q,icon:q?"toggle-on":"toggle-off",content:q?"Yes":"No",onClick:function(){function oe(){return ne(!q)}return oe}()})}),E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,B.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,49),description:J.substr(0,128),icon:ie,public:q?1:0,admin_locked:ee?1:0})}return oe}()})]})},V=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=M.photo,D=M.channels,E=M.channel_idx,P=E===void 0?-1:E,R=!!L.args.is_admin,j=L.args.scanned_user,F=D.slice().sort(function(oe,fe){if(P<0)return 0;var me=D[P-1];if(me.uid===oe.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(oe){return R||!oe.frozen&&(oe.author===j||!!oe.public)}),W=(0,t.useLocalState)(w,"author",j||"Unknown"),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"channel",F.length>0?F[0].name:""),J=G[0],Q=G[1],ue=(0,t.useLocalState)(w,"title",""),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"body",""),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:J,options:F.map(function(oe){return oe.name}),mb:"0",width:"100%",onSelected:function(){function oe(fe){return Q(fe)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ie,onInput:function(){function oe(fe,me){return pe(me)}return oe}()})}),(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:q,onInput:function(){function oe(fe,me){return ne(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function oe(){return x(O?"eject_photo":"attach_photo")}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ie,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),q.split("\n").map(function(oe,fe){return(0,e.createComponentVNode)(2,o.Box,{children:oe||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||J.trim().length===0||ie.trim().length===0||q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,B.modalAnswer)(w,"create_story","",{author:z,channel:J,title:ie.substr(0,127),body:q.substr(0,1023),admin_locked:ee?1:0})}return oe}()})]})},S=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,O=M.photo,D=M.wanted,E=!!L.args.is_admin,P=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(D==null?void 0:D.author)||P||"Unknown"),j=R[0],F=R[1],W=(0,t.useLocalState)(w,"name",(D==null?void 0:D.title.substr(8))||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(D==null?void 0:D.body)||""),J=G[0],Q=G[1],ue=(0,t.useLocalState)(w,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ie=ue[0],pe=ue[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:!E,width:"100%",value:j,onInput:function(){function te(q,ne){return F(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function te(q,ne){return K(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:J,maxLength:"512",rows:"4",onInput:function(){function te(q,ne){return Q(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function te(){return x(O?"eject_photo":"attach_photo")}return te}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ie,icon:ie?"lock":"lock-open",content:ie?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return pe(!ie)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function te(){x("clear_wanted_notice"),(0,B.modalClose)(w)}return te}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0||J.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,B.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,127),description:J.substr(0,511),admin_locked:ie?1:0})}return te}()})]})};(0,B.modalRegisterBodyOverride)("create_channel",g),(0,B.modalRegisterBodyOverride)("manage_channel",g),(0,B.modalRegisterBodyOverride)("create_story",V),(0,B.modalRegisterBodyOverride)("wanted_notice",S)},48286:function(A,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function B(I,k){var N=(0,t.useBackend)(k),d=N.act,c=N.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(l){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return d("interact",{paper:l.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),d("showFull",{paper:l.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:l.name,children:(0,a.decodeHtmlEntities)(l.contents)})},l.ref)})})})})}return B}()},41166:function(A,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;return d.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:d.authdisk?"eject":"id-card",selected:d.authdisk,content:d.diskname?d.diskname:"-----",tooltip:d.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return N("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!d.authdisk,selected:d.authcode,content:d.codemsg,onClick:function(){function c(){return N("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:d.anchored?"check":"times",selected:d.anchored,disabled:!d.authdisk,content:d.anchored?"YES":"NO",onClick:function(){function c(){return N("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:d.time,disabled:!d.authfull,tooltip:"Set Timer",onClick:function(){function c(){return N("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.safety?"check":"times",selected:d.safety,disabled:!d.authfull,content:d.safety?"ON":"OFF",tooltip:d.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return N("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(d.timer,"bomb"),disabled:d.safety||!d.authfull,color:"red",content:d.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return N("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 N("deploy")}return c}()})})})})}return b}()},52416:function(A,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),B=n(98595),I=r.NumberInputModal=function(){function N(d,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.init_value,i=u.large_buttons,h=u.message,C=h===void 0?"":h,v=u.timeout,p=u.title,g=(0,f.useLocalState)(c,"input",s),V=g[0],S=g[1],y=function(){function T(x){x!==V&&S(x)}return T}(),L=function(){function T(x){x!==V&&S(x)}return T}(),w=140+Math.max(Math.ceil(C.length/3),C.length>0&&i?5:0);return(0,e.createComponentVNode)(2,B.Window,{title:p,width:270,height:w,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,B.Window.Content,{onKeyDown:function(){function T(x){var M=window.event?x.which:x.keyCode;M===o.KEY_ENTER&&l("submit",{entry:V}),M===o.KEY_ESCAPE&&l("cancel")}return T}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:y})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return N}(),k=function(d,c){var m=(0,f.useBackend)(c),l=m.act,u=m.data,s=u.min_value,i=u.max_value,h=u.init_value,C=u.round_value,v=d.input,p=d.onClick,g=d.onChange,V=Math.round(v!==s?Math.max(v/2,s):i/2),S=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function y(){return p(s)}return y}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:s,maxValue:i,onChange:function(){function y(L,w){return g(w)}return y}(),onEnter:function(){function y(L,w){return l("submit",{entry:w})}return y}(),value:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===i,icon:"angle-double-right",onClick:function(){function y(){return p(i)}return y}(),tooltip:v===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:S,icon:"divide",onClick:function(){function y(){return p(V)}return y}(),tooltip:S?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===h,icon:"redo",onClick:function(){function y(){return p(h)}return y}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(A,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],B=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],N=r.OperatingComputer=function(){function l(u,s){var i=(0,t.useBackend)(s),h=i.act,C=i.data,v=C.hasOccupant,p=C.choice,g;return p?g=(0,e.createComponentVNode)(2,m):g=v?(0,e.createComponentVNode)(2,d):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return h("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return h("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),d=function(u,s){var i=(0,t.useBackend)(s),h=i.data,C=h.occupant,v=C.activeSurgeries;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),B.map(function(p,g){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:p[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[p[1]]/100,ranges:I,children:(0,a.round)(C[p[1]])},g)},g)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:k[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Active surgeries",level:"2",children:C.inSurgery&&v?v.map(function(p,g){return(0,e.createComponentVNode)(2,f.Section,{style:{textTransform:"capitalize"},title:p.name+" ("+p.location+")",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:p.step},g)},g)},g)}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var i=(0,t.useBackend)(s),h=i.act,C=i.data,v=C.verbose,p=C.health,g=C.healthAlarm,V=C.oxy,S=C.oxyAlarm,y=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return h(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,T){return h("health_adj",{new:T})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return h(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:S,stepPixelSize:5,ml:"0",onChange:function(){function L(w,T){return h("oxy_adj",{new:T})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function L(){return h(y?"critOff":"critOn")}return L}()})})]})}},46892:function(A,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function B(i,h){var C=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(C)return(C=C.call(i)).next.bind(C);if(Array.isArray(i)||(C=I(i))||h&&i&&typeof i.length=="number"){C&&(i=C);var v=0;return function(){return v>=i.length?{done:!0}:{done:!1,value:i[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 I(i,h){if(i){if(typeof i=="string")return k(i,h);var C={}.toString.call(i).slice(8,-1);return C==="Object"&&i.constructor&&(C=i.constructor.name),C==="Map"||C==="Set"?Array.from(i):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(i,h):void 0}}function k(i,h){(h==null||h>i.length)&&(h=i.length);for(var C=0,v=Array(h);CC},m=function(h,C){var v=h.name,p=C.name;if(!v||!p)return 0;var g=v.match(N),V=p.match(N);if(g&&V&&v.replace(N,"")===p.replace(N,"")){var S=parseInt(g[1],10),y=parseInt(V[1],10);return S-y}return c(v,p)},l=function(h,C){var v=h.searchText,p=h.source,g=h.title,V=h.color,S=h.sorted,y=p.filter(d(v));return S&&y.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+p.length+")",children:y.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=h.color,V=h.thing;return(0,e.createComponentVNode)(2,o.Button,{color:g,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["job_icons16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function S(){return p("orbit",{ref:V.ref})}return S}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function i(h,C){for(var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.alive,S=g.antagonists,y=g.highlights,L=g.response_teams,w=g.tourist,T=g.auto_observe,x=g.dead,M=g.ssd,O=g.ghosts,D=g.misc,E=g.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],j=P[1],F={},W=B(S),z;!(z=W()).done;){var K=z.value;F[K.antag]===void 0&&(F[K.antag]=[]),F[K.antag].push(K)}var G=Object.entries(F);G.sort(function(Q,ue){return c(Q[0],ue[0])});var J=function(){function Q(ue){for(var ie=0,pe=[G.map(function(ne){var le=ne[0],ee=ne[1];return ee}),w,y,V,O,M,x,E,D];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(Q){var ue=Q[0],ie=Q[1];return(0,e.createComponentVNode)(2,o.Section,{title:ue+" - ("+ie.length+")",level:2,children:ie.filter(d(R)).sort(m).map(function(pe){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:pe},pe.name)})},ue)})}),y.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:y,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Tourists",source:w,searchText:R,color:"violet"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:O,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"SSD",source:M,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:x,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:D,searchText:R,sorted:!1})]})})}return i}()},15421:function(A,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function B(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var I=(0,b.createLogger)("OreRedemption"),k=function(h){return h.toLocaleString("en-US")+" pts"},N=r.OreRedemption=function(){function i(h,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return i}(),d=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.id,S=g.points,y=g.disk,L=Object.assign({},(B(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:S>0?"good":"grey",bold:S>0&&"good",children:k(S)})}),(0,e.createComponentVNode)(2,o.Divider),y?(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:y.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!y.design||!y.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:y.design&&(y.compatible?"good":"bad"),children:y.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.sheets,S=Object.assign({},(B(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},S,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(y){return(0,e.createComponentVNode)(2,u,{ore:y},y.id)})]})))})},m=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.alloys,S=Object.assign({},(B(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},S,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(y){return(0,e.createComponentVNode)(2,s,{ore:y},y.id)})]})))})},l=function(h,C){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:h.title}),(v=h.columns)==null?void 0:v.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=h.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.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",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.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(g.amount,50),stepPixelSize:6,onChange:function(){function V(S,y){return p(g.value?"sheet":"alloy",{id:g.id,amount:y})}return V}()})})]})})},s=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=h.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",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.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(g.amount,50),stepPixelSize:6,onChange:function(){function V(S,y){return p(g.value?"sheet":"alloy",{id:g.id,amount:y})}return V}()})})]})})}},52754:function(A,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),B=function(N){var d;try{d=b("./"+N+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",N);throw m}var c=d[N];return c||(0,f.routingError)("missingExport",N)},I=r.PAI=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.app_template,s=l.app_icon,i=l.app_title,h=B(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),i,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,h)})})})})})}return k}()},85175:function(A,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),B=function(c){var m;try{m=b("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var l=m[c];return l||(0,f.routingError)("missingExport",c)},I=r.PDA=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.app,h=s.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=B(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,N)})]})})})}return d}(),k=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.idInserted,h=s.idLink,C=s.stationTime,v=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:i?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},N=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!i.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:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return u("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){u("Home")}return h}()})})]})})}},68654:function(A,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.active,l=c.anchored,u=c.broken,s=c.emagged,i=c.fuel_type,h=c.fuel_usage,C=c.fuel_stored,v=c.fuel_cap,p=c.is_ai,g=c.tmp_current,V=c.tmp_max,S=c.tmp_overheat,y=c.output_max,L=c.power_gen,w=c.output_set,T=c.has_fuel,x=C/v,M=g/V,O=w*L,D=Math.round(C/h*2),E=Math.round(D/60),P=D>120?E+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:m,onClick:function(){function R(){return d("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:y*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function R(j,F){return d("change_power",{change_power:F})}return R}()}),"(",(0,f.formatPower)(O),")"]})})}),(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:M,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[S>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),S>20&&S<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),S>1&&S<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),S===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!T,onClick:function(){function R(){return d("eject_fuel")}return R}()}),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:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(h?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return B}()},1701:function(A,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function l(u,s){var i=(0,a.useBackend)(s),h=i.data,C=h.beakerLoaded,v=h.beakerContainsBlood,p=h.beakerContainsVirus,g=h.resistances,V=g===void 0?[]:g,S;return C?v?v&&!p&&(S=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):S=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):S=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[S&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:S})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return l}(),b=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function p(){return h("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!v,onClick:function(){function p(){return h("destroy_eject_beaker")}return p}()})],4)},B=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.beakerContainsVirus,p=u.strain,g=p.commonName,V=p.description,S=p.diseaseAgent,y=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,T=p.transmissionRoute,x=p.isAdvanced,M=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:y?(0,e.createVNode)(1,"span",null,y,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!v)return(0,e.createComponentVNode)(2,t.LabeledList,{children:M});var O;return x&&(g!=null&&g!=="Unknown"?O=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return h("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):O=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return h("name_strain",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[g!=null?g:"Unknown",O]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:S}),M,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:T!=null?T:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},I=function(u,s){var i,h=(0,a.useBackend)(s),C=h.act,v=h.data,p=!!v.synthesisCooldown,g=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return C("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(i=u.sectionTitle)!=null?i:"Strain Information",buttons:g,children:(0,e.createComponentVNode)(2,B,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var i,h=(0,a.useBackend)(s),C=h.act,v=h.data,p=v.selectedStrainIndex,g=v.strains,V=g[p-1];if(g.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(g.length===1){var S;return(0,e.createFragment)([(0,e.createComponentVNode)(2,I,{strain:g[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((S=g[0].symptoms)==null?void 0:S.length)>0&&(0,e.createComponentVNode)(2,d,{strain:g[0]})],0)}var y=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:y,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:g.map(function(L,w){var T;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function x(){return C("switch_strain",{strain_index:w+1})}return x}(),children:(T=L.commonName)!=null?T:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,I,{strain:V,strainIndex:p}),((i=V.symptoms)==null?void 0:i.length)>0&&(0,e.createComponentVNode)(2,d,{className:"remove-section-bottom-padding",strain:V})]})})})},N=function(u){return u.reduce(function(s,i){return s+i},0)},d=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(i,h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.transmissibility})]},h)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N(s.map(function(i){return i.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N(s.map(function(i){return i.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N(s.map(function(i){return i.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N(s.map(function(i){return i.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.synthesisCooldown,p=C.beakerContainsVirus,g=C.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:g.map(function(V,S){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[S%c.length],disabled:!!v,onClick:function(){function y(){return h("clone_vaccine",{resistance_index:S+1})}return y}(),mr:"0.5em"}),V]},S)})})})})}},67921:function(A,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(79646),b=n(36352),B=n(98595),I=n(35840),k=n(38307),N=function(u){switch(u){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},d=r.ParticleAccelerator=function(){function l(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.assembled,p=C.power,g=C.strength,V=C.max_strength,S=C.icon,y=C.layout_1,L=C.layout_2,w=C.layout_3,T=C.orientation;return(0,e.createComponentVNode)(2,B.Window,{width:395,height:v?160:T==="north"||T==="south"?540:465,children:(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{dmIcon:"sync",content:"Connect",onClick:function(){function x(){return h("scan")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"good":"bad",children:v?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:!v,onClick:function(){function x(){return h("power")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!v||g===0,onClick:function(){function x(){return h("remove_strength")}return x}(),mr:"4px"}),g,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!v||g===V,onClick:function(){function x(){return h("add_strength")}return x}(),ml:"4px"})]})]})}),v?"":(0,e.createComponentVNode)(2,t.Section,{title:T?"EM Acceleration Chamber Orientation: "+(0,o.capitalize)(T):"Place EM Acceleration Chamber Next To Console",children:T===0?"":T==="north"||T==="south"?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,c)})]})})}return l}(),c=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.assembled,p=C.power,g=C.strength,V=C.max_strength,S=C.icon,y=C.layout_1,L=C.layout_2,w=C.layout_3,T=C.orientation;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(T==="east"?y:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+N(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+N(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(T==="east"?w:y).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+N(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})},m=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.assembled,p=C.power,g=C.strength,V=C.max_strength,S=C.icon,y=C.layout_1,L=C.layout_2,w=C.layout_3,T=C.orientation;return(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(T==="north"?y:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+N(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+N(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(T==="north"?w:y).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,tooltip:x.status,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+N(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})}},71432:function(A,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.data,l=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(N,d){var c=(0,a.useBackend)(d),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return m("insert_pda")}return l}()})]})})})},B=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,I)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function i(){return m("choose_pda",{selectedPda:s})}return i}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},I=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.current_appearance,s=l.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function i(){return m("eject_pda")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function i(){return m("paint_pda")}return i}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(A,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.busy,u=m.category,s=m.display_craftable_only,i=m.display_compact,h=m.prev_cat,C=m.next_cat,v=m.subcategory,p=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return c("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function V(){return c("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function V(){return c("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function V(){return c("forwardCat")}return V}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return c("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return c("forwardSubCat")}return V}()})]}),i?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,B)]})]})})}return I}(),b=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:i.ref})}return h}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!l&&s.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},B=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:i.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!l&&s.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},56150:function(A,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,B)]})})})}return I}(),b=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},B=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:l.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:l.uid})}return u}()})]})},l.name)})})}},8340:function(A,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(88510),b=n(64795),B=n(25328);function I(m,l){var u=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(u)return(u=u.call(m)).next.bind(u);if(Array.isArray(m)||(u=k(m))||l&&m&&typeof m.length=="number"){u&&(m=u);var s=0;return function(){return s>=m.length?{done:!0}:{done:!1,value:m[s++]}}}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(m,l){if(m){if(typeof m=="string")return N(m,l);var u={}.toString.call(m).slice(8,-1);return u==="Object"&&m.constructor&&(u=m.constructor.name),u==="Map"||u==="Set"?Array.from(m):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?N(m,l):void 0}}function N(m,l){(l==null||l>m.length)&&(l=m.length);for(var u=0,s=Array(l);um?this.substring(0,m)+"...":this};var d=function(l,u){u===void 0&&(u="");var s=(0,B.createSearch)(u,function(i){return i.altername});return(0,b.flow)([(0,f.filter)(function(i){return i==null?void 0:i.altername}),u&&(0,f.filter)(s),(0,f.sortBy)(function(i){return i.id})])(l)},c=r.Photocopier220=function(){function m(l,u){for(var s=(0,a.useBackend)(u),i=s.act,h=s.data,C=h.copies,v=h.maxcopies,p=(0,a.useLocalState)(u,"searchText",""),g=p[0],V=p[1],S=d((0,f.sortBy)(function(E){return E.category})(h.forms||[]),g),y=[],L=I(S),w;!(w=L()).done;){var T=w.value;y.includes(T.category)||y.push(T.category)}var x=(0,a.useLocalState)(u,"number",0),M=x[0],O=x[1],D;return h.category===""?D=S:D=S.filter(function(E){return E.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.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:h.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:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.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:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function E(){return i("removedocument")}return E}()})})}),(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:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function E(){return i("removefolder")}return E}()})})})]}),(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:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function E(){return i("print_form")}return E}()})}),!!h.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:h.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 E(){return i("ai_pic")}return E}()})})]}),(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:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function E(){return i("copy")}return E}()})}),!!h.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:h.toner===0,onClick:function(){function E(){return i("ai_text")}return E}()})})]}),(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:C,stepPixelSize:10,onChange:function(){function E(P,R){return i("copies",{new:R})}return E}()})]})]}),(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:!h.category,onClick:function(){function E(){return i("choose_category",{category:""})}return E}()})}),y.map(function(E){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:E,selected:h.category===E,onClick:function(){function P(){return i("choose_category",{category:E})}return P}()},E)},E)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.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 E(P,R){return V(R)}return E}()}),children:D.map(function(E){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:E.altername.trimLongStr(37),tooltip:E.altername,selected:h.form_id===E.id,onClick:function(){function P(){return i("choose_form",{path:E.path,id:E.id})}return P}()})},E.path)})})})]})})})}return m}()},84676:function(A,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(N,d){if(N==null)return{};var c={};for(var m in N)if({}.hasOwnProperty.call(N,m)){if(d.includes(m))continue;c[m]=N[m]}return c}var B={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}},I=function(d,c){var m=d.tempKey,l=b(d,f),u=B[m];if(!u)return null;var s=(0,a.useBackend)(c),i=s.data,h=s.act,C=i.currentTemp,v=u.label,p=u.icon,g=m===C,V=function(){h("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:V},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),v]})))},k=r.PoolController=function(){function N(d,c){for(var m=(0,a.useBackend)(c),l=m.data,u=l.emagged,s=l.currentTemp,i=B[s]||B.normal,h=i.label,C=i.color,v=[],p=0,g=Object.entries(B);p50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(v>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,I.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(h){var C,v,p=h.status;switch(p){case"AOn":C=!0,v=!0;break;case"AOff":C=!0,v=!1;break;case"On":C=!1,v=!0;break;case"Off":C=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,I.ColorBox,{color:v?"good":"bad",content:C?void 0:"M",title:g})};s.defaultHooks=f.pureComponentHooks},50992:function(A,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),B=n(5485),I=n(98595),k=r.PrisonerImplantManager=function(){function N(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.loginState,i=u.prisonerInfo,h=u.chemicalInfo,C=u.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.name?"Eject ID":"Insert ID",onClick:function(){function g(){return l("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.points===null,content:"Reset",onClick:function(){function g(){return l("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(c,"set_points")}return g}()})]}),(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:i.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(g){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: ",g.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:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(c,"warn",{uid:g.uid})}return V}()})})]})]},g.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:h.map(function(g){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: ",g.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:g.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,title:g.name,dmIcon:g.icon,dmIconState:g.icon_state,buttonsAlt:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function S(){return N("purchase",{purchase:g.itemID})}return S}(),children:[g.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:g.desc},g.name)})})})})})})}return b}()},94813:function(A,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),B=r.RCD=function(){function l(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),I=function(u,s){var i=(0,a.useBackend)(s),h=i.data,C=h.matter,v=h.max_matter,p=v*.7,g=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:[p,1/0],average:[g,p],bad:[-1/0,g]},value:C,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:C+" / "+v+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,N,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,N,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,N,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,N,{mode_type:"Deconstruction"})]})})})},N=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=u.mode_type,p=C.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:p===v?1:0,onClick:function(){function g(){return h("mode",{mode:v})}return g}()})})},d=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.door_name,p=C.electrochromic,g=C.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:g===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return h("electrochromic")}return V}()})})]})})})},c=function(u,s){var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.tab,p=C.locked,g=C.one_access,V=C.selected_accesses,S=C.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function y(){return h("set_tab",{tab:1})}return y}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function y(){return h("set_tab",{tab:2})}return y}(),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&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function y(){return h("set_lock",{new_lock:"unlock"})}return y}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function y(){return h("set_lock",{new_lock:"lock"})}return y}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function y(){return h("set_one_access",{access:"one"})}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,width:4,content:"All",onClick:function(){function y(){return h("set_one_access",{access:"all"})}return y}()})],4),accesses:S,selectedList:V,accessMod:function(){function y(L){return h("set",{access:L})}return y}(),grantAll:function(){function y(){return h("grant_all")}return y}(),denyAll:function(){function y(){return h("clear_all")}return y}(),grantDep:function(){function y(L){return h("grant_region",{region:L})}return y}(),denyDep:function(){function y(L){return h("deny_region",{region:L})}return y}()})})],4)},m=function(u,s){for(var i=(0,a.useBackend)(s),h=i.act,C=i.data,v=C.door_types_ui_list,p=C.door_type,g=u.check_number,V=[],S=0;Sf?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function T(){return g("toggleSilent")}return T}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:S>f?"envelope-open-text":"envelope",onClick:function(){function T(){return g("setScreen",{setScreen:6})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function T(){return g("setScreen",{setScreen:1})}return T}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function T(){return g("setScreen",{setScreen:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function T(){return g("setScreen",{setScreen:11})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function T(){return g("setScreen",{setScreen:3})}return T}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function T(){return g("setScreen",{setScreen:9})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function T(){return g("setScreen",{setScreen:10})}return T}()})]})}),!!y&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function T(){return g("setScreen",{setScreen:8})}return T}()})})]})})},d=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S=V.department,y=[],L;switch(C.purpose){case"ASSISTANCE":y=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":y=V.supply_dept,L="Request supplies from another department";break;case"INFO":y=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:y.filter(function(w){return w!==S}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function T(){return g("writeInput",{write:w,priority:B})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function T(){return g("writeInput",{write:w,priority:I})}return T}()})]},w)})})})})},c=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S;switch(C.type){case"SUCCESS":S="Message sent successfully";break;case"FAIL":S="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:S,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return g("setScreen",{setScreen:0})}return y}()})})},m=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S,y;switch(C.type){case"MESSAGES":S=V.message_log,y="Message Log";break;case"SHIPPING":S=V.shipping_log,y="Shipping label print log";break}return S.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:y,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),children:S.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,T){return(0,e.createVNode)(1,"div",null,w,0,null,T)}),(0,e.createVNode)(1,"hr")]},L)})})})},l=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S=V.recipient,y=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function T(){return g("setScreen",{setScreen:0})}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function T(){return g("department",{department:S})}return T}()})})})],4)},u=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S=V.message,y=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return g("writeAnnouncement")}return L}()})],4),children:S})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[y?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(y&&S),onClick:function(){function L(){return g("sendAnnouncement")}return L}()})]})})],4)},s=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S=V.shipDest,y=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:y})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(S&&y),onClick:function(){function w(){return g("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:S===w?"Selected":"Select",selected:S===w,onClick:function(){function T(){return g("shipSelect",{shipSelect:w})}return T}()})},w)})})})})],4)},i=function(C,v){var p=(0,a.useBackend)(v),g=p.act,V=p.data,S=V.secondaryGoalAuth,y=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[y?S?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(S&&y),onClick:function(){function L(){return g("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(A,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.network_name,l=c.has_disk,u=c.disk_name,s=c.linked,i=c.techs,h=c.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function C(){return d("unlink")}return C}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:l?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+h+")",icon:"save",selected:1,onClick:function(){function C(){return d("eject_disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function C(){return d("saveall2disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function C(){return d("saveall2network")}return C}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(i).map(function(C){return!(i[C].network_level>0||i[C].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i[C].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i[C].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i[C].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!l||!s,onClick:function(){function v(){return d("savetech2network",{tech:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!l||!s,onClick:function(){function v(){return d("savetech2disk",{tech:C})}return v}()})]})]},C)})]})})})]})})}return B}(),b=r.LinkMenu=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return d("linktonetworkcontroller",{target_controller:l.addr})}return u}()})})]},l.addr)})]})})}return B}()},68303:function(A,r,n){"use strict";r.__esModule=!0,r.AnalyzerMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.AnalyzerMenu=function(){function B(I,k){var N=(0,t.useBackend)(k),d=N.data,c=N.act,m=d.tech_levels,l=d.loaded_item,u=d.linked_analyzer,s=d.can_discover;return u?l?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function i(){c("deconstruct")}return i}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function i(){c("eject_item")}return i}()}),!s||(0,e.createComponentVNode)(2,o.Button,{content:"Discover",icon:"atom",onClick:function(){function i(){c("discover")}return i}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:l.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,b,{techLevel:i},i.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"NO SCIENTIFIC ANALYZER LINKED TO CONSOLE"})}return B}(),b=function(I,k){var N=I.techLevel,d=N.name,c=N.desc,m=N.level,l=N.object_level,u=N.ui_icon,s=l!=null,i=s&&l>=m?Math.max(l,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:c})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",d]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:l}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([i!==m&&"upgraded-level"]),children:i})]})}},37556:function(A,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,i=u.disk_data;return i?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:i.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:i.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 h(){return s("updt_tech")}return h}()})})]}):null},B=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,i=u.disk_data;if(!i)return null;var h=i.name,C=i.lathe_types,v=i.materials,p=C.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,g.name,0,{style:{"text-transform":"capitalize"}})," x ",g.amount]},g.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 g(){return s("updt_design")}return g}()})})]})},I=function(c,m){var l=(0,a.useBackend)(m),u=l.act,s=l.data,i=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!i,onClick:function(){function h(){return u("erase_disk")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function h(){u("eject_disk")}return h}()})],4)},c)))},k=function(c,m){var l=(0,a.useBackend)(m),u=l.data,s=l.act,i=u.disk_type,h=u.to_copy,C=c.title;return(0,e.createComponentVNode)(2,I,{title:C,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.sort(function(v,p){return v.name.localeCompare(p.name)}).map(function(v){var p=v.name,g=v.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){i===f?s("copy_tech",{id:g}):s("copy_design",{id:g})}return V}()})},g)})})})})},N=r.DataDiskMenu=function(){function d(c,m){var l=(0,a.useBackend)(m),u=l.data,s=u.disk_type,i=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return i?(0,e.createComponentVNode)(2,I,{title:"Design Disk",children:(0,e.createComponentVNode)(2,B)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return i?(0,e.createComponentVNode)(2,I,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return d}()},16830:function(A,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.data,d=k.act,c=N.category,m=N.matching_designs,l=N.menu,u=l===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(i){var h=i.id,C=i.name,v=i.can_build,p=i.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:v<1,onClick:function(){function g(){return d(s,{id:h,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return d(s,{id:h,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return d(s,{id:h,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},h)})})]})}return b}()},70497:function(A,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data,N=I.act,d=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";N(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(m){var l=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var h=c?"disposeP":"disposeI";N(h,{id:s})}return i}()})},s)})})]})}return f}()},70864:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.data,c=N.act,m=d.menu,l=d.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function i(){c("setCategory",{category:s})}return i}()})},s)})})]})}return B}()},42878:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data,N=I.act,d=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:d.map(function(c){var m=c.id,l=c.amount,u=c.name,s=function(){function v(p){var g=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";N(g,{id:m,amount:p})}return v}(),i=Math.floor(l/2e3),h=l<1,C=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",C,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},m)})})})}return f}()},52662:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data,N=k.total_materials,d=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N}),d?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+d}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},9681:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),B=n(42878),I=n(70497),k=["menu"];function N(u,s){if(u==null)return{};var i={};for(var h in u)if({}.hasOwnProperty.call(u,h)){if(s.includes(h))continue;i[h]=u[h]}return i}var d=t.Tabs.Tab,c=function(s,i){var h=(0,a.useBackend)(i),C=h.act,v=h.data,p=v.menu===o.MENU.LATHE?["nav_protolathe",v.submenu_protolathe]:["nav_imprinter",v.submenu_imprinter],g=p[0],V=p[1],S=s.menu,y=N(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({selected:V===S,onClick:function(){function L(){return C(g,{menu:S})}return L}()},y)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,B.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,I.LatheChemicalStorage)}},l=r.LatheMenu=function(){function u(s,i){var h=(0,a.useBackend)(i),C=h.data,v=C.menu,p=C.linked_lathe,g=C.linked_imprinter;return v===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):v===o.MENU.IMPRINTER&&!g?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(C.menu===o.MENU.LATHE?C.submenu_protolathe:C.submenu_imprinter)]})}return u}()},68198:function(A,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function N(d,c){return k("search",{to_search:c})}return N}()})})}return f}()},81421:function(A,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),c.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return N("linktonetworkcontroller",{target_controller:m.addr})}return l}()})})]},m.addr)})]})})})})}return b}()},6256:function(A,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function B(I,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return B}(),f=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.sync,l=c.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){d("unlink")}return u}()}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"gears",color:"red",content:"[ADMIN] Maximize research levels",onClick:function(){function u(){return d("maxresearch")}return u}()}):null]})})},b=function(I,k){var N=(0,a.useBackend)(k),d=N.data,c=N.act,m=d.linked_analyzer,l=d.linked_lathe,u=d.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return c("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scientific Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"analyze"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!l,content:l?"Unlink":"Undetected",onClick:function(){function s(){c("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(A,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),B=n(9681),I=n(81421),k=n(6256),N=n(68303),d=["menu"];function c(p,g){if(p==null)return{};var V={};for(var S in p)if({}.hasOwnProperty.call(p,S)){if(g.includes(S))continue;V[S]=p[S]}return V}var m=o.Tabs.Tab,l=r.MENU={MAIN:0,DISK:2,ANALYZE:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(g){switch(g){case l.MAIN:return(0,e.createComponentVNode)(2,v);case l.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case l.ANALYZE:return(0,e.createComponentVNode)(2,N.AnalyzerMenu);case l.LATHE:case l.IMPRINTER:return(0,e.createComponentVNode)(2,B.LatheMenu);case l.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},i=function(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.menu,T=g.menu,x=c(g,d);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===T,onClick:function(){function M(){return y("nav",{menu:T})}return M}()},x)))},h=r.RndConsole=function(){function p(g,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data;if(!L.linked)return(0,e.createComponentVNode)(2,I.LinkMenu);var w=L.menu,T=L.linked_analyzer,x=L.linked_lathe,M=L.linked_imprinter,O=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,i,{icon:"flask",menu:l.MAIN,children:"Research"}),!!T&&(0,e.createComponentVNode)(2,i,{icon:"microscope",menu:l.ANALYZE,children:"Analyze"}),!!x&&(0,e.createComponentVNode)(2,i,{icon:"print",menu:l.LATHE,children:"Protolathe"}),!!M&&(0,e.createComponentVNode)(2,i,{icon:"memory",menu:l.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,i,{icon:"floppy-disk",menu:l.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,i,{icon:"cog",menu:l.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,C)]})})})}return p}(),C=function(g,V){var S=(0,a.useBackend)(V),y=S.data,L=y.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},v=function(g,V){var S=(0,a.useBackend)(V),y=S.data,L=y.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var T=w.id,x=w.name,M=w.desc,O=w.level,D=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:M})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:D})," ",x]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O})]},T)})]})})}},29205:function(A,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(N,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.ion,s=(0,t.useLocalState)(d,"mainTabIndex",0),i=s[0],h=s[1],C=function(){function v(p){switch(p){case 0:return(0,e.createComponentVNode)(2,B);case 1:return(0,e.createComponentVNode)(2,I);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return v}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:i===0,onClick:function(){function v(){return h(0)}return v}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:i===1,onClick:function(){function v(){return h(1)}return v}(),children:"Design Management"},"DesignPage")]}),C(i)]})})}return k}(),B=function(N,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=(0,t.useLocalState)(d,"filterType","ALL"),s=u[0],i=u[1],h=l.network_password,C=l.network_name,v=l.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var g=s==="ALL"?v:v.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"Unset",selected:C,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"Unset",selected:h,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return i("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return i("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return i("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return i("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return i("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),g.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function S(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return S}()})})]},V.id)})]})]})],4)},I=function(N,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.designs,s=(0,t.useLocalState)(d,"searchText",""),i=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function C(v,p){return h(p)}return C}()}),u.filter((0,a.createSearch)(i,function(C){return C.name})).map(function(C){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:C.name,checked:!C.blacklisted,onClick:function(){function v(){return m(C.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:C.uid})}return v}()},C.name)})]})}},63315:function(A,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.active,s=l.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function i(){return m("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,B)]})})}return k}(),B=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},I=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function i(){return m("link",{addr:s.addr})}return i}()})})]},s.addr)})]})})}},26109:function(A,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,N){var d=k/N;return d<=.2?"good":d<=.5?"average":"bad"},B=r.RobotSelfDiagnosis=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(l,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},u)})})})}return I}()},97997:function(A,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.can_hack,l=c.safety,u=c.show_lock_all,s=c.cyborgs,i=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function h(){return d("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function h(){return d("masslock",{})}return h}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:i,can_hack:m})]})})}return B}(),b=function(I,k){var N=I.cyborgs,d=I.can_hack,c=(0,a.useBackend)(k),m=c.act,l=c.data,u="Detonate";return l.detonate_cooldown>0&&(u+=" ("+l.detonate_cooldown+"s)"),N.length?N.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function i(){return m("hackbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function i(){return m("stopbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function i(){return m("killbot",{uid:s.uid})}return i}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(A,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.dial,s=l.open,i=l.locked,h=l.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,I)]})})}return k}(),b=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.dial,s=l.open,i=l.locked,h=function(v,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!i,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+v,iconRight:p,onClick:function(){function g(){return m(p?"turnleft":"turnright",{num:v})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:i,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[h(50),h(10),h(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[h(1,!0),h(10,!0),h(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},B=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function h(){return m("retrieve",{index:i+1})}return h}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},I=function(N,d){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(A,r,n){"use strict";r.__esModule=!0,r.SatelliteControlSatellitesList=r.SatelliteControlMapView=r.SatelliteControlFooter=r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=(0,a.useLocalState)(d,"tabIndex",l.tabIndex),s=u[0],i=u[1],h=function(){function v(p){i(p),m("set_tab_index",{tab_index:p})}return v}(),C=function(){function v(p){switch(p){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,B);default:return"WE SHOULDN'T BE HERE!"}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"table",selected:s===0,onClick:function(){function v(){return h(0)}return v}(),children:"Satellites"},"Satellites"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"map-marked-alt",selected:s===1,onClick:function(){function v(){return h(1)}return v}(),children:"Map View"},"MapView")]})}),C(s),(0,e.createComponentVNode)(2,I)]})})})}return k}(),b=r.SatelliteControlSatellitesList=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.satellites;return(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+s.id,children:[s.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:s.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function i(){return m("toggle",{id:s.id})}return i}()})]},s.id)})})})}return k}(),B=r.SatelliteControlMapView=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.satellites,s=l.has_goal,i=l.defended,h=l.collisions,C=l.fake_meteors,v=l.zoom,p=l.offsetX,g=l.offsetY,V=0;return(0,e.createComponentVNode)(2,t.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{zoom:v,offsetX:p,offsetY:g,onZoom:function(){function S(y){return m("set_zoom",{zoom:y})}return S}(),onOffsetChange:function(){function S(y,L){return m("set_offset",{offset_x:L.offsetX,offset_y:L.offsetY})}return S}(),children:[u.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"satellite",tooltip:S.active?"Shield Satellite":"Inactive Shield Satellite",color:S.active?"white":"grey",onClick:function(){function y(){return m("toggle",{id:S.id})}return y}()},V++)}),s&&i.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"circle",tooltip:"Successful Defense",color:"blue"},V++)}),s&&h.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"x",tooltip:"Meteor Hit",color:"red"},V++)}),s&&C.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"meteor",tooltip:"Incoming Meteor",color:"white"},V++)})]})})}return k}(),I=r.SatelliteControlFooter=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.notice,s=l.notice_color,i=l.has_goal,h=l.coverage,C=l.coverage_goal,v=l.testing;return(0,e.createFragment)([i&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:h>=C?"good":"average",value:h,maxValue:100,children:[h,"%"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Check coverage",disabled:v,onClick:function(){function p(){return m("begin_test")}return p}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:s,children:u})],0)}return k}()},44162:function(A,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),B=n(92986),I=r.SecureStorage=function(){function c(m,l){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N)})})})})}return c}(),k=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=window.event?m.which:m.keyCode;if(i===B.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(i===B.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(i===B.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(i>=B.KEY_0&&i<=B.KEY_9){m.preventDefault(),s("keypad",{digit:i-B.KEY_0});return}if(i>=B.KEY_NUMPAD_0&&i<=B.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:i-B.KEY_NUMPAD_0});return}},N=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=i.locked,C=i.no_passcode,v=i.emagged,p=i.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=C?"":h?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function S(y){return k(y,l)}return S}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:v?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(S){return(0,e.createComponentVNode)(2,b.TableRow,{children:S.map(function(y){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,d,{number:y})},y)})},S[0])})})]})},d=function(m,l){var u=(0,t.useBackend)(l),s=u.act,i=u.data,h=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:h,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+h]),onClick:function(){function C(){return s("keypad",{digit:h})}return C}()})}},6272:function(A,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),B=n(321),I=n(5485),k=n(22091),N={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},d=function(p,g){(0,b.modalOpen)(p,"edit",{field:g.edit,value:g.value})},c=r.SecurityRecords=function(){function v(p,g){var V=(0,t.useBackend)(g),S=V.act,y=V.data,L=y.loginState,w=y.currentPage,T;if(L.logged_in)w===1?T=(0,e.createComponentVNode)(2,l):w===2&&(T=(0,e.createComponentVNode)(2,i));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,I.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),T]})})]})}return v}(),m=function(p,g){var V=(0,t.useBackend)(g),S=V.act,y=V.data,L=y.currentPage,w=y.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function T(){return S("page",{page:1})}return T}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},l=function(p,g){var V=(0,t.useBackend)(g),S=V.act,y=V.data,L=y.records,w=(0,t.useLocalState)(g,"searchText",""),T=w[0],x=w[1],M=(0,t.useLocalState)(g,"sortId","name"),O=M[0],D=M[1],E=(0,t.useLocalState)(g,"sortOrder",!0),P=E[0],R=E[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(T,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,F){var W=P?1:-1;return j[O].localeCompare(F[O])*W}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+N[j.status],onClick:function(){function F(){return S("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return F}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},u=function(p,g){var V=(0,t.useLocalState)(g,"sortId","name"),S=V[0],y=V[1],L=(0,t.useLocalState)(g,"sortOrder",!0),w=L[0],T=L[1],x=p.id,M=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:S!==x&&"transparent",fluid:!0,onClick:function(){function O(){S===x?T(!w):(y(x),T(!0))}return O}(),children:[M,S===x&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,g){var V=(0,t.useBackend)(g),S=V.act,y=V.data,L=y.isPrinting,w=(0,t.useLocalState)(g,"searchText",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function M(){return S("new_general")}return M}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function M(){return(0,b.modalOpen)(g,"print_cell_log")}return M}()})}),(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 M(O,D){return x(D)}return M}()})})]})},i=function(p,g){var V=(0,t.useBackend)(g),S=V.act,y=V.data,L=y.isPrinting,w=y.general,T=y.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return S("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return S("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,h)})}),!T||!T.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return S("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:T.empty,content:"Delete Record",onClick:function(){function x(){return S("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:T.fields.map(function(x,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function O(){return d(g,x)}return O}()})]},M)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},h=function(p,g){var V=(0,t.useBackend)(g),S=V.data,y=S.general;return!y||!y.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:y.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function T(){return d(g,L)}return T}()})]},w)})})}),!!y.has_photos&&y.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},C=function(p,g){var V=(0,t.useBackend)(g),S=V.act,y=V.data,L=y.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(g,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,T){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return S("comment_delete",{id:T+1})}return x}()})]},T)})})})}},5099:function(A,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function B(u,s){var i=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(i)return(i=i.call(u)).next.bind(i);if(Array.isArray(u)||(i=I(u))||s&&u&&typeof u.length=="number"){i&&(u=i);var h=0;return function(){return h>=u.length?{done:!0}:{done:!1,value:u[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(u,s){if(u){if(typeof u=="string")return k(u,s);var i={}.toString.call(u).slice(8,-1);return i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set"?Array.from(u):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var i=0,h=Array(s);i=T},C=function(w,T){return w<=T},v=s.split(" "),p=[],g=function(){var w=y.value,T=w.split(":");if(T.length===0)return 0;if(T.length===1)return p.push(function(O){return(O.name+" ("+O.variant+")").toLocaleLowerCase().includes(T[0].toLocaleLowerCase())}),0;if(T.length>2)return{v:function(){function O(D){return!1}return O}()};var x,M=i;if(T[1][T[1].length-1]==="-"?(M=C,x=Number(T[1].substring(0,T[1].length-1))):T[1][T[1].length-1]==="+"?(M=h,x=Number(T[1].substring(0,T[1].length-1))):x=Number(T[1]),isNaN(x))return{v:function(){function O(D){return!1}return O}()};switch(T[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(O){return M(O.lifespan,x)});break;case"e":case"end":case"endurance":p.push(function(O){return M(O.endurance,x)});break;case"m":case"mat":case"maturation":p.push(function(O){return M(O.maturation,x)});break;case"pr":case"prod":case"production":p.push(function(O){return M(O.production,x)});break;case"y":case"yield":p.push(function(O){return M(O.yield,x)});break;case"po":case"pot":case"potency":p.push(function(O){return M(O.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(O){return M(O.amount,x)});break;default:return{v:function(){function O(D){return!1}return O}()}}},V,S=B(v),y;!(y=S()).done;)if(V=g(),V!==0&&V)return V.v;return function(L){for(var w=0,T=p;w=1?Number(M):1)}return T}()})]})]})}},17474:function(A,r,n){"use strict";r.__esModule=!0,r.Shop=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),B=n(98595),I=n(3939),k=function(h){switch(h){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);default:return"\u041E\u0428\u0418\u0411\u041A\u0410, \u0421\u041E\u041E\u0411\u0429\u0418\u0422\u0415 \u0420\u0410\u0417\u0420\u0410\u0411\u041E\u0422\u0427\u0418\u041A\u0423"}},N=r.Shop=function(){function i(h,C){var v=(0,f.useBackend)(C),p=v.act,g=v.data,V=g.cart,S=(0,f.useLocalState)(C,"tabIndex",0),y=S[0],L=S[1];return(0,e.createComponentVNode)(2,B.Window,{width:900,height:600,theme:"abductor",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:y===0,onClick:function(){function w(){L(0)}return w}(),icon:"store",children:"\u0422\u043E\u0440\u0433\u043E\u0432\u043B\u044F"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:y===1,onClick:function(){function w(){L(1)}return w}(),icon:"shopping-cart",children:["\u041A\u043E\u0440\u0437\u0438\u043D\u0430 ",V&&V.length?"("+V.length+")":""]},"Cart")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(y)})]})})]})}return i}(),d=function(h,C){var v=(0,f.useBackend)(C),p=v.act,g=v.data,V=g.cash,S=g.cats,y=(0,f.useLocalState)(C,"shopItems",S[0].items),L=y[0],w=y[1],T=(0,f.useLocalState)(C,"showDesc",1),x=T[0],M=T[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+V+"\u043A",buttons:(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:x,onClick:function(){function O(){return M(!x)}return O}()})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:S.map(function(O){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:O.items===L,onClick:function(){function D(){w(O.items)}return D}(),children:O.cat},O)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:L.map(function(O){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:O,showDecription:x},(0,o.decodeHtmlEntities)(O.name))},(0,o.decodeHtmlEntities)(O.name))})})})})]})]})},c=function(h,C){var v=(0,f.useBackend)(C),p=v.act,g=v.data,V=g.cart,S=g.cash,y=g.cart_price,L=(0,f.useLocalState)(C,"showDesc",0),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+S+"\u043A",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:w,onClick:function(){function x(){return T(!w)}return x}()}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",icon:"trash",onClick:function(){function x(){return p("empty_cart")}return x}(),disabled:!V}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C ("+y+"\u043A)",icon:"shopping-cart",onClick:function(){function x(){return p("purchase_cart")}return x}(),disabled:!V||y>S})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:V?V.map(function(x){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:x,showDecription:w,buttons:(0,e.createComponentVNode)(2,u,{i:x})})},(0,o.decodeHtmlEntities)(x.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"\u0412\u0430\u0448\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430!"})})})})})},m=function(h,C){var v=h.i,p=h.showDecription,g=p===void 0?1:p,V=h.buttons,S=V===void 0?(0,e.createComponentVNode)(2,l,{i:v}):V;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(v.name),showBottom:g,buttons:S,children:[g?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.desc)}):null,g?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.content)}):null]})},l=function(h,C){var v=(0,f.useBackend)(C),p=v.act,g=v.data,V=h.i,S=g.cash;return(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443 ("+V.cost+" \u041A\u0438\u043A\u0438\u0440\u0438\u0434\u0438\u0442\u043E\u0432)",color:V.limit!==-1&&"red",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440 \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432 \u043E\u0431\u0449\u0435\u0435 \u0447\u0438\u0441\u043B\u043E \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u043E\u0432\u0430\u0440\u0430. \u0426\u0435\u043D\u0430 \u0442\u043E\u0432\u0430\u0440\u0430 \u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u0445 \u0446\u0435\u043D\u043D\u043E\u0441\u0442\u0435\u0439 \u0432 \u0420\u0430\u0441\u0447\u0438\u0447\u0435\u0442\u0447\u0438\u043A\u0438\u043A\u0435.",tooltipPosition:"left",onClick:function(){function y(){return p("add_to_cart",{item:V.obj_path})}return y}(),disabled:V.cost>S||V.limit!==-1&&V.purchased>=V.limit||V.is_time_available===!1})},u=function(h,C){var v=(0,f.useBackend)(C),p=v.act,g=v.data,V=h.i;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+V.cost*V.amount+"\u043A)",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B.",tooltipPosition:"left",onClick:function(){function S(){return p("remove_from_cart",{item:V.obj_path})}return S}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",ml:"5px",onClick:function(){function S(){return p("set_cart_item_quantity",{item:V.obj_path,quantity:--V.amount})}return S}(),disabled:V.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:V.amount,width:"45px",tooltipPosition:"bottom-end",onCommit:function(){function S(y,L){return p("set_cart_item_quantity",{item:V.obj_path,quantity:L})}return S}(),disabled:V.limit!==-1&&V.amount>=V.limit&&V.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:V.limit===0&&"Discount already redeemed!",onClick:function(){function S(){return p("set_cart_item_quantity",{item:V.obj_path,quantity:++V.amount})}return S}(),disabled:V.limit!==-1&&V.amount>=V.limit})]})},s=function(h,C){var v=(0,f.useBackend)(C),p=v.act,g=v.data,V=h.pack;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,horizontal:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{width:"70%",children:V.content_images.map(function(S){return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+S,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})},S.ref)})})})}},2916:function(A,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d.status?d.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!d.shuttle&&(!!d.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:d.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return N("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"})}),!!d.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:!d.status,onClick:function(){function c(){return N("request")}return c}()})})],0))]})})})})}return b}()},39401:function(A,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(N,d){var c=(0,a.useLocalState)(d,"tabIndex",0),m=c[0],l=c[1],u=function(){function s(i){switch(i){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,I);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return l(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return l(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return l(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:s.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return m("fast_travel",{id:s.id})}return i}()})]})]})},s.name)})})},B=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.templates_tabs,s=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===s.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:h})}return C}(),children:h},h)})}),!!s&&i[s.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:h.shuttle_id})}return C}()})})]})},h.name)})]})},I=function(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:u.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function i(){return m("preview",{shuttle_id:s.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return m("load",{shuttle_id:s.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},86013:function(A,r,n){"use strict";r.__esModule=!0,r.SingularityMonitor=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(44879),f=n(72253),b=n(36036),B=n(76910),I=n(98595),k=n(36352),N=r.SingularityMonitor=function(){function l(u,s){var i=(0,f.useBackend)(s),h=i.act,C=i.data;return C.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return l}(),d=function(u){return Math.log2(16+Math.max(0,u))-4},c=function(u,s){var i=(0,f.useBackend)(s),h=i.act,C=i.data,v=C.singularities,p=v===void 0?[]:v;return(0,e.createComponentVNode)(2,I.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,I.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Detected Singularities",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"sync",content:"Refresh",onClick:function(){function g(){return h("refresh")}return g}()}),children:(0,e.createComponentVNode)(2,b.Table,{children:p.map(function(g){return(0,e.createComponentVNode)(2,b.Table.Row,{children:[(0,e.createComponentVNode)(2,b.Table.Cell,{children:g.singularity_id+". "+g.area_name}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,color:"label",children:"Stage:"}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g.stage,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(g.stage)})}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,b.Button,{content:"Details",onClick:function(){function V(){return h("view",{view:g.singularity_id})}return V}()})})]},g.singularity_id)})})})})})},m=function(u,s){var i=(0,f.useBackend)(s),h=i.act,C=i.data,v=C.active,p=C.singulo_stage,g=C.singulo_potential_stage,V=C.singulo_energy,S=C.singulo_high,y=C.singulo_low,L=C.generators,w=L===void 0?[]:L;return(0,e.createComponentVNode)(2,I.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(p)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Potential Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:6,ranges:{good:[1,p+.5],average:[p+.5,p+1.5],bad:[p+1.5,p+2]},children:(0,o.toFixed)(g)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:V,minValue:y,maxValue:S,ranges:{good:[.67*S+.33*y,S],average:[.33*S+.67*y,.67*S+.33*y],bad:[y,.33*S+.67*y]},children:(0,o.toFixed)(V)+"MJ"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Field Generators",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return h("back")}return T}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(T){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Remaining Charge",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:T.charge,minValue:0,maxValue:125,ranges:{good:[80,125],average:[30,80],bad:[0,30]},children:(0,o.toFixed)(T.charge)})},T.gen_index)})})})})]})})})}},88284:function(A,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],B=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],N=r.Sleeper=function(){function i(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.hasOccupant,S=V?(0,e.createComponentVNode)(2,d):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:S}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),d=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.occupant,S=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:S?"toggle-on":"toggle-off",selected:S,content:S?"On":"Off",onClick:function(){function y(){return p("auto_eject_dead_"+(S?"off":"on"))}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function y(){return p("ejectify")}return y}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(h,C){var v=(0,t.useBackend)(C),p=v.data,g=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:B.map(function(V,S){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[V[1]]/100,ranges:I,children:(0,a.round)(g[V[1]],0)},S)},S)})})})},l=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.hasOccupant,S=g.isBeakerLoaded,y=g.beakerMaxSpace,L=g.beakerFreeSpace,w=g.dialysis,T=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!S||L<=0||!V,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!S,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:S?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y,value:L/y,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,g=v.data,V=g.occupant,S=g.chemicals,y=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:S.map(function(w,T){var x="",M;return w.overdosing?(x="bad",M=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(x="average",M=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:M,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y,value:w.occ_amount/y,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",y,"u"]}),L.map(function(O,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+O>y||V.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function E(){return p("chemical",{chemid:w.id,amount:O})}return E}()},D)})]})})},T)})})},s=function(h,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(A,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;if(d.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 d.plays===1?c=d.plays+" player has tried their luck today!":c=d.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:d.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:d.working,content:d.working?"Spinning...":"Spin",onClick:function(){function m(){return N("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:d.resultlvl,children:d.result})]})})})}return b}()},46348:function(A,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.secure,m=d.can_dry,l=d.drying,u=d.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function s(){return N("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,i){return s.display_name.localeCompare(i.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function i(){return N("vend",{index:s.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function i(h,C){return N("vend",{index:s.vend,amount:C})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function i(){return N("vend",{index:s.vend,amount:s.quantity})}return i}()})]})]},s)})]})]})})})}return b}()},86162:function(A,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,B=r.Smes=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.capacityPercent,u=m.capacity,s=m.charge,i=m.inputAttempt,h=m.inputting,C=m.inputLevel,v=m.inputLevelMax,p=m.inputAvailable,g=m.outputPowernet,V=m.outputAttempt,S=m.outputting,y=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,T=l>=100&&"good"||h&&"average"||"bad",x=S&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function M(){return c("tryinput")}return M}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:l>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function M(){return c("input",{target:"min"})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function M(){return c("input",{adjust:-1e4})}return M}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/b,fillValue:p/b,minValue:0,maxValue:v/b,step:5,stepPixelSize:4,format:function(){function M(O){return(0,o.formatPower)(O*b,1)}return M}(),onChange:function(){function M(O,D){return c("input",{target:D*b})}return M}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===v,onClick:function(){function M(){return c("input",{adjust:1e4})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===v,onClick:function(){function M(){return c("input",{target:"max"})}return M}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function M(){return c("tryoutput")}return M}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:g?S?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:y===0,onClick:function(){function M(){return c("output",{target:"min"})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:y===0,onClick:function(){function M(){return c("output",{adjust:-1e4})}return M}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:y/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function M(O){return(0,o.formatPower)(O*b,1)}return M}(),onChange:function(){function M(O,D){return c("output",{target:D*b})}return M}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:y===L,onClick:function(){function M(){return c("output",{adjust:1e4})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:y===L,onClick:function(){function M(){return c("output",{target:"max"})}return M}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return I}()},63584:function(A,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=0,m=1,l=2,u=d.generated,s=d.generated_ratio,i=d.tracking_state,h=d.tracking_rate,C=d.connected_panels,v=d.connected_tracker,p=d.cdir,g=d.direction,V=d.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function S(){return N("refresh")}return S}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",V,")"," "]}),i===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:[i!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function S(y,L){return N("cdir",{cdir:L})}return S}()}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:i===c,onClick:function(){function S(){return N("track",{track:c})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===m,onClick:function(){function S(){return N("track",{track:m})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!v,onClick:function(){function S(){return N("track",{track:l})}return S}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function S(y){var L=Math.sign(y)>0?"+":"-";return L+Math.abs(y)}return S}(),onDrag:function(){function S(y,L){return N("tdir",{tdir:L})}return S}()}),i===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(A,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return N("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return N("spawn",{ID:m.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(A,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function N(d,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return N}(),b=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("hemomancer")}return i}()}),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)]})})},B=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("umbrae")}return i}()}),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)]})})},I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("gargantua")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return l("dantalion")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(A,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),B=n(36036),I=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(i,h){var C=(0,a.useBackend)(h),v=C.data,p=v.amount,g=v.recipes,V=(0,a.useLocalState)(h,"searchText",""),S=V[0],y=V[1],L=N(g,(0,f.createSearch)(S)),w=(0,a.useLocalState)(h,"",!1),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,B.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([T&&(0,e.createComponentVNode)(2,B.Input,{width:12.5,value:S,placeholder:"Find recipe",onInput:function(){function M(O,D){return y(D)}return M}()}),(0,e.createComponentVNode)(2,B.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:T,onClick:function(){function M(){return x(!T)}return M}()})],0),children:L?(0,e.createComponentVNode)(2,l,{recipes:L}):(0,e.createComponentVNode)(2,B.NoticeBox,{children:"No recipes found!"})})},N=function s(i,h){var C=(0,o.flow)([(0,t.map)(function(v){var p=v[0],g=v[1];return d(g)?h(p)?v:[p,s(g,h)]:h(p)?v:[p,void 0]}),(0,t.filter)(function(v){var p=v[0],g=v[1];return g!==void 0}),(0,t.sortBy)(function(v){var p=v[0],g=v[1];return p}),(0,t.sortBy)(function(v){var p=v[0],g=v[1];return!d(g)}),(0,t.reduce)(function(v,p){var g=p[0],V=p[1];return v[g]=V,v},{})])(Object.entries(i));return Object.keys(C).length?C:void 0},d=function(i){return i.uid===void 0},c=function(i,h){return i.required_amount>h?0:Math.floor(h/i.required_amount)},m=function(i,h){for(var C=(0,a.useBackend)(h),v=C.act,p=i.recipe,g=i.max_possible_multiplier,V=Math.min(g,Math.floor(p.max_result_amount/p.result_amount)),S=[5,10,25],y=[],L=function(){var M=T[w];V>=M&&y.push((0,e.createComponentVNode)(2,B.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:M*p.result_amount+"x",onClick:function(){function O(){return v("make",{recipe_uid:p.uid,multiplier:M})}return O}()}))},w=0,T=S;w1?y+"x ":"",E=L>1?"s":"",P=""+D+V,R=L+" sheet"+E,j=c(S,g);return(0,e.createComponentVNode)(2,B.ImageButton,{fluid:!0,base64:O,dmIcon:x,dmIconState:M,imageSize:32,disabled:!j,tooltip:R,buttons:w>1&&j>1&&(0,e.createComponentVNode)(2,m,{recipe:S,max_possible_multiplier:j}),onClick:function(){function F(){return v("make",{recipe_uid:T,multiplier:1})}return F}(),children:P})}},38307:function(A,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function B(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return B}(),b=r.StationAlertConsoleContent=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.data,c=d.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return B}()},96091:function(A,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),B=function(d){return d[d.SetupFutureStationTraits=0]="SetupFutureStationTraits",d[d.ViewStationTraits=1]="ViewStationTraits",d}(B||{}),I=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data,i=s.future_station_traits,h=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=h[0],v=h[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),g=Object.keys(p);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:v,options:g,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(C){var S=p[C],y=[S];if(i){var L,w=i.map(function(T){return T.path});if(w.indexOf(S)!==-1)return;y=(L=y).concat.apply(L,w)}u("setup_future_traits",{station_traits:y})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(i)?i.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:i.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function S(){u("setup_future_traits",{station_traits:(0,a.filterMap)(i,function(y){if(y.path!==V.path)return y.path})})}return S}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var l=(0,o.useBackend)(m),u=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(i){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:i.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!i.can_revert,tooltip:!i.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function h(){return u("revert",{ref:i.ref})}return h}()})})]})},i.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},N=r.StationTraitsPanel=function(){function d(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",B.ViewStationTraits),u=l[0],s=l[1],i;switch(u){case B.SetupFutureStationTraits:i=(0,e.createComponentVNode)(2,I);break;case B.ViewStationTraits:i=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===B.ViewStationTraits,onClick:function(){function h(){return s(B.ViewStationTraits)}return h}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===B.SetupFutureStationTraits,onClick:function(){function h(){return s(B.SetupFutureStationTraits)}return h}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),i]})]})})})}return d}()},39409:function(A,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),B=5,I=9,k=function(C){return C===0?5:9},N="64px",d=function(C){return C[0]+"/"+C[1]},c=function(C){var v=C.align,p=C.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={eyes:{displayName:"eyewear",gridSpot:d([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:d([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:d([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:d([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:d([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:d([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:d([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:d([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:d([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:d([1,4])},jumpsuit:{displayName:"uniform",gridSpot:d([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:d([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:d([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:d([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:d([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:d([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:d([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:d([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:d([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:d([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:d([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:d([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:d([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:d([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:d([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:d([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:d([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:d([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:d([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:d([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:d([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:d([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:d([1,4])},jumpsuit:{displayName:"uniform",gridSpot:d([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:d([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:d([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:d([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:d([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:d([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:d([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:d([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:d([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:d([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:d([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:d([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:d([4,8]),image:"inventory-pda.png"}},s=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(s||{}),i=r.StripMenu=function(){function h(C,v){var p=(0,o.useBackend)(v),g=p.act,V=p.data,S=new Map;if(V.show_mode===0)for(var y=0,L=Object.keys(V.items);y=.01})},(0,a.sortBy)(function(x){return-x.amount})])(C.gases||[]),T=Math.max.apply(Math,[1].concat(w.map(function(x){return x.portion})));return(0,e.createComponentVNode)(2,I.Window,{width:550,height:250,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Gas Coefficient",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:L,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:L.toFixed(2)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:d(V),minValue:0,maxValue:d(1e4),ranges:{teal:[-1/0,d(80)],good:[d(80),d(373)],average:[d(373),d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mole Per Tile",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:y,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,o.toFixed)(y)+" mol"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:d(S),minValue:0,maxValue:d(5e4),ranges:{good:[d(1),d(300)],average:[-1/0,d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(S)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function x(){return h("back")}return x}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(x){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,B.getGasLabel)(x.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,B.getGasColor)(x.name),value:x.portion,minValue:0,maxValue:T,children:(0,o.toFixed)(x.amount)+" mol ("+x.portion+"%)"})},x.name)})})})})]})})})}},46029:function(A,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d.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 N(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return b}()},36372:function(A,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I){return I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.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 d("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 B}()},23190:function(A,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(46095),f=n(98595),b={0:"Free",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},B={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},I={\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"}},k=function(m,l,u,s){return s===void 0&&(s=null),m.map(function(i){var h,C=(h=i[s])!=null?h:i;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:l.includes(i),content:C,onClick:function(){function v(){l.includes(i)?u(l.filter(function(p){var g;return((g=p[s])!=null?g:p)!==i})):u([i].concat(l))}return v}()},C)})},N=r.TTSSeedsExplorer=function(){function c(){return(0,e.createComponentVNode)(2,f.Window,{width:1e3,height:685,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,d)})})})}return c}(),d=r.TTSSeedsExplorerContent=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i=u.data,h=i.providers,C=i.seeds,v=i.selected_seed,p=i.phrases,g=i.donator_level,V=i.character_gender,S=C.map(function(Y){return Y.category}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y.localeCompare(ve)}),y=C.map(function(Y){return Y.gender}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}),L=C.map(function(Y){return Y.required_donator_level}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y-ve}).map(function(Y){return b[Y]}),w=(0,a.useLocalState)(l,"selectedProviders",h),T=w[0],x=w[1],M=(0,a.useLocalState)(l,"selectedGenders",y.includes(B[V])?[B[V]]:y),O=M[0],D=M[1],E=(0,a.useLocalState)(l,"selectedCategories",S),P=E[0],R=E[1],j=(0,a.useLocalState)(l,"selectedDonatorLevels",L.includes(b[g])?L.slice(0,L.indexOf(b[g])+1):L),F=j[0],W=j[1],z=(0,a.useLocalState)(l,"selectedPhrase",p[0]),K=z[0],G=z[1],J=(0,a.useLocalState)(l,"searchtext",""),Q=J[0],ue=J[1],ie=(0,a.useLocalState)(l,"searchToggle",!1),pe=ie[0],te=ie[1],q=k(h,T,x,"name"),ne=k(y,O,D),le=k(S,P,R),ee=k(L,F,W),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:p,selected:K.replace(/(.{60})..+/,"$1..."),width:"21.3em",onSelected:function(){function Y(ve){return G(ve)}return Y}()}),oe=(0,e.createFragment)([pe&&(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:20,onInput:function(){function Y(ve,he){return ue(he)}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"magnifying-glass",tooltip:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",tooltipPosition:"bottom-end",selected:pe,onClick:function(){function Y(){return te(!pe)}return Y}()})],0),fe=C.sort(function(Y,ve){var he=Y.name.toLowerCase(),Ve=ve.name.toLowerCase();return he>Ve?1:he0&&v!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Y.name?"white":I[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:I[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.required_donator_level>0&&(0,e.createFragment)([b[Y.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"30.25em",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,{fill:!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:q}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u0440",children:ee}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,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",disabled:P.length===0,onClick:function(){function Y(){return R([])}return Y}(),children:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",disabled:P.length===S.length,onClick:function(){function Y(){return R(S)}return Y}(),children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"})],4),children:le})}),(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,{fontSize:"11px",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:1.5,italic:!0,color:"gray",fontSize:"10px",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."})]})})})]})}),(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 ("+fe.length+"/"+C.length+")",buttons:oe,children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,o.VirtualList,{children:me})})})})],4)}return c}()},56441:function(A,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.records,l=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,i=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||i,align:"center",onClick:function(){function h(){return d("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function h(){return d("delete_logs")}return h}()})]})]})}),l.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return B}(),b=r.TachyonArrayContent=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.records,l=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return d("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return B}()},1754:function(A,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c;return d.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:d.connected?"check":"times",content:d.connected?"Internals On":"Internals Off",selected:d.connected,onClick:function(){function m(){return N("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:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return N("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function m(l,u){return N("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return N("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return N("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return b}()},7579:function(A,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.o_tanks,m=d.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return N("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function l(){return N("plasma")}return l}()})})]})})})}return b}()},16136:function(A,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function N(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.ion,i=(0,a.useLocalState)(c,"tabIndex",0),h=i[0],C=i[1],v=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,B);case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:h===0,onClick:function(){function p(){return C(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:h===1,onClick:function(){function p(){return C(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:h===2,onClick:function(){function p(){return C(2)}return p}(),children:"User Filtering"},"FilterPage")]}),v(h)]})})}return N}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},B=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.active,i=u.sectors_available,h=u.nttc_toggle_jobs,C=u.nttc_toggle_job_color,v=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,g=u.nttc_job_indicator_type,V=u.nttc_setting_language,S=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function y(){return l("toggle_active")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(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:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function y(){return l("nttc_toggle_jobs")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function y(){return l("nttc_toggle_job_color")}return y}()})}),(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 y(){return l("nttc_toggle_name_color")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function y(){return l("nttc_toggle_command_bold")}return y}()})})]})}),(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:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function y(){return l("nttc_job_indicator_type")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function y(){return l("nttc_setting_language")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:S||"Unset",selected:S,icon:"server",onClick:function(){function y(){return l("network_id")}return y}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function y(){return l("import")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function y(){return l("export")}return y}()})]})],4)},I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.link_password,i=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function h(){return l("change_password")}return h}()})})}),(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"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return l("unlink",{addr:h.addr})}return C}()})})]},h.addr)})]})]})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return l("add_filter")}return i}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return l("remove_filter",{user:i})}return h}()})})]},i)})]})})}},88046:function(A,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function i(){return c("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function i(){return c("network_id")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,B)]})})}return I}(),b=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function i(){return c("toggle_hidden_link")}return i}()})}),(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 i(){return c("unlink")}return i}()})})]})})},B=function(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(A,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.targetsTeleport?d.targetsTeleport:{},m=0,l=1,u=2,s=d.calibrated,i=d.calibrating,h=d.powerstation,C=d.regime,v=d.teleporterhub,p=d.target,g=d.locked,V=d.adv_beacon_allowed,S=d.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!h||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),h&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),h&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"Enabled":"Disabled",onClick:function(){function y(){return N("advanced_beacon_locking",{on:S?0:1})}return y}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:i,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function y(L){return N("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return y}()}),C===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:i,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function y(L){return N("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return y}()}),C===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===l?"good":null,onClick:function(){function y(){return N("setregime",{regime:l})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function y(){return N("setregime",{regime:m})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===u?"good":null,disabled:!g,onClick:function(){function y(){return N("setregime",{regime:u})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:i&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||i),onClick:function(){function y(){return N("calibrate")}return y}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&h&&v&&C===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function y(){return N("load")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function y(){return N("eject")}return y}()})]})})]})})})})}return b}()},48517:function(A,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.last_msg,m=d.linked_pad,l=d.held_gps,u=d.lastdata,s=d.power_levels,i=d.current_max_power,h=d.current_power,C=d.current_bearing,v=d.current_elevation,p=d.current_sector,g=d.working,V=d.max_z,S=(0,a.useLocalState)(I,"dummyrot",C),y=S[0],L=S[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:g,value:C,onDrag:function(){function w(T,x){return L(x)}return w}(),onChange:function(){function w(T,x){return N("setbear",{bear:x})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:y})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:g,value:v,onChange:function(){function w(T,x){return N("setelev",{elev:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,T){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:h===w,disabled:T>=i-1||g,onClick:function(){function x(){return N("setpwr",{pwr:T+1})}return x}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:g,onChange:function(){function w(T,x){return N("setz",{newz:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:g,onClick:function(){function w(){return N("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:g,onClick:function(){function w(){return N("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:g,onClick:function(){function w(){return N("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:g,onClick:function(){function w(){return N("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:l===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||g,content:"Eject GPS",onClick:function(){function w(){return N("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||g,content:"Store Coordinates",onClick:function(){function w(){return N("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(A,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function N(d,c){var m=(0,t.useBackend)(c),l=m.act,u=m.data,s=u.target_temperature,i=u.temperature,h=u.max_temp,C=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:h,value:s,format:function(){function v(p){return(0,a.toFixed)(p,2)}return v}(),width:"50px",onDrag:function(){function v(p,g){return l("target_temperature",{target_temperature:g})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:B(i),bold:i>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(i,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(i),children:I(i)})})]})})})})}return N}(),B=function(d){return d<=-100?"blue":d<=0?"teal":d<=100?"green":d<=200?"orange":"red"},I=function(d){return d<=100-273.15?"High":d<=250-273.15?"Medium":d<=300-273.15?"Low":d<=400-273.15?"Medium":"High"},k=function(d){return d<=100-273.15?"red":d<=250-273.15?"orange":d<=300-273.15?"green":d<=400-273.15?"orange":"red"}},24410:function(A,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),B=n(98595),I=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),N=r.TextInputModal=function(){function c(m,l){var u=(0,o.useBackend)(l),s=u.act,i=u.data,h=i.max_length,C=i.message,v=C===void 0?"":C,p=i.multiline,g=i.placeholder,V=i.timeout,S=i.title,y=(0,o.useLocalState)(l,"input",g||""),L=y[0],w=y[1],T=function(){function O(D){if(D!==L){var E=p?I(D):k(D);w(E)}}return O}(),x=p||L.length>=40,M=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,B.Window,{title:S,width:325,height:M,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,B.Window.Content,{onKeyDown:function(){function O(D){var E=window.event?D.which:D.keyCode;E===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:L}),E===f.KEY_ESCAPE&&s("cancel")}return O}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{input:L,onChange:T})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return c}(),d=function(m,l){var u=(0,o.useBackend)(l),s=u.act,i=u.data,h=i.max_length,C=i.multiline,v=m.input,p=m.onChange,g=C||v.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:C||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(S,y){g&&S.shiftKey||(S.preventDefault(),s("submit",{entry:y}))}return V}(),onChange:function(){function V(S,y){return p(y)}return V}(),placeholder:"Type something...",value:v})}},25036:function(A,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function B(I,k){var N=(0,t.useBackend)(k),d=N.act,c=N.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return d("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 d("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 d("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(l,u){return d("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return d("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 d("target",{target:c.initial})}return m}()})]})]})})]})})}return B}()},20035:function(A,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.tank_one,m=d.tank_two,l=d.attached_device,u=d.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return N("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function s(){return N("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function s(){return N("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return N("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return N("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(A,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(N,d){var c=(0,a.useBackend)(d),m=c.act,l=c.data,u=l.compressor,s=l.compressor_broken,i=l.turbine,h=l.turbine_broken,C=l.online,v=!!(u&&!s&&i&&!h);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!v,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:v?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,B)})})})}return k}(),B=function(N,d){var c=(0,a.useBackend)(d),m=c.data,l=m.compressor,u=m.compressor_broken,s=m.turbine,i=m.turbine_broken,h=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||u?"bad":"good",children:u?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||i?"bad":"good",children:i?s?"Offline":"Missing":"Online"})]})},I=function(N,d){var c=(0,a.useBackend)(d),m=c.data,l=m.rpm,u=m.temperature,s=m.power,i=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(i)+"%"})})]})}},52847:function(A,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),B=n(98595),I=n(3939),k=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,i);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},N=r.Uplink=function(){function h(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.cart,y=(0,f.useLocalState)(v,"tabIndex",0),L=y[0],w=y[1],T=(0,f.useLocalState)(v,"searchText",""),x=T[0],M=T[1];return(0,e.createComponentVNode)(2,B.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function O(){w(0),M("")}return O}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function O(){w(1),M("")}return O}(),icon:"shopping-cart",children:["View Shopping Cart ",S&&S.length?"("+S.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function O(){w(2),M("")}return O}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function O(){return g("lock")}return O}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return h}(),d=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.crystals,y=V.cats,L=(0,f.useLocalState)(v,"uplinkItems",y[0].items),w=L[0],T=L[1],x=(0,f.useLocalState)(v,"searchText",""),M=x[0],O=x[1],D=function(W,z){z===void 0&&(z="");var K=(0,o.createSearch)(z,function(G){var J=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+J});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),z&&(0,a.filter)(K),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(W)},E=function(W){if(O(W),W==="")return T(y[0].items);T(D(y.map(function(z){return z.items}).flat(),W))},P=(0,f.useLocalState)(v,"showDesc",1),R=P[0],j=P[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+S+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:R,onClick:function(){function F(){return j(!R)}return F}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function F(){return g("buyRandom")}return F}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function F(){return g("refund")}return F}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function F(W,z){E(z)}return F}(),value:M})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:y.map(function(F){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M!==""?!1:F.items===w,onClick:function(){function W(){T(F.items),O("")}return W}(),children:F.cat},F)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(F){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:F,showDecription:R},(0,o.decodeHtmlEntities)(F.name))},(0,o.decodeHtmlEntities)(F.name))})})})})]})]})},c=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.cart,y=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(v,"showDesc",0),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+y+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:T,onClick:function(){function M(){return x(!T)}return M}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function M(){return g("empty_cart")}return M}(),disabled:!S}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function M(){return g("purchase_cart")}return M}(),disabled:!S||L>y})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:S?S.map(function(M){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:M,showDecription:T,buttons:(0,e.createComponentVNode)(2,s,{i:M})})},(0,o.decodeHtmlEntities)(M.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.cats,y=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return g("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:y.map(function(L){return S[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,l,{grow:!0,i:L})},w)})})})})},l=function(C,v){var p=C.i,g=C.showDecription,V=g===void 0?1:g,S=C.buttons,y=S===void 0?(0,e.createComponentVNode)(2,u,{i:p}):S;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:y,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=C.i,y=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:S.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return g("add_to_cart",{item:S.obj_path})}return L}(),disabled:S.cost>y}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+S.cost+"TC)"+(S.refundable?" [Refundable]":""),color:S.hijack_only===1&&"red",tooltip:S.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return g("buyItem",{item:S.obj_path})}return L}(),disabled:S.cost>y})],4)},s=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=C.i,y=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+S.cost*S.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return g("remove_from_cart",{item:S.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:S.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return g("set_cart_item_quantity",{item:S.obj_path,quantity:--S.amount})}return L}(),disabled:S.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:S.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:S.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,T){return g("set_cart_item_quantity",{item:S.obj_path,quantity:T})}return L}(),disabled:S.limit!==-1&&S.amount>=S.limit&&S.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:S.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return g("set_cart_item_quantity",{item:S.obj_path,quantity:++S.amount})}return L}(),disabled:S.limit!==-1&&S.amount>=S.limit})]})},i=function(C,v){var p=(0,f.useBackend)(v),g=p.act,V=p.data,S=V.exploitable,y=(0,f.useLocalState)(v,"selectedRecord",S[0]),L=y[0],w=y[1],T=(0,f.useLocalState)(v,"searchText",""),x=T[0],M=T[1],O=function(P,R){R===void 0&&(R="");var j=(0,o.createSearch)(R,function(F){return F.name});return(0,t.flow)([(0,a.filter)(function(F){return F==null?void 0:F.name}),R&&(0,a.filter)(j),(0,a.sortBy)(function(F){return F.name})])(P)},D=O(S,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function E(P,R){return M(R)}return E}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:D.map(function(E){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E===L,onClick:function(){function P(){return w(E)}return P}(),children:E.name},E)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(A,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=I.product,l=I.productStock,u=I.productIcon,s=I.productIconState,i=c.chargesMoney,h=c.user,C=c.usermoney,v=c.inserted_cash,p=c.vend_ready,g=c.inserted_item_name,V=!i||m.price===0,S="ERROR!",y="";V?(S="FREE",y="arrow-circle-down"):(S=m.price,y="shopping-cart");var L=!p||l===0||!V&&m.price>C&&m.price>v;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.DmIcon,{verticalAlign:"middle",icon:u,icon_state:s,fallback:(0,e.createComponentVNode)(2,t.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:l<=0&&"bad"||l<=m.max_amount/2&&"average"||"good",children:[l," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:y,content:S,textAlign:"left",onClick:function(){function w(){return d("vend",{inum:m.inum})}return w}()})})]})},b=r.Vending=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.user,l=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,i=c.product_records,h=i===void 0?[]:i,C=c.hidden_records,v=C===void 0?[]:C,p=c.stock,g=c.vend_ready,V=c.inserted_item_name,S=c.panel_open,y=c.speaker,L=c.locked,w;return w=[].concat(h),c.extended_inventory&&(w=[].concat(w,v)),w=w.filter(function(T){return!!T}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!L&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Configuration",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Rename Vendor",onClick:function(){function T(){return d("rename",{})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Change Vendor Appearance",onClick:function(){function T(){return d("change_appearance",{})}return T}()})})]})})}),!!s&&(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:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function T(){return d("eject_item",{})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function T(){return d("change")}return T}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!S&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:y?"check":"volume-mute",selected:y,content:"Speaker",textAlign:"left",onClick:function(){function T(){return d("toggle_voice",{})}return T}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(T){return(0,e.createComponentVNode)(2,f,{product:T,productStock:p[T.name],productIcon:T.icon,productIconState:T.icon_state},T.name)})})})})]})})})}return B}()},68971:function(A,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return N("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,i){return N("volume",{channel:m.num,volume:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return N("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(A,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.remaining,m=d.question,l=d.choices,u=d.user_vote,s=d.counts,i=d.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:h,content:h+(i?" ("+(s[h]||0)+")":""),onClick:function(){function C(){return N("vote",{target:h})}return C}(),selected:h===u})},h)})]})})})}return b}()},30138:function(A,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.wires||[],m=d.status||[],l=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return N("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return N("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return N("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(A,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.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 N("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 N("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 N("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 N("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 N("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(A,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(N,d){var c=typeof Symbol!="undefined"&&N[Symbol.iterator]||N["@@iterator"];if(c)return(c=c.call(N)).next.bind(c);if(Array.isArray(N)||(c=b(N))||d&&N&&typeof N.length=="number"){c&&(N=c);var m=0;return function(){return m>=N.length?{done:!0}:{done:!1,value:N[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(N,d){if(N){if(typeof N=="string")return B(N,d);var c={}.toString.call(N).slice(8,-1);return c==="Object"&&N.constructor&&(c=N.constructor.name),c==="Map"||c==="Set"?Array.from(N):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?B(N,d):void 0}}function B(N,d){(d==null||d>N.length)&&(d=N.length);for(var c=0,m=Array(d);c0&&!V.includes(R.ref)&&!p.includes(R.ref),checked:p.includes(R.ref),onClick:function(){function j(){return S(R.ref)}return j}()},R.desc)})]})]})})}return N}()},26991:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(I,k,N,d,c){return Id?"average":I>c?"bad":"good"},b=r.AtmosScan=function(){function B(I,k){var N=I.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(d){return d.val!=="0"||d.entry==="Pressure"||d.entry==="Temperature"})(N).map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.entry,color:f(d.val,d.bad_low,d.poor_low,d.poor_high,d.bad_high),children:[d.val,d.units]},d.entry)})})})}return B}()},85870:function(A,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(B){return B+" unit"+(B===1?"":"s")},f=r.BeakerContents=function(){function b(B){var I=B.beakerLoaded,k=B.beakerContents,N=k===void 0?[]:k,d=B.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!I&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||N.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),N.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),!!d&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:d(c,m)})]},c.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(A,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data,d=N.locked,c=N.noaccess,m=N.maintpanel,l=N.on,u=N.autopatrol,s=N.canhack,i=N.emagged,h=N.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function C(){return k("power")}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return k("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"bad":"good",children:i?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:i?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return k("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!h,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return k("disableremote")}return C}()})})]})})],4)}return f}()},3939:function(A,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function N(d,c,m){var l=(0,a.useBackend)(d),u=l.act,s=l.data,i=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(i)})}return N}(),b=r.modalRegisterBodyOverride=function(){function N(d,c){o[d]=c}return N}(),B=r.modalAnswer=function(){function N(d,c,m,l){var u=(0,a.useBackend)(d),s=u.act,i=u.data;if(i.modal){var h=Object.assign(i.modal.args||{},l||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(h)})}}return N}(),I=r.modalClose=function(){function N(d,c){var m=(0,a.useBackend)(d),l=m.act;l("modal_close",{id:c})}return N}(),k=r.ComplexModal=function(){function N(d,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var u=l.modal,s=u.id,i=u.text,h=u.type,C,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return I(c)}return L}()}),p,g,V="auto";if(o[s])p=o[s](l.modal,c);else if(h==="input"){var S=l.modal.value;C=function(){function L(w){return B(c,s,S)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,T){S=T}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return I(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return B(c,s,S)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var y=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:y,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return B(c,s,w)}return L}()}),V="initial"}else h==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(l.modal.value,10),onClick:function(){function T(){return B(c,s,w+1)}return T}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):h==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return B(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return B(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:d.maxWidth||window.innerWidth/2+"px",maxHeight:d.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[s]&&v,p,g]})}}return N}()},41874:function(A,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,B=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],I=function(m){return B.indexOf(m)!==-1?"green":"orange"},k=function(m){if(B.indexOf(m)!==-1)return!0},N=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:I(l.rank),bold:k(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},d=r.CrewManifest=function(){function c(m,l){var u=(0,a.useBackend)(l),s=u.act,i;if(m.data)i=m.data;else{var h=(0,a.useBackend)(l),C=h.data;i=C}var v=i,p=v.manifest,g=p.heads,V=p.sec,S=p.eng,y=p.med,L=p.sci,w=p.ser,T=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:N(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:N(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:N(S)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:N(y)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:N(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:N(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:N(T)}),(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:N(x)})]})}return c}()},19203:function(A,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,B){var I=(0,t.useBackend)(B),k=I.act,N=I.data,d=N.large_buttons,c=N.swapped_buttons,m=b.input,l=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!d,fluid:!!d,onClick:function(){function h(){return k("submit",{entry:m})}return h}(),textAlign:"center",tooltip:d&&l,disabled:u,width:!d&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!d,fluid:!!d,onClick:function(){function h(){return k("cancel")}return h}(),textAlign:"center",width:!d&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[d?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!d&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),d?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(A,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data,d=b.siliconUser,c=d===void 0?N.siliconUser:d,m=b.locked,l=m===void 0?N.locked:m,u=b.normallyLocked,s=u===void 0?N.normallyLocked:u,i=b.onLockStatusChange,h=i===void 0?function(){return k("lock")}:i,C=b.accessText,v=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){h&&h(!l)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return f}()},51057:function(A,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var B=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(B)*100+"%"}}),2)}return f}()},321:function(A,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data,d=N.loginState;if(N)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: ",d.name," (",d.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!d.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return f}()},5485:function(A,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data,d=N.loginState,c=N.isAI,m=N.isRobot,l=N.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:d.id?d.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!d.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(A,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var B=b.operating,I=b.name;if(B)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 ",I," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(A,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(B,I){var k=(0,t.useBackend)(I),N=k.act,d=B.data,c=d.code,m=d.frequency,l=d.minFrequency,u=d.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:u/10,value:m/10,format:function(){function s(i){return(0,a.toFixed)(i,1)}return s}(),width:"80px",onDrag:function(){function s(i,h){return N("freq",{freq:h})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(i,h){return N("code",{code:h})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return N("signal")}return s}()})]})}return b}()},41984:function(A,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),B=r.SimpleRecords=function(){function N(d,c){var m=d.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:d.data,recordType:d.recordType}):(0,e.createComponentVNode)(2,I,{data:d.data})})}return N}(),I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=d.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),i=s[0],h=s[1],C=function(g,V){V===void 0&&(V="");var S=(0,t.createSearch)(V,function(y){return y.Name});return(0,o.flow)([(0,f.filter)(function(y){return y==null?void 0:y.Name}),V&&(0,f.filter)(S),(0,f.sortBy)(function(y){return y.Name})])(u)},v=C(u,i);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(g,V){return h(V)}return p}()}),v.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:p.uid})}return g}()})},p)})]})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=d.data.records,s=u.general,i=u.medical,h=u.security,C;switch(d.recordType){case"MED":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},22091:function(A,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,B){var I,k=(0,a.useBackend)(B),N=k.act,d=k.data,c=d.temp;if(c){var m=(I={},I[c.style]=!0,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return N("cleartemp")}return l}()})})]})})))}}return f}()},95213:function(A,r,n){"use strict";r.__esModule=!0,r.goonstation_PTL=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595);/** + */function m(w,T){w.prototype=Object.create(T.prototype),w.prototype.constructor=w,i(w,T)}function i(w,T){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,M){return x.__proto__=M,x},i(w,T)}function u(w,T){if(w==null)return{};var x={};for(var M in w)if({}.hasOwnProperty.call(w,M)){if(T.includes(M))continue;x[M]=w[M]}return x}var s=r.ColorPickerModal=function(){function w(T,x){var M=(0,t.useBackend)(x),P=M.data,D=P.timeout,E=P.message,O=P.title,R=P.autofocus,j=P.default_color,F=j===void 0?"#000000":j,W=(0,t.useLocalState)(x,"color_picker_choice",(0,B.hexToHsva)(F)),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,f.Window,{height:400,title:O,width:600,theme:"generic",children:[!!D&&(0,e.createComponentVNode)(2,a.Loader,{value:D}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[E&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:E})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,l,{color:z,setColor:K,defaultColor:F})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d.InputButtons,{input:(0,B.hsvaToHex)(z)})})]})})]})}return w}(),l=r.ColorSelector=function(){function w(T,x){var M=T.color,P=T.setColor,D=T.defaultColor,E=function(){function j(F){P(function(W){return Object.assign({},W,F)})}return j}(),O=(0,B.hsvaToRgba)(M),R=(0,B.hsvaToHex)(M);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,N,{hsva:M,onChange:E}),(0,e.createComponentVNode)(2,V,{hue:M.h,onChange:E,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:D,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:D})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,B.hsvaToHex)(M).substring(1),onChange:function(){function j(F){g.logger.info(F),P((0,B.hexToHsva)(F))}return j}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{hue:M.h,onChange:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:M.h,callback:function(){function j(F,W){return E({h:W})}return j}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{color:M,onChange:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:M.s,callback:function(){function j(F,W){return E({s:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{color:M,onChange:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:M.v,callback:function(){function j(F,W){return E({v:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:M,onChange:E,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.r,callback:function(){function j(F,W){O.r=W,E((0,B.rgbaToHsva)(O))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:M,onChange:E,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.g,callback:function(){function j(F,W){O.g=W,E((0,B.rgbaToHsva)(O))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:M,onChange:E,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.b,callback:function(){function j(F,W){O.b=W,E((0,B.rgbaToHsva)(O))}return j}(),max:255})})]})})]})})]})}return w}(),h=function(T){var x=T.value,M=T.callback,P=T.min,D=P===void 0?0:P,E=T.max,O=E===void 0?100:E,R=T.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(x),step:1,minValue:D,maxValue:O,onChange:M,unit:R})},C=function(T){return"#"+T},v=r.HexColorInput=function(){function w(T){var x=T.prefixed,M=T.alpha,P=T.color,D=T.fluid,E=T.onChange,O=u(T,c),R=function(){function F(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,M?8:6)}return F}(),j=function(){function F(W){return(0,B.validHex)(W,M)}return F}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({},O,{fluid:D,color:P,onChange:E,escape:R,format:x?C:void 0,validate:j})))}return w}(),p=r.ColorInput=function(w){function T(M){var P;return P=w.call(this)||this,P.props=void 0,P.state=void 0,P.handleInput=function(D){var E=P.props.escape(D.currentTarget.value);P.setState({localValue:E})},P.handleBlur=function(D){D.currentTarget&&(P.props.validate(D.currentTarget.value)?P.props.onChange(P.props.escape?P.props.escape(D.currentTarget.value):D.currentTarget.value):P.setState({localValue:P.props.escape(P.props.color)}))},P.props=M,P.state={localValue:P.props.escape(P.props.color)},P}m(T,w);var x=T.prototype;return x.componentDidUpdate=function(){function M(P,D){P.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return M}(),x.render=function(){function M(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,k.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return M}(),T}(e.Component),N=function(T){var x=T.hsva,M=T.onChange,P=function(R){M({s:R.left*100,v:100-R.top*100})},D=function(R){M({s:(0,b.clamp)(x.s+R.left*100,0,100),v:(0,b.clamp)(x.v-R.top*100,0,100)})},E={"background-color":(0,B.hsvaToHslString)({h:x.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,I.Interactive,{onMove:P,onKey:D,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(x.s)+"%, Brightness "+Math.round(x.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-x.v/100,left:x.s/100,color:(0,B.hsvaToHslString)(x)})}),2,{style:E})},V=function(T){var x=T.className,M=T.hue,P=T.onChange,D=function(j){P({h:360*j.left})},E=function(j){P({h:(0,b.clamp)(M+j.left*360,0,360)})},O=(0,k.classes)(["react-colorful__hue",x]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{onMove:D,onKey:E,"aria-label":"Hue","aria-valuenow":Math.round(M),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:M/360,color:(0,B.hsvaToHslString)({h:M,s:100,v:100,a:1})})}),2)},S=function(T){var x=T.className,M=T.color,P=T.onChange,D=function(j){P({s:100*j.left})},E=function(j){P({s:(0,b.clamp)(M.s+j.left*100,0,100)})},O=(0,k.classes)(["react-colorful__saturation",x]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,B.hsvaToHslString)({h:M.h,s:0,v:M.v,a:1})+", "+(0,B.hsvaToHslString)({h:M.h,s:100,v:M.v,a:1})+")"},onMove:D,onKey:E,"aria-label":"Saturation","aria-valuenow":Math.round(M.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:M.s/100,color:(0,B.hsvaToHslString)({h:M.h,s:M.s,v:M.v,a:1})})}),2)},y=function(T){var x=T.className,M=T.color,P=T.onChange,D=function(j){P({v:100*j.left})},E=function(j){P({v:(0,b.clamp)(M.v+j.left*100,0,100)})},O=(0,k.classes)(["react-colorful__value",x]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,B.hsvaToHslString)({h:M.h,s:M.s,v:0,a:1})+", "+(0,B.hsvaToHslString)({h:M.h,s:M.s,v:100,a:1})+")"},onMove:D,onKey:E,"aria-label":"Value","aria-valuenow":Math.round(M.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:M.v/100,color:(0,B.hsvaToHslString)({h:M.h,s:M.s,v:M.v,a:1})})}),2)},L=function(T){var x=T.className,M=T.color,P=T.onChange,D=T.target,E=(0,B.hsvaToRgba)(M),O=function(K){E[D]=K,P((0,B.rgbaToHsva)(E))},R=function(K){O(255*K.left)},j=function(K){O((0,b.clamp)(E[D]+K.left*255,0,255))},F=(0,k.classes)(["react-colorful__"+D,x]),W=D==="r"?"rgb("+Math.round(E.r)+",0,0)":D==="g"?"rgb(0,"+Math.round(E.g)+",0)":"rgb(0,0,"+Math.round(E.b)+")";return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,I.Interactive,{onMove:R,onKey:j,"aria-valuenow":E[D],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+D+"-pointer",left:E[D]/255,color:W})}),2)}},8444:function(A,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:i.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,h){return g("setvalue",{idx:u.idx+1,value:h})}return s}()})]},u.name)})},i)})})})})})}return b}()},63818:function(A,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,d);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."}},b=r.CommunicationsComputer=function(){function u(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=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,B),f(p)]})})})}return u}(),B=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.authenticated,N=v.noauthbutton,V=v.esc_section,S=v.esc_callable,y=v.esc_recallable,L=v.esc_status,w=v.authhead,T=v.is_ai,x=v.lastCallLoc,M=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",M=!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:M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:N,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function D(){return C("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!S&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function D(){return C("callshuttle")}return D}()})}),!!y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||T,onClick:function(){function D(){return C("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},I=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,g)},k=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.is_admin,N=v.gamma_armory_location,V=v.admin_levels,S=v.authenticated,y=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:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return C("send_to_cc_announcement_page")}return L}()}),S===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return C("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return C("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:y,content:y?"ERT calling enabled":"ERT calling disabled",tooltip:y?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return C("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return C("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return C("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return C("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return C("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,g)})]})},g=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.msg_cooldown,N=v.emagged,V=v.cc_cooldown,S=v.security_level_color,y=v.str_security_level,L=v.levels,w=v.authcapt,T=v.authhead,x=v.messages,M="Make Priority Announcement";p>0&&(M+=" ("+p+"s)");var P=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",D+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:S,children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:M,disabled:!w||p>0,onClick:function(){function E(){return C("announce")}return E}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function E(){return C("MessageSyndicate")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function E(){return C("RestoreBackup")}return E}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function E(){return C("MessageCentcomm")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!w||V>0,onClick:function(){function E(){return C("nukerequest")}return E}()})})]})})}),(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:!T,onClick:function(){function E(){return C("status")}return E}()})}),(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:!T,onClick:function(){function E(){return C("messagelist")}return E}()})})]})})})],4)},d=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.stat_display,N=v.authhead,V=v.current_message_title,S=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!N,onClick:function(){function w(){return C("setstat",{statdisp:L.name})}return w}()},L.name)}),y=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!N,onClick:function(){function w(){return C("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return C("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!N,onClick:function(){function L(){return C("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!N,onClick:function(){function L(){return C("setmsg2")}return L}()})})]})})})},c=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.authhead,N=v.current_message_title,V=v.current_message,S=v.messages,y=v.security_level,L;if(N)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function T(){return C("messagelist")}return T}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=S.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||N===T.title,onClick:function(){function x(){return C("messagelist",{msgid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return C("delmessage",{msgid:T.id})}return x}()})]},T.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function T(){return C("main")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=s.levels,N=s.required_access,V=s.use_confirm,S=v.security_level;return V?p.map(function(y){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:y.icon,content:y.name,disabled:!N||y.id===S,tooltip:y.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:y.id})}return L}()},y.name)}):p.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{icon:y.icon,content:y.name,disabled:!N||y.id===S,tooltip:y.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:y.id})}return L}()},y.name)})},i=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.is_admin,N=v.possible_cc_sounds;if(!p)return C("main");var V=(0,a.useLocalState)(l,"subtitle",""),S=V[0],y=V[1],L=(0,a.useLocalState)(l,"text",""),w=L[0],T=L[1],x=(0,a.useLocalState)(l,"classified",0),M=x[0],P=x[1],D=(0,a.useLocalState)(l,"beepsound","Beep"),E=D[0],O=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function R(){return C("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:S,onChange:function(){function R(j,F){return y(F)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function R(j,F){return T(F)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return C("make_cc_announcement",{subtitle:S,text:w,classified:M,beepsound:E})}return R}()}),(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:E,onSelected:function(){function R(j){return O(j)}return R}(),disabled:M})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:M,tooltip:"Test sound",onClick:function(){function R(){return C("test_sound",{sound:E})}return R}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:M,content:"Classified",fluid:!0,tooltip:M?"Sent to station communications consoles":"Publically announced",onClick:function(){function R(){return P(!M)}return R}()})})]})]})})}},20562:function(A,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.biomass,m=d.compost,i=d.biomass_capacity,u=d.compost_capacity,s=d.potassium,l=d.potassium_capacity,h=d.potash,C=d.potash_capacity,v=(0,a.useSharedState)(I,"vendAmount",1),p=v[0],N=v[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue: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.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:h,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[h," / ",C," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(S,y){return N(y)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return g("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(A,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function B(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,I(C,v)}function I(C,v){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,N){return p.__proto__=N,p},I(C,v)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},g=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],d=r.Contractor=function(){function C(v,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,y;S.unauthorized?y=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):S.load_animation_completed?y=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:S.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):y=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:g,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:y})})]})}return C}(),c=function(v,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,y=S.tc_available,L=S.tc_paid_out,w=S.completed_contracts,T=S.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[T," 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:[y," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:y<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,y=S.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:y===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:y===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,y=S.contracts,L=S.contract_active,w=S.can_extract,T=!!L&&y.filter(function(E){return E.status===1})[0],x=T&&T.time_left>0,M=(0,t.useLocalState)(p,"viewingPhoto",""),P=M[0],D=M[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:T.time_left,format:function(){function E(O,R){return" ("+R.substr(3)+")"}return E}()})],onClick:function(){function E(){return V("extract")}return E}()})},v,{children:y.slice().sort(function(E,O){return E.status===1?-1:O.status===1?1:E.status-O.status}).map(function(E){var O;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:E.status===1&&"good",children:E.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:E.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return D("target_photo_"+E.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[E.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[E.status][1],inline:!0,mt:E.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[E.status][0]}),E.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return V("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[E.fluff_message,!!E.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 ",E.completed_time]}),!!E.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."]}),!!E.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: ",E.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(E)]}),(O=E.difficulties)==null?void 0:O.map(function(R,j){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function F(){return V("activate",{uid:E.uid,difficulty:j+1})}return F}()},j)}),!!E.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[E.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(E.objective.rewards.tc||0)+" TC",",\xA0",(E.objective.rewards.credits||0)+" Credits",")"]})]})]})},E.uid)})})))},u=function(v){if(!(!v.objective||v.status>1)){var p=v.objective.locs.user_area_id,N=v.objective.locs.user_coords,V=v.objective.locs.target_area_id,S=v.objective.locs.target_coords,y=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:y?"dot-circle-o":"arrow-alt-circle-right-o",color:y?"green":"yellow",rotation:y?null:-(0,a.rad2deg)(Math.atan2(S[1]-N[1],S[0]-N[0])),lineHeight:y?null:"0.85",size:"1.5"})})}},s=function(v,p){var N=(0,t.useBackend)(p),V=N.act,S=N.data,y=S.rep,L=S.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:y-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},l=function(C){function v(N){var V;return V=C.call(this,N)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}B(v,C);var p=v.prototype;return p.tick=function(){function N(){var V=this.props,S=this.state;if(S.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var y=S.currentDisplay;y.push(V.allMessages[S.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return N}(),p.componentDidMount=function(){function N(){var V=this,S=this.props.linesPerSecond,y=S===void 0?2.5:S;this.timer=setInterval(function(){return V.tick()},1e3/y)}return N}(),p.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),p.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return N}(),v}(e.Component),h=function(v,p){var N=(0,t.useLocalState)(p,"viewingPhoto",""),V=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function y(){return S("")}return y}()})]})}},54151:function(A,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.slowFactor,m=d.oneWay,i=d.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 u(){return g("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return g("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return g("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,l){return g("slowFactor",{value:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return g("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return g("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(A,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),B=n(76910),I=n(98595),k=n(96184),g=["color"];function d(h,C){if(h==null)return{};var v={};for(var p in h)if({}.hasOwnProperty.call(h,p)){if(C.includes(p))continue;v[p]=h[p]}return v}var c=function(C,v){return C.dead?"Deceased":parseInt(C.health,10)<=v?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},m=function(C,v){return C.dead?"red":parseInt(C.health,10)<=v?"orange":parseInt(C.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function h(C,v){var p=(0,o.useBackend)(v),N=p.act,V=p.data,S=(0,o.useLocalState)(v,"tabIndex",V.tabIndex),y=S[0],L=S[1],w=function(){function x(M){L(M),N("set_tab_index",{tab_index:M})}return x}(),T=function(){function x(M){switch(M){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,I.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,I.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:y===0,onClick:function(){function x(){return w(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:y===1,onClick:function(){function x(){return w(1)}return x}(),children:"Map View"},"MapView")]})}),T(y)]})})})}return h}(),u=function(C,v){var p=(0,o.useBackend)(v),N=p.act,V=p.data,S=V.possible_levels,y=V.viewing_current_z_level,L=V.is_advanced,w=V.highlightedNames,T=(0,a.sortBy)(function(E){return!w.includes(E.name)},function(E){return E.name})(V.crewmembers||[]),x=(0,o.useLocalState)(v,"search",""),M=x[0],P=x[1],D=(0,t.createSearch)(M,function(E){return E.name+"|"+E.assignment+"|"+E.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 E(O,R){return P(R)}return E}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:L?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:S,selected:y,onSelected:function(){function E(O){return N("switch_level",{new_level:O})}return E}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function E(){return N("clear_highlighted_names")}return E}()})}),(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"})]}),T.filter(D).map(function(E,O){var R=w.includes(E.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!E.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:R,tooltip:"Mark on map",onClick:function(){function j(){return N(R?"remove_highlighted_name":"add_highlighted_name",{name:E.name})}return j}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[E.name," (",E.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(E,V.critThreshold),children:c(E,V.critThreshold)}),E.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.oxy,children:E.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.toxin,children:E.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.burn,children:E.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:B.COLORS.damageType.brute,children:E.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:E.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:E.area+" ("+E.x+", "+E.y+")",onClick:function(){function j(){return N("track",{track:E.ref})}return j}()}):E.area+" ("+E.x+", "+E.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},O)})]})]})},s=function(C,v){var p=C.color,N=d(C,g);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},N,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},l=function(C,v){var p=(0,o.useBackend)(v),N=p.act,V=p.data,S=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function y(L){return N("set_zoom",{zoom:L})}return y}(),onOffsetChange:function(){function y(L,w){return N("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return y}(),children:V.crewmembers.filter(function(y){return y.sensor_type===3||V.ignoreSensors}).map(function(y){var L=m(y,V.critThreshold),w=S.includes(y.name),T=function(){return V.isObserver?N("track",{track:y.ref}):null},x=function(){return N(w?"remove_highlighted_name":"add_highlighted_name",{name:y.name})},M=y.name+" ("+y.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:y.x,y:y.y,tooltip:M,color:L,onClick:T,onDblClick:x},y.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:y.x,y:y.y,icon:"circle",tooltip:M,color:L,onClick:T,onDblClick:x},y.ref)})})})}},63987:function(A,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],B=r.Cryo=function(){function g(d,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,I)})})})}return g}(),I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.isOperating,l=u.hasOccupant,h=u.occupant,C=h===void 0?[]:h,v=u.cellTemperature,p=u.cellTemperatureStatus,N=u.isBeakerLoaded,V=u.cooldownProgress,S=u.auto_eject_healthy,y=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return i("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return i("ejectBeaker")}return L}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return i(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function L(){return i(S?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:S?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){function L(){return i(y?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:y?"On":"Off"})})]})})})],4)},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerLabel,h=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!h&&"bad",ml:1,children:h?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h,format:function(){function C(v){return Math.round(v)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(A,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.data,i=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,B),!!u&&(0,e.createComponentVNode)(2,I)]})})}return k}(),B=function(g,d){var c=(0,a.useBackend)(d),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(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},I=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.frozen_items,s=function(h){var C=h.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return m("one_item",{item:l.uid})}return h}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(A,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],B=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],I=[5,10,20,30,50],k=r.DNAModifier=function(){function p(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.irradiating,T=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=T,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var M;return w&&(M=(0,e.createComponentVNode)(2,C,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),M,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)})]})})]})}return p}(),g=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.locked,T=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function M(){return y("toggleLock")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T||w,icon:"user-slash",content:"Eject",onClick:function(){function M(){return y("ejectOccupant")}return M}()})],4),children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},d=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.selectedMenuKey,T=L.hasOccupant,x=L.occupant;if(T){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var M;return w==="ui"?M=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):w==="se"?M=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):w==="buffer"?M=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(M=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:B.map(function(P,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function E(){return y("selectMenuKey",{key:P[0]})}return E}(),children:P[1]},D)})}),M]})},c=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.selectedUIBlock,T=L.selectedUISubBlock,x=L.selectedUITarget,M=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:M.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(D){return D.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(D,E){return y("changeUITarget",{value:E})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return y("pulseUIRadiation")}return P}()})]})},m=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.selectedSEBlock,T=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function M(){return y("pulseSERadiation")}return M}()})]})},i=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.radiationIntensity,T=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function x(M,P){return y("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:T,popUpPosition:"right",ml:"0",onChange:function(){function x(M,P){return y("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 y("pulseRadiation")}return x}()})]})},u=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.buffers,T=w.map(function(x,M){return(0,e.createComponentVNode)(2,s,{id:M+1,name:"Buffer "+(M+1),buffer:x},M)});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:T})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},s=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=N.id,T=N.name,x=N.buffer,M=L.isInjectorReady,P=T+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return y("bufferOption",{option:"clear",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return y("bufferOption",{option:"changeLabel",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return y("bufferOption",{option:"saveDisk",id:w})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"saveUI",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"saveUIAndUE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"saveSE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"loadDisk",id:w})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!M,icon:M?"syringe":"spinner",iconSpin:!M,content:"Injector",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"createInjector",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M,icon:M?"syringe":"spinner",iconSpin:!M,content:"Block Injector",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"createInjector",id:w,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return y("bufferOption",{option:"transfer",id:w})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.hasDisk,T=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!T.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return y("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function x(){return y("ejectDisk")}return x}()})],4),children:w?T.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:T.label?T.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner?T.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.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."]})})},h=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.isBeakerLoaded,T=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function M(){return y("ejectBeaker")}return M}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[I.map(function(M,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:M>T,icon:"syringe",content:M,onClick:function(){function D(){return y("injectRejuvenators",{amount:M})}return D}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:T<=0,icon:"syringe",content:"All",onClick:function(){function M(){return y("injectRejuvenators",{amount:T})}return M}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),T?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[T," unit",T===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(N,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},v=function(N,V){for(var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=N.dnaString,T=N.selectedBlock,x=N.selectedSubblock,M=N.blockSize,P=N.action,D=w.split(""),E=0,O=[],R=function(){for(var W=j/M+1,z=[],K=function(){var Q=G+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:T===W&&x===Q,content:D[j+G],mb:"0",onClick:function(){function ue(){return y(P,{block:W,subblock:Q})}return ue}()}))},G=0;Gl.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:v})}return N}()})})]})})})},g=function(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:h&&h.length?h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:C.sender_uid})}return v}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},d=function(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=(0,a.useLocalState)(i,"text",""),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function p(N,V){return v(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:C})}return p}()})]})})}},90217:function(A,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function I(k,g){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,B)})]})}return I}(),B=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.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 u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(A,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function B(I,k){var g=(0,t.useBackend)(k),d=g.act,c=g.data,m=c.power,i=c.code,u=c.frequency,s=c.minFrequency,l=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 h(){return d("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return d("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:u/10,format:function(){function h(C){return(0,a.toFixed)(C,1)}return h}(),width:"80px",onChange:function(){function h(C,v){return d("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return d("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function h(C,v){return d("code",{code:v})}return h}()})})]})})})})}return B}()},11243:function(A,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function I(k,g){var d=(0,t.useBackend)(g),c=d.data,m=c.emoji_list,i=(0,t.useLocalState)(g,"searchText",""),u=i[0],s=i[1],l=m.filter(function(h){return h.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function h(C,v){return s(v)}return h}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+h.name]),style:{transform:"scale(1.5)"},tooltip:h.name,onClick:function(){function C(){B(h.name)}return C}()},h.name)})})})})}return I}(),B=function(k){var g=document.createElement("input"),d=":"+k+":";g.value=d,document.body.appendChild(g),g.select(),document.execCommand("copy"),document.body.removeChild(g)}},69784:function(A,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(25328),b=r.EmotePanel=function(){function I(k,g){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,B)})})})}return I}(),B=r.EmotePanelContent=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.emotes,u=(0,a.useLocalState)(g,"searchText",""),s=u[0],l=u[1],h=(0,a.useLocalState)(g,"filterVisible",""),C=h[0],v=h[1],p=(0,a.useLocalState)(g,"filterAudible",""),N=p[0],V=p[1],S=(0,a.useLocalState)(g,"filterSound",""),y=S[0],L=S[1],w=(0,a.useLocalState)(g,"filterHands",""),T=w[0],x=w[1],M=(0,a.useLocalState)(g,"filterTargettable",""),P=M[0],D=M[1],E=(0,a.useLocalState)(g,"useTarget",""),O=E[0],R=E[1],j=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function F(W,z){return l(z)}return F}()});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:C,onClick:function(){function F(){return v(!C)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:N,onClick:function(){function F(){return V(!N)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:y,onClick:function(){function F(){return L(!y)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:T,onClick:function(){function F(){return x(!T)}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function F(){return D(!P)}return F}()})]}),children:j})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:O,onClick:function(){function F(){return R(!O)}return F}(),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(F){return F.key&&(s.length>0?F.key.toLowerCase().includes(s.toLowerCase())||F.name.toLowerCase().includes(s.toLowerCase()):!0)&&(C?F.visible:!0)&&(N?F.audible:!0)&&(y?F.sound:!0)&&(T?F.hands:!0)&&(P?F.targettable:!0)}).map(function(F){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function W(){return c("play_emote",{emote_key:F.key,useTarget:O})}return W}(),children:[F.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",F.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",F.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",F.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",F.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",F.name]},F.name)})})})})})],4)}return I}()},36730:function(A,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),B=n(88510),I=r.EvolutionMenu=function(){function d(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,g)]})})})}return d}(),k=function(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data,l=s.evo_points,h=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!h,content:"Readapt",icon:"sync",onClick:function(){function C(){return u("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},g=function(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data,l=s.evo_points,h=s.ability_tabs,C=s.purchased_abilities,v=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",h[0]),N=p[0],V=p[1],S=(0,t.useLocalState)(m,"searchText",""),y=S[0],L=S[1],w=(0,t.useLocalState)(m,"ability_tabs",h[0].abilities),T=w[0],x=w[1],M=function(O,R){if(R===void 0&&(R=""),!O||O.length===0)return[];var j=(0,a.createSearch)(R,function(F){return F.name+"|"+F.description});return(0,b.flow)([(0,B.filter)(function(F){return F==null?void 0:F.name}),(0,B.filter)(j),(0,B.sortBy)(function(F){return F==null?void 0:F.name})])(O)},P=function(O){if(L(O),O==="")return x(N.abilities);x(M(h.map(function(R){return R.abilities}).flat(),O))},D=function(O){V(O),x(O.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function E(O,R){P(R)}return E}(),value:y}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function E(){return u("set_view_mode",{mode:0})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function E(){return u("set_view_mode",{mode:1})}return E}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(E){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:y===""&&N===E,onClick:function(){function O(){D(E)}return O}(),children:E.category},E)})}),T.map(function(E,O){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:E.name}),C.includes(E.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:E.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:E.cost>l||C.includes(E.power_path),content:"Evolve",onClick:function(){function R(){return u("purchase",{power_path:E.power_path})}return R}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:E.description+" "+E.helptext})]},O)})]})})}},17370:function(A,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),B=n(98595),I=["id","amount","lineDisplay","onClick"];function k(p,N){if(p==null)return{};var V={};for(var S in p)if({}.hasOwnProperty.call(p,S)){if(N.includes(S))continue;V[S]=p[S]}return V}var g=2e3,d={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function p(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.building,T=L.linked;return T?(0,e.createComponentVNode)(2,B.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,B.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,v),(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)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,C)}return p}(),m=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.materials,T=L.capacity,x=Object.values(w).reduce(function(M,P){return M+P},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(x/T*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(M){return(0,e.createComponentVNode)(2,l,{mt:-2,id:M,bold:M==="metal"||M==="glass",onClick:function(){function P(){return y("withdraw",{id:M})}return P}()},M)})})},i=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.curCategory,T=L.categories,x=L.designs,M=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),D=P[0],E=P[1],O=(0,t.createSearch)(D,function(z){return z.name}),R=x.filter(O),j=(0,o.useLocalState)(V,"levelsModal",!1),F=j[0],W=j[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{width:"19rem",className:"Exofab__dropdown",selected:w,options:T,onSelected:function(){function z(K){return y("category",{cat:K})}return z}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function z(){return y("queueall")}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function z(){return W(!0)}return z}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function z(){return y("unlink")}return z}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function z(K,G){return E(G)}return z}()}),R.map(function(z){return(0,e.createComponentVNode)(2,h,{design:z},z.id)}),R.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.building,T=L.buildStart,x=L.buildEnd,M=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:T,current:M,end:x,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:M,timeLeft:x-M,format:function(){function P(D,E){return E.substr(3)}return P}()}),")"]})]})})})},s=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.queue,T=L.processingQueue,x=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),M=w.reduce(function(P,D){return P+D.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return y("process")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return y("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,D){return(0,e.createComponentVNode)(2,f.Box,{color:P.notEnough&&"bad",children:[D+1,". ",P.name,D>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function E(){return y("queueswap",{from:D+1,to:D})}return E}()}),D0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(M/10*1e3).toISOString().substr(14,5)})]}),Object.keys(x).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",x.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},l=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=N.id,T=N.amount,x=N.lineDisplay,M=N.onClick,P=k(N,I),D=L.materials[w]||0,E=T||D;if(!(E<=0&&!(w==="metal"||w==="glass"))){var O=T&&T>D;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",x&&"Exofab__material--line"])},P,{children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:O&&"bad",ml:0,mr:1,children:E.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:M,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[E.toLocaleString("en-US")," cm\xB3 (",Math.round(E/g*10)/10," ","sheets)"]})]})],4)})))}},h=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=N.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function T(){return y("build",{id:w.id})}return T}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function T(){return y("queue",{id:w.id})}return T}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(T){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:T[0],amount:T[1],lineDisplay:!0})},T[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},C=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.controllers;return(0,e.createComponentVNode)(2,B.Window,{children:(0,e.createComponentVNode)(2,B.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(T){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:T.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:T.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function x(){return y("linktonetworkcontroller",{target_controller:T.addr})}return x}()})})]},T.addr)})]})})})})},v=function(N,V){var S=(0,o.useBackend)(V),y=S.act,L=S.data,w=L.tech_levels,T=(0,o.useLocalState)(V,"levelsModal",!1),x=T[0],M=T[1];return x?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function P(){M(!1)}return P}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(P){var D=P.name,E=P.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:D,children:E},D)})})})}):null}},59128:function(A,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),B=r.ExperimentConsole=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.open,u=m.feedback,s=m.occupant,l=m.occupant_name,h=m.occupant_status,C=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function S(){return f.get(h)}return S}(),V=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(S){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(S).icon,content:b.get(S).label,onClick:function(){function y(){return c("experiment",{experiment_type:S})}return y}()},S)})})]})}return p}(),v=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function p(){return c("door")}return p}()}),children:v})]})})}return I}()},97086:function(A,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,B=function(g){var d="good",c=80,m=95,i=110,u=120;return gi?d="average":g>u&&(d="bad"),d},I=r.ExternalAirlockController=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.chamber_pressure,s=i.exterior_status,l=i.interior_status,h=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:B(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":h?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":h?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return k}()},96142:function(A,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.scan_name?"eject":"id-card",selected:d.scan_name,content:d.scan_name?d.scan_name:"-----",tooltip:d.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return g("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.authenticated?"sign-out-alt":"id-card",selected:d.authenticated,disabled:d.nologin,content:d.realauth?"Log Out":"Log In",onClick:function(){function c(){return g("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:d.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d.paper?"eject":"paperclip",disabled:!d.authenticated&&!d.paper,content:d.paper?d.paper:"-----",onClick:function(){function c(){return g("paper")}return c}()}),!!d.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return g("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:d.destination?d.destination:"-----",disabled:!d.authenticated,onClick:function(){function c(){return g("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:d.sendError?d.sendError:"Send",disabled:!d.paper||!d.destination||!d.authenticated||d.sendError,onClick:function(){function c(){return g("send")}return c}()})})]})})]})})}return b}()},74123:function(A,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=k.config,m=d.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(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return g("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(A,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=k.icon_state,u=k.direction,s=k.isSelected,l=k.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:m.icon,icon_state:i,direction:u,onClick:l,style:{"border-style":s&&"solid"||"none","border-width":"2px","border-color":"orange",padding:s&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},B=r.FloorPainter=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.availableStyles,u=m.selectedStyle,s=m.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function l(){return c("cycle_style",{offset:-1})}return l}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:i,selected:u,width:"150px",nochevron:!0,onSelected:function(){function l(h){return c("select_style",{style:h})}return l}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function l(){return c("cycle_style",{offset:1})}return l}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:i.map(function(l){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{icon_state:l,isSelected:u===l,onSelect:function(){function h(){return c("select_style",{style:l})}return h}()})},l)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[l+b.WEST,l,l+b.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{icon_state:u,direction:h,isSelected:h===s,onSelect:function(){function C(){return c("select_direction",{direction:h})}return C}()})},h)})},l)})})})})]})})})}return I}()},53424:function(A,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(i){return i?"("+i.join(", ")+")":"ERROR"},B=function(i,u){if(!(!i||!u)){if(i[2]!==u[2])return null;var s=Math.atan2(u[1]-i[1],u[0]-i[0]),l=Math.sqrt(Math.pow(u[1]-i[1],2)+Math.pow(u[0]-i[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},I=r.GPS=function(){function m(i,u){var s=(0,t.useBackend)(u),l=s.data,h=l.emped,C=l.active,v=l.area,p=l.position,N=l.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:h?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{area:v,position:p})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(i,u){var s=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:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},g=function(i,u){var s=(0,t.useBackend)(u),l=s.act,h=s.data,C=h.active,v=h.tag,p=h.same_z,N=(0,t.useLocalState)(u,"newTag",v),V=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function y(){return l("toggle")}return y}()}),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 y(){return l("tag",{newtag:V})}return y}(),onInput:function(){function y(L,w){return S(w)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function y(){return l("tag",{newtag:V})}return y}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function y(){return l("same_z")}return y}()})})]})})},d=function(i,u){var s=i.title,l=i.area,h=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),b(h)]})})},c=function(i,u){var s=(0,t.useBackend)(u),l=s.data,h=l.position,C=l.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:C.map(function(v){return Object.assign({},v,B(h,v.position))}).map(function(v,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children: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:b(v.position)})]},p)})})})))}},89124:function(A,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,l){var h=(0,a.useBackend)(l),C=h.data,v=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,B)]})}),2)]})}return u}(),B=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})},I=function(s,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.has_seed,N=v.seed,V=v.has_disk,S=v.disk,y,L;return p?y=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:N.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):y=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?L=S.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return C("select_empty_disk")}return w}()})})})]})})},g=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.disk,N=v.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function S(){return C("extract",{id:V.id})}return S}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return C("bulk_extract_core")}return V}()})})})]},"Core Genes")},d=function(s,l){var h=(0,a.useBackend)(l),C=h.data,v=C.reagent_genes,p=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:v,do_we_show:p})},c=function(s,l){var h=(0,a.useBackend)(l),C=h.data,v=C.trait_genes,p=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:v,do_we_show:p})},m=function(s,l){var h=s.title,C=s.gene_set,v=s.do_we_show,p=(0,a.useBackend)(l),N=p.act,V=p.data,S=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:h,open:!0,children:v?C.map(function(y){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:y.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(S!=null&&S.can_extract),icon:"save",onClick:function(){function L(){return N("extract",{id:y.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return N("remove",{id:y.id})}return L}()})})]},y)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},h)},i=function(s,l){var h=s.title,C=s.gene_set,v=s.do_we_show,p=(0,a.useBackend)(l),N=p.act,V=p.data,S=V.has_seed,y=V.empty_disks,L=V.stat_disks,w=V.trait_disks,T=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",y,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return N("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,M){return x.display_name.localeCompare(M.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!S,icon:"arrow-circle-down",onClick:function(){function M(){return N("bulk_replace_core",{index:x.index})}return M}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!S,content:"Replace",onClick:function(){function M(){return N("replace",{index:x.index,stat:x.stat})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function M(){return N("select",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function M(){return N("eject_disk",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function M(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return M}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(x,M){return x.display_name.localeCompare(M.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function M(){return N("insert",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function M(){return N("select",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function M(){return N("eject_disk",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function M(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return M}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[T.slice().sort(function(x,M){return x.display_name.localeCompare(M.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function M(){return N("insert",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function M(){return N("select",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function M(){return N("eject_disk",{index:x.index})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function M(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return M}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(A,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(B,I){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(A,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.data,c=d.security,m=d.medical,i=d.diagnostic,u=d.pressure,s=d.radioactivity,l=d.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:217,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,b,{label:"Pressure",type:"pressure",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:s,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:l,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return B}(),b=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=I.label,m=I.type,i=m===void 0?null:m,u=I.is_active,s=I.act_on,l=s===void 0?"hud_on":s,h=I.act_off,C=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function v(){return d(u?C:l,{hud_type:i})}return v}()})})]})}},25825:function(A,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.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 u(){return g("dispense",{gland_id:i.id})}return u}()},i.id)})})})})}return b}()},10270:function(A,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.charging_state,m=d.charge_count,i=d.breaker,u=d.ext_power,s=function(){function h(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return h}(),l=function(){function h(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return h}();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:[l(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 h(){return g("breaker")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(A,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return d("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 d("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 d("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 d("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 d("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 d("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 d("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return d("access",{access:i})}return m}(),grantAll:function(){function m(){return d("grant_all")}return m}(),denyAll:function(){function m(){return d("clear_all")}return m}(),grantDep:function(){function m(i){return d("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return d("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 d("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 B}()},67834:function(A,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,B=r.HandheldChemDispenser=function(){function g(d,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,I),(0,e.createComponentVNode)(2,k)]})})})}return g}(),I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.amount,l=u.energy,h=u.maxEnergy,C=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[l," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function N(){return i("amount",{amount:v})}return N}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="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:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},k=function(d,c){for(var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.chemicals,l=s===void 0?[]:s,h=u.current_reagent,C=[],v=0;v<(l.length+1)%3;v++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(p,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return i("dispense",{reagent:p.id})}return V}()},N)}),C.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},46098:function(A,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function I(k,g){var d=(0,t.useBackend)(g),c=d.act,m=d.data,i=m.on,u=m.user_health,s=m.minHealth,l=m.maxHealth,h=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 C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:l,value:h,format:function(){function C(v){return(0,a.toFixed)(v,1)}return C}(),width:"80px",onDrag:function(){function C(v,p){return c("alarm_health",{alarm_health:p})}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:B(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return I}(),B=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(A,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=(0,a.useLocalState)(k,"currentDeck",""),i=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),l=s[0],h=s[1],C=c.decks,v=c.ai_override,p=c.emagged,N=function(){function V(S){d("select_deck",{deck:S}),u(S),h(!0),setTimeout(function(){h(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===i,onClick:function(){function S(){return N(V)}return S}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return d("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return d("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return B}(),b=function(I,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(A,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function d(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,g)]})})]})}return d}(),B=function(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data,l=s.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return u("help")}return h}()})]})})})},I=function(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data,l=s.lines,h=s.playing,C=s.repeat,v=s.maxRepeats,p=s.tempo,N=s.minTempo,V=s.maxTempo,S=s.tickLag,y=s.volume,L=s.minVolume,w=s.maxVolume,T=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:l.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:C,stepPixelSize:59,onChange:function(){function x(M,P){return u("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p+S})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p-S})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:y,stepPixelSize:6,onDrag:function(){function x(M,P){return u("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:T?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data,l=s.allowedInstrumentNames,h=s.instrumentLoaded,C=s.instrument,v=s.canNoteShift,p=s.noteShift,N=s.noteShiftMin,V=s.noteShiftMax,S=s.sustainMode,y=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,T=s.sustainDropoffVolume,x=s.sustainHeldNote,M,P;return S===1?(M="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:y,step:.5,stepPixelSize:85,format:function(){function D(E){return(0,a.round)(E*100)/100+" seconds"}return D}(),onChange:function(){function D(E,O){return u("setlinearfalloff",{new:O/10})}return D}()})):S===2&&(M="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function D(E){return(0,a.round)(E*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(E,O){return u("setexpfalloff",{new:O})}return D}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:C,width:"50%",onSelected:function(){function D(E){return u("switchinstrument",{name:E})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&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:V,value:p,stepPixelSize:2,format:function(){function D(E){return E+" keys / "+(0,a.round)(E/12*100)/100+" octaves"}return D}(),onChange:function(){function D(E,O){return u("setnoteshift",{new:O})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:M,mb:"0.4rem",onSelected:function(){function D(E){return u("setsustainmode",{new:E})}return D}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:T,stepPixelSize:6,onChange:function(){function D(E,O){return u("setdropoffvolume",{new:O})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},g=function(c,m){var i=(0,t.useBackend)(m),u=i.act,s=i.data,l=s.playing,h=s.lines,C=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||l,icon:"plus",content:"Add Line",onClick:function(){function v(){return u("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function v(){return u("edit")}return v}()})],4),children:!!C&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:p+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:p+1})}return N}()})],4),children:v},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},52736:function(A,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(72253),f=n(36036),b=n(98595),B=r.Jukebox=function(){function g(d,c){var m=(0,o.useBackend)(c),i=m.act,u=m.data,s=u.active,l=u.looping,h=u.track_selected,C=u.volume,v=u.max_volume,p=u.songs,N=u.startTime,V=u.endTime,S=u.worldTime,y=u.need_coin,L=u.payment,w=u.advanced_admin,T=35,x=!L&&y&&!w,M=(0,t.flow)([(0,a.sortBy)(function(j){return j.name})])(p),P=p.find(function(j){return j.name===h}),D=M.length,E=P?M.findIndex(function(j){return j.name===P.name})+1:0,O=function(){function j(F){var W=Math.floor(F/60),z=F%60,K=String(W).padStart(2,"0")+":"+String(z).padStart(2,"0");return K}return j}(),R=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[s?l?"\u221E":O(Math.round((S-N)/10)):l?"\u221E":O(P.length)," ","/ ",l?"\u221E":O(P.length)]});return(0,e.createComponentVNode)(2,b.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,k):null,(0,e.createComponentVNode)(2,b.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>T?(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:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function j(){return i("toggle")}return j}()})}),(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:s||y&&!w,tooltip:y&&!w?"\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:l,onClick:function(){function j(){return i("loop",{looping:!l})}return j}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:N,current:l?V:S,end:V,children:R})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[s?(0,e.createComponentVNode)(2,I):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 j(){return i("set_volume",{volume:"min"})}return j}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function j(){return i("set_volume",{volume:"reset"})}return j}()})}),(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 j(){return i("set_volume",{volume:"max"})}return j}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:C<=25?"green":C<=50?"":C<=75?"orange":"red",value:C,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function j(F,W){return i("set_volume",{volume:W})}return j}()}),"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:E+"/"+D,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 j(){var F=Math.floor(Math.random()*D),W=M[F];i("select_track",{track:W.name})}return j}()}),children:M.map(function(j){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:P.name===j.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:j.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:O(j.length)})]}),onClick:function(){function F(){i("select_track",{track:j.name})}return F}()})},j.name)})})})]})})]})}return g}(),I=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"})]})},k=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"})]})}},13618:function(A,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),B=n(51057),I=function(i){return i.key!==a.KEY.Alt&&i.key!==a.KEY.Control&&i.key!==a.KEY.Shift&&i.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},g=3,d=function(i){var u="";if(i.altKey&&(u+="Alt"),i.ctrlKey&&(u+="Ctrl"),i.shiftKey&&!(i.keyCode>=48&&i.keyCode<=57)&&(u+="Shift"),i.location===g&&(u+="Numpad"),I(i))if(i.shiftKey&&i.keyCode>=48&&i.keyCode<=57){var s=i.keyCode-48;u+="Shift"+s}else{var l=i.key.toUpperCase();u+=k[l]||l}return u},c=r.KeyComboModal=function(){function m(i,u){var s=(0,t.useBackend)(u),l=s.act,h=s.data,C=h.init_value,v=h.large_buttons,p=h.message,N=p===void 0?"":p,V=h.title,S=h.timeout,y=(0,t.useLocalState)(u,"input",C),L=y[0],w=y[1],T=(0,t.useLocalState)(u,"binding",!0),x=T[0],M=T[1],P=function(){function O(R){if(!x){R.key===a.KEY.Enter&&l("submit",{entry:L}),(0,a.isEscape)(R.key)&&l("cancel");return}if(R.preventDefault(),I(R)){D(d(R)),M(!1);return}else if(R.key===a.KEY.Escape){D(C),M(!1);return}}return O}(),D=function(){function O(R){R!==L&&w(R)}return O}(),E=130+(N.length>30?Math.ceil(N.length/3):0)+(N.length&&v?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:E,children:[S&&(0,e.createComponentVNode)(2,B.Loader,{value:S}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function O(R){P(R)}return O}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function O(){D(C),M(!0)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(A,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!d.swiping&&!d.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:!d.redAvailable,onClick:function(){function i(){return g("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 g("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 g("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return g("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 g("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 g("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!d.hasSwiped&&!d.ertreason&&d.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):d.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):d.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):d.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,d.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:d.ertreason?"":"red",icon:d.ertreason?"check":"pencil-alt",content:d.ertreason?d.ertreason:"-----",disabled:d.busy,onClick:function(){function i(){return g("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:d.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:d.busy||d.hasConfirm,onClick:function(){function i(){return g("reset")}return i}()}),children:m})]})})}return b}()},62955:function(A,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.data,m=d.config,i=c.ingredients,u=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,B)}),(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(l){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:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return I}(),B=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:i,tooltip:i?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},9525:function(A,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.isAdmin,s=i.isSlaved,l=i.isMalf,h=i.isAIMalf,C=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),C===0&&(0,e.createComponentVNode)(2,b),C===1&&(0,e.createComponentVNode)(2,B)]})})}return k}(),b=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.has_zeroth_laws,s=i.zeroth_laws,l=i.has_ion_laws,h=i.ion_laws,C=i.ion_law_nr,v=i.has_inherent_laws,p=i.inherent_laws,N=i.has_supplied_laws,V=i.supplied_laws,S=i.channels,y=i.channel,L=i.isMalf,w=i.isAdmin,T=i.zeroth_law,x=i.ion_law,M=i.inherent_law,P=i.supplied_law,D=i.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,I,{title:"ERR_NULL_VALUE",laws:s,ctx:d}),!!l&&(0,e.createComponentVNode)(2,I,{title:C,laws:h,ctx:d}),!!v&&(0,e.createComponentVNode)(2,I,{title:"Inherent",laws:p,ctx:d}),!!N&&(0,e.createComponentVNode)(2,I,{title:"Supplied",laws:V,ctx:d}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:S.map(function(E){return(0,e.createComponentVNode)(2,t.Button,{content:E.channel,selected:E.channel===y,onClick:function(){function O(){return m("law_channel",{law_channel:E.channel})}return O}()},E.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function E(){return m("state_laws")}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function E(){return m("notify_laws")}return E}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:T}),(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 E(){return m("change_zeroth_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_zeroth_law")}return E}()})]})]}),(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 E(){return m("change_ion_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_ion_law")}return E}()})]})]}),(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:M}),(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 E(){return m("change_inherent_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_inherent_law")}return E}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function E(){return m("change_supplied_law_position")}return E}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function E(){return m("change_supplied_law")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function E(){return m("add_supplied_law")}return E}()})]})]})]})})],0)},B=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},I=function(g,d){var c=(0,a.useBackend)(g.ctx),m=c.act,i=c.data,u=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:g.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),g.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},85066:function(A,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function C(v,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),B=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=v.args,L=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:y.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:y.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:y.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[y.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!y.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:y.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===y.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:y.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:y.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:y.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:y.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:y.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:y.id})}return w}()})]})},I=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=v.args,L=S.selected_report,w=S.report_categories,T=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:y.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(x,M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,M)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:y.id,user_ckey:T})}return x}()})]})},k=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.selected_rating,L=Array(10).fill().map(function(w,T){return 1+T});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:y>=w?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:w})}return x}()})},T)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[y+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},g=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=v.args,L=S.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:y.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:y.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[y.current_rating?y.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:y.total_ratings?y.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:y.id,user_ckey:L})}return w}()})]})},d=function(v,p){var N=(0,a.useBackend)(p),V=N.data,S=(0,a.useLocalState)(p,"tabIndex",0),y=S[0],L=S[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===0,onClick:function(){function T(){return L(0)}return T}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===1,onClick:function(){function T(){return L(1)}return T}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===2,onClick:function(){function T(){return L(2)}return T}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===3,onClick:function(){function T(){return L(3)}return T}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===4,onClick:function(){function T(){return L(4)}return T}(),children:"Inventory"})]})})},c=function(v,p){var N=(0,a.useLocalState)(p,"tabIndex",0),V=N[0];switch(V){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.searchcontent,L=S.book_categories,w=S.user_ckey,T=[];return L.map(function(x){return T[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:y.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:y.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:y.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:y.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(M){return V("toggle_search_category",{category_id:T[M]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return y.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 M(){return V("toggle_search_category",{category_id:x.category_id})}return M}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),y.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:w})}return x}()})]})]})},i=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.external_booklist,L=S.archive_pagenumber,w=S.num_pages,T=S.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),y.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:[T===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function M(){return V("order_external_book",{bookid:x.id})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function M(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return M}()})]})]},x.id)})]})]})},u=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.programmatic_booklist,L=S.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),y.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:w.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return x}()})]})]},T)})]})})},s=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.selectedbook,L=S.book_categories,w=S.user_ckey,T=[];return L.map(function(x){return T[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:y.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:w})}return x}()}),children:[y.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:y.copyright,content:y.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:y.copyright,content:y.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(M){return V("toggle_upload_category",{category_id:T[M]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return y.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:y.copyright,selected:!0,icon:"unlink",onClick:function(){function M(){return V("toggle_upload_category",{category_id:x.category_id})}return M}()},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:y.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:y.summary})]})})]})]})},l=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),y.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function T(){return V("reportlost",{libraryid:L.libraryid})}return T}()})})]},w)})]})})},h=function(v,p){var N=(0,a.useBackend)(p),V=N.act,S=N.data,y=S.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),y.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",B),(0,f.modalRegisterBodyOverride)("report_book",I),(0,f.modalRegisterBodyOverride)("rate_info",g)},9516:function(A,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function d(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,B)})]})}return d}(),B=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,g);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},I=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=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 l(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return u("view_reported_books")}return l}()})]})},k=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function h(){return u("return")}return h}()}),(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"})]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),h.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return u("delete_book",{bookid:h.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return u("unflag_book",{bookid:h.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:h.id})}return C}()})]})]},h.id)})]})})},g=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.ckey,h=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",l,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return u("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),h.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return u("delete_book",{bookid:C.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return u("view_book",{bookid:C.id})}return v}()})]})]},C.id)})]})})}},90447:function(A,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),B=n(98595),I=r.ListInputModal=function(){function d(c,m){var i=(0,f.useBackend)(m),u=i.act,s=i.data,l=s.items,h=l===void 0?[]:l,C=s.message,v=C===void 0?"":C,p=s.init_value,N=s.timeout,V=s.title,S=(0,f.useLocalState)(m,"selected",h.indexOf(p)),y=S[0],L=S[1],w=(0,f.useLocalState)(m,"searchBarVisible",h.length>10),T=w[0],x=w[1],M=(0,f.useLocalState)(m,"searchQuery",""),P=M[0],D=M[1],E=function(){function G(J){var Q=z.length-1;if(J===b.KEY_DOWN)if(y===null||y===Q){var ue;L(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView()}else{var ie;L(y+1),(ie=document.getElementById((y+1).toString()))==null||ie.scrollIntoView()}else if(J===b.KEY_UP)if(y===null||y===0){var pe;L(Q),(pe=document.getElementById(Q.toString()))==null||pe.scrollIntoView()}else{var te;L(y-1),(te=document.getElementById((y-1).toString()))==null||te.scrollIntoView()}}return G}(),O=function(){function G(J){J!==y&&L(J)}return G}(),R=function(){function G(){x(!1),x(!0)}return G}(),j=function(){function G(J){var Q=String.fromCharCode(J),ue=h.find(function(te){return te==null?void 0:te.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(ue){var ie,pe=h.indexOf(ue);L(pe),(ie=document.getElementById(pe.toString()))==null||ie.scrollIntoView()}}return G}(),F=function(){function G(J){var Q;J!==P&&(D(J),L(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return G}(),W=function(){function G(){x(!T),D("")}return G}(),z=h.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),K=330+Math.ceil(v.length/3);return T||setTimeout(function(){var G;return(G=document.getElementById(y.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,B.Window,{title:V,width:325,height:K,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,B.Window.Content,{onKeyDown:function(){function G(J){var Q=window.event?J.which:J.keyCode;(Q===b.KEY_DOWN||Q===b.KEY_UP)&&(J.preventDefault(),E(Q)),Q===b.KEY_ENTER&&(J.preventDefault(),u("submit",{entry:z[y]})),!T&&Q>=b.KEY_A&&Q<=b.KEY_Z&&(J.preventDefault(),j(Q)),Q===b.KEY_ESCAPE&&(J.preventDefault(),u("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:T?"search":"font",selected:!0,tooltip:T?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return W()}return G}()}),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,k,{filteredItems:z,onClick:O,onFocusSearch:R,searchBarVisible:T,selected:y})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:T&&(0,e.createComponentVNode)(2,g,{filteredItems:z,onSearch:F,searchQuery:P,selected:y})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[y]})})]})})})]})}return d}(),k=function(c,m){var i=(0,f.useBackend)(m),u=i.act,s=c.filteredItems,l=c.onClick,h=c.onFocusSearch,C=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function V(){return l(N)}return V}(),onDblClick:function(){function V(S){S.preventDefault(),u("submit",{entry:s[v]})}return V}(),onKeyDown:function(){function V(S){var y=window.event?S.which:S.keyCode;C&&y>=b.KEY_A&&y<=b.KEY_Z&&(S.preventDefault(),h())}return V}(),selected:N===v,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},N)})})},g=function(c,m){var i=(0,f.useBackend)(m),u=i.act,s=c.filteredItems,l=c.onSearch,h=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(p){p.preventDefault(),u("submit",{entry:s[C]})}return v}(),onInput:function(){function v(p,N){return l(N)}return v}(),placeholder:"Search...",value:h})}},26826:function(A,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b={Default:function(){function c(m,i){return m.gear.gear_tier-i.gear.gear_tier}return c}(),Alphabetical:function(){function c(m,i){return m.gear.name.toLowerCase().localeCompare(i.gear.name.toLowerCase())}return c}(),Cost:function(){function c(m,i){return m.gear.cost-i.gear.cost}return c}()},B=r.Loadout=function(){function c(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=(0,t.useLocalState)(i,"search",!1),C=h[0],v=h[1],p=(0,t.useLocalState)(i,"searchText",""),N=p[0],V=p[1],S=(0,t.useLocalState)(i,"category",Object.keys(l.gears)[0]),y=S[0],L=S[1],w=(0,t.useLocalState)(i,"tweakedGear",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,f.Window,{width:1105,height:650,children:[T&&(0,e.createComponentVNode)(2,d,{tweakedGear:T,setTweakedGear:x}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,I,{category:y,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,g,{setTweakedGear:x})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,k,{category:y,search:C,setSearch:v,searchText:N,setSearchText:V})})]})})]})})]})}return c}(),I=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=m.category,C=m.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(l.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function p(){return C(v)}return p}(),children:v},v)})})},k=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=l.user_tier,C=l.gear_slots,v=l.max_gear_slots,p=m.category,N=m.search,V=m.setSearch,S=m.searchText,y=m.setSearchText,L=(0,t.useLocalState)(i,"sortType","Default"),w=L[0],T=L[1],x=(0,t.useLocalState)(i,"sortReverse",!1),M=x[0],P=x[1],D=(0,a.createSearch)(S,function(O){return O.name}),E;return S.length>2?E=Object.entries(l.gears).reduce(function(O,R){var j=R[0],F=R[1];return O.concat(Object.entries(F).map(function(W){var z=W[0],K=W[1];return{key:z,gear:K}}))},[]).filter(function(O){var R=O.gear;return D(R)}):E=Object.entries(l.gears[p]).map(function(O){var R=O[0],j=O[1];return{key:R,gear:j}}),E.sort(b[w]),M&&(E=E.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:w,options:Object.keys(b),onSelected:function(){function O(R){return T(R)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:M?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:M?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function O(){return P(!M)}return O}()})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:S,onInput:function(){function O(R){return y(R.target.value)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:N,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function O(){V(!N),y("")}return O}()})})]}),children:E.map(function(O){var R=O.key,j=O.gear,F=12,W=Object.keys(l.selected_gears).includes(R),z=j.cost===1?j.cost+" Point":j.cost+" Points",K=(0,e.createComponentVNode)(2,o.Box,{children:[j.name.length>F&&(0,e.createComponentVNode)(2,o.Box,{children:j.name}),j.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:j.name.length>F&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),G=(0,e.createFragment)([j.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:j.allowed_roles.map(function(Q){return(0,e.createComponentVNode)(2,o.Box,{children:Q},Q)})}),tooltipPosition:"left"}),Object.entries(j.tweaks).map(function(Q){var ue=Q[0],ie=Q[1];return ie.map(function(pe){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:pe.icon,tooltip:pe.tooltip,tooltipPosition:"top"},ue)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:j.desc,tooltipPosition:"top"})],0),J=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:j.gear_tier>0&&"Tier "+j.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:z})]});return(0,e.createComponentVNode)(2,o.ImageButton,{m:.5,imageSize:84,dmIcon:j.icon,dmIconState:j.icon_state,tooltip:(j.name.length>F||j.gear_tier>0)&&K,tooltipPosition:"bottom",selected:W,disabled:j.gear_tier>h||C+j.cost>v&&!W,buttons:G,buttonsAlt:J,onClick:function(){function Q(){return s("toggle_gear",{gear:R})}return Q}(),children:j.name},R)})})},g=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=m.setTweakedGear,C=Object.entries(l.gears).reduce(function(v,p){var N=p[0],V=p[1],S=Object.entries(V).filter(function(y){var L=y[0];return Object.keys(l.selected_gears).includes(L)}).map(function(y){var L=y[0],w=y[1];return Object.assign({key:L},w)});return v.concat(S)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return s("clear_loadout")}return v}()}),children:C.map(function(v){return(0,e.createComponentVNode)(2,o.ImageButton,{fluid:!0,imageSize:32,dmIcon:v.icon,dmIconState:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function p(){return h(v)}return p}()}),(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"times",iconColor:"red",width:"32px",onClick:function(){function p(){return s("toggle_gear",{gear:v.key})}return p}()})],0),children:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.gear_slots,maxValue:l.max_gear_slots,ranges:{bad:[l.max_gear_slots,1/0],average:[l.max_gear_slots*.66,l.max_gear_slots],good:[0,l.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",l.gear_slots,"/",l.max_gear_slots]})})})})]})},d=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=m.tweakedGear,C=m.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return C("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var p=v[0],N=v[1];return N.map(function(V){var S=l.selected_gears[h.key][p];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V.name,color:S?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function y(){return s("set_tweak",{gear:h.key,tweak:p})}return y}()}),children:[S||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+S}})]},p)})})})})})})}},77613:function(A,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(y,L){var w=y.name,T=y.value,x=y.module_ref,M=(0,a.useBackend)(L),P=M.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(E,O){return P("configure",{key:w,value:O,ref:x})}return D}()})},b=function(y,L){var w=y.name,T=y.value,x=y.module_ref,M=(0,a.useBackend)(L),P=M.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:T,onClick:function(){function D(){return P("configure",{key:w,value:!T,ref:x})}return D}()})},B=function(y,L){var w=y.name,T=y.value,x=y.module_ref,M=(0,a.useBackend)(L),P=M.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return P("configure",{key:w,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:T,mr:.5})],4)},I=function(y,L){var w=y.name,T=y.value,x=y.values,M=y.module_ref,P=(0,a.useBackend)(L),D=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:T,options:x,onSelected:function(){function E(O){return D("configure",{key:w,value:O,ref:M})}return E}()})},k=function(y,L){var w=y.name,T=y.display_name,x=y.type,M=y.value,P=y.values,D=y.module_ref,E={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},y))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},y))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,B,Object.assign({},y))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,I,Object.assign({},y)))};return(0,e.createComponentVNode)(2,t.Box,{children:[T,": ",E[x]]})},g=function(y,L){var w=y.active,T=y.userradiated,x=y.usertoxins,M=y.usermaxtoxins,P=y.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&T?"bad":"good",children:w&&T?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},d=function(y,L){var w=y.active,T=y.userhealth,x=y.usermaxhealth,M=y.userbrute,P=y.userburn,D=y.usertoxin,E=y.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?T/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?T:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})})]})],4)},c=function(y,L){var w=y.active,T=y.statustime,x=y.statusid,M=y.statushealth,P=y.statusmaxhealth,D=y.statusbrute,E=y.statusburn,O=y.statustoxin,R=y.statusoxy,j=y.statustemp,F=y.statusnutrition,W=y.statusfingerprints,z=y.statusdna,K=y.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?T:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?O/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:O})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?j:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?F:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?W:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?z:"???"})]})}),!!w&&!!K&&(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"})})]}),K.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:g,health_analyzer:d,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"})]})},u=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(y,L){var w=y.configuration_data,T=y.module_ref,x=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(M){var P=w[M];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:M,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:T})},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:y.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},l=function(y){switch(y){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},h=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.active,P=x.malfunctioning,D=x.locked,E=x.open,O=x.selected_module,R=x.complexity,j=x.complexity_max,F=x.wearer_name,W=x.wearer_job,z=P?"Malfunctioning":M?"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:M?"Deactivate":"Activate",onClick:function(){function K(){return T("activate")}return K}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function K(){return T("lock")}return K}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:E?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[R," (",j,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[F,", ",W]})]})})},C=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.active,P=x.control,D=x.helmet,E=x.chestplate,O=x.gauntlets,R=x.boots,j=x.core,F=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:E||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:R||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:j&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:j}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:F/100,content:F+"%",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(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.active,P=x.modules,D=P.filter(function(E){return!!E.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(E){var O=m[E.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!M&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,O,Object.assign({},E,{active:M})))]},E.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.complexity_max,P=x.modules,D=(0,a.useLocalState)(L,"module_configuration",null),E=D[0],O=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:R.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[E===R.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:R.configuration_data,module_ref:R.ref,onExit:function(){function j(){return O(null)}return j}()}),(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:[R.module_complexity,"/",M]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[R.cooldown>0&&R.cooldown/10||"0","/",R.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return T("select",{ref:R.ref})}return j}(),icon:"bullseye",selected:R.module_active,tooltip:l(R.module_type),tooltipPosition:"left",disabled:!R.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return O(R.ref)}return j}(),icon:"cog",selected:E===R.ref,tooltip:"Configure",tooltipPosition:"left",disabled:R.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return T("pin",{ref:R.ref})}return j}(),icon:"thumbtack",selected:R.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!R.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:R.description})]})})},R.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function S(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=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,h)}),(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,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return S}(),V=r.MODsuit=function(){function S(y,L){var w=(0,a.useBackend)(L),T=w.act,x=w.data,M=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:M,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return S}()},78624:function(A,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),B=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"}]]),I=r.MagnetController=function(){function k(g,d){var c=(0,t.useBackend)(d),m=c.act,i=c.data,u=i.autolink,s=i.code,l=i.frequency,h=i.linkedMagnets,C=i.magnetConfiguration,v=i.path,p=i.pathPosition,N=i.probing,V=i.powerState,S=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function y(){return m("probe_magnets")}return y}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(l/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function y(){return m("toggle_power")}return y}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:S.value,minValue:S.min,maxValue:S.max,onChange:function(){function y(L,w){return m("set_speed",{speed:w})}return y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(B.entries()).map(function(y){var L=y[0],w=y[1],T=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:T,tooltip:x,onClick:function(){function M(){return m("path_add",{code:L})}return M}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function y(){return m("path_clear")}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function y(){return(0,b.modalOpen)(d,"path_custom_input")}return y}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(y,L){var w=B.get(y)||{icon:"question"},T=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:T,confirmIcon:T,confirmContent:"",tooltip:x,onClick:function(){function M(){return m("path_remove",{index:L+1,code:y})}return M}()},L)})})]})]})}),h.map(function(y,L){var w=y.uid,T=y.powerState,x=y.electricityLevel,M=y.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:T?"power-off":"times",content:T?"On":"Off",selected:T,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function P(D,E){return m("set_electricity_level",{id:w,electricityLevel:E})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:M,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function P(D,E){return m("set_magnetic_field",{id:w,magneticField:E})}return P}()})})]})},w)})]})]})}return k}()},72106:function(A,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.recharge_port,m=c&&c.mech,i=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return g("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!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 b}()},7466:function(A,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),B=r.MechaControlConsole=function(){function I(k,g){var d=(0,t.useBackend)(g),c=d.act,m=d.data,i=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return c("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return c("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return c("shock",{mt:s.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return I}()},79625:function(A,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),B=n(321),I=n(5485),k=n(22091),g={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},d={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,x){(0,f.modalOpen)(T,"edit",{field:x.edit,value:x.value})},m=function(T,x){var M=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M.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:M.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[M.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:M.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:M.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:g[M.severity],children:M.severity})]})})})},i=r.MedicalRecords=function(){function w(T,x){var M=(0,t.useBackend)(x),P=M.data,D=P.loginState,E=P.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,I.LoginScreen)})});var O;return E===2?O=(0,e.createComponentVNode)(2,u):E===3?O=(0,e.createComponentVNode)(2,s):E===4?O=(0,e.createComponentVNode)(2,l):E===5?O=(0,e.createComponentVNode)(2,p):E===6?O=(0,e.createComponentVNode)(2,N):E===7&&(O=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),O]})})]})}return w}(),u=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.records,O=(0,t.useLocalState)(x,"searchText",""),R=O[0],j=O[1],F=(0,t.useLocalState)(x,"sortId","name"),W=F[0],z=F[1],K=(0,t.useLocalState)(x,"sortOrder",!0),G=K[0],J=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 Q(){return P("screen",{screen:3})}return Q}()})}),(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 Q(ue,ie){return j(ie)}return Q}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,S,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,S,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,S,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,S,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,S,{id:"m_stat",children:"Mental Status"})]}),E.filter((0,a.createSearch)(R,function(Q){return Q.name+"|"+Q.id+"|"+Q.rank+"|"+Q.p_stat+"|"+Q.m_stat})).sort(function(Q,ue){var ie=G?1:-1;return Q[W].localeCompare(ue[W])*ie}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+d[Q.p_stat],onClick:function(){function ue(){return P("view_record",{view_record:Q.ref})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.m_stat})]},Q.id)})]})})})],4)},s=function(T,x){var M=(0,t.useBackend)(x),P=M.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function D(){return P("del_all_med_records")}return D}()})})]})})},l=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.medical,O=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:O?"spinner":"print",disabled:O,iconSpin:!!O,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return P("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,h)})}),!E||!E.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 R(){return P("new_med_record")}return R}()}),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:!!E.empty,content:"Delete Medical Record",onClick:function(){function R(){return P("del_med_record")}return R}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(T,x){var M=(0,t.useBackend)(x),P=M.data,D=P.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(E,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:E.value}),!!E.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(x,E)}return R}()})]},O)})})}),!!D.has_photos&&D.photos.map(function(E,O){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:E,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",O+1]},O)})]})},C=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.medical;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:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:E.fields.map(function(O,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(O.value),!!O.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:O.line_break?"1rem":"initial",onClick:function(){function j(){return c(x,O)}return j}()})]},R)})})})})},v=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function O(){return(0,f.modalOpen)(x,"add_comment")}return O}()}),children:E.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):E.comments.map(function(O,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:O.header}),(0,e.createVNode)(1,"br"),O.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return P("del_comment",{del_comment:R+1})}return j}()})]},R)})})})},p=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.virus,O=(0,t.useLocalState)(x,"searchText",""),R=O[0],j=O[1],F=(0,t.useLocalState)(x,"sortId2","name"),W=F[0],z=F[1],K=(0,t.useLocalState)(x,"sortOrder2",!0),G=K[0],J=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 Q(ue,ie){return j(ie)}return Q}()})}),(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,y,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,y,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,y,{id:"severity",children:"Severity"})]}),E.filter((0,a.createSearch)(R,function(Q){return Q.name+"|"+Q.max_stages+"|"+Q.severity})).sort(function(Q,ue){var ie=G?1:-1;return Q[W].localeCompare(ue[W])*ie}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Q.severity,onClick:function(){function ue(){return P("vir",{vir:Q.D})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:g[Q.severity],children:Q.severity})]},Q.id)})]})})})})],4)},N=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:E.length!==0&&E.map(function(O){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:O.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:O.delivered,minValue:0,maxValue:O.deliverygoal,ranges:{good:[O.deliverygoal*.5,1/0],average:[O.deliverygoal*.25,O.deliverygoal*.5],bad:[-1/0,O.deliverygoal*.25]},children:[O.delivered," / ",O.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:O.report})]})},O.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.medbots;return E.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"})]}),E.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+O.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",O.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[O.area||"Unknown"," (",O.x,", ",O.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.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:O.use_beaker?"Reservoir: "+O.total_volume+"/"+O.maximum_volume:"Using internal synthesizer"})]},O.id)})]})})})},S=function(T,x){var M=(0,t.useLocalState)(x,"sortId","name"),P=M[0],D=M[1],E=(0,t.useLocalState)(x,"sortOrder",!0),O=E[0],R=E[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==j&&"transparent",onClick:function(){function W(){P===j?R(!O):(D(j),R(!0))}return W}(),children:[F,P===j&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},y=function(T,x){var M=(0,t.useLocalState)(x,"sortId2","name"),P=M[0],D=M[1],E=(0,t.useLocalState)(x,"sortOrder2",!0),O=E[0],R=E[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==j&&"transparent",onClick:function(){function W(){P===j?R(!O):(D(j),R(!0))}return W}(),children:[F,P===j&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(T,x){var M=(0,t.useBackend)(x),P=M.act,D=M.data,E=D.screen,O=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:E===2,onClick:function(){function R(){P("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:E===5,onClick:function(){function R(){P("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:E===6,onClick:function(){function R(){P("screen",{screen:6})}return R}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:E===7,onClick:function(){function R(){return P("screen",{screen:7})}return R}(),children:"Medibot Tracking"}),E===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:E===3,children:"Record Maintenance"}),E===4&&O&&!O.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:E===4,children:["Record: ",O.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(A,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=g.product,s=g.productImage,l=g.productCategory,h=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,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>h,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:u.name,category:l})}return C}()})})]})},b=function(g,d){var c=(0,a.useBackend)(d),m=c.data,i=(0,a.useLocalState)(d,"tabIndex",1),u=i[0],s=m.products,l=m.imagelist,h=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[h[u]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:l[C.path],productCategory:h[u]},C.name)})})},B=r.MerchVendor=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.user_cash,s=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,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function l(){return m("change")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),I=function(g,d){var c=(0,a.useBackend)(d),m=c.data,i=(0,a.useLocalState)(d,"tabIndex",1),u=i[0],s=i[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function h(){return s(1)}return h}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function h(){return s(2)}return h}(),children:"Decorations"})]})}},87684:function(A,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items","gridLayout"];function B(i,u){if(i==null)return{};var s={};for(var l in i)if({}.hasOwnProperty.call(i,l)){if(u.includes(l))continue;s[l]=i[l]}return s}var I={Alphabetical:function(){function i(u,s){return u-s}return i}(),Availability:function(){function i(u,s){return-(u.affordable-s.affordable)}return i}(),Price:function(){function i(u,s){return u.price-s.price}return i}()},k=r.MiningVendor=function(){function i(u,s){var l=(0,t.useLocalState)(s,"gridLayout",!1),h=l[0],C=l[1];return(0,e.createComponentVNode)(2,f.Window,{width:400,height:525,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,c,{gridLayout:h,setGridLayout:C}),(0,e.createComponentVNode)(2,d,{gridLayout:h})]})})})}return i}(),g=function(u,s){var l=(0,t.useBackend)(s),h=l.act,C=l.data,v=C.has_id,p=C.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 ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return h("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},d=function(u,s){var l=(0,t.useBackend)(s),h=l.act,C=l.data,v=C.has_id,p=C.id,N=C.items,V=u.gridLayout,S=(0,t.useLocalState)(s,"search",""),y=S[0],L=S[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],x=w[1],M=(0,t.useLocalState)(s,"descending",!1),P=M[0],D=M[1],E=(0,a.createSearch)(y,function(j){return j[0]}),O=!1,R=Object.entries(N).map(function(j,F){var W=Object.entries(j[1]).filter(E).map(function(z){return z[1].affordable=v&&p.points>=z[1].price,z[1]}).sort(I[T]);if(W.length!==0)return P&&(W=W.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W,gridLayout:V},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:O?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var l=u.gridLayout,h=u.setGridLayout,C=(0,t.useLocalState)(s,"search",""),v=C[0],p=C[1],N=(0,t.useLocalState)(s,"sort",""),V=N[0],S=N[1],y=(0,t.useLocalState)(s,"descending",!1),L=y[0],w=y[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 T(x,M){return p(M)}return T}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:l?"list":"table-cells-large",height:1.75,tooltip:l?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){function T(){return h(!l)}return T}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(I),width:"100%",onSelected:function(){function T(x){return S(x)}return T}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:L?"arrow-down":"arrow-up",height:1.75,tooltip:L?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function T(){return w(!L)}return T}()})})]})})},m=function(u,s){var l=(0,t.useBackend)(s),h=l.act,C=l.data,v=u.title,p=u.items,N=u.gridLayout,V=B(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:p.map(function(S){return N?(0,e.createComponentVNode)(2,o.ImageButton,{mb:.5,imageSize:57.5,dmIcon:S.icon,dmIconState:S.icon_state,disabled:!C.has_id||C.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\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(h){return h.name&&(u.length>0?h.name.toLowerCase().includes(u.toLowerCase())||h.desc.toLowerCase().includes(u.toLowerCase())||h.author.toLowerCase().includes(u.toLowerCase()):!0)}).map(function(h){return(0,e.createComponentVNode)(2,o.Collapsible,{title:h.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:h.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:h.desc})]},h.name)})})})})})],4)}return B}()},59783:function(A,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NTRecruiter=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.gamestatus,m=d.cand_name,i=d.cand_birth,u=d.cand_age,s=d.cand_species,l=d.cand_planet,h=d.cand_job,C=d.cand_records,v=d.cand_curriculum,p=d.total_curriculums,N=d.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 V(){return g("start_game")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function V(){return g("instructions")}return V}()})]})]})})});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 V(){return g("back_to_menu")}return V}()}),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,p,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,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,u,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,l,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,h,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,C,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 V(){return g("dismiss")}return V}()})}),(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 V(){return g("hire")}return V}()})})]})})})]})})});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,"/",p]})]})}),(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 V(){return g("back_to_menu")}return V}()})})]})})})}return b}()},64713:function(A,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(76910),b=n(98595),B=n(3939),I=n(22091),k=["icon","iconSpin","selected","security","onClick","title","children"],g=["name"];function d(y,L){if(y==null)return{};var w={};for(var T in y)if({}.hasOwnProperty.call(y,T)){if(L.includes(T))continue;w[T]=y[T]}return w}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"}},u=r.Newscaster=function(){function y(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=M.is_security,D=M.is_admin,E=M.is_silent,O=M.is_printing,R=M.screen,j=M.channels,F=M.channel_idx,W=F===void 0?-1:F,z=(0,t.useLocalState)(w,"menuOpen",!1),K=z[0],G=z[1],J=(0,t.useLocalState)(w,"viewingPhoto",""),Q=J[0],ue=J[1],ie=(0,t.useLocalState)(w,"censorMode",!1),pe=ie[0],te=ie[1],q;R===0||R===2?q=(0,e.createComponentVNode)(2,l):R===1&&(q=(0,e.createComponentVNode)(2,h));var ne=j.reduce(function(le,ee){return le+ee.unread},0);return(0,e.createComponentVNode)(2,b.Window,{theme:P&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,B.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,b.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",K&&"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,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function le(){return G(!K)}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function le(){return x("headlines")}return le}(),children:ne>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ne>=10?"9+":ne})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function le(){return x("jobs")}return le}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:j.map(function(le){return(0,e.createComponentVNode)(2,s,{icon:le.icon,title:le.name,selected:R===2&&j[W-1]===le,onClick:function(){function ee(){return x("channel",{uid:le.uid})}return ee}(),children:le.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:le.unread>=10?"9+":le.unread})},le)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function le(){return(0,B.modalOpen)(w,"wanted_notice")}return le}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:pe?"minus-square":"minus-square-o",title:"Censor Mode: "+(pe?"On":"Off"),mb:"0.5rem",onClick:function(){function le(){return te(!pe)}return le}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function le(){return(0,B.modalOpen)(w,"create_story")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function le(){return(0,B.modalOpen)(w,"create_channel")}return le}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:O?"spinner":"print",iconSpin:O,title:O?"Printing...":"Print Newspaper",onClick:function(){function le(){return x("print_newspaper")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:E?"volume-mute":"volume-up",title:"Mute: "+(E?"On":"Off"),onClick:function(){function le(){return x("toggle_mute")}return le}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,I.TemporaryNotice),q]})]})})]})}return y}(),s=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=L.icon,P=M===void 0?"":M,D=L.iconSpin,E=L.selected,O=E===void 0?!1:E,R=L.security,j=R===void 0?!1:R,F=L.onClick,W=L.title,z=L.children,K=d(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",O&&"Newscaster__menuButton--selected",j&&"Newscaster__menuButton--security"]),onClick:F},K,{children:[O&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),z]})))},l=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=M.screen,D=M.is_admin,E=M.channel_idx,O=M.channel_can_manage,R=M.channels,j=M.stories,F=M.wanted,W=(0,t.useLocalState)(w,"fullStories",[]),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"censorMode",!1),J=G[0],Q=G[1],ue=P===2&&E>-1?R[E-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!F&&(0,e.createComponentVNode)(2,C,{story:F,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ue?ue.icon:"newspaper",mr:"0.5rem"}),ue?ue.name:"Headlines"],0),children:j.length>0?j.slice().reverse().map(function(ie){return!z.includes(ie.uid)&&ie.body.length+3>c?Object.assign({},ie,{body_short:ie.body.substr(0,c-4)+"..."}):ie}).map(function(ie,pe){return(0,e.createComponentVNode)(2,C,{story:ie},pe)}):(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."]})}),!!ue&&(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)([J&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ue.admin&&!D,selected:ue.censored,icon:ue.censored?"comment-slash":"comment",content:ue.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ie(){return x("censor_channel",{uid:ue.uid})}return ie}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!O,icon:"cog",content:"Manage",onClick:function(){function ie(){return(0,B.modalOpen)(w,"manage_channel",{uid:ue.uid})}return ie}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ue.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ue.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ue.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ue.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"}),j.reduce(function(ie,pe){return ie+pe.view_count},0).toLocaleString()]})]})})]})},h=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=M.jobs,D=M.wanted,E=Object.entries(P).reduce(function(O,R){var j=R[0],F=R[1];return O+F.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,C,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:E>0?m.map(function(O){return Object.assign({},i[O],{id:O,jobs:P[O]})}).filter(function(O){return!!O&&O.jobs.length>0}).map(function(O){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+O.id]),title:O.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:O.fluff_text}),children:O.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},O.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},C=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=L.story,D=L.wanted,E=D===void 0?!1:D,O=M.is_admin,R=(0,t.useLocalState)(w,"fullStories",[]),j=R[0],F=R[1],W=(0,t.useLocalState)(w,"censorMode",!1),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",E&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([E&&(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:[!E&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!O&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!E&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,M.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(G,J){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},J)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return F([].concat(j,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,w){var T=L.name,x=d(L,g),M=(0,t.useLocalState)(w,"viewingPhoto",""),P=M[0],D=M[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:T,onClick:function(){function E(){return D(T)}return E}()},x)))},p=function(L,w){var T=(0,t.useLocalState)(w,"viewingPhoto",""),x=T[0],M=T[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 M("")}return P}()})]})},N=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=!!L.args.uid&&M.channels.filter(function(oe){return oe.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,B.modalClose)(w);return}var D=L.id==="manage_channel",E=!!L.args.is_admin,O=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||O||"Unknown"),j=R[0],F=R[1],W=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),J=G[0],Q=G[1],ue=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"isPublic",D?!!(P!=null&&P.public):!1),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!E,width:"100%",value:j,onInput:function(){function oe(fe,me){return F(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(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:J,onInput:function(){function oe(fe,me){return Q(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!E,value:ie,width:"35%",mr:"0.5rem",onInput:function(){function oe(fe,me){return pe(me)}return oe}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ie,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:q,icon:q?"toggle-on":"toggle-off",content:q?"Yes":"No",onClick:function(){function oe(){return ne(!q)}return oe}()})}),E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,B.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,49),description:J.substr(0,128),icon:ie,public:q?1:0,admin_locked:ee?1:0})}return oe}()})]})},V=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=M.photo,D=M.channels,E=M.channel_idx,O=E===void 0?-1:E,R=!!L.args.is_admin,j=L.args.scanned_user,F=D.slice().sort(function(oe,fe){if(O<0)return 0;var me=D[O-1];if(me.uid===oe.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(oe){return R||!oe.frozen&&(oe.author===j||!!oe.public)}),W=(0,t.useLocalState)(w,"author",j||"Unknown"),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"channel",F.length>0?F[0].name:""),J=G[0],Q=G[1],ue=(0,t.useLocalState)(w,"title",""),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"body",""),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:J,options:F.map(function(oe){return oe.name}),mb:"0",width:"100%",onSelected:function(){function oe(fe){return Q(fe)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ie,onInput:function(){function oe(fe,me){return pe(me)}return oe}()})}),(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:q,onInput:function(){function oe(fe,me){return ne(me)}return oe}()})}),(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 oe(){return x(P?"eject_photo":"attach_photo")}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ie,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),q.split("\n").map(function(oe,fe){return(0,e.createComponentVNode)(2,o.Box,{children:oe||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||J.trim().length===0||ie.trim().length===0||q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,B.modalAnswer)(w,"create_story","",{author:z,channel:J,title:ie.substr(0,127),body:q.substr(0,1023),admin_locked:ee?1:0})}return oe}()})]})},S=function(L,w){var T=(0,t.useBackend)(w),x=T.act,M=T.data,P=M.photo,D=M.wanted,E=!!L.args.is_admin,O=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(D==null?void 0:D.author)||O||"Unknown"),j=R[0],F=R[1],W=(0,t.useLocalState)(w,"name",(D==null?void 0:D.title.substr(8))||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(D==null?void 0:D.body)||""),J=G[0],Q=G[1],ue=(0,t.useLocalState)(w,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ie=ue[0],pe=ue[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:!E,width:"100%",value:j,onInput:function(){function te(q,ne){return F(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function te(q,ne){return K(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:J,maxLength:"512",rows:"4",onInput:function(){function te(q,ne){return Q(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function te(){return x(P?"eject_photo":"attach_photo")}return te}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ie,icon:ie?"lock":"lock-open",content:ie?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return pe(!ie)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function te(){x("clear_wanted_notice"),(0,B.modalClose)(w)}return te}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0||J.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,B.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,127),description:J.substr(0,511),admin_locked:ie?1:0})}return te}()})]})};(0,B.modalRegisterBodyOverride)("create_channel",N),(0,B.modalRegisterBodyOverride)("manage_channel",N),(0,B.modalRegisterBodyOverride)("create_story",V),(0,B.modalRegisterBodyOverride)("wanted_notice",S)},48286:function(A,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function B(I,k){var g=(0,t.useBackend)(k),d=g.act,c=g.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(i){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return d("interact",{paper:i.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),d("showFull",{paper:i.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:i.name,children:(0,a.decodeHtmlEntities)(i.contents)})},i.ref)})})})})}return B}()},41166:function(A,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;return d.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:d.authdisk?"eject":"id-card",selected:d.authdisk,content:d.diskname?d.diskname:"-----",tooltip:d.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return g("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!d.authdisk,selected:d.authcode,content:d.codemsg,onClick:function(){function c(){return g("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.anchored?"check":"times",selected:d.anchored,disabled:!d.authdisk,content:d.anchored?"YES":"NO",onClick:function(){function c(){return g("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:d.time,disabled:!d.authfull,tooltip:"Set Timer",onClick:function(){function c(){return g("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.safety?"check":"times",selected:d.safety,disabled:!d.authfull,content:d.safety?"ON":"OFF",tooltip:d.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return g("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(d.timer,"bomb"),disabled:d.safety||!d.authfull,color:"red",content:d.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return g("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return g("deploy")}return c}()})})})})}return b}()},52416:function(A,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),B=n(98595),I=r.NumberInputModal=function(){function g(d,c){var m=(0,f.useBackend)(c),i=m.act,u=m.data,s=u.init_value,l=u.large_buttons,h=u.message,C=h===void 0?"":h,v=u.timeout,p=u.title,N=(0,f.useLocalState)(c,"input",s),V=N[0],S=N[1],y=function(){function T(x){x!==V&&S(x)}return T}(),L=function(){function T(x){x!==V&&S(x)}return T}(),w=140+Math.max(Math.ceil(C.length/3),C.length>0&&l?5:0);return(0,e.createComponentVNode)(2,B.Window,{title:p,width:270,height:w,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,B.Window.Content,{onKeyDown:function(){function T(x){var M=window.event?x.which:x.keyCode;M===o.KEY_ENTER&&i("submit",{entry:V}),M===o.KEY_ESCAPE&&i("cancel")}return T}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:y})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return g}(),k=function(d,c){var m=(0,f.useBackend)(c),i=m.act,u=m.data,s=u.min_value,l=u.max_value,h=u.init_value,C=u.round_value,v=d.input,p=d.onClick,N=d.onChange,V=Math.round(v!==s?Math.max(v/2,s):l/2),S=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function y(){return p(s)}return y}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:s,maxValue:l,onChange:function(){function y(L,w){return N(w)}return y}(),onEnter:function(){function y(L,w){return i("submit",{entry:w})}return y}(),value:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===l,icon:"angle-double-right",onClick:function(){function y(){return p(l)}return y}(),tooltip:v===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:S,icon:"divide",onClick:function(){function y(){return p(V)}return y}(),tooltip:S?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===h,icon:"redo",onClick:function(){function y(){return p(h)}return y}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(A,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],B=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],g=r.OperatingComputer=function(){function i(u,s){var l=(0,t.useBackend)(s),h=l.act,C=l.data,v=C.hasOccupant,p=C.choice,N;return p?N=(0,e.createComponentVNode)(2,m):N=v?(0,e.createComponentVNode)(2,d):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return h("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return h("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return i}(),d=function(u,s){var l=(0,t.useBackend)(s),h=l.data,C=h.occupant,v=C.activeSurgeries;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[C.stat][0],children:b[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),B.map(function(p,N){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:p[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[p[1]]/100,ranges:I,children:(0,a.round)(C[p[1]])},N)},N)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:k[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Active surgeries",level:"2",children:C.inSurgery&&v?v.map(function(p,N){return(0,e.createComponentVNode)(2,f.Section,{style:{textTransform:"capitalize"},title:p.name+" ("+p.location+")",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:p.step},N)},N)},N)}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var l=(0,t.useBackend)(s),h=l.act,C=l.data,v=C.verbose,p=C.health,N=C.healthAlarm,V=C.oxy,S=C.oxyAlarm,y=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return h(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function L(w,T){return h("health_adj",{new:T})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return h(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:S,stepPixelSize:5,ml:"0",onChange:function(){function L(w,T){return h("oxy_adj",{new:T})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function L(){return h(y?"critOff":"critOn")}return L}()})})]})}},46892:function(A,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function B(l,h){var C=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(C)return(C=C.call(l)).next.bind(C);if(Array.isArray(l)||(C=I(l))||h&&l&&typeof l.length=="number"){C&&(l=C);var v=0;return function(){return v>=l.length?{done:!0}:{done:!1,value:l[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 I(l,h){if(l){if(typeof l=="string")return k(l,h);var C={}.toString.call(l).slice(8,-1);return C==="Object"&&l.constructor&&(C=l.constructor.name),C==="Map"||C==="Set"?Array.from(l):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(l,h):void 0}}function k(l,h){(h==null||h>l.length)&&(h=l.length);for(var C=0,v=Array(h);CC},m=function(h,C){var v=h.name,p=C.name;if(!v||!p)return 0;var N=v.match(g),V=p.match(g);if(N&&V&&v.replace(g,"")===p.replace(g,"")){var S=parseInt(N[1],10),y=parseInt(V[1],10);return S-y}return c(v,p)},i=function(h,C){var v=h.searchText,p=h.source,N=h.title,V=h.color,S=h.sorted,y=p.filter(d(v));return S&&y.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+p.length+")",children:y.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=h.color,V=h.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["job_icons16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function S(){return p("orbit",{ref:V.ref})}return S}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function l(h,C){for(var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.alive,S=N.antagonists,y=N.highlights,L=N.response_teams,w=N.tourist,T=N.auto_observe,x=N.dead,M=N.ssd,P=N.ghosts,D=N.misc,E=N.npcs,O=(0,t.useLocalState)(C,"searchText",""),R=O[0],j=O[1],F={},W=B(S),z;!(z=W()).done;){var K=z.value;F[K.antag]===void 0&&(F[K.antag]=[]),F[K.antag].push(K)}var G=Object.entries(F);G.sort(function(Q,ue){return c(Q[0],ue[0])});var J=function(){function Q(ue){for(var ie=0,pe=[G.map(function(ne){var le=ne[0],ee=ne[1];return ee}),w,y,V,P,M,x,E,D];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(Q){var ue=Q[0],ie=Q[1];return(0,e.createComponentVNode)(2,o.Section,{title:ue+" - ("+ie.length+")",level:2,children:ie.filter(d(R)).sort(m).map(function(pe){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:pe},pe.name)})},ue)})}),y.length>0&&(0,e.createComponentVNode)(2,i,{title:"Highlights",source:y,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,i,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,i,{title:"Tourists",source:w,searchText:R,color:"violet"}),(0,e.createComponentVNode)(2,i,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,i,{title:"Ghosts",source:P,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,i,{title:"SSD",source:M,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,i,{title:"Dead",source:x,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,i,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,i,{title:"Misc",source:D,searchText:R,sorted:!1})]})})}return l}()},15421:function(A,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function B(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var I=(0,b.createLogger)("OreRedemption"),k=function(h){return h.toLocaleString("en-US")+" pts"},g=r.OreRedemption=function(){function l(h,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return l}(),d=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.id,S=N.points,y=N.disk,L=Object.assign({},(B(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:S>0?"good":"grey",bold:S>0&&"good",children:k(S)})}),(0,e.createComponentVNode)(2,o.Divider),y?(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:y.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!y.design||!y.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:y.design&&(y.compatible?"good":"bad"),children:y.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.sheets,S=Object.assign({},(B(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},S,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(y){return(0,e.createComponentVNode)(2,u,{ore:y},y.id)})]})))})},m=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.alloys,S=Object.assign({},(B(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},S,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(y){return(0,e.createComponentVNode)(2,s,{ore:y},y.id)})]})))})},i=function(h,C){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:h.title}),(v=h.columns)==null?void 0:v.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=h.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(S,y){return p(N.value?"sheet":"alloy",{id:N.id,amount:y})}return V}()})})]})})},s=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(S,y){return p(N.value?"sheet":"alloy",{id:N.id,amount:y})}return V}()})})]})})}},52754:function(A,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),B=function(g){var d;try{d=b("./"+g+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",g);throw m}var c=d[g];return c||(0,f.routingError)("missingExport",g)},I=r.PAI=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.app_template,s=i.app_icon,l=i.app_title,h=B(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),l,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,h)})})})})})}return k}()},85175:function(A,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),B=function(c){var m;try{m=b("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var i=m[c];return i||(0,f.routingError)("missingExport",c)},I=r.PDA=function(){function d(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.app,h=s.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=B(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,g)})]})})})}return d}(),k=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.idInserted,h=s.idLink,C=s.stationTime,v=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:l?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},g=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.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:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return u("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){u("Home")}return h}()})})]})})}},68654:function(A,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.active,i=c.anchored,u=c.broken,s=c.emagged,l=c.fuel_type,h=c.fuel_usage,C=c.fuel_stored,v=c.fuel_cap,p=c.is_ai,N=c.tmp_current,V=c.tmp_max,S=c.tmp_overheat,y=c.output_max,L=c.power_gen,w=c.output_set,T=c.has_fuel,x=C/v,M=N/V,P=w*L,D=Math.round(C/h*2),E=Math.round(D/60),O=D>120?E+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!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:!T,selected:m,onClick:function(){function R(){return d("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:y*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function R(j,F){return d("change_power",{change_power:F})}return R}()}),"(",(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:M,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[S>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),S>20&&S<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),S>1&&S<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),S===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!T,onClick:function(){function R(){return d("eject_fuel")}return R}()}),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:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(h?O:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return B}()},1701:function(A,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function i(u,s){var l=(0,a.useBackend)(s),h=l.data,C=h.beakerLoaded,v=h.beakerContainsBlood,p=h.beakerContainsVirus,N=h.resistances,V=N===void 0?[]:N,S;return C?v?v&&!p&&(S=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):S=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):S=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[S&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:S})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return i}(),b=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function p(){return h("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!v,onClick:function(){function p(){return h("destroy_eject_beaker")}return p}()})],4)},B=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.beakerContainsVirus,p=u.strain,N=p.commonName,V=p.description,S=p.diseaseAgent,y=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,T=p.transmissionRoute,x=p.isAdvanced,M=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:y?(0,e.createVNode)(1,"span",null,y,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!v)return(0,e.createComponentVNode)(2,t.LabeledList,{children:M});var P;return x&&(N!=null&&N!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return h("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return h("name_strain",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:S}),M,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:T!=null?T:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},I=function(u,s){var l,h=(0,a.useBackend)(s),C=h.act,v=h.data,p=!!v.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return C("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=u.sectionTitle)!=null?l:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,B,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var l,h=(0,a.useBackend)(s),C=h.act,v=h.data,p=v.selectedStrainIndex,N=v.strains,V=N[p-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(N.length===1){var S;return(0,e.createFragment)([(0,e.createComponentVNode)(2,I,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((S=N[0].symptoms)==null?void 0:S.length)>0&&(0,e.createComponentVNode)(2,d,{strain:N[0]})],0)}var y=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:y,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(L,w){var T;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function x(){return C("switch_strain",{strain_index:w+1})}return x}(),children:(T=L.commonName)!=null?T:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,I,{strain:V,strainIndex:p}),((l=V.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,d,{className:"remove-section-bottom-padding",strain:V})]})})})},g=function(u){return u.reduce(function(s,l){return s+l},0)},d=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},h)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g(s.map(function(l){return l.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.synthesisCooldown,p=C.beakerContainsVirus,N=C.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(V,S){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[S%c.length],disabled:!!v,onClick:function(){function y(){return h("clone_vaccine",{resistance_index:S+1})}return y}(),mr:"0.5em"}),V]},S)})})})})}},67921:function(A,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(79646),b=n(36352),B=n(98595),I=n(35840),k=n(38307),g=function(u){switch(u){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},d=r.ParticleAccelerator=function(){function i(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.assembled,p=C.power,N=C.strength,V=C.max_strength,S=C.icon,y=C.layout_1,L=C.layout_2,w=C.layout_3,T=C.orientation;return(0,e.createComponentVNode)(2,B.Window,{width:395,height:v?160:T==="north"||T==="south"?540:465,children:(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{dmIcon:"sync",content:"Connect",onClick:function(){function x(){return h("scan")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"good":"bad",children:v?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,disabled:!v,onClick:function(){function x(){return h("power")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!v||N===0,onClick:function(){function x(){return h("remove_strength")}return x}(),mr:"4px"}),N,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!v||N===V,onClick:function(){function x(){return h("add_strength")}return x}(),ml:"4px"})]})]})}),v?"":(0,e.createComponentVNode)(2,t.Section,{title:T?"EM Acceleration Chamber Orientation: "+(0,o.capitalize)(T):"Place EM Acceleration Chamber Next To Console",children:T===0?"":T==="north"||T==="south"?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,c)})]})})}return i}(),c=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.assembled,p=C.power,N=C.strength,V=C.max_strength,S=C.icon,y=C.layout_1,L=C.layout_2,w=C.layout_3,T=C.orientation;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(T==="east"?y:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,b.TableRow,{width:"40px",children:(T==="east"?w:y).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})},m=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.assembled,p=C.power,N=C.strength,V=C.max_strength,S=C.icon,y=C.layout_1,L=C.layout_2,w=C.layout_3,T=C.orientation;return(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(T==="north"?y:w).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{children:L.slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})}),(0,e.createComponentVNode)(2,f.GridColumn,{width:"40px",children:(T==="north"?w:y).slice().map(function(x){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,tooltip:x.status,children:(0,e.createComponentVNode)(2,t.Tooltip,{content:(0,e.createVNode)(1,"span",null,[x.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)(" "),"Status: "+x.status,(0,e.createVNode)(1,"br"),"Direction: "+g(x.dir)],0,{style:{wordWrap:"break-word"}}),children:(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:S,dmIconState:x.icon_state,dmDirection:x.dir,style:{"border-style":"solid","border-width":"2px","border-color":x.status==="good"?"green":x.status==="Incomplete"?"orange":"red",padding:"2px"}})})},x.name)})})]})}},71432:function(A,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(g,d){var c=(0,a.useBackend)(d),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,B):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(g,d){var c=(0,a.useBackend)(d),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}()})]})})})},B=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=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,I)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},I=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.current_appearance,s=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,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(A,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.busy,u=m.category,s=m.display_craftable_only,l=m.display_compact,h=m.prev_cat,C=m.next_cat,v=m.subcategory,p=m.prev_subcat,N=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!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:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return c("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function V(){return c("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function V(){return c("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function V(){return c("forwardCat")}return V}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return c("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return c("forwardSubCat")}return V}()})]}),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,B)]})]})})}return I}(),b=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:l.ref})}return h}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!i&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},B=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:l.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!i&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(A,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.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,b)}),(0,e.createComponentVNode)(2,B)]})})})}return I}(),b=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.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 u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!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 u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},B=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.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 u(){return c("filecopy",{uid:i.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:i.uid})}return u}()})]})},i.name)})})}},8340:function(A,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(88510),b=n(64795),B=n(25328);function I(m,i){var u=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(u)return(u=u.call(m)).next.bind(u);if(Array.isArray(m)||(u=k(m))||i&&m&&typeof m.length=="number"){u&&(m=u);var s=0;return function(){return s>=m.length?{done:!0}:{done:!1,value:m[s++]}}}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(m,i){if(m){if(typeof m=="string")return g(m,i);var u={}.toString.call(m).slice(8,-1);return u==="Object"&&m.constructor&&(u=m.constructor.name),u==="Map"||u==="Set"?Array.from(m):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?g(m,i):void 0}}function g(m,i){(i==null||i>m.length)&&(i=m.length);for(var u=0,s=Array(i);um?this.substring(0,m)+"...":this};var d=function(i,u){u===void 0&&(u="");var s=(0,B.createSearch)(u,function(l){return l.altername});return(0,b.flow)([(0,f.filter)(function(l){return l==null?void 0:l.altername}),u&&(0,f.filter)(s),(0,f.sortBy)(function(l){return l.id})])(i)},c=r.Photocopier220=function(){function m(i,u){for(var s=(0,a.useBackend)(u),l=s.act,h=s.data,C=h.copies,v=h.maxcopies,p=(0,a.useLocalState)(u,"searchText",""),N=p[0],V=p[1],S=d((0,f.sortBy)(function(E){return E.category})(h.forms||[]),N),y=[],L=I(S),w;!(w=L()).done;){var T=w.value;y.includes(T.category)||y.push(T.category)}var x=(0,a.useLocalState)(u,"number",0),M=x[0],P=x[1],D;return h.category===""?D=S:D=S.filter(function(E){return E.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.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:h.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:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.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:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function E(){return l("removedocument")}return E}()})})}),(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:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function E(){return l("removefolder")}return E}()})})})]}),(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:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function E(){return l("print_form")}return E}()})}),!!h.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:h.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 E(){return l("ai_pic")}return E}()})})]}),(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:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function E(){return l("copy")}return E}()})}),!!h.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:h.toner===0,onClick:function(){function E(){return l("ai_text")}return E}()})})]}),(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:C,stepPixelSize:10,onChange:function(){function E(O,R){return l("copies",{new:R})}return E}()})]})]}),(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:!h.category,onClick:function(){function E(){return l("choose_category",{category:""})}return E}()})}),y.map(function(E){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:E,selected:h.category===E,onClick:function(){function O(){return l("choose_category",{category:E})}return O}()},E)},E)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.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 E(O,R){return V(R)}return E}()}),children:D.map(function(E){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:E.altername.trimLongStr(37),tooltip:E.altername,selected:h.form_id===E.id,onClick:function(){function O(){return l("choose_form",{path:E.path,id:E.id})}return O}()})},E.path)})})})]})})})}return m}()},84676:function(A,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(g,d){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(d.includes(m))continue;c[m]=g[m]}return c}var B={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}},I=function(d,c){var m=d.tempKey,i=b(d,f),u=B[m];if(!u)return null;var s=(0,a.useBackend)(c),l=s.data,h=s.act,C=l.currentTemp,v=u.label,p=u.icon,N=m===C,V=function(){h("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:V},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),v]})))},k=r.PoolController=function(){function g(d,c){for(var m=(0,a.useBackend)(c),i=m.data,u=i.emagged,s=i.currentTemp,l=B[s]||B.normal,h=l.label,C=l.color,v=[],p=0,N=Object.entries(B);p50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(v>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,I.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(h){var C,v,p=h.status;switch(p){case"AOn":C=!0,v=!0;break;case"AOff":C=!0,v=!1;break;case"On":C=!1,v=!0;break;case"Off":C=!1,v=!1;break}var N=(v?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,I.ColorBox,{color:v?"good":"bad",content:C?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},50992:function(A,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),B=n(5485),I=n(98595),k=r.PrisonerImplantManager=function(){function g(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.loginState,l=u.prisonerInfo,h=u.chemicalInfo,C=u.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,B.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.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:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.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:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.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:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return V}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,title:N.name,dmIcon:N.icon,dmIconState:N.icon_state,buttonsAlt:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function S(){return g("purchase",{purchase:N.itemID})}return S}(),children:[N.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:N.desc},N.name)})})})})})})}return b}()},94813:function(A,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),B=r.RCD=function(){function i(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,c)]})})]})}return i}(),I=function(u,s){var l=(0,a.useBackend)(s),h=l.data,C=h.matter,v=h.max_matter,p=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:[p,1/0],average:[N,p],bad:[-1/0,N]},value:C,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:C+" / "+v+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,g,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,g,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,g,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,g,{mode_type:"Deconstruction"})]})})})},g=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=u.mode_type,p=C.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:p===v?1:0,onClick:function(){function N(){return h("mode",{mode:v})}return N}()})})},d=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.door_name,p=C.electrochromic,N=C.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return h("electrochromic")}return V}()})})]})})})},c=function(u,s){var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.tab,p=C.locked,N=C.one_access,V=C.selected_accesses,S=C.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function y(){return h("set_tab",{tab:1})}return y}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function y(){return h("set_tab",{tab:2})}return y}(),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&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function y(){return h("set_lock",{new_lock:"unlock"})}return y}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function y(){return h("set_lock",{new_lock:"lock"})}return y}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function y(){return h("set_one_access",{access:"one"})}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function y(){return h("set_one_access",{access:"all"})}return y}()})],4),accesses:S,selectedList:V,accessMod:function(){function y(L){return h("set",{access:L})}return y}(),grantAll:function(){function y(){return h("grant_all")}return y}(),denyAll:function(){function y(){return h("clear_all")}return y}(),grantDep:function(){function y(L){return h("grant_region",{region:L})}return y}(),denyDep:function(){function y(L){return h("deny_region",{region:L})}return y}()})})],4)},m=function(u,s){for(var l=(0,a.useBackend)(s),h=l.act,C=l.data,v=C.door_types_ui_list,p=C.door_type,N=u.check_number,V=[],S=0;Sf?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function T(){return N("toggleSilent")}return T}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:S>f?"envelope-open-text":"envelope",onClick:function(){function T(){return N("setScreen",{setScreen:6})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function T(){return N("setScreen",{setScreen:1})}return T}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function T(){return N("setScreen",{setScreen:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function T(){return N("setScreen",{setScreen:11})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function T(){return N("setScreen",{setScreen:3})}return T}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function T(){return N("setScreen",{setScreen:9})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function T(){return N("setScreen",{setScreen:10})}return T}()})]})}),!!y&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function T(){return N("setScreen",{setScreen:8})}return T}()})})]})})},d=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S=V.department,y=[],L;switch(C.purpose){case"ASSISTANCE":y=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":y=V.supply_dept,L="Request supplies from another department";break;case"INFO":y=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:y.filter(function(w){return w!==S}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function T(){return N("writeInput",{write:w,priority:B})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function T(){return N("writeInput",{write:w,priority:I})}return T}()})]},w)})})})})},c=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S;switch(C.type){case"SUCCESS":S="Message sent successfully";break;case"FAIL":S="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:S,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return N("setScreen",{setScreen:0})}return y}()})})},m=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S,y;switch(C.type){case"MESSAGES":S=V.message_log,y="Message Log";break;case"SHIPPING":S=V.shipping_log,y="Shipping label print log";break}return S.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:y,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),children:S.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,T){return(0,e.createVNode)(1,"div",null,w,0,null,T)}),(0,e.createVNode)(1,"hr")]},L)})})})},i=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S=V.recipient,y=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function T(){return N("setScreen",{setScreen:0})}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function T(){return N("department",{department:S})}return T}()})})})],4)},u=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S=V.message,y=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return N("writeAnnouncement")}return L}()})],4),children:S})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[y?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(y&&S),onClick:function(){function L(){return N("sendAnnouncement")}return L}()})]})})],4)},s=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S=V.shipDest,y=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:y})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(S&&y),onClick:function(){function w(){return N("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:S===w?"Selected":"Select",selected:S===w,onClick:function(){function T(){return N("shipSelect",{shipSelect:w})}return T}()})},w)})})})})],4)},l=function(C,v){var p=(0,a.useBackend)(v),N=p.act,V=p.data,S=V.secondaryGoalAuth,y=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[y?S?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(S&&y),onClick:function(){function L(){return N("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(A,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.network_name,i=c.has_disk,u=c.disk_name,s=c.linked,l=c.techs,h=c.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function C(){return d("unlink")}return C}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+h+")",icon:"save",selected:1,onClick:function(){function C(){return d("eject_disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function C(){return d("saveall2disk")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function C(){return d("saveall2network")}return C}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(l).map(function(C){return!(l[C].network_level>0||l[C].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[C].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[C].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[C].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!i||!s,onClick:function(){function v(){return d("savetech2network",{tech:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!i||!s,onClick:function(){function v(){return d("savetech2disk",{tech:C})}return v}()})]})]},C)})]})})})]})})}return B}(),b=r.LinkMenu=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return d("linktonetworkcontroller",{target_controller:i.addr})}return u}()})})]},i.addr)})]})})}return B}()},68303:function(A,r,n){"use strict";r.__esModule=!0,r.AnalyzerMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.AnalyzerMenu=function(){function B(I,k){var g=(0,t.useBackend)(k),d=g.data,c=g.act,m=d.tech_levels,i=d.loaded_item,u=d.linked_analyzer,s=d.can_discover;return u?i?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function l(){c("deconstruct")}return l}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function l(){c("eject_item")}return l}()}),!s||(0,e.createComponentVNode)(2,o.Button,{content:"Discover",icon:"atom",onClick:function(){function l(){c("discover")}return l}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:i.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,b,{techLevel:l},l.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Analysis Menu",children:"NO SCIENTIFIC ANALYZER LINKED TO CONSOLE"})}return B}(),b=function(I,k){var g=I.techLevel,d=g.name,c=g.desc,m=g.level,i=g.object_level,u=g.ui_icon,s=i!=null,l=s&&i>=m?Math.max(i,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:c})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",d]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:i}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([l!==m&&"upgraded-level"]),children:l})]})}},37556:function(A,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(c,m){var i=(0,a.useBackend)(m),u=i.data,s=i.act,l=u.disk_data;return l?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:l.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.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 h(){return s("updt_tech")}return h}()})})]}):null},B=function(c,m){var i=(0,a.useBackend)(m),u=i.data,s=i.act,l=u.disk_data;if(!l)return null;var h=l.name,C=l.lathe_types,v=l.materials,p=C.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),v.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,N.name,0,{style:{"text-transform":"capitalize"}})," x ",N.amount]},N.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return s("updt_design")}return N}()})})]})},I=function(c,m){var i=(0,a.useBackend)(m),u=i.act,s=i.data,l=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){function h(){return u("erase_disk")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function h(){u("eject_disk")}return h}()})],4)},c)))},k=function(c,m){var i=(0,a.useBackend)(m),u=i.data,s=i.act,l=u.disk_type,h=u.to_copy,C=c.title;return(0,e.createComponentVNode)(2,I,{title:C,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.sort(function(v,p){return v.name.localeCompare(p.name)}).map(function(v){var p=v.name,N=v.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){l===f?s("copy_tech",{id:N}):s("copy_design",{id:N})}return V}()})},N)})})})})},g=r.DataDiskMenu=function(){function d(c,m){var i=(0,a.useBackend)(m),u=i.data,s=u.disk_type,l=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return l?(0,e.createComponentVNode)(2,I,{title:"Design Disk",children:(0,e.createComponentVNode)(2,B)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return l?(0,e.createComponentVNode)(2,I,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return d}()},16830:function(A,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.data,d=k.act,c=g.category,m=g.matching_designs,i=g.menu,u=i===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var h=l.id,C=l.name,v=l.can_build,p=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:v<1,onClick:function(){function N(){return d(s,{id:h,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 d(s,{id:h,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 d(s,{id:h,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},h)})})]})}return b}()},70497:function(A,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data,g=I.act,d=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var i=c?"disposeallP":"disposeallI";g(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(m){var i=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var h=c?"disposeP":"disposeI";g(h,{id:s})}return l}()})},s)})})]})}return f}()},70864:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.data,c=g.act,m=d.menu,i=d.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function l(){c("setCategory",{category:s})}return l}()})},s)})})]})}return B}()},42878:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data,g=I.act,d=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:d.map(function(c){var m=c.id,i=c.amount,u=c.name,s=function(){function v(p){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";g(N,{id:m,amount:p})}return v}(),l=Math.floor(i/2e3),h=i<1,C=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",C,")"]}),(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 s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},m)})})})}return f}()},52662:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data,g=k.total_materials,d=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g}),d?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+d}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},9681:function(A,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),B=n(42878),I=n(70497),k=["menu"];function g(u,s){if(u==null)return{};var l={};for(var h in u)if({}.hasOwnProperty.call(u,h)){if(s.includes(h))continue;l[h]=u[h]}return l}var d=t.Tabs.Tab,c=function(s,l){var h=(0,a.useBackend)(l),C=h.act,v=h.data,p=v.menu===o.MENU.LATHE?["nav_protolathe",v.submenu_protolathe]:["nav_imprinter",v.submenu_imprinter],N=p[0],V=p[1],S=s.menu,y=g(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({selected:V===S,onClick:function(){function L(){return C(N,{menu:S})}return L}()},y)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,B.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,I.LatheChemicalStorage)}},i=r.LatheMenu=function(){function u(s,l){var h=(0,a.useBackend)(l),C=h.data,v=C.menu,p=C.linked_lathe,N=C.linked_imprinter;return v===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):v===o.MENU.IMPRINTER&&!N?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(C.menu===o.MENU.LATHE?C.submenu_protolathe:C.submenu_imprinter)]})}return u}()},68198:function(A,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function g(d,c){return k("search",{to_search:c})}return g}()})})}return f}()},81421:function(A,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),c.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function i(){return g("linktonetworkcontroller",{target_controller:m.addr})}return i}()})})]},m.addr)})]})})})})}return b}()},6256:function(A,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function B(I,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return B}(),f=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.sync,i=c.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){d("unlink")}return u}()}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"gears",color:"red",content:"[ADMIN] Maximize research levels",onClick:function(){function u(){return d("maxresearch")}return u}()}):null]})})},b=function(I,k){var g=(0,a.useBackend)(k),d=g.data,c=g.act,m=d.linked_analyzer,i=d.linked_lathe,u=d.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return c("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scientific Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"analyze"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!i,content:i?"Unlink":"Undetected",onClick:function(){function s(){c("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(A,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),B=n(9681),I=n(81421),k=n(6256),g=n(68303),d=["menu"];function c(p,N){if(p==null)return{};var V={};for(var S in p)if({}.hasOwnProperty.call(p,S)){if(N.includes(S))continue;V[S]=p[S]}return V}var m=o.Tabs.Tab,i=r.MENU={MAIN:0,DISK:2,ANALYZE:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(N){switch(N){case i.MAIN:return(0,e.createComponentVNode)(2,v);case i.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case i.ANALYZE:return(0,e.createComponentVNode)(2,g.AnalyzerMenu);case i.LATHE:case i.IMPRINTER:return(0,e.createComponentVNode)(2,B.LatheMenu);case i.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},l=function(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data,w=L.menu,T=N.menu,x=c(N,d);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===T,onClick:function(){function M(){return y("nav",{menu:T})}return M}()},x)))},h=r.RndConsole=function(){function p(N,V){var S=(0,a.useBackend)(V),y=S.act,L=S.data;if(!L.linked)return(0,e.createComponentVNode)(2,I.LinkMenu);var w=L.menu,T=L.linked_analyzer,x=L.linked_lathe,M=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,l,{icon:"flask",menu:i.MAIN,children:"Research"}),!!T&&(0,e.createComponentVNode)(2,l,{icon:"microscope",menu:i.ANALYZE,children:"Analyze"}),!!x&&(0,e.createComponentVNode)(2,l,{icon:"print",menu:i.LATHE,children:"Protolathe"}),!!M&&(0,e.createComponentVNode)(2,l,{icon:"memory",menu:i.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,l,{icon:"floppy-disk",menu:i.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,l,{icon:"cog",menu:i.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,C)]})})})}return p}(),C=function(N,V){var S=(0,a.useBackend)(V),y=S.data,L=y.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},v=function(N,V){var S=(0,a.useBackend)(V),y=S.data,L=y.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var T=w.id,x=w.name,M=w.desc,P=w.level,D=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:M})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:D})," ",x]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},T)})]})})}},29205:function(A,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(g,d){var c=(0,t.useBackend)(d),m=c.act,i=c.data,u=i.ion,s=(0,t.useLocalState)(d,"mainTabIndex",0),l=s[0],h=s[1],C=function(){function v(p){switch(p){case 0:return(0,e.createComponentVNode)(2,B);case 1:return(0,e.createComponentVNode)(2,I);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return v}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:l===0,onClick:function(){function v(){return h(0)}return v}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:l===1,onClick:function(){function v(){return h(1)}return v}(),children:"Design Management"},"DesignPage")]}),C(l)]})})}return k}(),B=function(g,d){var c=(0,t.useBackend)(d),m=c.act,i=c.data,u=(0,t.useLocalState)(d,"filterType","ALL"),s=u[0],l=u[1],h=i.network_password,C=i.network_name,v=i.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var N=s==="ALL"?v:v.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"Unset",selected:C,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"Unset",selected:h,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return l("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return l("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return l("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return l("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return l("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),N.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function S(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return S}()})})]},V.id)})]})]})],4)},I=function(g,d){var c=(0,t.useBackend)(d),m=c.act,i=c.data,u=i.designs,s=(0,t.useLocalState)(d,"searchText",""),l=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function C(v,p){return h(p)}return C}()}),u.filter((0,a.createSearch)(l,function(C){return C.name})).map(function(C){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:C.name,checked:!C.blacklisted,onClick:function(){function v(){return m(C.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:C.uid})}return v}()},C.name)})]})}},63315:function(A,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.active,s=i.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return m("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,B)]})})}return k}(),B=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},I=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return m("link",{addr:s.addr})}return l}()})})]},s.addr)})]})})}},26109:function(A,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,g){var d=k/g;return d<=.2?"good":d<=.5?"average":"bad"},B=r.RobotSelfDiagnosis=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.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,u){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:b(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(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"})]})})]})},u)})})})}return I}()},97997:function(A,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.can_hack,i=c.safety,u=c.show_lock_all,s=c.cyborgs,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function h(){return d("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function h(){return d("masslock",{})}return h}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:l,can_hack:m})]})})}return B}(),b=function(I,k){var g=I.cyborgs,d=I.can_hack,c=(0,a.useBackend)(k),m=c.act,i=c.data,u="Detonate";return i.detonate_cooldown>0&&(u+=" ("+i.detonate_cooldown+"s)"),g.length?g.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function l(){return m("hackbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(A,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.dial,s=i.open,l=i.locked,h=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,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,B):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,I)]})})}return k}(),b=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.dial,s=i.open,l=i.locked,h=function(v,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!l,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+v,iconRight:p,onClick:function(){function N(){return m(p?"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:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[h(50),h(10),h(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[h(1,!0),h(10,!0),h(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},B=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function h(){return m("retrieve",{index:l+1})}return h}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},I=function(g,d){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(A,r,n){"use strict";r.__esModule=!0,r.SatelliteControlSatellitesList=r.SatelliteControlMapView=r.SatelliteControlFooter=r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=(0,a.useLocalState)(d,"tabIndex",i.tabIndex),s=u[0],l=u[1],h=function(){function v(p){l(p),m("set_tab_index",{tab_index:p})}return v}(),C=function(){function v(p){switch(p){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,B);default:return"WE SHOULDN'T BE HERE!"}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"table",selected:s===0,onClick:function(){function v(){return h(0)}return v}(),children:"Satellites"},"Satellites"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"map-marked-alt",selected:s===1,onClick:function(){function v(){return h(1)}return v}(),children:"Map View"},"MapView")]})}),C(s),(0,e.createComponentVNode)(2,I)]})})})}return k}(),b=r.SatelliteControlSatellitesList=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.satellites;return(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+s.id,children:[s.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:s.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function l(){return m("toggle",{id:s.id})}return l}()})]},s.id)})})})}return k}(),B=r.SatelliteControlMapView=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.satellites,s=i.has_goal,l=i.defended,h=i.collisions,C=i.fake_meteors,v=i.zoom,p=i.offsetX,N=i.offsetY,V=0;return(0,e.createComponentVNode)(2,t.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{zoom:v,offsetX:p,offsetY:N,onZoom:function(){function S(y){return m("set_zoom",{zoom:y})}return S}(),onOffsetChange:function(){function S(y,L){return m("set_offset",{offset_x:L.offsetX,offset_y:L.offsetY})}return S}(),children:[u.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"satellite",tooltip:S.active?"Shield Satellite":"Inactive Shield Satellite",color:S.active?"white":"grey",onClick:function(){function y(){return m("toggle",{id:S.id})}return y}()},V++)}),s&&l.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"circle",tooltip:"Successful Defense",color:"blue"},V++)}),s&&h.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"x",tooltip:"Meteor Hit",color:"red"},V++)}),s&&C.map(function(S){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"meteor",tooltip:"Incoming Meteor",color:"white"},V++)})]})})}return k}(),I=r.SatelliteControlFooter=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.notice,s=i.notice_color,l=i.has_goal,h=i.coverage,C=i.coverage_goal,v=i.testing;return(0,e.createFragment)([l&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:h>=C?"good":"average",value:h,maxValue:100,children:[h,"%"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Check coverage",disabled:v,onClick:function(){function p(){return m("begin_test")}return p}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:s,children:u})],0)}return k}()},44162:function(A,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),B=n(92986),I=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,g)})})})})}return c}(),k=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=window.event?m.which:m.keyCode;if(l===B.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===B.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===B.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=B.KEY_0&&l<=B.KEY_9){m.preventDefault(),s("keypad",{digit:l-B.KEY_0});return}if(l>=B.KEY_NUMPAD_0&&l<=B.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-B.KEY_NUMPAD_0});return}},g=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=l.locked,C=l.no_passcode,v=l.emagged,p=l.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=C?"":h?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function S(y){return k(y,i)}return S}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:v?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(S){return(0,e.createComponentVNode)(2,b.TableRow,{children:S.map(function(y){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,d,{number:y})},y)})},S[0])})})]})},d=function(m,i){var u=(0,t.useBackend)(i),s=u.act,l=u.data,h=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:h,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+h]),onClick:function(){function C(){return s("keypad",{digit:h})}return C}()})}},6272:function(A,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),B=n(321),I=n(5485),k=n(22091),g={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},d=function(p,N){(0,b.modalOpen)(p,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function v(p,N){var V=(0,t.useBackend)(N),S=V.act,y=V.data,L=y.loginState,w=y.currentPage,T;if(L.logged_in)w===1?T=(0,e.createComponentVNode)(2,i):w===2&&(T=(0,e.createComponentVNode)(2,l));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,I.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,B.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),T]})})]})}return v}(),m=function(p,N){var V=(0,t.useBackend)(N),S=V.act,y=V.data,L=y.currentPage,w=y.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function T(){return S("page",{page:1})}return T}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},i=function(p,N){var V=(0,t.useBackend)(N),S=V.act,y=V.data,L=y.records,w=(0,t.useLocalState)(N,"searchText",""),T=w[0],x=w[1],M=(0,t.useLocalState)(N,"sortId","name"),P=M[0],D=M[1],E=(0,t.useLocalState)(N,"sortOrder",!0),O=E[0],R=E[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(T,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,F){var W=O?1:-1;return j[P].localeCompare(F[P])*W}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+g[j.status],onClick:function(){function F(){return S("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return F}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},u=function(p,N){var V=(0,t.useLocalState)(N,"sortId","name"),S=V[0],y=V[1],L=(0,t.useLocalState)(N,"sortOrder",!0),w=L[0],T=L[1],x=p.id,M=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:S!==x&&"transparent",fluid:!0,onClick:function(){function P(){S===x?T(!w):(y(x),T(!0))}return P}(),children:[M,S===x&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,N){var V=(0,t.useBackend)(N),S=V.act,y=V.data,L=y.isPrinting,w=(0,t.useLocalState)(N,"searchText",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function M(){return S("new_general")}return M}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function M(){return(0,b.modalOpen)(N,"print_cell_log")}return M}()})}),(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 M(P,D){return x(D)}return M}()})})]})},l=function(p,N){var V=(0,t.useBackend)(N),S=V.act,y=V.data,L=y.isPrinting,w=y.general,T=y.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return S("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return S("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,h)})}),!T||!T.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return S("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:T.empty,content:"Delete Record",onClick:function(){function x(){return S("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:T.fields.map(function(x,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return d(N,x)}return P}()})]},M)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},h=function(p,N){var V=(0,t.useBackend)(N),S=V.data,y=S.general;return!y||!y.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:y.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function T(){return d(N,L)}return T}()})]},w)})})}),!!y.has_photos&&y.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},C=function(p,N){var V=(0,t.useBackend)(N),S=V.act,y=V.data,L=y.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(N,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,T){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return S("comment_delete",{id:T+1})}return x}()})]},T)})})})}},5099:function(A,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function B(u,s){var l=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l)return(l=l.call(u)).next.bind(l);if(Array.isArray(u)||(l=I(u))||s&&u&&typeof u.length=="number"){l&&(u=l);var h=0;return function(){return h>=u.length?{done:!0}:{done:!1,value:u[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(u,s){if(u){if(typeof u=="string")return k(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,h=Array(s);l=T},C=function(w,T){return w<=T},v=s.split(" "),p=[],N=function(){var w=y.value,T=w.split(":");if(T.length===0)return 0;if(T.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(T[0].toLocaleLowerCase())}),0;if(T.length>2)return{v:function(){function P(D){return!1}return P}()};var x,M=l;if(T[1][T[1].length-1]==="-"?(M=C,x=Number(T[1].substring(0,T[1].length-1))):T[1][T[1].length-1]==="+"?(M=h,x=Number(T[1].substring(0,T[1].length-1))):x=Number(T[1]),isNaN(x))return{v:function(){function P(D){return!1}return P}()};switch(T[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return M(P.lifespan,x)});break;case"e":case"end":case"endurance":p.push(function(P){return M(P.endurance,x)});break;case"m":case"mat":case"maturation":p.push(function(P){return M(P.maturation,x)});break;case"pr":case"prod":case"production":p.push(function(P){return M(P.production,x)});break;case"y":case"yield":p.push(function(P){return M(P.yield,x)});break;case"po":case"pot":case"potency":p.push(function(P){return M(P.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return M(P.amount,x)});break;default:return{v:function(){function P(D){return!1}return P}()}}},V,S=B(v),y;!(y=S()).done;)if(V=N(),V!==0&&V)return V.v;return function(L){for(var w=0,T=p;w=1?Number(M):1)}return T}()})]})]})}},17474:function(A,r,n){"use strict";r.__esModule=!0,r.Shop=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),B=n(98595),I=n(3939),k=function(h){switch(h){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);default:return"\u041E\u0428\u0418\u0411\u041A\u0410, \u0421\u041E\u041E\u0411\u0429\u0418\u0422\u0415 \u0420\u0410\u0417\u0420\u0410\u0411\u041E\u0422\u0427\u0418\u041A\u0423"}},g=r.Shop=function(){function l(h,C){var v=(0,f.useBackend)(C),p=v.act,N=v.data,V=N.cart,S=(0,f.useLocalState)(C,"tabIndex",0),y=S[0],L=S[1];return(0,e.createComponentVNode)(2,B.Window,{width:900,height:600,theme:"abductor",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:y===0,onClick:function(){function w(){L(0)}return w}(),icon:"store",children:"\u0422\u043E\u0440\u0433\u043E\u0432\u043B\u044F"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:y===1,onClick:function(){function w(){L(1)}return w}(),icon:"shopping-cart",children:["\u041A\u043E\u0440\u0437\u0438\u043D\u0430 ",V&&V.length?"("+V.length+")":""]},"Cart")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(y)})]})})]})}return l}(),d=function(h,C){var v=(0,f.useBackend)(C),p=v.act,N=v.data,V=N.cash,S=N.cats,y=(0,f.useLocalState)(C,"shopItems",S[0].items),L=y[0],w=y[1],T=(0,f.useLocalState)(C,"showDesc",1),x=T[0],M=T[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+V+"\u043A",buttons:(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:x,onClick:function(){function P(){return M(!x)}return P}()})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:S.map(function(P){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:P.items===L,onClick:function(){function D(){w(P.items)}return D}(),children:P.cat},P)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:L.map(function(P){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:P,showDecription:x},(0,o.decodeHtmlEntities)(P.name))},(0,o.decodeHtmlEntities)(P.name))})})})})]})]})},c=function(h,C){var v=(0,f.useBackend)(C),p=v.act,N=v.data,V=N.cart,S=N.cash,y=N.cart_price,L=(0,f.useLocalState)(C,"showDesc",0),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+S+"\u043A",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:w,onClick:function(){function x(){return T(!w)}return x}()}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",icon:"trash",onClick:function(){function x(){return p("empty_cart")}return x}(),disabled:!V}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C ("+y+"\u043A)",icon:"shopping-cart",onClick:function(){function x(){return p("purchase_cart")}return x}(),disabled:!V||y>S})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:V?V.map(function(x){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:x,showDecription:w,buttons:(0,e.createComponentVNode)(2,u,{i:x})})},(0,o.decodeHtmlEntities)(x.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"\u0412\u0430\u0448\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430!"})})})})})},m=function(h,C){var v=h.i,p=h.showDecription,N=p===void 0?1:p,V=h.buttons,S=V===void 0?(0,e.createComponentVNode)(2,i,{i:v}):V;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(v.name),showBottom:N,buttons:S,children:[N?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.desc)}):null,N?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.content)}):null]})},i=function(h,C){var v=(0,f.useBackend)(C),p=v.act,N=v.data,V=h.i,S=N.cash;return(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443 ("+V.cost+" \u041A\u0438\u043A\u0438\u0440\u0438\u0434\u0438\u0442\u043E\u0432)",color:V.limit!==-1&&"red",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440 \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432 \u043E\u0431\u0449\u0435\u0435 \u0447\u0438\u0441\u043B\u043E \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u043E\u0432\u0430\u0440\u0430. \u0426\u0435\u043D\u0430 \u0442\u043E\u0432\u0430\u0440\u0430 \u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u0445 \u0446\u0435\u043D\u043D\u043E\u0441\u0442\u0435\u0439 \u0432 \u0420\u0430\u0441\u0447\u0438\u0447\u0435\u0442\u0447\u0438\u043A\u0438\u043A\u0435.",tooltipPosition:"left",onClick:function(){function y(){return p("add_to_cart",{item:V.obj_path})}return y}(),disabled:V.cost>S||V.limit!==-1&&V.purchased>=V.limit||V.is_time_available===!1})},u=function(h,C){var v=(0,f.useBackend)(C),p=v.act,N=v.data,V=h.i;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+V.cost*V.amount+"\u043A)",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B.",tooltipPosition:"left",onClick:function(){function S(){return p("remove_from_cart",{item:V.obj_path})}return S}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",ml:"5px",onClick:function(){function S(){return p("set_cart_item_quantity",{item:V.obj_path,quantity:--V.amount})}return S}(),disabled:V.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:V.amount,width:"45px",tooltipPosition:"bottom-end",onCommit:function(){function S(y,L){return p("set_cart_item_quantity",{item:V.obj_path,quantity:L})}return S}(),disabled:V.limit!==-1&&V.amount>=V.limit&&V.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:V.limit===0&&"Discount already redeemed!",onClick:function(){function S(){return p("set_cart_item_quantity",{item:V.obj_path,quantity:++V.amount})}return S}(),disabled:V.limit!==-1&&V.amount>=V.limit})]})},s=function(h,C){var v=(0,f.useBackend)(C),p=v.act,N=v.data,V=h.pack;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,horizontal:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{width:"70%",children:V.content_images.map(function(S){return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+S,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})},S.ref)})})})}},2916:function(A,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d.status?d.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!d.shuttle&&(!!d.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:d.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return g("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!d.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:!d.status,onClick:function(){function c(){return g("request")}return c}()})})],0))]})})})})}return b}()},39401:function(A,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(g,d){var c=(0,a.useLocalState)(d,"tabIndex",0),m=c[0],i=c[1],u=function(){function s(l){switch(l){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,B);case 2:return(0,e.createComponentVNode)(2,I);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return i(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return i(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return i(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},B=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.templates_tabs,s=i.existing_shuttle,l=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===s.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:h})}return C}(),children:h},h)})}),!!s&&l[s.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:h.shuttle_id})}return C}()})})]})},h.name)})]})},I=function(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.existing_shuttle,s=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:u.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},86013:function(A,r,n){"use strict";r.__esModule=!0,r.SingularityMonitor=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(44879),f=n(72253),b=n(36036),B=n(76910),I=n(98595),k=n(36352),g=r.SingularityMonitor=function(){function i(u,s){var l=(0,f.useBackend)(s),h=l.act,C=l.data;return C.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),d=function(u){return Math.log2(16+Math.max(0,u))-4},c=function(u,s){var l=(0,f.useBackend)(s),h=l.act,C=l.data,v=C.singularities,p=v===void 0?[]:v;return(0,e.createComponentVNode)(2,I.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,I.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Detected Singularities",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"sync",content:"Refresh",onClick:function(){function N(){return h("refresh")}return N}()}),children:(0,e.createComponentVNode)(2,b.Table,{children:p.map(function(N){return(0,e.createComponentVNode)(2,b.Table.Row,{children:[(0,e.createComponentVNode)(2,b.Table.Cell,{children:N.singularity_id+". "+N.area_name}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,color:"label",children:"Stage:"}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N.stage,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(N.stage)})}),(0,e.createComponentVNode)(2,b.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,b.Button,{content:"Details",onClick:function(){function V(){return h("view",{view:N.singularity_id})}return V}()})})]},N.singularity_id)})})})})})},m=function(u,s){var l=(0,f.useBackend)(s),h=l.act,C=l.data,v=C.active,p=C.singulo_stage,N=C.singulo_potential_stage,V=C.singulo_energy,S=C.singulo_high,y=C.singulo_low,L=C.generators,w=L===void 0?[]:L;return(0,e.createComponentVNode)(2,I.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.toFixed)(p)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Potential Stage",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:6,ranges:{good:[1,p+.5],average:[p+.5,p+1.5],bad:[p+1.5,p+2]},children:(0,o.toFixed)(N)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:V,minValue:y,maxValue:S,ranges:{good:[.67*S+.33*y,S],average:[.33*S+.67*y,.67*S+.33*y],bad:[y,.33*S+.67*y]},children:(0,o.toFixed)(V)+"MJ"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Field Generators",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return h("back")}return T}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(T){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Remaining Charge",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:T.charge,minValue:0,maxValue:125,ranges:{good:[80,125],average:[30,80],bad:[0,30]},children:(0,o.toFixed)(T.charge)})},T.gen_index)})})})})]})})})}},88284:function(A,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],B=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],g=r.Sleeper=function(){function l(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.hasOccupant,S=V?(0,e.createComponentVNode)(2,d):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:S}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return l}(),d=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.occupant,S=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:S?"toggle-on":"toggle-off",selected:S,content:S?"On":"Off",onClick:function(){function y(){return p("auto_eject_dead_"+(S?"off":"on"))}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function y(){return p("ejectify")}return y}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(h,C){var v=(0,t.useBackend)(C),p=v.data,N=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:B.map(function(V,S){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[V[1]]/100,ranges:I,children:(0,a.round)(N[V[1]],0)},S)},S)})})})},i=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.hasOccupant,S=N.isBeakerLoaded,y=N.beakerMaxSpace,L=N.beakerFreeSpace,w=N.dialysis,T=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!S||L<=0||!V,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!S,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:S?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y,value:L/y,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(h,C){var v=(0,t.useBackend)(C),p=v.act,N=v.data,V=N.occupant,S=N.chemicals,y=N.maxchem,L=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:S.map(function(w,T){var x="",M;return w.overdosing?(x="bad",M=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(x="average",M=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:M,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y,value:w.occ_amount/y,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",y,"u"]}),L.map(function(P,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>y||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function E(){return p("chemical",{chemid:w.id,amount:P})}return E}()},D)})]})})},T)})})},s=function(h,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(A,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;if(d.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 d.plays===1?c=d.plays+" player has tried their luck today!":c=d.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:d.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:d.working,content:d.working?"Spinning...":"Spin",onClick:function(){function m(){return g("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:d.resultlvl,children:d.result})]})})})}return b}()},46348:function(A,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.secure,m=d.can_dry,i=d.drying,u=d.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 s(){return g("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,l){return s.display_name.localeCompare(l.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return g("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(h,C){return g("vend",{index:s.vend,amount:C})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return g("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return b}()},86162:function(A,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,B=r.Smes=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.capacityPercent,u=m.capacity,s=m.charge,l=m.inputAttempt,h=m.inputting,C=m.inputLevel,v=m.inputLevelMax,p=m.inputAvailable,N=m.outputPowernet,V=m.outputAttempt,S=m.outputting,y=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,T=i>=100&&"good"||h&&"average"||"bad",x=S&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value: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:l?"sync-alt":"times",selected:l,onClick:function(){function M(){return c("tryinput")}return M}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:i>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function M(){return c("input",{target:"min"})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function M(){return c("input",{adjust:-1e4})}return M}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/b,fillValue:p/b,minValue:0,maxValue:v/b,step:5,stepPixelSize:4,format:function(){function M(P){return(0,o.formatPower)(P*b,1)}return M}(),onChange:function(){function M(P,D){return c("input",{target:D*b})}return M}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===v,onClick:function(){function M(){return c("input",{adjust:1e4})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===v,onClick:function(){function M(){return c("input",{target:"max"})}return M}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function M(){return c("tryoutput")}return M}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:N?S?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:y===0,onClick:function(){function M(){return c("output",{target:"min"})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:y===0,onClick:function(){function M(){return c("output",{adjust:-1e4})}return M}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:y/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function M(P){return(0,o.formatPower)(P*b,1)}return M}(),onChange:function(){function M(P,D){return c("output",{target:D*b})}return M}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:y===L,onClick:function(){function M(){return c("output",{adjust:1e4})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:y===L,onClick:function(){function M(){return c("output",{target:"max"})}return M}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return I}()},63584:function(A,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=0,m=1,i=2,u=d.generated,s=d.generated_ratio,l=d.tracking_state,h=d.tracking_rate,C=d.connected_panels,v=d.connected_tracker,p=d.cdir,N=d.direction,V=d.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function S(){return g("refresh")}return S}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",V,")"," "]}),l===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:[l!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function S(y,L){return g("cdir",{cdir:L})}return S}()}),l===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:l===c,onClick:function(){function S(){return g("track",{track:c})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function S(){return g("track",{track:m})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===i,disabled:!v,onClick:function(){function S(){return g("track",{track:i})}return S}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function S(y){var L=Math.sign(y)>0?"+":"-";return L+Math.abs(y)}return S}(),onDrag:function(){function S(y,L){return g("tdir",{tdir:L})}return S}()}),l===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(A,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.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 g("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return g("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 b}()},30586:function(A,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function g(d,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return g}(),b=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return i("hemomancer")}return l}()}),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)]})})},B=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return i("umbrae")}return l}()}),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)]})})},I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return i("gargantua")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return i("dantalion")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(A,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),B=n(36036),I=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(l,h){var C=(0,a.useBackend)(h),v=C.data,p=v.amount,N=v.recipes,V=(0,a.useLocalState)(h,"searchText",""),S=V[0],y=V[1],L=g(N,(0,f.createSearch)(S)),w=(0,a.useLocalState)(h,"",!1),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,B.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([T&&(0,e.createComponentVNode)(2,B.Input,{width:12.5,value:S,placeholder:"Find recipe",onInput:function(){function M(P,D){return y(D)}return M}()}),(0,e.createComponentVNode)(2,B.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:T,onClick:function(){function M(){return x(!T)}return M}()})],0),children:L?(0,e.createComponentVNode)(2,i,{recipes:L}):(0,e.createComponentVNode)(2,B.NoticeBox,{children:"No recipes found!"})})},g=function s(l,h){var C=(0,o.flow)([(0,t.map)(function(v){var p=v[0],N=v[1];return d(N)?h(p)?v:[p,s(N,h)]:h(p)?v:[p,void 0]}),(0,t.filter)(function(v){var p=v[0],N=v[1];return N!==void 0}),(0,t.sortBy)(function(v){var p=v[0],N=v[1];return p}),(0,t.sortBy)(function(v){var p=v[0],N=v[1];return!d(N)}),(0,t.reduce)(function(v,p){var N=p[0],V=p[1];return v[N]=V,v},{})])(Object.entries(l));return Object.keys(C).length?C:void 0},d=function(l){return l.uid===void 0},c=function(l,h){return l.required_amount>h?0:Math.floor(h/l.required_amount)},m=function(l,h){for(var C=(0,a.useBackend)(h),v=C.act,p=l.recipe,N=l.max_possible_multiplier,V=Math.min(N,Math.floor(p.max_result_amount/p.result_amount)),S=[5,10,25],y=[],L=function(){var M=T[w];V>=M&&y.push((0,e.createComponentVNode)(2,B.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:M*p.result_amount+"x",onClick:function(){function P(){return v("make",{recipe_uid:p.uid,multiplier:M})}return P}()}))},w=0,T=S;w1?y+"x ":"",E=L>1?"s":"",O=""+D+V,R=L+" sheet"+E,j=c(S,N);return(0,e.createComponentVNode)(2,B.ImageButton,{fluid:!0,base64:P,dmIcon:x,dmIconState:M,imageSize:32,disabled:!j,tooltip:R,buttons:w>1&&j>1&&(0,e.createComponentVNode)(2,m,{recipe:S,max_possible_multiplier:j}),onClick:function(){function F(){return v("make",{recipe_uid:T,multiplier:1})}return F}(),children:O})}},38307:function(A,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function B(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return B}(),b=r.StationAlertConsoleContent=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.data,c=d.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return B}()},96091:function(A,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),B=function(d){return d[d.SetupFutureStationTraits=0]="SetupFutureStationTraits",d[d.ViewStationTraits=1]="ViewStationTraits",d}(B||{}),I=function(c,m){var i=(0,o.useBackend)(m),u=i.act,s=i.data,l=s.future_station_traits,h=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=h[0],v=h[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),N=Object.keys(p);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:v,options:N,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(C){var S=p[C],y=[S];if(l){var L,w=l.map(function(T){return T.path});if(w.indexOf(S)!==-1)return;y=(L=y).concat.apply(L,w)}u("setup_future_traits",{station_traits:y})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function S(){u("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(y){if(y.path!==V.path)return y.path})})}return S}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var i=(0,o.useBackend)(m),u=i.act,s=i.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){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:l.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function h(){return u("revert",{ref:l.ref})}return h}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},g=r.StationTraitsPanel=function(){function d(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",B.ViewStationTraits),u=i[0],s=i[1],l;switch(u){case B.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,I);break;case B.ViewStationTraits:l=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===B.ViewStationTraits,onClick:function(){function h(){return s(B.ViewStationTraits)}return h}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===B.SetupFutureStationTraits,onClick:function(){function h(){return s(B.SetupFutureStationTraits)}return h}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),l]})]})})})}return d}()},39409:function(A,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),B=5,I=9,k=function(C){return C===0?5:9},g="64px",d=function(C){return C[0]+"/"+C[1]},c=function(C){var v=C.align,p=C.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},i={eyes:{displayName:"eyewear",gridSpot:d([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:d([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:d([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:d([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:d([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:d([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:d([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:d([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:d([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:d([1,4])},jumpsuit:{displayName:"uniform",gridSpot:d([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:d([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:d([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:d([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:d([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:d([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:d([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:d([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:d([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:d([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:d([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:d([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:d([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:d([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:d([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:d([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:d([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:d([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:d([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:d([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:d([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:d([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:d([1,4])},jumpsuit:{displayName:"uniform",gridSpot:d([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:d([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:d([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:d([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:d([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:d([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:d([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:d([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:d([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:d([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:d([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:d([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:d([4,8]),image:"inventory-pda.png"}},s=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(s||{}),l=r.StripMenu=function(){function h(C,v){var p=(0,o.useBackend)(v),N=p.act,V=p.data,S=new Map;if(V.show_mode===0)for(var y=0,L=Object.keys(V.items);y=.01})},(0,a.sortBy)(function(x){return-x.amount})])(C.gases||[]),T=Math.max.apply(Math,[1].concat(w.map(function(x){return x.portion})));return(0,e.createComponentVNode)(2,I.Window,{width:550,height:250,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Gas Coefficient",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:L,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:L.toFixed(2)})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:d(V),minValue:0,maxValue:d(1e4),ranges:{teal:[-1/0,d(80)],good:[d(80),d(373)],average:[d(373),d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mole Per Tile",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:y,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,o.toFixed)(y)+" mol"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:d(S),minValue:0,maxValue:d(5e4),ranges:{good:[d(1),d(300)],average:[-1/0,d(1e3)],bad:[d(1e3),1/0]},children:(0,o.toFixed)(S)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function x(){return h("back")}return x}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:w.map(function(x){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,B.getGasLabel)(x.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,B.getGasColor)(x.name),value:x.portion,minValue:0,maxValue:T,children:(0,o.toFixed)(x.amount)+" mol ("+x.portion+"%)"})},x.name)})})})})]})})})}},46029:function(A,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return g(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return b}()},36372:function(A,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I){return I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return d("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 B}()},23190:function(A,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(46095),f=n(98595),b={0:"Free",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},B={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},I={\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"}},k=function(m,i,u,s){return s===void 0&&(s=null),m.map(function(l){var h,C=(h=l[s])!=null?h:l;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:i.includes(l),content:C,onClick:function(){function v(){i.includes(l)?u(i.filter(function(p){var N;return((N=p[s])!=null?N:p)!==l})):u([l].concat(i))}return v}()},C)})},g=r.TTSSeedsExplorer=function(){function c(){return(0,e.createComponentVNode)(2,f.Window,{width:1e3,height:685,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,d)})})})}return c}(),d=r.TTSSeedsExplorerContent=function(){function c(m,i){var u=(0,a.useBackend)(i),s=u.act,l=u.data,h=l.providers,C=l.seeds,v=l.selected_seed,p=l.phrases,N=l.donator_level,V=l.character_gender,S=C.map(function(Y){return Y.category}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y.localeCompare(ve)}),y=C.map(function(Y){return Y.gender}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}),L=C.map(function(Y){return Y.required_donator_level}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y-ve}).map(function(Y){return b[Y]}),w=(0,a.useLocalState)(i,"selectedProviders",h),T=w[0],x=w[1],M=(0,a.useLocalState)(i,"selectedGenders",y.includes(B[V])?[B[V]]:y),P=M[0],D=M[1],E=(0,a.useLocalState)(i,"selectedCategories",S),O=E[0],R=E[1],j=(0,a.useLocalState)(i,"selectedDonatorLevels",L.includes(b[N])?L.slice(0,L.indexOf(b[N])+1):L),F=j[0],W=j[1],z=(0,a.useLocalState)(i,"selectedPhrase",p[0]),K=z[0],G=z[1],J=(0,a.useLocalState)(i,"searchtext",""),Q=J[0],ue=J[1],ie=(0,a.useLocalState)(i,"searchToggle",!1),pe=ie[0],te=ie[1],q=k(h,T,x,"name"),ne=k(y,P,D),le=k(S,O,R),ee=k(L,F,W),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:p,selected:K.replace(/(.{60})..+/,"$1..."),width:"21.3em",onSelected:function(){function Y(ve){return G(ve)}return Y}()}),oe=(0,e.createFragment)([pe&&(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:20,onInput:function(){function Y(ve,he){return ue(he)}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"magnifying-glass",tooltip:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",tooltipPosition:"bottom-end",selected:pe,onClick:function(){function Y(){return te(!pe)}return Y}()})],0),fe=C.sort(function(Y,ve){var he=Y.name.toLowerCase(),Ve=ve.name.toLowerCase();return he>Ve?1:he0&&v!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Y.name?"white":I[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:I[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.required_donator_level>0&&(0,e.createFragment)([b[Y.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"30.25em",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,{fill:!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:q}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u0440",children:ee}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,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",disabled:O.length===0,onClick:function(){function Y(){return R([])}return Y}(),children:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",disabled:O.length===S.length,onClick:function(){function Y(){return R(S)}return Y}(),children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"})],4),children:le})}),(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,{fontSize:"11px",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:1.5,italic:!0,color:"gray",fontSize:"10px",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."})]})})})]})}),(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 ("+fe.length+"/"+C.length+")",buttons:oe,children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,o.VirtualList,{children:me})})})})],4)}return c}()},56441:function(A,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.records,i=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,l=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||l,align:"center",onClick:function(){function h(){return d("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function h(){return d("delete_logs")}return h}()})]})]})}),i.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return B}(),b=r.TachyonArrayContent=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return d("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return B}()},1754:function(A,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c;return d.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:d.connected?"check":"times",content:d.connected?"Internals On":"Internals Off",selected:d.connected,onClick:function(){function m(){return g("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return g("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function m(i,u){return g("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return g("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return g("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return b}()},7579:function(A,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.o_tanks,m=d.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 g("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 g("plasma")}return i}()})})]})})})}return b}()},16136:function(A,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function g(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.ion,l=(0,a.useLocalState)(c,"tabIndex",0),h=l[0],C=l[1],v=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,B);case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:h===0,onClick:function(){function p(){return C(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:h===1,onClick:function(){function p(){return C(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:h===2,onClick:function(){function p(){return C(2)}return p}(),children:"User Filtering"},"FilterPage")]}),v(h)]})})}return g}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},B=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.active,l=u.sectors_available,h=u.nttc_toggle_jobs,C=u.nttc_toggle_job_color,v=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,V=u.nttc_setting_language,S=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function y(){return i("toggle_active")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(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:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function y(){return i("nttc_toggle_jobs")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function y(){return i("nttc_toggle_job_color")}return y}()})}),(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 y(){return i("nttc_toggle_name_color")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function y(){return i("nttc_toggle_command_bold")}return y}()})})]})}),(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 y(){return i("nttc_job_indicator_type")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function y(){return i("nttc_setting_language")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:S||"Unset",selected:S,icon:"server",onClick:function(){function y(){return i("network_id")}return y}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function y(){return i("import")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function y(){return i("export")}return y}()})]})],4)},I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.link_password,l=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function h(){return i("change_password")}return h}()})})}),(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"})]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return i("unlink",{addr:h.addr})}return C}()})})]},h.addr)})]})]})},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return i("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return i("remove_filter",{user:l})}return h}()})})]},l)})]})})}},88046:function(A,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return c("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function l(){return c("network_id")}return l}()})}),(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,b):(0,e.createComponentVNode)(2,B)]})})}return I}(),b=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function l(){return c("toggle_hidden_link")}return l}()})}),(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 l(){return c("unlink")}return l}()})})]})})},B=function(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(A,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.targetsTeleport?d.targetsTeleport:{},m=0,i=1,u=2,s=d.calibrated,l=d.calibrating,h=d.powerstation,C=d.regime,v=d.teleporterhub,p=d.target,N=d.locked,V=d.adv_beacon_allowed,S=d.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!h||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),h&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),h&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"Enabled":"Disabled",onClick:function(){function y(){return g("advanced_beacon_locking",{on:S?0:1})}return y}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function y(L){return g("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return y}()}),C===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function y(L){return g("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return y}()}),C===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===i?"good":null,onClick:function(){function y(){return g("setregime",{regime:i})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function y(){return g("setregime",{regime:m})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===u?"good":null,disabled:!N,onClick:function(){function y(){return g("setregime",{regime:u})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||l),onClick:function(){function y(){return g("calibrate")}return y}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&h&&v&&C===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function y(){return g("load")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function y(){return g("eject")}return y}()})]})})]})})})})}return b}()},48517:function(A,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.last_msg,m=d.linked_pad,i=d.held_gps,u=d.lastdata,s=d.power_levels,l=d.current_max_power,h=d.current_power,C=d.current_bearing,v=d.current_elevation,p=d.current_sector,N=d.working,V=d.max_z,S=(0,a.useLocalState)(I,"dummyrot",C),y=S[0],L=S[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:C,onDrag:function(){function w(T,x){return L(x)}return w}(),onChange:function(){function w(T,x){return g("setbear",{bear:x})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:y})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:v,onChange:function(){function w(T,x){return g("setelev",{elev:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,T){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:h===w,disabled:T>=l-1||N,onClick:function(){function x(){return g("setpwr",{pwr:T+1})}return x}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:N,onChange:function(){function w(T,x){return g("setz",{newz:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function w(){return g("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function w(){return g("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function w(){return g("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function w(){return g("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:i===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:i===0||N,content:"Eject GPS",onClick:function(){function w(){return g("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:i===0||N,content:"Store Coordinates",onClick:function(){function w(){return g("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(A,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function g(d,c){var m=(0,t.useBackend)(c),i=m.act,u=m.data,s=u.target_temperature,l=u.temperature,h=u.max_temp,C=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:h,value:s,format:function(){function v(p){return(0,a.toFixed)(p,2)}return v}(),width:"50px",onDrag:function(){function v(p,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:B(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),children:I(l)})})]})})})})}return g}(),B=function(d){return d<=-100?"blue":d<=0?"teal":d<=100?"green":d<=200?"orange":"red"},I=function(d){return d<=100-273.15?"High":d<=250-273.15?"Medium":d<=300-273.15?"Low":d<=400-273.15?"Medium":"High"},k=function(d){return d<=100-273.15?"red":d<=250-273.15?"orange":d<=300-273.15?"green":d<=400-273.15?"orange":"red"}},24410:function(A,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),B=n(98595),I=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),g=r.TextInputModal=function(){function c(m,i){var u=(0,o.useBackend)(i),s=u.act,l=u.data,h=l.max_length,C=l.message,v=C===void 0?"":C,p=l.multiline,N=l.placeholder,V=l.timeout,S=l.title,y=(0,o.useLocalState)(i,"input",N||""),L=y[0],w=y[1],T=function(){function P(D){if(D!==L){var E=p?I(D):k(D);w(E)}}return P}(),x=p||L.length>=40,M=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,B.Window,{title:S,width:325,height:M,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,B.Window.Content,{onKeyDown:function(){function P(D){var E=window.event?D.which:D.keyCode;E===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:L}),E===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d,{input:L,onChange:T})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return c}(),d=function(m,i){var u=(0,o.useBackend)(i),s=u.act,l=u.data,h=l.max_length,C=l.multiline,v=m.input,p=m.onChange,N=C||v.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:C||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(S,y){N&&S.shiftKey||(S.preventDefault(),s("submit",{entry:y}))}return V}(),onChange:function(){function V(S,y){return p(y)}return V}(),placeholder:"Type something...",value:v})}},25036:function(A,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function B(I,k){var g=(0,t.useBackend)(k),d=g.act,c=g.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(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 d("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 d("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 d("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,u){return d("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return d("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 d("target",{target:c.initial})}return m}()})]})]})})]})})}return B}()},20035:function(A,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.tank_one,m=d.tank_two,i=d.attached_device,u=d.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return g("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function s(){return g("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function s(){return g("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return g("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return g("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(A,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(g,d){var c=(0,a.useBackend)(d),m=c.act,i=c.data,u=i.compressor,s=i.compressor_broken,l=i.turbine,h=i.turbine_broken,C=i.online,v=!!(u&&!s&&l&&!h);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!v,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:v?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,B)})})})}return k}(),B=function(g,d){var c=(0,a.useBackend)(d),m=c.data,i=m.compressor,u=m.compressor_broken,s=m.turbine,l=m.turbine_broken,h=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||u?"bad":"good",children:u?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},I=function(g,d){var c=(0,a.useBackend)(d),m=c.data,i=m.rpm,u=m.temperature,s=m.power,l=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:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(l)+"%"})})]})}},52847:function(A,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),B=n(98595),I=n(3939),k=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},g=r.Uplink=function(){function h(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.cart,y=(0,f.useLocalState)(v,"tabIndex",0),L=y[0],w=y[1],T=(0,f.useLocalState)(v,"searchText",""),x=T[0],M=T[1];return(0,e.createComponentVNode)(2,B.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,B.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),M("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),M("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",S&&S.length?"("+S.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),M("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return h}(),d=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.crystals,y=V.cats,L=(0,f.useLocalState)(v,"uplinkItems",y[0].items),w=L[0],T=L[1],x=(0,f.useLocalState)(v,"searchText",""),M=x[0],P=x[1],D=function(W,z){z===void 0&&(z="");var K=(0,o.createSearch)(z,function(G){var J=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+J});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),z&&(0,a.filter)(K),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(W)},E=function(W){if(P(W),W==="")return T(y[0].items);T(D(y.map(function(z){return z.items}).flat(),W))},O=(0,f.useLocalState)(v,"showDesc",1),R=O[0],j=O[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+S+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:R,onClick:function(){function F(){return j(!R)}return F}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function F(){return N("buyRandom")}return F}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function F(){return N("refund")}return F}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function F(W,z){E(z)}return F}(),value:M})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:y.map(function(F){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M!==""?!1:F.items===w,onClick:function(){function W(){T(F.items),P("")}return W}(),children:F.cat},F)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(F){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:F,showDecription:R},(0,o.decodeHtmlEntities)(F.name))},(0,o.decodeHtmlEntities)(F.name))})})})})]})]})},c=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.cart,y=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(v,"showDesc",0),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+y+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:T,onClick:function(){function M(){return x(!T)}return M}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function M(){return N("empty_cart")}return M}(),disabled:!S}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function M(){return N("purchase_cart")}return M}(),disabled:!S||L>y})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:S?S.map(function(M){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:M,showDecription:T,buttons:(0,e.createComponentVNode)(2,s,{i:M})})},(0,o.decodeHtmlEntities)(M.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.cats,y=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return N("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:y.map(function(L){return S[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:L})},w)})})})})},i=function(C,v){var p=C.i,N=C.showDecription,V=N===void 0?1:N,S=C.buttons,y=S===void 0?(0,e.createComponentVNode)(2,u,{i:p}):S;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:y,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=C.i,y=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:S.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return N("add_to_cart",{item:S.obj_path})}return L}(),disabled:S.cost>y}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+S.cost+"TC)"+(S.refundable?" [Refundable]":""),color:S.hijack_only===1&&"red",tooltip:S.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return N("buyItem",{item:S.obj_path})}return L}(),disabled:S.cost>y})],4)},s=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=C.i,y=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+S.cost*S.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return N("remove_from_cart",{item:S.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:S.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return N("set_cart_item_quantity",{item:S.obj_path,quantity:--S.amount})}return L}(),disabled:S.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:S.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:S.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,T){return N("set_cart_item_quantity",{item:S.obj_path,quantity:T})}return L}(),disabled:S.limit!==-1&&S.amount>=S.limit&&S.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:S.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return N("set_cart_item_quantity",{item:S.obj_path,quantity:++S.amount})}return L}(),disabled:S.limit!==-1&&S.amount>=S.limit})]})},l=function(C,v){var p=(0,f.useBackend)(v),N=p.act,V=p.data,S=V.exploitable,y=(0,f.useLocalState)(v,"selectedRecord",S[0]),L=y[0],w=y[1],T=(0,f.useLocalState)(v,"searchText",""),x=T[0],M=T[1],P=function(O,R){R===void 0&&(R="");var j=(0,o.createSearch)(R,function(F){return F.name});return(0,t.flow)([(0,a.filter)(function(F){return F==null?void 0:F.name}),R&&(0,a.filter)(j),(0,a.sortBy)(function(F){return F.name})])(O)},D=P(S,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function E(O,R){return M(R)}return E}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:D.map(function(E){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E===L,onClick:function(){function O(){return w(E)}return O}(),children:E.name},E)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(A,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=I.product,i=I.productStock,u=I.productIcon,s=I.productIconState,l=c.chargesMoney,h=c.user,C=c.usermoney,v=c.inserted_cash,p=c.vend_ready,N=c.inserted_item_name,V=!l||m.price===0,S="ERROR!",y="";V?(S="FREE",y="arrow-circle-down"):(S=m.price,y="shopping-cart");var L=!p||i===0||!V&&m.price>C&&m.price>v;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.DmIcon,{verticalAlign:"middle",icon:u,icon_state:s,fallback:(0,e.createComponentVNode)(2,t.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color: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:y,content:S,textAlign:"left",onClick:function(){function w(){return d("vend",{inum:m.inum})}return w}()})})]})},b=r.Vending=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.user,i=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,l=c.product_records,h=l===void 0?[]:l,C=c.hidden_records,v=C===void 0?[]:C,p=c.stock,N=c.vend_ready,V=c.inserted_item_name,S=c.panel_open,y=c.speaker,L=c.locked,w;return w=[].concat(h),c.extended_inventory&&(w=[].concat(w,v)),w=w.filter(function(T){return!!T}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!L&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Configuration",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Rename Vendor",onClick:function(){function T(){return d("rename",{})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen-to-square",content:"Change Vendor Appearance",onClick:function(){function T(){return d("change_appearance",{})}return T}()})})]})})}),!!s&&(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:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function T(){return d("eject_item",{})}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function T(){return d("change")}return T}()})})]}),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")]})})}),!!S&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:y?"check":"volume-mute",selected:y,content:"Speaker",textAlign:"left",onClick:function(){function T(){return d("toggle_voice",{})}return T}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(T){return(0,e.createComponentVNode)(2,f,{product:T,productStock:p[T.name],productIcon:T.icon,productIconState:T.icon_state},T.name)})})})})]})})})}return B}()},68971:function(A,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.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 u(){return g("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,l){return g("volume",{channel:m.num,volume:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return g("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(A,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.remaining,m=d.question,i=d.choices,u=d.user_vote,s=d.counts,l=d.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(h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:h,content:h+(l?" ("+(s[h]||0)+")":""),onClick:function(){function C(){return g("vote",{target:h})}return C}(),selected:h===u})},h)})]})})})}return b}()},30138:function(A,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.wires||[],m=d.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(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return g("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return g("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return g("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(A,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return g("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(A,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(g,d){var c=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(c)return(c=c.call(g)).next.bind(c);if(Array.isArray(g)||(c=b(g))||d&&g&&typeof g.length=="number"){c&&(g=c);var m=0;return function(){return m>=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(g,d){if(g){if(typeof g=="string")return B(g,d);var c={}.toString.call(g).slice(8,-1);return c==="Object"&&g.constructor&&(c=g.constructor.name),c==="Map"||c==="Set"?Array.from(g):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?B(g,d):void 0}}function B(g,d){(d==null||d>g.length)&&(d=g.length);for(var c=0,m=Array(d);c0&&!V.includes(R.ref)&&!p.includes(R.ref),checked:p.includes(R.ref),onClick:function(){function j(){return S(R.ref)}return j}()},R.desc)})]})]})})}return g}()},26991:function(A,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(I,k,g,d,c){return Id?"average":I>c?"bad":"good"},b=r.AtmosScan=function(){function B(I,k){var g=I.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(d){return d.val!=="0"||d.entry==="Pressure"||d.entry==="Temperature"})(g).map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.entry,color:f(d.val,d.bad_low,d.poor_low,d.poor_high,d.bad_high),children:[d.val,d.units]},d.entry)})})})}return B}()},85870:function(A,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(B){return B+" unit"+(B===1?"":"s")},f=r.BeakerContents=function(){function b(B){var I=B.beakerLoaded,k=B.beakerContents,g=k===void 0?[]:k,d=B.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!I&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||g.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),g.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!d&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:d(c,m)})]},c.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(A,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data,d=g.locked,c=g.noaccess,m=g.maintpanel,i=g.on,u=g.autopatrol,s=g.canhack,l=g.emagged,h=g.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",d?"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 C(){return k("power")}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return k("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return k("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!h,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return k("disableremote")}return C}()})})]})})],4)}return f}()},3939:function(A,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function g(d,c,m){var i=(0,a.useBackend)(d),u=i.act,s=i.data,l=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(l)})}return g}(),b=r.modalRegisterBodyOverride=function(){function g(d,c){o[d]=c}return g}(),B=r.modalAnswer=function(){function g(d,c,m,i){var u=(0,a.useBackend)(d),s=u.act,l=u.data;if(l.modal){var h=Object.assign(l.modal.args||{},i||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(h)})}}return g}(),I=r.modalClose=function(){function g(d,c){var m=(0,a.useBackend)(d),i=m.act;i("modal_close",{id:c})}return g}(),k=r.ComplexModal=function(){function g(d,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var u=i.modal,s=u.id,l=u.text,h=u.type,C,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return I(c)}return L}()}),p,N,V="auto";if(o[s])p=o[s](i.modal,c);else if(h==="input"){var S=i.modal.value;C=function(){function L(w){return B(c,s,S)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,T){S=T}return L}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return I(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return B(c,s,S)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var y=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:y,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return B(c,s,w)}return L}()}),V="initial"}else h==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(i.modal.value,10),onClick:function(){function T(){return B(c,s,w+1)}return T}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):h==="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 L(){return B(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return B(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:d.maxWidth||window.innerWidth/2+"px",maxHeight:d.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&v,p,N]})}}return g}()},41874:function(A,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,B=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],I=function(m){return B.indexOf(m)!==-1?"green":"orange"},k=function(m){if(B.indexOf(m)!==-1)return!0},g=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:I(i.rank),bold:k(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)})]})},d=r.CrewManifest=function(){function c(m,i){var u=(0,a.useBackend)(i),s=u.act,l;if(m.data)l=m.data;else{var h=(0,a.useBackend)(i),C=h.data;l=C}var v=l,p=v.manifest,N=p.heads,V=p.sec,S=p.eng,y=p.med,L=p.sci,w=p.ser,T=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:g(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:g(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:g(S)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:g(y)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:g(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:g(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:g(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:g(x)})]})}return c}()},19203:function(A,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,B){var I=(0,t.useBackend)(B),k=I.act,g=I.data,d=g.large_buttons,c=g.swapped_buttons,m=b.input,i=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!d,fluid:!!d,onClick:function(){function h(){return k("submit",{entry:m})}return h}(),textAlign:"center",tooltip:d&&i,disabled:u,width:!d&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!d,fluid:!!d,onClick:function(){function h(){return k("cancel")}return h}(),textAlign:"center",width:!d&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[d?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!d&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),d?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(A,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data,d=b.siliconUser,c=d===void 0?g.siliconUser:d,m=b.locked,i=m===void 0?g.locked:m,u=b.normallyLocked,s=u===void 0?g.normallyLocked:u,l=b.onLockStatusChange,h=l===void 0?function(){return k("lock")}:l,C=b.accessText,v=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){h&&h(!i)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},51057:function(A,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var B=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(B)*100+"%"}}),2)}return f}()},321:function(A,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data,d=g.loginState;if(g)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",d.name," (",d.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!d.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return f}()},5485:function(A,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data,d=g.loginState,c=g.isAI,m=g.isRobot,i=g.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:d.id?d.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!d.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(A,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var B=b.operating,I=b.name;if(B)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 ",I," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(A,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(B,I){var k=(0,t.useBackend)(I),g=k.act,d=B.data,c=d.code,m=d.frequency,i=d.minFrequency,u=d.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:u/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,h){return g("freq",{freq:h})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(l,h){return g("code",{code:h})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return g("signal")}return s}()})]})}return b}()},41984:function(A,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),B=r.SimpleRecords=function(){function g(d,c){var m=d.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:d.data,recordType:d.recordType}):(0,e.createComponentVNode)(2,I,{data:d.data})})}return g}(),I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=d.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),l=s[0],h=s[1],C=function(N,V){V===void 0&&(V="");var S=(0,t.createSearch)(V,function(y){return y.Name});return(0,o.flow)([(0,f.filter)(function(y){return y==null?void 0:y.Name}),V&&(0,f.filter)(S),(0,f.sortBy)(function(y){return y.Name})])(u)},v=C(u,l);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(N,V){return h(V)}return p}()}),v.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function N(){return i("Records",{target:p.uid})}return N}()})},p)})]})},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=d.data.records,s=u.general,l=u.medical,h=u.security,C;switch(d.recordType){case"MED":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},22091:function(A,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,B){var I,k=(0,a.useBackend)(B),g=k.act,d=k.data,c=d.temp;if(c){var m=(I={},I[c.style]=!0,I);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 g("cleartemp")}return i}()})})]})})))}}return f}()},95213:function(A,r,n){"use strict";r.__esModule=!0,r.goonstation_PTL=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595);/** * @file * @copyright 2020 * @author Sovexe (https://github.com/Sovexe) * @license ISC - */var b=r.goonstation_PTL=function(){function N(d,c){var m=(0,a.useBackend)(c),l=m.data,u=l.total_earnings,s=l.total_energy,i=l.name,h=i===void 0?"Power Transmission Laser":i;return(0,e.createComponentVNode)(2,f.Window,{title:"Power Transmission Laser",width:"310",height:"485",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Earned Credits : ",u?(0,o.formatMoney)(u):0]}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Energy Sold : ",s?(0,o.formatSiUnit)(s,0,"J"):"0 J"]})]})})}return N}(),B=function(d,c){var m=(0,a.useBackend)(c),l=m.data,u=l.max_capacity,s=l.held_power,i=l.input_total,h=l.max_grid_load;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reserve energy",children:s?(0,o.formatSiUnit)(s,0,"J"):"0 J"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",mb:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:s/u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Grid Saturation"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:Math.min(i,u-s)/h})]})},I=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.input_total,i=u.accepting_power,h=u.sucking_power,C=u.input_number,v=u.power_format;return(0,e.createComponentVNode)(2,t.Section,{title:"Input Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Circuit",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:i?"green":"red",onClick:function(){function p(){return l("toggle_input")}return p}(),children:i?"Enabled":"Disabled"}),children:(0,e.createComponentVNode)(2,t.Box,{color:h&&"good"||i&&"average"||"bad",children:h&&"Online"||i&&"Idle"||"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s?(0,o.formatPower)(s):"0 W"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5em",children:[(0,e.createComponentVNode)(2,t.NumberInput,{mr:"0.5em",animated:!0,size:1.25,inline:!0,step:1,stepPixelSize:2,minValue:0,maxValue:999,value:C,onChange:function(){function p(g,V){return l("set_input",{set_input:V})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{selected:v===1,onClick:function(){function p(){return l("inputW")}return p}(),children:"W"}),(0,e.createComponentVNode)(2,t.Button,{selected:v===Math.pow(10,3),onClick:function(){function p(){return l("inputKW")}return p}(),children:"KW"}),(0,e.createComponentVNode)(2,t.Button,{selected:v===Math.pow(10,6),onClick:function(){function p(){return l("inputMW")}return p}(),children:"MW"}),(0,e.createComponentVNode)(2,t.Button,{selected:v===Math.pow(10,9),onClick:function(){function p(){return l("inputGW")}return p}(),children:"GW"})]})]})},k=function(d,c){var m=(0,a.useBackend)(c),l=m.act,u=m.data,s=u.output_total,i=u.firing,h=u.accepting_power,C=u.output_number,v=u.output_multiplier,p=u.target,g=u.held_power;return(0,e.createComponentVNode)(2,t.Section,{title:"Output Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Laser Circuit",buttons:(0,e.createComponentVNode)(2,t.Stack,{Horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"crosshairs",color:p===""?"green":"red",onClick:function(){function V(){return l("target")}return V}(),children:p}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:i?"green":"red",disabled:!i&&gu,onClick:function(){function S(){return k("purchaseSoftware",{key:V.key})}return S}()},V.key)}),c.filter(function(V){return!g[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function S(){return k("startSoftware",{software_key:V.key})}return S}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function S(){return k("setToggle",{toggle_key:V.key})}return S}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===i,onClick:function(){function S(){return k("setEmotion",{emotion:V.id})}return S}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===C,onClick:function(){function S(){return k("setSpeechStyle",{speech_state:V.name})}return S}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function S(){return k("setChassis",{chassis_to_change:V.icon})}return S}()},V.id)})})]})})}return f}()},2983:function(A,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:N.app_data})}return f}()},40758:function(A,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(A,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data,d=N.app_data.active_convo;return d?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:N.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:N.app_data})}return f}()},50775:function(A,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.app_data,m=c.minFrequency,l=c.maxFrequency,u=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:u/10,format:function(){function i(h){return(0,t.toFixed)(h,1)}return i}(),onChange:function(){function i(h,C){return N("freq",{freq:C})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return N("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return N("toggleBroadcast")}return i}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(A,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(A,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:N.app_data})}return f}()},78532:function(A,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},2395:function(A,r,n){"use strict";r.__esModule=!0,r.pda_games=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(1331),f=r.pda_games=function(){function b(B,I){var k=(0,a.useBackend)(I),N=k.act,d=k.data,c=d.games,m=function(){function l(u){switch(u){case"Minesweeper":return(0,e.createComponentVNode)(2,o.IconStack,{children:[(0,e.createComponentVNode)(2,o.Icon,{ml:"0",mt:"10px",name:"flag",size:"6",color:"gray",rotation:30}),(0,e.createComponentVNode)(2,o.Icon,{ml:"9px",mt:"23px",name:"bomb",size:"3",color:"black"})]});default:return(0,e.createComponentVNode)(2,o.Icon,{ml:"16px",mt:"10px",name:"gamepad",size:"6"})}}return l}();return(0,e.createComponentVNode)(2,t.Box,{children:c.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"33%",textAlign:"center",translucent:!0,onClick:function(){function u(){return N("play",{id:l.id})}return u}(),children:[m(l.name),(0,e.createComponentVNode)(2,t.Box,{children:l.name})]},l.name)})})}return b}()},40253:function(A,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data,d=N.janitor,c=d.user_loc,m=d.mops,l=d.buckets,u=d.cleanbots,s=d.carts,i=d.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(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:i.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.direction_from_user,")"]},h)})})]})}return f}()},58293:function(A,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(B,I){var k=(0,t.useBackend)(I),N=k.act,d=k.data,c=d.owner,m=d.ownjob,l=d.idInserted,u=d.categories,s=d.pai,i=d.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function h(){return N("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(h){var C=d.apps[h];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:C.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in i?v.notify_icon:v.icon,iconSpin:v.uid in i,color:v.uid in i?"red":"transparent",content:v.name,onClick:function(){function p(){return N("StartProgram",{program:v.uid})}return p}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return N("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return N("pai",{option:2})}return h}()})]})})]})}return b}()},58059:function(A,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,N=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(A,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(A,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(N,d){var c=(0,t.useBackend)(d),m=c.act,l=c.data,u=l.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:l}):(0,e.createComponentVNode)(2,B,{data:l})}return k}(),b=r.ActiveConversation=function(){function k(N,d){var c=(0,t.useBackend)(d),m=c.act,l=N.data,u=l.convo_name,s=l.convo_job,i=l.messages,h=l.active_convo,C=(0,t.useLocalState)(d,"clipboardMode",!1),v=C[0],p=C[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(i).map(function(V,S){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},S)})});return v&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(i).map(function(V,S){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},S)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),g]})}return k}(),B=r.MessengerList=function(){function k(N,d){var c=(0,t.useBackend)(d),m=c.act,l=N.data,u=l.convopdas,s=l.pdas,i=l.charges,h=l.silent,C=l.toff,v=l.ringtone_list,p=l.ringtone,g=(0,t.useLocalState)(d,"searchTerm",""),V=g[0],S=g[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:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function y(){return m("Toggle Ringer")}return y}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function y(){return m("Toggle Messenger")}return y}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function y(){return m("Clear",{option:"All"})}return y}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function y(){return m("Ringtone")}return y}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(v),onSelected:function(){function y(L){return m("Available_Ringtones",{selected_ringtone:L})}return y}()})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(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:[i," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function y(L,w){S(w)}return y}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,I,{title:"Current Conversations",data:l,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,I,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:V})]})}return k}(),I=function(N,d){var c=(0,t.useBackend)(d),m=c.act,l=N.data,u=N.pdas,s=N.title,i=N.msgAct,h=N.searchTerm,C=l.charges,v=l.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(h.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function g(){return m(i,{target:p.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:g.uid,target:p.uid})}return V}()},g.uid)})})]},p.uid)})})}},90382:function(A,r,n){"use strict";r.__esModule=!0,r.pda_minesweeper=r.MineSweeperLeaderboard=r.MineSweeperGame=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_minesweeper=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=(0,a.useLocalState)(N,"window","Game"),u=l[0],s=l[1],i={Game:"Leaderboard",Leaderboard:"Game"};return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:u==="Game"?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,fontSize:2,lineHeight:1.75,icon:u==="Game"?"book":"gamepad",onClick:function(){function h(){return s(i[u])}return h}(),children:i[u]})})]})}return I}(),f=r.MineSweeperGame=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.matrix,u=m.flags,s=m.bombs,i={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"},h=function(){function C(v,p,g){c("Square",{X:v,Y:p,mode:g})}return C}();return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:Object.keys(l).map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(l[C]).map(function(v){return(0,e.createComponentVNode)(2,t.Button,{m:.25,height:2,width:2,className:l[C][v].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:l[C][v].open?l[C][v].bomb?"bomb":"":l[C][v].flag?"flag":"",textColor:l[C][v].open?l[C][v].bomb?"black":i[l[C][v].around]:l[C][v].flag?"red":"gray",onClick:function(){function p(g){return h(C,v,"bomb")}return p}(),onContextMenu:function(){function p(g){event.preventDefault(),h(C,v,"flag")}return p}(),children:l[C][v].open&&!l[C][v].bomb&&l[C][v].around?l[C][v].around:" "},v)})},C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,className:"Minesweeper__infobox",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,textAlign:"left",pt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bomb",color:"gray"})," : ",s]}),(0,e.createComponentVNode)(2,t.Stack.Divider),(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flag",color:"red"})," : ",u]})]})})]})}return I}(),b=r.MineSweeperLeaderboard=function(){function I(k,N){var d=(0,a.useBackend)(N),c=d.act,m=d.data,l=m.leaderboard,u=(0,a.useLocalState)(N,"sortId","time"),s=u[0],i=u[1],h=(0,a.useLocalState)(N,"sortOrder",!1),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Table,{className:"Minesweeper__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Nick"}),(0,e.createComponentVNode)(2,B,{id:"time",children:"Time"})]}),l&&l.sort(function(p,g){var V=C?1:-1;return p[s].localeCompare(g[s])*V}).map(function(p,g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.time})]},g)})]})}return I}(),B=function(k,N){var d=(0,a.useLocalState)(N,"sortId","time"),c=d[0],m=d[1],l=(0,a.useLocalState)(N,"sortOrder",!1),u=l[0],s=l[1],i=k.id,h=k.children;return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",onClick:function(){function C(){c===i?s(!u):(m(i),s(!0))}return C}(),children:[h,c===i&&(0,e.createComponentVNode)(2,t.Icon,{name:u?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},24635:function(A,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function B(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return B}(),f=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.mulebot,l=m.bots;return l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return d("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(I,k){var N=(0,a.useBackend)(k),d=N.act,c=N.data,m=c.mulebot,l=m.botstatus,u=m.active,s=l.mode,i=l.loca,h=l.load,C=l.powr,v=l.dest,p=l.home,g=l.retn,V=l.pick,S;switch(s){case 0:S="Ready";break;case 1:S="Loading/Unloading";break;case 2:case 12:S="Navigating to delivery location";break;case 3:S="Navigating to Home";break;case 4:S="Waiting for clear path";break;case 5:case 6:S="Calculating navigation path";break;case 7:S="Unable to locate destination";break;default:S=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function y(){return d("target")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function y(){return d("unload")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function y(){return d("set_pickup_type",{autopick:V?0:1})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function y(){return d("set_auto_return",{autoret:g?0:1})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function y(){return d("stop")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function y(){return d("start")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function y(){return d("home")}return y}()})]})]})]})}},23734:function(A,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function l(u,s){var i=(0,t.useBackend)(s),h=i.act,C=i.data,v=C.logged_in,p=C.owner_name,g=C.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:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,B)]})],4):(0,e.createComponentVNode)(2,d)}return l}(),b=function(u,s){var i=(0,t.useBackend)(s),h=i.data,C=h.is_premium,v=(0,t.useLocalState)(s,"tabIndex",1),p=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return g(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return 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:p===3,onClick:function(){function V(){return g(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!C&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return g(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},B=function(u,s){var i=(0,t.useLocalState)(s,"tabIndex",1),h=i[0],C=(0,t.useBackend)(s),v=C.data,p=v.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(h){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,N);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},I=function(u,s){var i,h=(0,t.useBackend)(s),C=h.act,v=h.data,p=v.requests,g=v.available_accounts,V=v.money,S=(0,t.useLocalState)(s,"selectedAccount"),y=S[0],L=S[1],w=(0,t.useLocalState)(s,"transferAmount"),T=w[0],x=w[1],M=(0,t.useLocalState)(s,"searchText",""),O=M[0],D=M[1],E=[];return g.map(function(P){return E[P.name]=P.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 P(R,j){return D(j)}return P}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(O,function(P){return P.name})).map(function(P){return P.name}),selected:(i=g.filter(function(P){return P.UID===y})[0])==null?void 0:i.name,onSelected:function(){function P(R){return L(E[R])}return P}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function P(R,j){return x(j)}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},17617:function(A,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** + */var b=r.goonstation_PTL=function(){function g(d,c){var m=(0,a.useBackend)(c),i=m.data,u=i.total_earnings,s=i.total_energy,l=i.name,h=l===void 0?"Power Transmission Laser":l;return(0,e.createComponentVNode)(2,f.Window,{title:"Power Transmission Laser",width:"310",height:"485",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Earned Credits : ",u?(0,o.formatMoney)(u):0]}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:!0,children:["Energy Sold : ",s?(0,o.formatSiUnit)(s,0,"J"):"0 J"]})]})})}return g}(),B=function(d,c){var m=(0,a.useBackend)(c),i=m.data,u=i.max_capacity,s=i.held_power,l=i.input_total,h=i.max_grid_load;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reserve energy",children:s?(0,o.formatSiUnit)(s,0,"J"):"0 J"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",mb:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:s/u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Grid Saturation"})}),(0,e.createComponentVNode)(2,t.ProgressBar,{mt:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:Math.min(l,u-s)/h})]})},I=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.input_total,l=u.accepting_power,h=u.sucking_power,C=u.input_number,v=u.power_format;return(0,e.createComponentVNode)(2,t.Section,{title:"Input Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Circuit",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:l?"green":"red",onClick:function(){function p(){return i("toggle_input")}return p}(),children:l?"Enabled":"Disabled"}),children:(0,e.createComponentVNode)(2,t.Box,{color:h&&"good"||l&&"average"||"bad",children:h&&"Online"||l&&"Idle"||"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s?(0,o.formatPower)(s):"0 W"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5em",children:[(0,e.createComponentVNode)(2,t.NumberInput,{mr:"0.5em",animated:!0,size:1.25,inline:!0,step:1,stepPixelSize:2,minValue:0,maxValue:999,value:C,onChange:function(){function p(N,V){return i("set_input",{set_input:V})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{selected:v===1,onClick:function(){function p(){return i("inputW")}return p}(),children:"W"}),(0,e.createComponentVNode)(2,t.Button,{selected:v===Math.pow(10,3),onClick:function(){function p(){return i("inputKW")}return p}(),children:"KW"}),(0,e.createComponentVNode)(2,t.Button,{selected:v===Math.pow(10,6),onClick:function(){function p(){return i("inputMW")}return p}(),children:"MW"}),(0,e.createComponentVNode)(2,t.Button,{selected:v===Math.pow(10,9),onClick:function(){function p(){return i("inputGW")}return p}(),children:"GW"})]})]})},k=function(d,c){var m=(0,a.useBackend)(c),i=m.act,u=m.data,s=u.output_total,l=u.firing,h=u.accepting_power,C=u.output_number,v=u.output_multiplier,p=u.target,N=u.held_power;return(0,e.createComponentVNode)(2,t.Section,{title:"Output Controls",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Laser Circuit",buttons:(0,e.createComponentVNode)(2,t.Stack,{Horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"crosshairs",color:p===""?"green":"red",onClick:function(){function V(){return i("target")}return V}(),children:p}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:l?"green":"red",disabled:!l&&Nu,onClick:function(){function S(){return k("purchaseSoftware",{key:V.key})}return S}()},V.key)}),c.filter(function(V){return!N[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function S(){return k("startSoftware",{software_key:V.key})}return S}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function S(){return k("setToggle",{toggle_key:V.key})}return S}()},V.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===l,onClick:function(){function S(){return k("setEmotion",{emotion:V.id})}return S}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===C,onClick:function(){function S(){return k("setSpeechStyle",{speech_state:V.name})}return S}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function S(){return k("setChassis",{chassis_to_change:V.icon})}return S}()},V.id)})})]})})}return f}()},2983:function(A,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:g.app_data})}return f}()},40758:function(A,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(A,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data,d=g.app_data.active_convo;return d?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:g.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:g.app_data})}return f}()},50775:function(A,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.app_data,m=c.minFrequency,i=c.maxFrequency,u=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:u/10,format:function(){function l(h){return(0,t.toFixed)(h,1)}return l}(),onChange:function(){function l(h,C){return g("freq",{freq:C})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return g("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return g("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(A,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(A,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:g.app_data})}return f}()},1428:function(A,r,n){"use strict";r.__esModule=!0,r.pda_alarm_button=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_alarm_button=function(){function B(I,k){var g=(0,t.useBackend)(k),d=g.act,c=g.data,m=c.is_home,i=c.last_response;return m?(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:["\u0414\u0430\u043D\u043D\u0430\u044F \u0442\u0440\u0435\u0432\u043E\u0436\u043D\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0430 \u043F\u0440\u0435\u0434\u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0430 \u0434\u043B\u044F ",(0,e.createVNode)(1,"b",null,"\u044D\u043A\u0441\u0442\u0440\u0435\u043D\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430",16),". \u0415\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043A \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044E \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u043E\u0432 \u0441\u043B\u0443\u0436\u0431\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u043E \u0432\u0430\u0448\u0435\u043C \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E\u043C \u043C\u0435\u0441\u0442\u043E\u043D\u0430\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0438."]}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function u(){return d("submit")}return u}(),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!1,align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",size:2,my:1,mx:0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{fontSize:2,bold:!0,children:"SECURITY"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",size:2,my:1,mx:0})})]})})})]}):(0,e.createComponentVNode)(2,b,{title:i.title,text:i.text,success:i.success,acts:i.acts})}return B}(),b=function(I,k){var g=(0,t.useBackend)(k),d=g.act,c=I.title,m=I.text,i=I.success,u=I.acts;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:i?"check-circle":"times-circle",color:i?"green":"red",mr:1}),c]}),(0,e.createComponentVNode)(2,o.Box,{children:m}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:u.map(function(s,l){return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{width:"100%",textAlign:"center",onClick:function(){function h(){return d(s)}return h}(),children:(0,a.capitalize)(s)})},l)})})})]})}},78532:function(A,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},2395:function(A,r,n){"use strict";r.__esModule=!0,r.pda_games=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(1331),f=r.pda_games=function(){function b(B,I){var k=(0,a.useBackend)(I),g=k.act,d=k.data,c=d.games,m=function(){function i(u){switch(u){case"Minesweeper":return(0,e.createComponentVNode)(2,o.IconStack,{children:[(0,e.createComponentVNode)(2,o.Icon,{ml:"0",mt:"10px",name:"flag",size:"6",color:"gray",rotation:30}),(0,e.createComponentVNode)(2,o.Icon,{ml:"9px",mt:"23px",name:"bomb",size:"3",color:"black"})]});default:return(0,e.createComponentVNode)(2,o.Icon,{ml:"16px",mt:"10px",name:"gamepad",size:"6"})}}return i}();return(0,e.createComponentVNode)(2,t.Box,{children:c.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{width:"33%",textAlign:"center",translucent:!0,onClick:function(){function u(){return g("play",{id:i.id})}return u}(),children:[m(i.name),(0,e.createComponentVNode)(2,t.Box,{children:i.name})]},i.name)})})}return b}()},40253:function(A,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data,d=g.janitor,c=d.user_loc,m=d.mops,i=d.buckets,u=d.cleanbots,s=d.carts,l=d.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(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.direction_from_user,")"]},h)})})]})}return f}()},58293:function(A,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(B,I){var k=(0,t.useBackend)(I),g=k.act,d=k.data,c=d.owner,m=d.ownjob,i=d.idInserted,u=d.categories,s=d.pai,l=d.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 h(){return g("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(h){var C=d.apps[h];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:C.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in l?v.notify_icon:v.icon,iconSpin:v.uid in l,color:v.color||v.uid in l?"red":"transparent",content:v.name,onClick:function(){function p(){return g("StartProgram",{program:v.uid})}return p}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return g("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return g("pai",{option:2})}return h}()})]})})]})}return b}()},58059:function(A,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.act,g=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(A,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,B){var I=(0,a.useBackend)(B),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(A,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(g,d){var c=(0,t.useBackend)(d),m=c.act,i=c.data,u=i.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:i}):(0,e.createComponentVNode)(2,B,{data:i})}return k}(),b=r.ActiveConversation=function(){function k(g,d){var c=(0,t.useBackend)(d),m=c.act,i=g.data,u=i.convo_name,s=i.convo_job,l=i.messages,h=i.active_convo,C=(0,t.useLocalState)(d,"clipboardMode",!1),v=C[0],p=C[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(l).map(function(V,S){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},S)})});return v&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(l).map(function(V,S){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},S)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),N]})}return k}(),B=r.MessengerList=function(){function k(g,d){var c=(0,t.useBackend)(d),m=c.act,i=g.data,u=i.convopdas,s=i.pdas,l=i.charges,h=i.silent,C=i.toff,v=i.ringtone_list,p=i.ringtone,N=(0,t.useLocalState)(d,"searchTerm",""),V=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function y(){return m("Toggle Ringer")}return y}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function y(){return m("Toggle Messenger")}return y}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function y(){return m("Clear",{option:"All"})}return y}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function y(){return m("Ringtone")}return y}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(v),onSelected:function(){function y(L){return m("Available_Ringtones",{selected_ringtone:L})}return y}()})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(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:[l," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function y(L,w){S(w)}return y}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,I,{title:"Current Conversations",data:i,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,I,{title:"Other PDAs",pdas:s,msgAct:"Message",data:i,searchTerm:V})]})}return k}(),I=function(g,d){var c=(0,t.useBackend)(d),m=c.act,i=g.data,u=g.pdas,s=g.title,l=g.msgAct,h=g.searchTerm,C=i.charges,v=i.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(h.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function N(){return m(l,{target:p.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&v.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:N.uid,target:p.uid})}return V}()},N.uid)})})]},p.uid)})})}},90382:function(A,r,n){"use strict";r.__esModule=!0,r.pda_minesweeper=r.MineSweeperLeaderboard=r.MineSweeperGame=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_minesweeper=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=(0,a.useLocalState)(g,"window","Game"),u=i[0],s=i[1],l={Game:"Leaderboard",Leaderboard:"Game"};return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:u==="Game"?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,fontSize:2,lineHeight:1.75,icon:u==="Game"?"book":"gamepad",onClick:function(){function h(){return s(l[u])}return h}(),children:l[u]})})]})}return I}(),f=r.MineSweeperGame=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.matrix,u=m.flags,s=m.bombs,l={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"},h=function(){function C(v,p,N){c("Square",{X:v,Y:p,mode:N})}return C}();return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:Object.keys(i).map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(i[C]).map(function(v){return(0,e.createComponentVNode)(2,t.Button,{m:.25,height:2,width:2,className:i[C][v].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:i[C][v].open?i[C][v].bomb?"bomb":"":i[C][v].flag?"flag":"",textColor:i[C][v].open?i[C][v].bomb?"black":l[i[C][v].around]:i[C][v].flag?"red":"gray",onClick:function(){function p(N){return h(C,v,"bomb")}return p}(),onContextMenu:function(){function p(N){event.preventDefault(),h(C,v,"flag")}return p}(),children:i[C][v].open&&!i[C][v].bomb&&i[C][v].around?i[C][v].around:" "},v)})},C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,className:"Minesweeper__infobox",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,textAlign:"left",pt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bomb",color:"gray"})," : ",s]}),(0,e.createComponentVNode)(2,t.Stack.Divider),(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flag",color:"red"})," : ",u]})]})})]})}return I}(),b=r.MineSweeperLeaderboard=function(){function I(k,g){var d=(0,a.useBackend)(g),c=d.act,m=d.data,i=m.leaderboard,u=(0,a.useLocalState)(g,"sortId","time"),s=u[0],l=u[1],h=(0,a.useLocalState)(g,"sortOrder",!1),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Table,{className:"Minesweeper__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Nick"}),(0,e.createComponentVNode)(2,B,{id:"time",children:"Time"})]}),i&&i.sort(function(p,N){var V=C?1:-1;return p[s].localeCompare(N[s])*V}).map(function(p,N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.time})]},N)})]})}return I}(),B=function(k,g){var d=(0,a.useLocalState)(g,"sortId","time"),c=d[0],m=d[1],i=(0,a.useLocalState)(g,"sortOrder",!1),u=i[0],s=i[1],l=k.id,h=k.children;return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",onClick:function(){function C(){c===l?s(!u):(m(l),s(!0))}return C}(),children:[h,c===l&&(0,e.createComponentVNode)(2,t.Icon,{name:u?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},24635:function(A,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function B(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return B}(),f=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.mulebot,i=m.bots;return i.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return d("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(I,k){var g=(0,a.useBackend)(k),d=g.act,c=g.data,m=c.mulebot,i=m.botstatus,u=m.active,s=i.mode,l=i.loca,h=i.load,C=i.powr,v=i.dest,p=i.home,N=i.retn,V=i.pick,S;switch(s){case 0:S="Ready";break;case 1:S="Loading/Unloading";break;case 2:case 12:S="Navigating to delivery location";break;case 3:S="Navigating to Home";break;case 4:S="Waiting for clear path";break;case 5:case 6:S="Calculating navigation path";break;case 7:S="Unable to locate destination";break;default:S=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function y(){return d("target")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function y(){return d("unload")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function y(){return d("set_pickup_type",{autopick:V?0:1})}return y}()})}),(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 y(){return d("set_auto_return",{autoret:N?0:1})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function y(){return d("stop")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function y(){return d("start")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function y(){return d("home")}return y}()})]})]})]})}},23734:function(A,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function i(u,s){var l=(0,t.useBackend)(s),h=l.act,C=l.data,v=C.logged_in,p=C.owner_name,N=C.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:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",N]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,B)]})],4):(0,e.createComponentVNode)(2,d)}return i}(),b=function(u,s){var l=(0,t.useBackend)(s),h=l.data,C=h.is_premium,v=(0,t.useLocalState)(s,"tabIndex",1),p=v[0],N=v[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return N(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return N(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return N(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!C&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return N(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},B=function(u,s){var l=(0,t.useLocalState)(s,"tabIndex",1),h=l[0],C=(0,t.useBackend)(s),v=C.data,p=v.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(h){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,g);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},I=function(u,s){var l,h=(0,t.useBackend)(s),C=h.act,v=h.data,p=v.requests,N=v.available_accounts,V=v.money,S=(0,t.useLocalState)(s,"selectedAccount"),y=S[0],L=S[1],w=(0,t.useLocalState)(s,"transferAmount"),T=w[0],x=w[1],M=(0,t.useLocalState)(s,"searchText",""),P=M[0],D=M[1],E=[];return N.map(function(O){return E[O.name]=O.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 O(R,j){return D(j)}return O}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(P,function(O){return O.name})).map(function(O){return O.name}),selected:(l=N.filter(function(O){return O.UID===y})[0])==null?void 0:l.name,onSelected:function(){function O(R){return L(E[R])}return O}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function O(R,j){return x(j)}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},17617:function(A,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function B(N,d){if(N==null)return{};var c={};for(var m in N)if({}.hasOwnProperty.call(N,m)){if(d.includes(m))continue;c[m]=N[m]}return c}var I=r.Layout=function(){function N(d){var c=d.className,m=d.theme,l=m===void 0?"nanotrasen":m,u=d.children,s=B(d,f);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return N}(),k=function(d){var c=d.className,m=d.scrollable,l=d.children,u=B(d,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(u)]),l,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function N(d){return(0,o.addScrollableNode)(d)}return N}(),onComponentWillUnmount:function(){function N(d){return(0,o.removeScrollableNode)(d)}return N}()},I.Content=k},96945:function(A,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(99851),b=n(17617),B=["theme","children","className"],I=["className","fitted","children"];/** + */function B(g,d){if(g==null)return{};var c={};for(var m in g)if({}.hasOwnProperty.call(g,m)){if(d.includes(m))continue;c[m]=g[m]}return c}var I=r.Layout=function(){function g(d){var c=d.className,m=d.theme,i=m===void 0?"nanotrasen":m,u=d.children,s=B(d,f);return document.documentElement.className="theme-"+i,(0,e.createVNode)(1,"div","theme-"+i,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return g}(),k=function(d){var c=d.className,m=d.scrollable,i=d.children,u=B(d,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(u)]),i,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function g(d){return(0,o.addScrollableNode)(d)}return g}(),onComponentWillUnmount:function(){function g(d){return(0,o.removeScrollableNode)(d)}return g}()},I.Content=k},96945:function(A,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(99851),b=n(17617),B=["theme","children","className"],I=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,m){if(c==null)return{};var l={};for(var u in c)if({}.hasOwnProperty.call(c,u)){if(m.includes(u))continue;l[u]=c[u]}return l}var N=r.Pane=function(){function c(m,l){var u=m.theme,s=m.children,i=m.className,h=k(m,B),C=(0,t.useBackend)(l),v=C.suspended,p=(0,f.useDebug)(l),g=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",i]),theme:u},h,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!v&&s})})))}return c}(),d=function(m){var l=m.className,u=m.fitted,s=m.children,i=k(m,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},i,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};N.Content=d},34827:function(A,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),f=n(72253),b=n(36036),B=n(76910),I=n(99851),k=n(77384),N=n(35421),d=n(9394),c=n(17617),m=["className","fitted","children"];function l(V,S){if(V==null)return{};var y={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(S.includes(L))continue;y[L]=V[L]}return y}function u(V,S){V.prototype=Object.create(S.prototype),V.prototype.constructor=V,s(V,S)}function s(V,S){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,L){return y.__proto__=L,y},s(V,S)}/** + */function k(c,m){if(c==null)return{};var i={};for(var u in c)if({}.hasOwnProperty.call(c,u)){if(m.includes(u))continue;i[u]=c[u]}return i}var g=r.Pane=function(){function c(m,i){var u=m.theme,s=m.children,l=m.className,h=k(m,B),C=(0,t.useBackend)(i),v=C.suspended,p=(0,f.useDebug)(i),N=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:u},h,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!v&&s})})))}return c}(),d=function(m){var i=m.className,u=m.fitted,s=m.children,l=k(m,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},l,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};g.Content=d},34827:function(A,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),f=n(72253),b=n(36036),B=n(76910),I=n(99851),k=n(77384),g=n(35421),d=n(9394),c=n(17617),m=["className","fitted","children"];function i(V,S){if(V==null)return{};var y={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(S.includes(L))continue;y[L]=V[L]}return y}function u(V,S){V.prototype=Object.create(S.prototype),V.prototype.constructor=V,s(V,S)}function s(V,S){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,L){return y.__proto__=L,y},s(V,S)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var i=(0,d.createLogger)("Window"),h=[400,600],C=r.Window=function(V){function S(){return V.apply(this,arguments)||this}u(S,V);var y=S.prototype;return y.componentDidMount=function(){function L(){var w=(0,f.useBackend)(this.context),T=w.suspended;T||(i.log("mounting"),this.updateGeometry())}return L}(),y.componentDidUpdate=function(){function L(w){var T=this.props.width!==w.width||this.props.height!==w.height;T&&this.updateGeometry()}return L}(),y.updateGeometry=function(){function L(){var w,T=(0,f.useBackend)(this.context),x=T.config,M=Object.assign({size:h},x.window);this.props.width&&this.props.height&&(M.size=[this.props.width,this.props.height]),(w=x.window)!=null&&w.key&&(0,N.setWindowKey)(x.window.key),(0,N.recallWindowGeometry)(M)}return L}(),y.render=function(){function L(){var w,T=this.props,x=T.theme,M=T.title,O=T.children,D=(0,f.useBackend)(this.context),E=D.config,P=D.suspended,R=(0,I.useDebug)(this.context),j=R.debugLayout,F=(0,t.useDispatch)(this.context),W=(w=E.window)==null?void 0:w.fancy,z=E.user&&(E.user.observer?E.status2?m-2:0),u=2;u=o){var s=[c].concat(l).map(function(i){return typeof i=="string"?i:i instanceof Error?i.stack||String(i):JSON.stringify(i)}).filter(function(i){return i}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},I=r.createLogger=function(){function N(d){return{debug:function(){function c(){for(var m=arguments.length,l=new Array(m),u=0;u2?m-2:0),u=2;u=o){var s=[c].concat(i).map(function(l){return typeof l=="string"?l:l instanceof Error?l.stack||String(l):JSON.stringify(l)}).filter(function(l){return l}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},I=r.createLogger=function(){function g(d){return{debug:function(){function c(){for(var m=arguments.length,i=new Array(m),u=0;u0;){var p=C.shift(),g=p(h);try{v=b(g)}catch(S){if(S.code!=="MODULE_NOT_FOUND")throw S}}if(!v)return B("notFound",h);var V=v[h];return V||B("missingExport",h)}return d}()},72178:function(A,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),f=n(72253),b=n(99851),B=n(9394);function I(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,h){return i.__proto__=h,i},k(u,s)}/** + */var b=n(32054),B=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)]})})}},I=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},k=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},g=r.getRoutedComponent=function(){function d(c){var m=c.getState(),i=(0,a.selectBackend)(m),u=i.suspended,s=i.config;if(u)return I;if(s.refreshing)return k;if(0)var l;for(var h=s==null?void 0:s.interface,C=[function(S){return"./"+S+".tsx"},function(S){return"./"+S+".js"},function(S){return"./"+S+"/index.tsx"},function(S){return"./"+S+"/index.js"}],v;!v&&C.length>0;){var p=C.shift(),N=p(h);try{v=b(N)}catch(S){if(S.code!=="MODULE_NOT_FOUND")throw S}}if(!v)return B("notFound",h);var V=v[h];return V||B("missingExport",h)}return d}()},72178:function(A,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),f=n(72253),b=n(99851),B=n(9394);function I(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,h){return l.__proto__=h,l},k(u,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var N=(0,B.createLogger)("store"),d=r.configureStore=function(){function u(s){var i,h;s===void 0&&(s={});var C=s,v=C.sideEffects,p=v===void 0?!0:v,g=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:f.backendReducer}),s.reducer]),V=p?[].concat(((i=s.middleware)==null?void 0:i.pre)||[],[o.assetMiddleware,f.backendMiddleware],((h=s.middleware)==null?void 0:h.post)||[]):[],S=a.applyMiddleware.apply(void 0,V),y=(0,a.createStore)(g,S);return window.__store__=y,window.__augmentStack__=m(y),y}return u}(),c=function(s){return function(i){return function(h){var C=h.type,v=h.payload;return C==="update"||C==="backend/update"?N.debug("action",{type:C}):N.debug("action",h),i(h)}}},m=function(s){return function(i,h){var C,v;h?typeof h=="object"&&!h.stack&&(h.stack=i):(h=new Error(i.split("\n")[0]),h.stack=i),N.log("FatalError:",h);var p=s.getState(),g=p==null||(C=p.backend)==null?void 0:C.config,V=i;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:g==null||(v=g.client)==null?void 0:v.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),V}},l=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}I(s,u);var i=s.prototype;return i.getChildContext=function(){function h(){var C=this.props.store;return{store:C}}return h}(),i.render=function(){function h(){return this.props.children}return h}(),s}(t.Component)},51364:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** +*/var g=(0,B.createLogger)("store"),d=r.configureStore=function(){function u(s){var l,h;s===void 0&&(s={});var C=s,v=C.sideEffects,p=v===void 0?!0:v,N=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:f.backendReducer}),s.reducer]),V=p?[].concat(((l=s.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,f.backendMiddleware],((h=s.middleware)==null?void 0:h.post)||[]):[],S=a.applyMiddleware.apply(void 0,V),y=(0,a.createStore)(N,S);return window.__store__=y,window.__augmentStack__=m(y),y}return u}(),c=function(s){return function(l){return function(h){var C=h.type,v=h.payload;return C==="update"||C==="backend/update"?g.debug("action",{type:C}):g.debug("action",h),l(h)}}},m=function(s){return function(l,h){var C,v;h?typeof h=="object"&&!h.stack&&(h.stack=l):(h=new Error(l.split("\n")[0]),h.stack=l),g.log("FatalError:",h);var p=s.getState(),N=p==null||(C=p.backend)==null?void 0:C.config,V=l;return V+="\nUser Agent: "+navigator.userAgent,V+="\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}),V}},i=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}I(s,u);var l=s.prototype;return l.getChildContext=function(){function h(){var C=this.props.store;return{store:C}}return h}(),l.render=function(){function h(){return this.props.children}return h}(),s}(t.Component)},51364:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -295,11 +295,11 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Button",render:function(){function I(){return(0,e.createComponentVNode)(2,B)}return I}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],B=function(k,N){var d=(0,a.useLocalState)(N,"translucent",!1),c=d[0],m=d[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c,onClick:function(){function l(){return m(!c)}return l}(),content:"Translucent"}),children:b.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:l,children:l},l)})})],4)}},51956:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** + */var o=r.meta={title:"Button",render:function(){function I(){return(0,e.createComponentVNode)(2,B)}return I}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],B=function(k,g){var d=(0,a.useLocalState)(g,"translucent",!1),c=d[0],m=d[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c,onClick:function(){function i(){return m(!c)}return i}(),content:"Translucent"}),children:b.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:i,content:i},i)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:i,content:i},i)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:i,children:i},i)})})],4)}},51956:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"ByondUi",render:function(){function B(){return(0,e.createComponentVNode)(2,b)}return B}()},b=function(I,k){var N=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),d=N[0],c=N[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var l=new Function("return ("+d+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(l){return c(l.target.value)}return m}(),children:d})})],4)}},17466:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var f=r.meta={title:"ByondUi",render:function(){function B(){return(0,e.createComponentVNode)(2,b)}return B}()},b=function(I,k){var g=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),d=g[0],c=g[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var i=new Function("return ("+d+")")();i&&i.then?(o.logger.log("Promise"),i.then(o.logger.log)):o.logger.log(i)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(i){return c(i.target.value)}return m}(),children:d})})],4)}},17466:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -307,19 +307,19 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"fs_grow",1),N=k[0],d=k[1],c=(0,a.useLocalState)(I,"fs_direction","column"),m=c[0],l=c[1],u=(0,a.useLocalState)(I,"fs_fill",!0),s=u[0],i=u[1],h=(0,a.useLocalState)(I,"fs_title",!0),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(+!N)}return p}(),children:"Flex.Item grow={"+N+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return i(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:C,onClick:function(){function p(){return v(!C)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:N,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:N,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"fs_grow",1),g=k[0],d=k[1],c=(0,a.useLocalState)(I,"fs_direction","column"),m=c[0],i=c[1],u=(0,a.useLocalState)(I,"fs_fill",!0),s=u[0],l=u[1],h=(0,a.useLocalState)(I,"fs_title",!0),C=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return i(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(+!g)}return p}(),children:"Flex.Item grow={"+g+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:C,onClick:function(){function p(){return v(!C)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:g,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:g,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function I(){return(0,e.createComponentVNode)(2,B)}return I}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],B=function(k,N){var d=(0,a.useLocalState)(N,"fluid1",!0),c=d[0],m=d[1],l=(0,a.useLocalState)(N,"fluid2",!1),u=l[0],s=l[1],i=(0,a.useLocalState)(N,"fluid3",!1),h=i[0],C=i[1],v=(0,a.useLocalState)(N,"disabled",!1),p=v[0],g=v[1],V=(0,a.useLocalState)(N,"selected",!1),S=V[0],y=V[1],L=(0,a.useLocalState)(N,"addImage",!1),w=L[0],T=L[1],x=(0,a.useLocalState)(N,"base64",""),M=x[0],O=x[1],D=(0,a.useLocalState)(N,"title","Image Button"),E=D[0],P=D[1],R=(0,a.useLocalState)(N,"content","You can put anything in there"),j=R[0],F=R[1],W=(0,a.useLocalState)(N,"imageSize",64),z=W[0],K=W[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function G(J,Q){return O(Q)}return G}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function G(J,Q){return P(Q)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:j,onInput:function(){function G(J,Q){return F(Q)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:z,minValue:0,maxValue:256,step:1,onChange:function(){function G(J,Q){return K(Q)}return G}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,onClick:function(){function G(){return m(!c)}return G}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,onClick:function(){function G(){return g(!p)}return G}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:S,onClick:function(){function G(){return y(!S)}return G}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!c&&0,fluid:c,base64:M,imageSize:z,title:E,tooltip:!c&&j,disabled:p,selected:S,buttonsAlt:c,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:c,compact:!c,color:!c&&"transparent",selected:w,onClick:function(){function G(){return T(!w)}return G}(),children:"Add Image"}),children:j})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,onClick:function(){function G(){return s(!u)}return G}(),children:"Fluid"}),children:b.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:u,color:G,imageSize:u?24:48,children:G},G)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:h,onClick:function(){function G(){return C(!h)}return G}(),children:"Fluid"}),children:f.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:h,color:G,imageSize:h?24:48,children:G},G)})})],4)}},21394:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"ImageButton",render:function(){function I(){return(0,e.createComponentVNode)(2,B)}return I}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],B=function(k,g){var d=(0,a.useLocalState)(g,"fluid1",!0),c=d[0],m=d[1],i=(0,a.useLocalState)(g,"fluid2",!1),u=i[0],s=i[1],l=(0,a.useLocalState)(g,"fluid3",!1),h=l[0],C=l[1],v=(0,a.useLocalState)(g,"disabled",!1),p=v[0],N=v[1],V=(0,a.useLocalState)(g,"selected",!1),S=V[0],y=V[1],L=(0,a.useLocalState)(g,"addImage",!1),w=L[0],T=L[1],x=(0,a.useLocalState)(g,"base64",""),M=x[0],P=x[1],D=(0,a.useLocalState)(g,"title","Image Button"),E=D[0],O=D[1],R=(0,a.useLocalState)(g,"content","You can put anything in there"),j=R[0],F=R[1],W=(0,a.useLocalState)(g,"imageSize",64),z=W[0],K=W[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function G(J,Q){return P(Q)}return G}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function G(J,Q){return O(Q)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:j,onInput:function(){function G(J,Q){return F(Q)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:z,minValue:0,maxValue:256,step:1,onChange:function(){function G(J,Q){return K(Q)}return G}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,onClick:function(){function G(){return m(!c)}return G}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,onClick:function(){function G(){return N(!p)}return G}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:S,onClick:function(){function G(){return y(!S)}return G}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!c&&0,fluid:c,base64:M,imageSize:z,title:E,tooltip:!c&&j,disabled:p,selected:S,buttonsAlt:c,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:c,compact:!c,color:!c&&"transparent",selected:w,onClick:function(){function G(){return T(!w)}return G}(),children:"Add Image"}),children:j})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,onClick:function(){function G(){return s(!u)}return G}(),children:"Fluid"}),children:b.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:u,color:G,imageSize:u?24:48,children:G},G)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:h,onClick:function(){function G(){return C(!h)}return G}(),children:"Fluid"}),children:f.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:h,color:G,imageSize:h?24:48,children:G},G)})})],4)}},21394:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"number",0),N=k[0],d=k[1],c=(0,a.useLocalState)(I,"text","Sample text"),m=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function u(s,i){return l(i)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,i){return l(i)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:N,minValue:-100,maxValue:100,onChange:function(){function u(s,i){return d(i)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:N,minValue:-100,maxValue:100,onDrag:function(){function u(s,i){return d(i)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:N,minValue:-100,maxValue:100,onDrag:function(){function u(s,i){return d(i)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:N,minValue:-100,maxValue:100,onDrag:function(){function u(s,i){return d(i)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:N,minValue:-100,maxValue:100,onDrag:function(){function u(s,i){return d(i)}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:N,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,i){return d(i)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},43932:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"number",0),g=k[0],d=k[1],c=(0,a.useLocalState)(I,"text","Sample text"),m=c[0],i=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function u(s,l){return i(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,l){return i(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onChange:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return d(l)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return d(l)}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:g,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,l){return d(l)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},43932:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"progress",.5),N=k[0],d=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:N,children:["Value: ",Number(N).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return d(N-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return d(N+.1)}return c}()})]})]})}},77766:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"progress",.5),g=k[0],d=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:g,children:["Value: ",Number(g).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return d(g-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return d(g+.1)}return c}()})]})]})}},77766:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -327,15 +327,15 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"Storage",render:function(){function B(){return(0,e.createComponentVNode)(2,b)}return B}()},b=function(I,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function N(){localStorage.clear(),a.storage.clear()}return N}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var f=r.meta={title:"Storage",render:function(){function B(){return(0,e.createComponentVNode)(2,b)}return B}()},b=function(I,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function g(){localStorage.clear(),a.storage.clear()}return g}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function B(){return(0,e.createComponentVNode)(2,b)}return B}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(I,k){var N=(0,a.useLocalState)(k,"tabIndex",0),d=N[0],c=N[1],m=(0,a.useLocalState)(k,"tabProps",{}),l=m[0],u=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function s(){return u(Object.assign({},l,{vertical:!l.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function s(){return u(Object.assign({},l,{leftSlot:!l.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function s(){return u(Object.assign({},l,{rightSlot:!l.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function s(){return u(Object.assign({},l,{icon:!l.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function s(){return u(Object.assign({},l,{fluid:!l.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function s(){return u(Object.assign({},l,{leftAligned:!l.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:f.map(function(s,i){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===d,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function h(){return c(i)}return h}(),children:s},i)})})})],4)}},53276:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Tabs",render:function(){function B(){return(0,e.createComponentVNode)(2,b)}return B}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(I,k){var g=(0,a.useLocalState)(k,"tabIndex",0),d=g[0],c=g[1],m=(0,a.useLocalState)(k,"tabProps",{}),i=m[0],u=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:i.vertical,onClick:function(){function s(){return u(Object.assign({},i,{vertical:!i.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:i.leftSlot,onClick:function(){function s(){return u(Object.assign({},i,{leftSlot:!i.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:i.rightSlot,onClick:function(){function s(){return u(Object.assign({},i,{rightSlot:!i.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:i.icon,onClick:function(){function s(){return u(Object.assign({},i,{icon:!i.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:i.fluid,onClick:function(){function s(){return u(Object.assign({},i,{fluid:!i.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:i.leftAligned,onClick:function(){function s(){return u(Object.assign({},i,{leftAligned:!i.leftAligned}))}return s}()})]}),(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(s,l){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===d,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 h(){return c(l)}return h}(),children:s},l)})})})],4)}},53276:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"kitchenSinkTheme"),N=k[0],d=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:N,onInput:function(){function c(m,l){return d(l)}return c}()})})})})}},28717:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(B,I){var k=(0,a.useLocalState)(I,"kitchenSinkTheme"),g=k[0],d=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:g,onInput:function(){function c(m,i){return d(i)}return c}()})})})})}},28717:function(A,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -343,12 +343,12 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(A,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=70752},59395:function(A,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_games.js":2395,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_minesweeper.js":90382,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=59395},32054:function(A,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AdminAntagMenu":23001,"./AdminAntagMenu.js":23001,"./AgentCard":39683,"./AgentCard.tsx":39683,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosGraphMonitor":57258,"./AtmosGraphMonitor.tsx":57258,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./AugmentMenu":92444,"./AugmentMenu.js":92444,"./Autolathe":59179,"./Autolathe.js":59179,"./Autolathe220":29943,"./Autolathe220.tsx":29943,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./CameraConsole220":39222,"./CameraConsole220.js":39222,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./Chameleon":36232,"./Chameleon.tsx":36232,"./ChangelogView":87331,"./ChangelogView.js":87331,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DecalPainter":76430,"./DecalPainter.js":76430,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EmotePanel":69784,"./EmotePanel.js":69784,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./Jukebox":52736,"./Jukebox.tsx":52736,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./ModpacksList":61468,"./ModpacksList.js":61468,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./Photocopier220":8340,"./Photocopier220.js":8340,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/AnalyzerMenu":68303,"./RndConsole/AnalyzerMenu.js":68303,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./Shop":17474,"./Shop.js":17474,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./SingularityMonitor":86013,"./SingularityMonitor.js":86013,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TTSSeedsExplorer":23190,"./TTSSeedsExplorer.tsx":23190,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./goonstation_PTL":95213,"./goonstation_PTL/":95213,"./goonstation_PTL/index":95213,"./goonstation_PTL/index.js":95213,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_games":2395,"./pda/pda_games.js":2395,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_minesweeper":90382,"./pda/pda_minesweeper.js":90382,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=32054},4085:function(A,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=4085},10320:function(A,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;A.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(A,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;A.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(A,r,n){"use strict";var e=n(45015),a=String,t=TypeError;A.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(A,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),A.exports=function(b){f[o][b]=!0}},35483:function(A,r,n){"use strict";var e=n(50233).charAt;A.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(A,r,n){"use strict";var e=n(21287),a=TypeError;A.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(A,r,n){"use strict";var e=n(77568),a=String,t=TypeError;A.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(A){"use strict";A.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(A,r,n){"use strict";var e=n(40033);A.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(A,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),B=n(2281),I=n(89393),k=n(37909),N=n(55938),d=n(73936),c=n(21287),m=n(36917),l=n(76649),u=n(24697),s=n(16738),i=n(5419),h=i.enforce,C=i.get,v=t.Int8Array,p=v&&v.prototype,g=t.Uint8ClampedArray,V=g&&g.prototype,S=v&&m(v),y=p&&m(p),L=Object.prototype,w=t.TypeError,T=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",O=e&&!!l&&B(t.opera)!=="Opera",D=!1,E,P,R,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},W=function(){function ie(pe){if(!f(pe))return!1;var te=B(pe);return te==="DataView"||b(j,te)||b(F,te)}return ie}(),z=function ie(pe){var te=m(pe);if(f(te)){var q=C(te);return q&&b(q,M)?q[M]:ie(te)}},K=function(pe){if(!f(pe))return!1;var te=B(pe);return b(j,te)||b(F,te)},G=function(pe){if(K(pe))return pe;throw new w("Target is not a typed array")},J=function(pe){if(o(pe)&&(!l||c(S,pe)))return pe;throw new w(I(pe)+" is not a typed array constructor")},Q=function(pe,te,q,ne){if(a){if(q)for(var le in j){var ee=t[le];if(ee&&b(ee.prototype,pe))try{delete ee.prototype[pe]}catch(re){try{ee.prototype[pe]=te}catch(oe){}}}(!y[pe]||q)&&N(y,pe,q?te:O&&p[pe]||te,ne)}},ue=function(pe,te,q){var ne,le;if(a){if(l){if(q){for(ne in j)if(le=t[ne],le&&b(le,pe))try{delete le[pe]}catch(ee){}}if(!S[pe]||q)try{return N(S,pe,q?te:O&&S[pe]||te)}catch(ee){}else return}for(ne in j)le=t[ne],le&&(!le[pe]||q)&&N(le,pe,te)}};for(E in j)P=t[E],R=P&&P.prototype,R?h(R)[M]=P:O=!1;for(E in F)P=t[E],R=P&&P.prototype,R&&(h(R)[M]=P);if((!O||!o(S)||S===Function.prototype)&&(S=function(){function ie(){throw new w("Incorrect invocation")}return ie}(),O))for(E in j)t[E]&&l(t[E],S);if((!O||!y||y===L)&&(y=S.prototype,O))for(E in j)t[E]&&l(t[E].prototype,y);if(O&&m(V)!==y&&l(V,y),a&&!b(y,T)){D=!0,d(y,T,{configurable:!0,get:function(){function ie(){return f(this)?this[x]:void 0}return ie}()});for(E in j)t[E]&&k(t[E],x,E)}A.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:D&&x,aTypedArray:G,aTypedArrayConstructor:J,exportTypedArrayMethod:Q,exportTypedArrayStaticMethod:ue,getTypedArrayConstructor:z,isView:W,isTypedArray:K,TypedArray:S,TypedArrayPrototype:y}},37336:function(A,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),B=n(73936),I=n(30145),k=n(40033),N=n(60077),d=n(61365),c=n(10188),m=n(43806),l=n(95867),u=n(91784),s=n(36917),i=n(76649),h=n(88471),C=n(54602),v=n(5781),p=n(5774),g=n(84925),V=n(5419),S=f.PROPER,y=f.CONFIGURABLE,L="ArrayBuffer",w="DataView",T="prototype",x="Wrong length",M="Wrong index",O=V.getterFor(L),D=V.getterFor(w),E=V.set,P=e[L],R=P,j=R&&R[T],F=e[w],W=F&&F[T],z=Object.prototype,K=e.Array,G=e.RangeError,J=a(h),Q=a([].reverse),ue=u.pack,ie=u.unpack,pe=function(Ve){return[Ve&255]},te=function(Ve){return[Ve&255,Ve>>8&255]},q=function(Ve){return[Ve&255,Ve>>8&255,Ve>>16&255,Ve>>24&255]},ne=function(Ve){return Ve[3]<<24|Ve[2]<<16|Ve[1]<<8|Ve[0]},le=function(Ve){return ue(l(Ve),23,4)},ee=function(Ve){return ue(Ve,52,8)},re=function(Ve,Be,be){B(Ve[T],Be,{configurable:!0,get:function(){function Le(){return be(this)[Be]}return Le}()})},oe=function(Ve,Be,be,Le){var we=D(Ve),xe=m(be),Re=!!Le;if(xe+Be>we.byteLength)throw new G(M);var He=we.bytes,ye=xe+we.byteOffset,de=C(He,ye,ye+Be);return Re?de:Q(de)},fe=function(Ve,Be,be,Le,we,xe){var Re=D(Ve),He=m(be),ye=Le(+we),de=!!xe;if(He+Be>Re.byteLength)throw new G(M);for(var Ce=Re.bytes,ke=He+Re.byteOffset,ge=0;gewe)throw new G("Wrong offset");if(be=be===void 0?we-xe:c(be),xe+be>we)throw new G(x);E(this,{type:w,buffer:Ve,byteLength:be,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=Ve,this.byteLength=be,this.byteOffset=xe)}return he}(),W=F[T],t&&(re(R,"byteLength",O),re(F,"buffer",D),re(F,"byteLength",D),re(F,"byteOffset",D)),I(W,{getInt8:function(){function he(Ve){return oe(this,1,Ve)[0]<<24>>24}return he}(),getUint8:function(){function he(Ve){return oe(this,1,Ve)[0]}return he}(),getInt16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return he}(),getUint16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return he}(),getInt32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))}return he}(),getUint32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))>>>0}return he}(),getFloat32:function(){function he(Ve){return ie(oe(this,4,Ve,arguments.length>1?arguments[1]:!1),23)}return he}(),getFloat64:function(){function he(Ve){return ie(oe(this,8,Ve,arguments.length>1?arguments[1]:!1),52)}return he}(),setInt8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setUint8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setInt16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setInt32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat32:function(){function he(Ve,Be){fe(this,4,Ve,le,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat64:function(){function he(Ve,Be){fe(this,8,Ve,ee,Be,arguments.length>2?arguments[2]:!1)}return he}()});else{var me=S&&P.name!==L;!k(function(){P(1)})||!k(function(){new P(-1)})||k(function(){return new P,new P(1.5),new P(NaN),P.length!==1||me&&!y})?(R=function(){function he(Ve){return N(this,j),v(new P(m(Ve)),this,R)}return he}(),R[T]=j,j.constructor=R,p(R,P)):me&&y&&b(P,"name",L),i&&s(W)!==z&&i(W,z);var Y=new F(new R(2)),ve=a(W.setInt8);Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),(Y.getInt8(0)||!Y.getInt8(1))&&I(W,{setInt8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}(),setUint8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}()},{unsafe:!0})}g(R,L),g(F,w),A.exports={ArrayBuffer:R,DataView:F}},71447:function(A,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;A.exports=[].copyWithin||function(){function b(B,I){var k=e(this),N=t(k),d=a(B,N),c=a(I,N),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?N:a(m,N))-c,N-d),u=1;for(c0;)c in k?k[d]=k[c]:o(k,d),d+=u,c+=u;return k}return b}()},88471:function(A,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);A.exports=function(){function o(f){for(var b=e(this),B=t(b),I=arguments.length,k=a(I>1?arguments[1]:void 0,B),N=I>2?arguments[2]:void 0,d=N===void 0?B:a(N,B);d>k;)b[k++]=f;return b}return o}()},35601:function(A,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");A.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(A,r,n){"use strict";var e=n(24760);A.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),B=new a(b);b>f;)B[f]=t[f++];return B}},73174:function(A,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),B=n(24760),I=n(60102),k=n(77455),N=n(59201),d=Array;A.exports=function(){function c(m){var l=t(m),u=b(this),s=arguments.length,i=s>1?arguments[1]:void 0,h=i!==void 0;h&&(i=e(i,s>2?arguments[2]:void 0));var C=N(l),v=0,p,g,V,S,y,L;if(C&&!(this===d&&f(C)))for(g=u?new this:[],S=k(l,C),y=S.next;!(V=a(y,S)).done;v++)L=h?o(S,i,[V.value,v],!0):V.value,I(g,v,L);else for(p=B(l),g=u?new this(p):d(p);p>v;v++)L=h?i(l[v],v):l[v],I(g,v,L);return g.length=v,g}return c}()},14211:function(A,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(B,I,k){var N=e(B),d=t(N);if(d===0)return!b&&-1;var c=a(k,d),m;if(b&&I!==I){for(;d>c;)if(m=N[c++],m!==m)return!0}else for(;d>c;c++)if((b||c in N)&&N[c]===I)return b||c||0;return!b&&-1}};A.exports={includes:o(!0),indexOf:o(!1)}},22603:function(A,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),B=a([].push),I=function(N){var d=N===1,c=N===2,m=N===3,l=N===4,u=N===6,s=N===7,i=N===5||u;return function(h,C,v,p){for(var g=o(h),V=t(g),S=f(V),y=e(C,v),L=0,w=p||b,T=d?w(h,S):c||s?w(h,0):void 0,x,M;S>L;L++)if((i||L in V)&&(x=V[L],M=y(x,L,g),N))if(d)T[L]=M;else if(M)switch(N){case 3:return!0;case 5:return x;case 6:return L;case 2:B(T,x)}else switch(N){case 4:return!1;case 7:B(T,x)}return u?-1:m||l?l:T}};A.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},1325:function(A,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,B=[].lastIndexOf,I=!!B&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),N=I||!k;A.exports=N?function(){function d(c){if(I)return e(B,this,arguments)||0;var m=a(this),l=o(m);if(l===0)return-1;var u=l-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=l+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return d}():B},44091:function(A,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");A.exports=function(f){return t>=51||!e(function(){var b=[],B=b.constructor={};return B[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(A,r,n){"use strict";var e=n(40033);A.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(A,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",B=function(k){return function(N,d,c,m){var l=a(N),u=t(l),s=o(l);if(e(d),s===0&&c<2)throw new f(b);var i=k?s-1:0,h=k?-1:1;if(c<2)for(;;){if(i in u){m=u[i],i+=h;break}if(i+=h,k?i<0:s<=i)throw new f(b)}for(;k?i>=0:s>i;i+=h)i in u&&(m=d(m,u[i],i,l));return m}};A.exports={left:B(!1),right:B(!0)}},13345:function(A,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();A.exports=f?function(b,B){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=B}:function(b,B){return b.length=B}},54602:function(A,r,n){"use strict";var e=n(67250);A.exports=e([].slice)},90274:function(A,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var B=f.length;if(B<8)for(var I=1,k,N;I0;)f[N]=f[--N];N!==I++&&(f[N]=k)}else for(var d=a(B/2),c=o(e(f,0,d),b),m=o(e(f,d),b),l=c.length,u=m.length,s=0,i=0;s1?arguments[1]:void 0),M;M=M?M.next:T.first;)for(x(M.value,M.key,this);M&&M.removed;)M=M.previous}return L}(),has:function(){function L(w){return!!y(this,w)}return L}()}),t(g,C?{get:function(){function L(w){var T=y(this,w);return T&&T.value}return L}(),set:function(){function L(w,T){return S(this,w===0?0:w,T)}return L}()}:{add:function(){function L(w){return S(this,w=w===0?0:w,w)}return L}()}),d&&a(g,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(i,h,C){var v=h+" Iterator",p=u(h),g=u(v);I(i,h,function(V,S){l(this,{type:v,target:V,state:p(V),kind:S,last:void 0})},function(){for(var V=g(this),S=V.kind,y=V.last;y&&y.removed;)y=y.previous;return!V.target||!(V.last=y=y?y.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(S==="keys"?y.key:S==="values"?y.value:[y.key,y.value],!1)},C?"entries":"values",!C,!0),N(h)}return s}()}},39895:function(A,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),B=n(77568),I=n(49450),k=n(22603),N=n(45299),d=n(5419),c=d.set,m=d.getterFor,l=k.find,u=k.findIndex,s=e([].splice),i=0,h=function(g){return g.frozen||(g.frozen=new C)},C=function(){this.entries=[]},v=function(g,V){return l(g.entries,function(S){return S[0]===V})};C.prototype={get:function(){function p(g){var V=v(this,g);if(V)return V[1]}return p}(),has:function(){function p(g){return!!v(this,g)}return p}(),set:function(){function p(g,V){var S=v(this,g);S?S[1]=V:this.entries.push([g,V])}return p}(),delete:function(){function p(g){var V=u(this.entries,function(S){return S[0]===g});return~V&&s(this.entries,V,1),!!~V}return p}()},A.exports={getConstructor:function(){function p(g,V,S,y){var L=g(function(M,O){o(M,w),c(M,{type:V,id:i++,frozen:void 0}),b(O)||I(O,M[y],{that:M,AS_ENTRIES:S})}),w=L.prototype,T=m(V),x=function(){function M(O,D,E){var P=T(O),R=t(f(D),!0);return R===!0?h(P).set(D,E):R[P.id]=E,O}return M}();return a(w,{delete:function(){function M(O){var D=T(this);if(!B(O))return!1;var E=t(O);return E===!0?h(D).delete(O):E&&N(E,D.id)&&delete E[D.id]}return M}(),has:function(){function M(O){var D=T(this);if(!B(O))return!1;var E=t(O);return E===!0?h(D).has(O):E&&N(E,D.id)}return M}()}),a(w,S?{get:function(){function M(O){var D=T(this);if(B(O)){var E=t(O);return E===!0?h(D).get(O):E?E[D.id]:void 0}}return M}(),set:function(){function M(O,D){return x(this,O,D)}return M}()}:{add:function(){function M(O){return x(this,O,!0)}return M}()}),L}return p}()}},45150:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),B=n(49450),I=n(60077),k=n(55747),N=n(42871),d=n(77568),c=n(40033),m=n(92490),l=n(84925),u=n(5781);A.exports=function(s,i,h){var C=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,p=C?"set":"add",g=a[s],V=g&&g.prototype,S=g,y={},L=function(P){var R=t(V[P]);f(V,P,P==="add"?function(){function j(F){return R(this,F===0?0:F),this}return j}():P==="delete"?function(j){return v&&!d(j)?!1:R(this,j===0?0:j)}:P==="get"?function(){function j(F){return v&&!d(F)?void 0:R(this,F===0?0:F)}return j}():P==="has"?function(){function j(F){return v&&!d(F)?!1:R(this,F===0?0:F)}return j}():function(){function j(F,W){return R(this,F===0?0:F,W),this}return j}())},w=o(s,!k(g)||!(v||V.forEach&&!c(function(){new g().entries().next()})));if(w)S=h.getConstructor(i,s,C,p),b.enable();else if(o(s,!0)){var T=new S,x=T[p](v?{}:-0,1)!==T,M=c(function(){T.has(1)}),O=m(function(E){new g(E)}),D=!v&&c(function(){for(var E=new g,P=5;P--;)E[p](P,P);return!E.has(-0)});O||(S=i(function(E,P){I(E,V);var R=u(new g,E,S);return N(P)||B(P,R[p],{that:R,AS_ENTRIES:C}),R}),S.prototype=V,V.constructor=S),(M||D)&&(L("delete"),L("has"),C&&L("get")),(D||x)&&L(p),v&&V.clear&&delete V.clear}return y[s]=S,e({global:!0,constructor:!0,forced:S!==g},y),l(S,s),v||h.setStrong(S,s,C),S}},5774:function(A,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);A.exports=function(f,b,B){for(var I=a(b),k=o.f,N=t.f,d=0;d"+N+""}},5959:function(A){"use strict";A.exports=function(r,n){return{value:r,done:n}}},37909:function(A,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);A.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(A){"use strict";A.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(A,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);A.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(A,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,B=Date.prototype,I=B.toISOString,k=e(B.getTime),N=e(B.getUTCDate),d=e(B.getUTCFullYear),c=e(B.getUTCHours),m=e(B.getUTCMilliseconds),l=e(B.getUTCMinutes),u=e(B.getUTCMonth),s=e(B.getUTCSeconds);A.exports=a(function(){return I.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){I.call(new Date(NaN))})?function(){function i(){if(!f(k(this)))throw new o("Invalid time value");var h=this,C=d(h),v=m(h),p=C<0?"-":C>9999?"+":"";return p+t(b(C),p?6:4,0)+"-"+t(u(h)+1,2,0)+"-"+t(N(h),2,0)+"T"+t(c(h),2,0)+":"+t(l(h),2,0)+":"+t(s(h),2,0)+"."+t(v,3,0)+"Z"}return i}():I},10886:function(A,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;A.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(A,r,n){"use strict";var e=n(20001),a=n(74595);A.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(A,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);A.exports=function(f,b,B,I){I||(I={});var k=I.enumerable,N=I.name!==void 0?I.name:b;if(e(B)&&t(B,N,I),I.global)k?f[b]=B:o(b,B);else{try{I.unsafe?f[b]&&(k=!0):delete f[b]}catch(d){}k?f[b]=B:a.f(f,b,{value:B,enumerable:!1,configurable:!I.nonConfigurable,writable:!I.nonWritable})}return f}},30145:function(A,r,n){"use strict";var e=n(55938);A.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(A,r,n){"use strict";var e=n(74685),a=Object.defineProperty;A.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(A,r,n){"use strict";var e=n(89393),a=TypeError;A.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(A,r,n){"use strict";var e=n(40033);A.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(A,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);A.exports=function(f){return o?t.createElement(f):{}}},21291:function(A){"use strict";var r=TypeError,n=9007199254740991;A.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(A,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);A.exports=!!a&&+a[1]},8180:function(A,r,n){"use strict";var e=n(73730),a=n(81702);A.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(A){"use strict";A.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(A){"use strict";A.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(A,r,n){"use strict";var e=n(63318);A.exports=/MSIE|Trident/.test(e)},51802:function(A,r,n){"use strict";var e=n(63318);A.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(A,r,n){"use strict";var e=n(63318);A.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(A,r,n){"use strict";var e=n(74685),a=n(7462);A.exports=a(e.process)==="process"},63383:function(A,r,n){"use strict";var e=n(63318);A.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(A){"use strict";A.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(A,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,B,I;b&&(B=b.split("."),I=B[0]>0&&B[0]<4?1:+(B[0]+B[1])),!I&&a&&(B=a.match(/Edge\/(\d+)/),(!B||B[1]>=74)&&(B=a.match(/Chrome\/(\d+)/),B&&(I=+B[1]))),A.exports=I},9342:function(A,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);A.exports=!!a&&+a[1]},89453:function(A){"use strict";A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(A,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),B=n(41314);A.exports=function(I,k){var N=I.target,d=I.global,c=I.stat,m,l,u,s,i,h;if(d?l=e:c?l=e[N]||f(N,{}):l=e[N]&&e[N].prototype,l)for(u in k){if(i=k[u],I.dontCallGetSet?(h=a(l,u),s=h&&h.value):s=l[u],m=B(d?u:N+(c?".":"#")+u,I.forced),!m&&s!==void 0){if(typeof i==typeof s)continue;b(i,s)}(I.sham||s&&s.sham)&&t(i,"sham",!0),o(l,u,i,I)}}},40033:function(A){"use strict";A.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(A,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),B=f("species"),I=RegExp.prototype;A.exports=function(k,N,d,c){var m=f(k),l=!o(function(){var h={};return h[m]=function(){return 7},""[k](h)!==7}),u=l&&!o(function(){var h=!1,C=/a/;return k==="split"&&(C={},C.constructor={},C.constructor[B]=function(){return C},C.flags="",C[m]=/./[m]),C.exec=function(){return h=!0,null},C[m](""),!h});if(!l||!u||d){var s=/./[m],i=N(m,""[k],function(h,C,v,p,g){var V=C.exec;return V===t||V===I.exec?l&&!g?{done:!0,value:e(s,C,v,p)}:{done:!0,value:e(h,v,C,p)}:{done:!1}});a(String.prototype,k,i[0]),a(I,m,i[1])}c&&b(I[m],"sham",!0)}},65561:function(A,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(B,I,k,N,d,c,m,l){for(var u=d,s=0,i=m?o(m,l):!1,h,C;s0&&e(h)?(C=a(h),u=b(B,I,h,C,u,c-1)-1):(t(u+1),B[u]=h),u++),s++;return u};A.exports=f},50730:function(A,r,n){"use strict";var e=n(40033);A.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(A,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;A.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(A,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);A.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(A,r,n){"use strict";var e=n(40033);A.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(A,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),B=Function,I=e([].concat),k=e([].join),N={},d=function(m,l,u){if(!o(N,l)){for(var s=[],i=0;i]*>)/g,I=/\$([$&'`]|\d{1,2})/g;A.exports=function(k,N,d,c,m,l){var u=d+k.length,s=c.length,i=I;return m!==void 0&&(m=a(m),i=B),f(l,i,function(h,C){var v;switch(o(C,0)){case"$":return"$";case"&":return k;case"`":return b(N,0,d);case"'":return b(N,u);case"<":v=m[b(C,1,-1)];break;default:var p=+C;if(p===0)return h;if(p>s){var g=t(p/10);return g===0?h:g<=s?c[g-1]===void 0?o(C,1):c[g-1]+o(C,1):h}v=c[p-1]}return v===void 0?"":v})}},74685:function(A,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};A.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(A,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);A.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(A){"use strict";A.exports={}},72259:function(A){"use strict";A.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(A,r,n){"use strict";var e=n(4009);A.exports=e("document","documentElement")},36223:function(A,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);A.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(A){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(I,k,N){var d=r(N),c=N*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=I<0||I===0&&1/I<0?1:0,i=0,h,C,v;for(I=n(I),I!==I||I===1/0?(C=I!==I?1:0,h=m):(h=a(t(I)/o),v=e(2,-h),I*v<1&&(h--,v*=2),h+l>=1?I+=u/v:I+=u*e(2,1-l),I*v>=2&&(h++,v/=2),h+l>=m?(C=0,h=m):h+l>=1?(C=(I*v-1)*e(2,k),h+=l):(C=I*e(2,l-1)*e(2,k),h=0));k>=8;)d[i++]=C&255,C/=256,k-=8;for(h=h<0;)d[i++]=h&255,h/=256,c-=8;return d[--i]|=s*128,d},b=function(I,k){var N=I.length,d=N*8-k-1,c=(1<>1,l=d-7,u=N-1,s=I[u--],i=s&127,h;for(s>>=7;l>0;)i=i*256+I[u--],l-=8;for(h=i&(1<<-l)-1,i>>=-l,l+=k;l>0;)h=h*256+I[u--],l-=8;if(i===0)i=1-m;else{if(i===c)return h?NaN:s?-1/0:1/0;h+=e(2,k),i-=m}return(s?-1:1)*h*e(2,i-k)};A.exports={pack:f,unpack:b}},37457:function(A,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);A.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(A,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);A.exports=function(o,f,b){var B,I;return t&&e(B=f.constructor)&&B!==b&&a(I=B.prototype)&&I!==b.prototype&&t(o,I),o}},40492:function(A,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),A.exports=t.inspectSource},81969:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,B=n(37310),I=n(81644),k=n(81834),N=n(16738),d=n(50730),c=!1,m=N("meta"),l=0,u=function(g){b(g,m,{value:{objectID:"O"+l++,weakData:{}}})},s=function(g,V){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!f(g,m)){if(!k(g))return"F";if(!V)return"E";u(g)}return g[m].objectID},i=function(g,V){if(!f(g,m)){if(!k(g))return!0;if(!V)return!1;u(g)}return g[m].weakData},h=function(g){return d&&c&&k(g)&&!f(g,m)&&u(g),g},C=function(){v.enable=function(){},c=!0;var g=B.f,V=a([].splice),S={};S[m]=1,g(S).length&&(B.f=function(y){for(var L=g(y),w=0,T=L.length;wy;y++)if(w=O(l[y]),w&&B(m,w))return w;return new c(!1)}V=I(l,S)}for(T=C?l.next:V.next;!(x=a(T,V)).done;){try{w=O(x.value)}catch(D){N(V,"throw",D)}if(typeof w=="object"&&w&&B(m,w))return w}return new c(!1)}},28649:function(A,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);A.exports=function(o,f,b){var B,I;a(o);try{if(B=t(o,"return"),!B){if(f==="throw")throw b;return b}B=e(B,o)}catch(k){I=!0,B=k}if(f==="throw")throw b;if(I)throw B;return a(B),b}},5656:function(A,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};A.exports=function(B,I,k,N){var d=I+" Iterator";return B.prototype=a(e,{next:t(+!N,k)}),o(B,d,!1,!0),f[d]=b,B}},65574:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),B=n(36917),I=n(76649),k=n(84925),N=n(37909),d=n(55938),c=n(24697),m=n(83967),l=n(67635),u=o.PROPER,s=o.CONFIGURABLE,i=l.IteratorPrototype,h=l.BUGGY_SAFARI_ITERATORS,C=c("iterator"),v="keys",p="values",g="entries",V=function(){return this};A.exports=function(S,y,L,w,T,x,M){b(L,y,w);var O=function(J){if(J===T&&j)return j;if(!h&&J&&J in P)return P[J];switch(J){case v:return function(){function Q(){return new L(this,J)}return Q}();case p:return function(){function Q(){return new L(this,J)}return Q}();case g:return function(){function Q(){return new L(this,J)}return Q}()}return function(){return new L(this)}},D=y+" Iterator",E=!1,P=S.prototype,R=P[C]||P["@@iterator"]||T&&P[T],j=!h&&R||O(T),F=y==="Array"&&P.entries||R,W,z,K;if(F&&(W=B(F.call(new S)),W!==Object.prototype&&W.next&&(!t&&B(W)!==i&&(I?I(W,i):f(W[C])||d(W,C,V)),k(W,D,!0,!0),t&&(m[D]=V))),u&&T===p&&R&&R.name!==p&&(!t&&s?N(P,"name",p):(E=!0,j=function(){function G(){return a(R,this)}return G}())),T)if(z={values:O(p),keys:x?j:O(v),entries:O(g)},M)for(K in z)(h||E||!(K in P))&&d(P,K,z[K]);else e({target:y,proto:!0,forced:h||E},z);return(!t||M)&&P[C]!==j&&d(P,C,j,{name:T}),m[y]=j,z}},67635:function(A,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),B=n(24697),I=n(4493),k=B("iterator"),N=!1,d,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(d=c)):N=!0);var l=!t(d)||e(function(){var u={};return d[k].call(u)!==u});l?d={}:I&&(d=o(d)),a(d[k])||b(d,k,function(){return this}),A.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:N}},83967:function(A){"use strict";A.exports={}},24760:function(A,r,n){"use strict";var e=n(10188);A.exports=function(a){return e(a.length)}},20001:function(A,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,B=n(40492),I=n(5419),k=I.enforce,N=I.get,d=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),i=String(String).split("String"),h=A.exports=function(C,v,p){m(d(v),0,7)==="Symbol("&&(v="["+l(d(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(v="get "+v),p&&p.setter&&(v="set "+v),(!o(C,"name")||b&&C.name!==v)&&(f?c(C,"name",{value:v,configurable:!0}):C.name=v),s&&p&&o(p,"arity")&&C.length!==p.arity&&c(C,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&c(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch(V){}var g=k(C);return o(g,"source")||(g.source=u(i,typeof v=="string"?v:"")),C};Function.prototype.toString=h(function(){function C(){return t(this)&&N(this).source||B(this)}return C}(),"toString")},82040:function(A){"use strict";var r=Math.expm1,n=Math.exp;A.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(A,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(B){return B+o-o};A.exports=function(b,B,I,k){var N=+b,d=a(N),c=e(N);if(dI||l!==l?c*(1/0):c*l}},95867:function(A,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;A.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(A){"use strict";var r=Math.log,n=Math.LOG10E;A.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(A){"use strict";var r=Math.log;A.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(A){"use strict";A.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(A){"use strict";var r=Math.ceil,n=Math.floor;A.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(A,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),B=n(51802),I=n(63383),k=n(81702),N=e.MutationObserver||e.WebKitMutationObserver,d=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),u,s,i,h,C;if(!l){var v=new f,p=function(){var V,S;for(k&&(V=c.domain)&&V.exit();S=v.get();)try{S()}catch(y){throw v.head&&u(),y}V&&V.enter()};!b&&!k&&!I&&N&&d?(s=!0,i=d.createTextNode(""),new N(p).observe(i,{characterData:!0}),u=function(){i.data=s=!s}):!B&&m&&m.resolve?(h=m.resolve(void 0),h.constructor=m,C=t(h.then,h),u=function(){C(p)}):k?u=function(){c.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),l=function(V){v.head||u(),v.add(V)}}A.exports=l},81837:function(A,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,B;this.promise=new f(function(I,k){if(b!==void 0||B!==void 0)throw new a("Bad Promise constructor");b=I,B=k}),this.resolve=e(b),this.reject=e(B)};A.exports.f=function(o){return new t(o)}},86213:function(A,r,n){"use strict";var e=n(72586),a=TypeError;A.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(A,r,n){"use strict";var e=n(74685),a=e.isFinite;A.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(A,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),B=t("".charAt),I=e.parseFloat,k=e.Symbol,N=k&&k.iterator,d=1/I(b+"-0")!==-1/0||N&&!a(function(){I(Object(N))});A.exports=d?function(){function c(m){var l=f(o(m)),u=I(l);return u===0&&B(l,0)==="-"?-0:u}return c}():I},13693:function(A,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),B=e.parseInt,I=e.Symbol,k=I&&I.iterator,N=/^[+-]?0x/i,d=t(N.exec),c=B(b+"08")!==8||B(b+"0x16")!==22||k&&!a(function(){B(Object(k))});A.exports=c?function(){function m(l,u){var s=f(o(l));return B(s,u>>>0||(d(N,s)?16:10))}return m}():B},41143:function(A,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),B=n(12867),I=n(46771),k=n(37457),N=Object.assign,d=Object.defineProperty,c=a([].concat);A.exports=!N||o(function(){if(e&&N({b:1},N(d({},"a",{enumerable:!0,get:function(){function i(){d(this,"b",{value:3,enumerable:!1})}return i}()}),{b:2})).b!==1)return!0;var m={},l={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(i){l[i]=i}),N({},m)[u]!==7||f(N({},l)).join("")!==s})?function(){function m(l,u){for(var s=I(l),i=arguments.length,h=1,C=b.f,v=B.f;i>h;)for(var p=k(arguments[h++]),g=C?c(f(p),C(p)):f(p),V=g.length,S=0,y;V>S;)y=g[S++],(!e||t(v,p,y))&&(s[y]=p[y]);return s}return m}():N},80674:function(A,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),B=n(19417),I=">",k="<",N="prototype",d="script",c=B("IE_PROTO"),m=function(){},l=function(v){return k+d+I+v+k+"/"+d+I},u=function(v){v.write(l("")),v.close();var p=v.parentWindow.Object;return v=null,p},s=function(){var v=b("iframe"),p="java"+d+":",g;return v.style.display="none",f.appendChild(v),v.src=String(p),g=v.contentWindow.document,g.open(),g.write(l("document.F=Object")),g.close(),g.F},i,h=function(){try{i=new ActiveXObject("htmlfile")}catch(p){}h=typeof document!="undefined"?document.domain&&i?u(i):s():u(i);for(var v=t.length;v--;)delete h[N][t[v]];return h()};o[c]=!0,A.exports=Object.create||function(){function C(v,p){var g;return v!==null?(m[N]=e(v),g=new m,m[N]=null,g[c]=v):g=h(),p===void 0?g:a.f(g,p)}return C}()},24239:function(A,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function B(I,k){o(I);for(var N=f(k),d=b(k),c=d.length,m=0,l;c>m;)t.f(I,l=d[m++],N[l]);return I}return B}()},74595:function(A,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,B=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k="enumerable",N="configurable",d="writable";r.f=e?t?function(){function c(m,l,u){if(o(m),l=f(l),o(u),typeof m=="function"&&l==="prototype"&&"value"in u&&d in u&&!u[d]){var s=I(m,l);s&&s[d]&&(m[l]=u.value,u={configurable:N in u?u[N]:s[N],enumerable:k in u?u[k]:s[k],writable:!1})}return B(m,l,u)}return c}():B:function(){function c(m,l,u){if(o(m),l=f(l),o(u),a)try{return B(m,l,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[l]=u.value),m}return c}()},27193:function(A,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),B=n(45299),I=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function N(d,c){if(d=f(d),c=b(c),I)try{return k(d,c)}catch(m){}if(B(d,c))return o(!a(t.f,d,c),d[c])}return N}()},81644:function(A,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(I){try{return t(I)}catch(k){return o(f)}};A.exports.f=function(){function B(I){return f&&e(I)==="Window"?b(I):t(a(I))}return B}()},37310:function(A,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(A,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(A,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),B=Object,I=B.prototype;A.exports=f?B.getPrototypeOf:function(k){var N=t(k);if(e(N,b))return N[b];var d=N.constructor;return a(d)&&N instanceof d?d.prototype:N instanceof B?I:null}},81834:function(A,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});A.exports=b||o?function(){function B(I){return!a(I)||o&&t(I)==="ArrayBuffer"?!1:f?f(I):!0}return B}():f},21287:function(A,r,n){"use strict";var e=n(67250);A.exports=e({}.isPrototypeOf)},53726:function(A,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);A.exports=function(B,I){var k=t(B),N=0,d=[],c;for(c in k)!a(f,c)&&a(k,c)&&b(d,c);for(;I.length>N;)a(k,c=I[N++])&&(~o(d,c)||b(d,c));return d}},18450:function(A,r,n){"use strict";var e=n(53726),a=n(89453);A.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(A,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(A,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);A.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(A,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},B;try{B=e(Object.prototype,"__proto__","set"),B(b,[]),f=b instanceof Array}catch(I){}return function(){function I(k,N){return t(k),o(N),a(k)&&(f?B(k,N):k.__proto__=N),k}return I}()}():void 0)},70915:function(A,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),B=n(12867).f,I=t(B),k=t([].push),N=e&&a(function(){var c=Object.create(null);return c[2]=2,!I(c,2)}),d=function(m){return function(l){for(var u=b(l),s=f(u),i=N&&o(u)===null,h=s.length,C=0,v=[],p;h>C;)p=s[C++],(!e||(i?p in u:I(u,p)))&&k(v,m?[p,u[p]]:u[p]);return v}};A.exports={entries:d(!0),values:d(!1)}},2509:function(A,r,n){"use strict";var e=n(2650),a=n(2281);A.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(A,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;A.exports=function(f,b){var B,I;if(b==="string"&&a(B=f.toString)&&!t(I=e(B,f))||a(B=f.valueOf)&&!t(I=e(B,f))||b!=="string"&&a(B=f.toString)&&!t(I=e(B,f)))return I;throw new o("Can't convert object to primitive value")}},97921:function(A,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);A.exports=e("Reflect","ownKeys")||function(){function B(I){var k=t.f(f(I)),N=o.f;return N?b(k,N(I)):k}return B}()},61765:function(A,r,n){"use strict";var e=n(74685);A.exports=e},10729:function(A){"use strict";A.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(A,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),B=n(8180),I=n(73730),k=n(4493),N=n(5026),d=a&&a.prototype,c=b("species"),m=!1,l=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),i=s!==String(a);if(!i&&N===66||k&&!(d.catch&&d.finally))return!0;if(!N||N<51||!/native code/.test(s)){var h=new a(function(p){p(1)}),C=function(g){g(function(){},function(){})},v=h.constructor={};if(v[c]=C,m=h.then(function(){})instanceof C,!m)return!0}return!i&&(B||I)&&!l});A.exports={CONSTRUCTOR:u,REJECTION_EVENT:l,SUBCLASSING:m}},67512:function(A,r,n){"use strict";var e=n(74685);A.exports=e.Promise},66628:function(A,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);A.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),B=b.resolve;return B(f),b.promise}},48199:function(A,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;A.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(A,r,n){"use strict";var e=n(74595).f;A.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(A){"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}()},A.exports=r},28340:function(A,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;A.exports=function(B,I){var k=B.exec;if(t(k)){var N=e(k,B,I);return N!==null&&a(N),N}if(o(B)==="RegExp")return e(f,B,I);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(A,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),B=n(80674),I=n(5419).get,k=n(39173),N=n(35688),d=b("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),u=a("".indexOf),s=a("".replace),i=a("".slice),h=function(){var g=/a/,V=/b*/g;return e(c,g,"a"),e(c,V,"a"),g.lastIndex!==0||V.lastIndex!==0}(),C=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,p=h||v||C||k||N;p&&(m=function(){function g(V){var S=this,y=I(S),L=t(V),w=y.raw,T,x,M,O,D,E,P;if(w)return w.lastIndex=S.lastIndex,T=e(m,w,L),S.lastIndex=w.lastIndex,T;var R=y.groups,j=C&&S.sticky,F=e(o,S),W=S.source,z=0,K=L;if(j&&(F=s(F,"y",""),u(F,"g")===-1&&(F+="g"),K=i(L,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&l(L,S.lastIndex-1)!=="\n")&&(W="(?: "+W+")",K=" "+K,z++),x=new RegExp("^(?:"+W+")",F)),v&&(x=new RegExp("^"+W+"$(?!\\s)",F)),h&&(M=S.lastIndex),O=e(c,j?x:S,K),j?O?(O.input=i(O.input,z),O[0]=i(O[0],z),O.index=S.lastIndex,S.lastIndex+=O[0].length):S.lastIndex=0:h&&O&&(S.lastIndex=S.global?O.index+O[0].length:M),v&&O&&O.length>1&&e(d,O[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(A,r,n){"use strict";var e=n(42871),a=TypeError;A.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(A,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;A.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(A){"use strict";A.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(A,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),B=n(24986),I=e.Function,k=/MSIE .\./.test(f)||o&&function(){var N=e.Bun.version.split(".");return N.length<3||N[0]==="0"&&(N[1]<3||N[1]==="3"&&N[2]==="0")}();A.exports=function(N,d){var c=d?2:1;return k?function(m,l){var u=B(arguments.length,1)>c,s=t(m)?m:I(m),i=u?b(arguments,c):[],h=u?function(){a(s,this,i)}:s;return d?N(h,l):N(h)}:N}},58491:function(A,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");A.exports=function(b){var B=e(b);o&&B&&!B[f]&&a(B,f,{configurable:!0,get:function(){function I(){return this}return I}()})}},84925:function(A,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");A.exports=function(f,b,B){f&&!B&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(A,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");A.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(A,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=A.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(A,r,n){"use strict";var e=n(40095);A.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(A,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");A.exports=function(b,B){var I=e(b).constructor,k;return I===void 0||t(k=e(I)[f])?B:a(k)}},88539:function(A,r,n){"use strict";var e=n(40033);A.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(A,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),B=e("".slice),I=function(N){return function(d,c){var m=t(o(d)),l=a(c),u=m.length,s,i;return l<0||l>=u?N?"":void 0:(s=b(m,l),s<55296||s>56319||l+1===u||(i=b(m,l+1))<56320||i>57343?N?f(m,l):s:N?B(m,l,l+2):(s-55296<<10)+(i-56320)+65536)}};A.exports={codeAt:I(!1),charAt:I(!0)}},34125:function(A,r,n){"use strict";var e=n(63318);A.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(A,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),B=e("".slice),I=Math.ceil,k=function(d){return function(c,m,l){var u=t(f(c)),s=a(m),i=u.length,h=l===void 0?" ":t(l),C,v;return s<=i||h===""?u:(C=s-i,v=b(h,I(C/h.length)),v.length>C&&(v=B(v,0,C)),d?u+v:v+u)}};A.exports={start:k(!1),end:k(!0)}},62443:function(A,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;A.exports=function(){function f(b){var B=a(t(this)),I="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(B+=B))k&1&&(I+=B);return I}return f}()},43476:function(A,r,n){"use strict";var e=n(92648).end,a=n(90012);A.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(A,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";A.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(A,r,n){"use strict";var e=n(92648).start,a=n(90012);A.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(A,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),B=RegExp("(^|[^"+o+"])["+o+"]+$"),I=function(N){return function(d){var c=t(a(d));return N&1&&(c=f(c,b,"")),N&2&&(c=f(c,B,"$1")),c}};A.exports={start:I(1),end:I(2),trim:I(3)}},52357:function(A,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;A.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(A,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);A.exports=function(){var f=a("Symbol"),b=f&&f.prototype,B=b&&b.valueOf,I=t("toPrimitive");b&&!b[I]&&o(b,I,function(k){return e(B,this)},{arity:1})}},66570:function(A,r,n){"use strict";var e=n(52357);A.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(A,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),B=n(5315),I=n(54602),k=n(12689),N=n(24986),d=n(83433),c=n(81702),m=e.setImmediate,l=e.clearImmediate,u=e.process,s=e.Dispatch,i=e.Function,h=e.MessageChannel,C=e.String,v=0,p={},g="onreadystatechange",V,S,y,L;b(function(){V=e.location});var w=function(D){if(f(p,D)){var E=p[D];delete p[D],E()}},T=function(D){return function(){w(D)}},x=function(D){w(D.data)},M=function(D){e.postMessage(C(D),V.protocol+"//"+V.host)};(!m||!l)&&(m=function(){function O(D){N(arguments.length,1);var E=o(D)?D:i(D),P=I(arguments,1);return p[++v]=function(){a(E,void 0,P)},S(v),v}return O}(),l=function(){function O(D){delete p[D]}return O}(),c?S=function(D){u.nextTick(T(D))}:s&&s.now?S=function(D){s.now(T(D))}:h&&!d?(y=new h,L=y.port2,y.port1.onmessage=x,S=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(M)?(S=M,e.addEventListener("message",x,!1)):g in k("script")?S=function(D){B.appendChild(k("script"))[g]=function(){B.removeChild(this),w(D)}}:S=function(D){setTimeout(T(D),0)}),A.exports={set:m,clear:l}},46438:function(A,r,n){"use strict";var e=n(67250);A.exports=e(1 .valueOf)},13912:function(A,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;A.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(A,r,n){"use strict";var e=n(24843),a=TypeError;A.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(A,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;A.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(A,r,n){"use strict";var e=n(37457),a=n(16952);A.exports=function(t){return e(a(t))}},61365:function(A,r,n){"use strict";var e=n(21119);A.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(A,r,n){"use strict";var e=n(61365),a=Math.min;A.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(A,r,n){"use strict";var e=n(16952),a=Object;A.exports=function(t){return a(e(t))}},56043:function(A,r,n){"use strict";var e=n(16140),a=RangeError;A.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(A,r,n){"use strict";var e=n(61365),a=RangeError;A.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(A,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),B=TypeError,I=b("toPrimitive");A.exports=function(k,N){if(!a(k)||t(k))return k;var d=o(k,I),c;if(d){if(N===void 0&&(N="default"),c=e(d,k,N),!a(c)||t(c))return c;throw new B("Can't convert object to primitive value")}return N===void 0&&(N="number"),f(k,N)}},767:function(A,r,n){"use strict";var e=n(24843),a=n(71399);A.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(A,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",A.exports=String(t)==="[object z]"},12605:function(A,r,n){"use strict";var e=n(2281),a=String;A.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(A){"use strict";var r=Math.round;A.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(A){"use strict";var r=String;A.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),B=n(37336),I=n(60077),k=n(87458),N=n(37909),d=n(5841),c=n(10188),m=n(43806),l=n(56043),u=n(15409),s=n(767),i=n(45299),h=n(2281),C=n(77568),v=n(71399),p=n(80674),g=n(21287),V=n(76649),S=n(37310).f,y=n(3805),L=n(22603).forEach,w=n(58491),T=n(73936),x=n(74595),M=n(27193),O=n(78008),D=n(5419),E=n(5781),P=D.get,R=D.set,j=D.enforce,F=x.f,W=M.f,z=a.RangeError,K=B.ArrayBuffer,G=K.prototype,J=B.DataView,Q=b.NATIVE_ARRAY_BUFFER_VIEWS,ue=b.TYPED_ARRAY_TAG,ie=b.TypedArray,pe=b.TypedArrayPrototype,te=b.isTypedArray,q="BYTES_PER_ELEMENT",ne="Wrong length",le=function(Y,ve){T(Y,ve,{configurable:!0,get:function(){function he(){return P(this)[ve]}return he}()})},ee=function(Y){var ve;return g(G,Y)||(ve=h(Y))==="ArrayBuffer"||ve==="SharedArrayBuffer"},re=function(Y,ve){return te(Y)&&!v(ve)&&ve in Y&&d(+ve)&&ve>=0},oe=function(){function me(Y,ve){return ve=s(ve),re(Y,ve)?k(2,Y[ve]):W(Y,ve)}return me}(),fe=function(){function me(Y,ve,he){return ve=s(ve),re(Y,ve)&&C(he)&&i(he,"value")&&!i(he,"get")&&!i(he,"set")&&!he.configurable&&(!i(he,"writable")||he.writable)&&(!i(he,"enumerable")||he.enumerable)?(Y[ve]=he.value,Y):F(Y,ve,he)}return me}();o?(Q||(M.f=oe,x.f=fe,le(pe,"buffer"),le(pe,"byteOffset"),le(pe,"byteLength"),le(pe,"length")),e({target:"Object",stat:!0,forced:!Q},{getOwnPropertyDescriptor:oe,defineProperty:fe}),A.exports=function(me,Y,ve){var he=me.match(/\d+/)[0]/8,Ve=me+(ve?"Clamped":"")+"Array",Be="get"+me,be="set"+me,Le=a[Ve],we=Le,xe=we&&we.prototype,Re={},He=function(ge,Se){var Pe=P(ge);return Pe.view[Be](Se*he+Pe.byteOffset,!0)},ye=function(ge,Se,Pe){var je=P(ge);je.view[be](Se*he+je.byteOffset,ve?u(Pe):Pe,!0)},de=function(ge,Se){F(ge,Se,{get:function(){function Pe(){return He(this,Se)}return Pe}(),set:function(){function Pe(je){return ye(this,Se,je)}return Pe}(),enumerable:!0})};Q?f&&(we=Y(function(ke,ge,Se,Pe){return I(ke,xe),E(function(){return C(ge)?ee(ge)?Pe!==void 0?new Le(ge,l(Se,he),Pe):Se!==void 0?new Le(ge,l(Se,he)):new Le(ge):te(ge)?O(we,ge):t(y,we,ge):new Le(m(ge))}(),ke,we)}),V&&V(we,ie),L(S(Le),function(ke){ke in we||N(we,ke,Le[ke])}),we.prototype=xe):(we=Y(function(ke,ge,Se,Pe){I(ke,xe);var je=0,_e=0,ze,We,Ue;if(!C(ge))Ue=m(ge),We=Ue*he,ze=new K(We);else if(ee(ge)){ze=ge,_e=l(Se,he);var Xe=ge.byteLength;if(Pe===void 0){if(Xe%he)throw new z(ne);if(We=Xe-_e,We<0)throw new z(ne)}else if(We=c(Pe)*he,We+_e>Xe)throw new z(ne);Ue=We/he}else return te(ge)?O(we,ge):t(y,we,ge);for(R(ke,{buffer:ze,byteOffset:_e,byteLength:We,length:Ue,view:new J(ze)});je1?arguments[1]:void 0,h=i!==void 0,C=B(u),v,p,g,V,S,y,L,w;if(C&&!I(C))for(L=b(u,C),w=L.next,u=[];!(y=a(w,L)).done;)u.push(y.value);for(h&&s>2&&(i=e(i,arguments[2])),p=f(u),g=new(N(l))(p),V=k(g),v=0;p>v;v++)S=h?i(u[v],v):u[v],g[v]=V?d(S):+S;return g}return c}()},31082:function(A,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;A.exports=function(f){return t(a(f,o(f)))}},16738:function(A,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);A.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(A,r,n){"use strict";var e=n(52357);A.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(A,r,n){"use strict";var e=n(58310),a=n(40033);A.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(A){"use strict";var r=TypeError;A.exports=function(n,e){if(n=51||!a(function(){var i=[];return i[m]=!1,i.concat()[0]!==i}),u=function(h){if(!o(h))return!1;var C=h[m];return C!==void 0?!!C:t(h)},s=!l||!N("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function i(h){var C=f(this),v=k(C,0),p=0,g,V,S,y,L;for(g=-1,S=arguments.length;g1?arguments[1]:void 0)}return f}()})},68933:function(A,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(A,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(A,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(B){return a(this,B,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(A,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(B){return a(this,B,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(A,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function B(I){var k=o(this),N=f(k),d;return t(I),d=b(k,0),d.length=a(d,k,k,N,0,1,I,arguments.length>1?arguments[1]:void 0),d}return B}()})},61915:function(A,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function B(){var I=arguments.length?arguments[0]:void 0,k=t(this),N=o(k),d=b(k,0);return d.length=a(d,k,k,N,0,I===void 0?1:f(I)),d}return B}()})},25579:function(A,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(A,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(A,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(B){return a(this,B,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(A,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,B=b||!o("indexOf");e({target:"Array",proto:!0,forced:B},{indexOf:function(){function I(k){var N=arguments.length>1?arguments[1]:void 0;return b?f(this,k,N)||0:t(this,k,N)}return I}()})},99636:function(A,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(A,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),B=n(5959),I=n(4493),k=n(58310),N="Array Iterator",d=o.set,c=o.getterFor(N);A.exports=b(Array,"Array",function(l,u){d(this,{type:N,target:e(l),index:0,kind:u})},function(){var l=c(this),u=l.target,s=l.index++;if(!u||s>=u.length)return l.target=void 0,B(void 0,!0);switch(l.kind){case"keys":return B(s,!1);case"values":return B(u[s],!1)}return B([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!I&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},94432:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),B=t!==Object,I=B||!f("join",",");e({target:"Array",proto:!0,forced:I},{join:function(){function k(N){return b(o(this),N===void 0?",":N)}return k}()})},24683:function(A,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(A,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function B(){}return!(f.of.call(B)instanceof B)});e({target:"Array",stat:!0,forced:b},{of:function(){function B(){for(var I=0,k=arguments.length,N=new(t(this)?this:f)(k);k>I;)o(N,I,arguments[I++]);return N.length=k,N}return B}()})},29645:function(A,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,B=b||!t("reduceRight");e({target:"Array",proto:!0,forced:B},{reduceRight:function(){function I(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return I}()})},60206:function(A,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,B=b||!t("reduce");e({target:"Array",proto:!0,forced:B},{reduce:function(){function I(k){var N=arguments.length;return a(this,k,N,N>1?arguments[1]:void 0)}return I}()})},4788:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(A,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),B=n(57591),I=n(60102),k=n(24697),N=n(44091),d=n(54602),c=N("slice"),m=k("species"),l=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(i,h){var C=B(this),v=b(C),p=f(i,v),g=f(h===void 0?v:h,v),V,S,y;if(a(C)&&(V=C.constructor,t(V)&&(V===l||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===l||V===void 0))return d(C,p,g);for(S=new(V===void 0?l:V)(u(g-p,0)),y=0;p1?arguments[1]:void 0)}return f}()})},48968:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),B=n(12605),I=n(40033),k=n(90274),N=n(55528),d=n(652),c=n(19228),m=n(5026),l=n(9342),u=[],s=a(u.sort),i=a(u.push),h=I(function(){u.sort(void 0)}),C=I(function(){u.sort(null)}),v=N("sort"),p=!I(function(){if(m)return m<70;if(!(d&&d>3)){if(c)return!0;if(l)return l<603;var S="",y,L,w,T;for(y=65;y<76;y++){switch(L=String.fromCharCode(y),y){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(T=0;T<47;T++)u.push({k:L+T,v:w})}for(u.sort(function(x,M){return M.v-x.v}),T=0;TB(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function S(y){y!==void 0&&t(y);var L=o(this);if(p)return y===void 0?s(L):s(L,y);var w=[],T=f(L),x,M;for(M=0;MC-V+g;y--)N(h,y-1)}else if(g>V)for(y=C-V;y>v;y--)L=y+V-1,w=y+g-1,L in h?h[w]=h[L]:N(h,w);for(y=0;y9490626562425156e-8?o(N)+b:a(N-1+f(N-1)*f(N+1))}return I}()})},59660:function(A,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(B){var I=+B;return!isFinite(I)||I===0?I:I<0?-f(-I):t(I+o(I*I+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(A,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var B=+b;return B===0?B:t((1+B)/(1-B))/2}return f}()})},92866:function(A,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var B=+b;return a(B)*o(t(B),.3333333333333333)}return f}()})},86107:function(A,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var B=b>>>0;return B?31-a(t(B+.5)*o):32}return f}()})},29248:function(A,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function B(I){var k=a(o(I)-1)+1;return(k+1/(k*f*f))*(f/2)}return B}()})},52540:function(A,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(A,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(A,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(B,I){for(var k=0,N=0,d=arguments.length,c=0,m,l;N0?(l=m/c,k+=l*l):k+=m;return c===1/0?1/0:c*o(k)}return b}()})},6522:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,B){var I=65535,k=+b,N=+B,d=I&k,c=I&N;return 0|d*c+((I&k>>>16)*c+d*(I&N>>>16)<<16>>>0)}return f}()})},95542:function(A,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(A,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(A,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(A,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,B=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:B},{sinh:function(){function I(k){var N=+k;return o(N)<1?(t(N)-t(-N))/2:(f(N-1)-f(-N-1))*(b/2)}return I}()})},54800:function(A,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,B=a(b),I=a(-b);return B===1/0?1:I===1/0?-1:(B-I)/(t(b)+t(-b))}return o}()})},15709:function(A,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(A,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),B=n(41314),I=n(45299),k=n(5781),N=n(21287),d=n(71399),c=n(24843),m=n(40033),l=n(37310).f,u=n(27193).f,s=n(74595).f,i=n(46438),h=n(92648).trim,C="Number",v=o[C],p=f[C],g=v.prototype,V=o.TypeError,S=b("".slice),y=b("".charCodeAt),L=function(E){var P=c(E,"number");return typeof P=="bigint"?P:w(P)},w=function(E){var P=c(E,"number"),R,j,F,W,z,K,G,J;if(d(P))throw new V("Cannot convert a Symbol value to a number");if(typeof P=="string"&&P.length>2){if(P=h(P),R=y(P,0),R===43||R===45){if(j=y(P,2),j===88||j===120)return NaN}else if(R===48){switch(y(P,1)){case 66:case 98:F=2,W=49;break;case 79:case 111:F=8,W=55;break;default:return+P}for(z=S(P,2),K=z.length,G=0;GW)return NaN;return parseInt(z,F)}}return+P},T=B(C,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(E){return N(g,E)&&m(function(){i(E)})},M=function(){function D(E){var P=arguments.length<1?0:v(L(E));return x(this)?k(Object(P),this,M):P}return D}();M.prototype=g,T&&!a&&(g.constructor=M),e({global:!0,constructor:!0,wrap:!0,forced:T},{Number:M});var O=function(E,P){for(var R=t?l(P):"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(","),j=0,F;R.length>j;j++)I(P,F=R[j])&&!I(E,F)&&s(E,F,u(P,F))};a&&p&&O(f[C],p),(T||a)&&O(f[C],v)},324:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(A,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(A,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(A,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(A,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(A,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),B=RangeError,I=String,k=Math.floor,N=a(f),d=a("".slice),c=a(1 .toFixed),m=function C(v,p,g){return p===0?g:p%2===1?C(v,p-1,g*v):C(v*v,p/2,g)},l=function(v){for(var p=0,g=v;g>=4096;)p+=12,g/=4096;for(;g>=2;)p+=1,g/=2;return p},u=function(v,p,g){for(var V=-1,S=g;++V<6;)S+=p*v[V],v[V]=S%1e7,S=k(S/1e7)},s=function(v,p){for(var g=6,V=0;--g>=0;)V+=v[g],v[g]=k(V/p),V=V%p*1e7},i=function(v){for(var p=6,g="";--p>=0;)if(g!==""||p===0||v[p]!==0){var V=I(v[p]);g=g===""?V:g+N("0",7-V.length)+V}return g},h=b(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){c({})});e({target:"Number",proto:!0,forced:h},{toFixed:function(){function C(v){var p=o(this),g=t(v),V=[0,0,0,0,0,0],S="",y="0",L,w,T,x;if(g<0||g>20)throw new B("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return I(p);if(p<0&&(S="-",p=-p),p>1e-21)if(L=l(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),T=g;T>=7;)u(V,1e7,0),T-=7;for(u(V,m(10,T,1),0),T=L-1;T>=23;)s(V,8388608),T-=23;s(V,1<0?(x=y.length,y=S+(x<=g?"0."+N("0",g-x)+y:d(y,0,x-g)+"."+d(y,x-g))):y=S+y,y}return C}()})},23532:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function B(I){return I===void 0?f(o(this)):f(o(this),I)}return B}()})},87119:function(A,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function B(I,k){b.f(f(this),I,{get:o(k),enumerable:!0,configurable:!0})}return B}()})},31943:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function B(I,k){b.f(f(this),I,{set:o(k),enumerable:!0,configurable:!0})}return B}()})},85028:function(A,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(A,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,B=t(function(){b(1)});e({target:"Object",stat:!0,forced:B,sham:!a},{freeze:function(){function I(k){return b&&o(k)?b(f(k)):k}return I}()})},43331:function(A,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(B,I){t(b,B,I)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function B(I,k){return o(t(I),k)}return B}()})},56196:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function B(I){for(var k=o(I),N=f.f,d=t(k),c={},m=0,l,u;d.length>m;)u=N(k,l=d[m++]),u!==void 0&&b(c,l,u);return c}return B}()})},2950:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(A,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function B(I){var k=o.f;return k?k(f(I)):[]}return B}()})},44205:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function B(I){return o(t(I))}return B}()})},83186:function(A,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,B=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:B},{isFrozen:function(){function I(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},13411:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,B=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:B},{isSealed:function(){function I(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},76882:function(A,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(A,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(B){return t(a(B))}return b}()})},53118:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),B=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function I(k){var N=o(this),d=f(k),c;do if(c=B(N,d))return c.get;while(N=b(N))}return I}()})},42514:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),B=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function I(k){var N=o(this),d=f(k),c;do if(c=B(N,d))return c.set;while(N=b(N))}return I}()})},84353:function(A,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,B=f(function(){b(1)});e({target:"Object",stat:!0,forced:B,sham:!o},{preventExtensions:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},62987:function(A,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,B=f(function(){b(1)});e({target:"Object",stat:!0,forced:B,sham:!o},{seal:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},48993:function(A,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(A,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(A,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(A,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(A,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),B=n(48199);e({target:"Promise",stat:!0,forced:B},{all:function(){function I(k){var N=this,d=o.f(N),c=d.resolve,m=d.reject,l=f(function(){var u=t(N.resolve),s=[],i=0,h=1;b(k,function(C){var v=i++,p=!1;h++,a(u,N,C).then(function(g){p||(p=!0,s[v]=g,--h||c(s))},m)}),--h||c(s)});return l.error&&m(l.value),d.promise}return I}()})},70641:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),B=n(55938),I=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function N(d){return this.then(void 0,d)}return N}()}),!a&&b(o)){var k=f("Promise").prototype.catch;I.catch!==k&&B(I,"catch",k,{unsafe:!0})}},75946:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),B=n(76649),I=n(84925),k=n(58491),N=n(10320),d=n(55747),c=n(77568),m=n(60077),l=n(28987),u=n(60375).set,s=n(37713),i=n(72259),h=n(10729),C=n(9547),v=n(5419),p=n(67512),g=n(74854),V=n(81837),S="Promise",y=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,T=v.getterFor(S),x=v.set,M=p&&p.prototype,O=p,D=M,E=o.TypeError,P=o.document,R=o.process,j=V.f,F=j,W=!!(P&&P.createEvent&&o.dispatchEvent),z="unhandledrejection",K="rejectionhandled",G=0,J=1,Q=2,ue=1,ie=2,pe,te,q,ne,le=function(be){var Le;return c(be)&&d(Le=be.then)?Le:!1},ee=function(be,Le){var we=Le.value,xe=Le.state===J,Re=xe?be.ok:be.fail,He=be.resolve,ye=be.reject,de=be.domain,Ce,ke,ge;try{Re?(xe||(Le.rejection===ie&&Y(Le),Le.rejection=ue),Re===!0?Ce=we:(de&&de.enter(),Ce=Re(we),de&&(de.exit(),ge=!0)),Ce===be.promise?ye(new E("Promise-chain cycle")):(ke=le(Ce))?f(ke,Ce,He,ye):He(Ce)):ye(we)}catch(Se){de&&!ge&&de.exit(),ye(Se)}},re=function(be,Le){be.notified||(be.notified=!0,s(function(){for(var we=be.reactions,xe;xe=we.get();)ee(xe,be);be.notified=!1,Le&&!be.rejection&&fe(be)}))},oe=function(be,Le,we){var xe,Re;W?(xe=P.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(be,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+be])?Re(xe):be===z&&i("Unhandled promise rejection",we)},fe=function(be){f(u,o,function(){var Le=be.facade,we=be.value,xe=me(be),Re;if(xe&&(Re=h(function(){t?R.emit("unhandledRejection",we,Le):oe(z,Le,we)}),be.rejection=t||me(be)?ie:ue,Re.error))throw Re.value})},me=function(be){return be.rejection!==ue&&!be.parent},Y=function(be){f(u,o,function(){var Le=be.facade;t?R.emit("rejectionHandled",Le):oe(K,Le,be.value)})},ve=function(be,Le,we){return function(xe){be(Le,xe,we)}},he=function(be,Le,we){be.done||(be.done=!0,we&&(be=we),be.value=Le,be.state=Q,re(be,!0))},Ve=function Be(be,Le,we){if(!be.done){be.done=!0,we&&(be=we);try{if(be.facade===Le)throw new E("Promise can't be resolved itself");var xe=le(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,ve(Be,Re,be),ve(he,Re,be))}catch(He){he(Re,He,be)}}):(be.value=Le,be.state=J,re(be,!1))}catch(Re){he({done:!1},Re,be)}}};if(y&&(O=function(){function Be(be){m(this,D),N(be),f(pe,this);var Le=T(this);try{be(ve(Ve,Le),ve(he,Le))}catch(we){he(Le,we)}}return Be}(),D=O.prototype,pe=function(){function Be(be){x(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:G,value:void 0})}return Be}(),pe.prototype=b(D,"then",function(){function Be(be,Le){var we=T(this),xe=j(l(this,O));return we.parent=!0,xe.ok=d(be)?be:!0,xe.fail=d(Le)&&Le,xe.domain=t?R.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){ee(xe,we)}),xe.promise}return Be}()),te=function(){var be=new pe,Le=T(be);this.promise=be,this.resolve=ve(Ve,Le),this.reject=ve(he,Le)},V.f=j=function(be){return be===O||be===q?new te(be):F(be)},!a&&d(p)&&M!==Object.prototype)){ne=M.then,w||b(M,"then",function(){function Be(be,Le){var we=this;return new O(function(xe,Re){f(ne,we,xe,Re)}).then(be,Le)}return Be}(),{unsafe:!0});try{delete M.constructor}catch(Be){}B&&B(M,D)}e({global:!0,constructor:!0,wrap:!0,forced:y},{Promise:O}),I(O,S,!1,!0),k(S)},69861:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),B=n(28987),I=n(66628),k=n(55938),N=t&&t.prototype,d=!!t&&o(function(){N.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(){function m(l){var u=B(this,f("Promise")),s=b(l);return this.then(s?function(i){return I(u,l()).then(function(){return i})}:l,s?function(i){return I(u,l()).then(function(){throw i})}:l)}return m}()}),!a&&b(t)){var c=f("Promise").prototype.finally;N.finally!==c&&k(N,"finally",c,{unsafe:!0})}},53092:function(A,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),B=n(48199);e({target:"Promise",stat:!0,forced:B},{race:function(){function I(k){var N=this,d=o.f(N),c=d.reject,m=f(function(){var l=t(N.resolve);b(k,function(u){a(l,N,u).then(d.resolve,c)})});return m.error&&c(m.value),d.promise}return I}()})},41719:function(A,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),B=b.reject;return B(f),b.promise}return o}()})},59321:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),B=a("Promise"),I=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(N){return b(I&&this===B?o:this,N)}return k}()})},29674:function(A,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function B(I,k,N){return a(t(I),k,o(N))}return B}()})},81543:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),B=n(77568),I=n(80674),k=n(40033),N=a("Reflect","construct"),d=Object.prototype,c=[].push,m=k(function(){function s(){}return!(N(function(){},[],s)instanceof s)}),l=!k(function(){N(function(){})}),u=m||l;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(i,h){f(i),b(h);var C=arguments.length<3?i:f(arguments[2]);if(l&&!m)return N(i,h,C);if(i===C){switch(h.length){case 0:return new i;case 1:return new i(h[0]);case 2:return new i(h[0],h[1]);case 3:return new i(h[0],h[1],h[2]);case 4:return new i(h[0],h[1],h[2],h[3])}var v=[null];return t(c,v,h),new(t(o,i,v))}var p=C.prototype,g=I(B(p)?p:d),V=t(i,g,h);return B(V)?V:g}return s}()})},9373:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),B=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:B,sham:!a},{defineProperty:function(){function I(k,N,d){t(k);var c=o(N);t(d);try{return f.f(k,c,d),!0}catch(m){return!1}}return I}()})},45093:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var B=t(a(f),b);return B&&!B.configurable?!1:delete f[b]}return o}()})},5815:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,B){return o.f(t(b),B)}return f}()})},88527:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),B=n(36917);function I(k,N){var d=arguments.length<3?k:arguments[2],c,m;if(o(k)===d)return k[N];if(c=b.f(k,N),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,d);if(t(m=B(k)))return I(m,N,d)}e({target:"Reflect",stat:!0},{get:I})},66390:function(A,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(A,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var B=a("Object","preventExtensions");return B&&B(b),!0}catch(I){return!1}}return f}()})},63915:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,B){a(b),t(B);try{return o(b,B),!0}catch(I){return!1}}return f}()})},92046:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),B=n(74595),I=n(27193),k=n(36917),N=n(87458);function d(m,l,u){var s=arguments.length<4?m:arguments[3],i=I.f(t(m),l),h,C,v;if(!i){if(o(C=k(m)))return d(C,l,u,s);i=N(0)}if(f(i)){if(i.writable===!1||!o(s))return!1;if(h=I.f(s,l)){if(h.get||h.set||h.writable===!1)return!1;h.value=u,B.f(s,l,h)}else B.f(s,l,N(0,u))}else{if(v=i.set,v===void 0)return!1;a(v,s,u)}return!0}var c=b(function(){var m=function(){},l=B.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:d})},51454:function(A,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),B=n(80674),I=n(37310).f,k=n(21287),N=n(72586),d=n(12605),c=n(73392),m=n(62115),l=n(34550),u=n(55938),s=n(40033),i=n(45299),h=n(5419).enforce,C=n(58491),v=n(24697),p=n(39173),g=n(35688),V=v("match"),S=a.RegExp,y=S.prototype,L=a.SyntaxError,w=t(y.exec),T=t("".charAt),x=t("".replace),M=t("".indexOf),O=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,E=/a/g,P=/a/g,R=new S(E)!==E,j=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,W=e&&(!R||j||p||g||s(function(){return P[V]=!1,S(E)!==E||S(P)===P||String(S(E,"i"))!=="/a/i"})),z=function(ie){for(var pe=ie.length,te=0,q="",ne=!1,le;te<=pe;te++){if(le=T(ie,te),le==="\\"){q+=le+T(ie,++te);continue}!ne&&le==="."?q+="[\\s\\S]":(le==="["?ne=!0:le==="]"&&(ne=!1),q+=le)}return q},K=function(ie){for(var pe=ie.length,te=0,q="",ne=[],le=B(null),ee=!1,re=!1,oe=0,fe="",me;te<=pe;te++){if(me=T(ie,te),me==="\\")me+=T(ie,++te);else if(me==="]")ee=!1;else if(!ee)switch(!0){case me==="[":ee=!0;break;case me==="(":w(D,O(ie,te+1))&&(te+=2,re=!0),q+=me,oe++;continue;case(me===">"&&re):if(fe===""||i(le,fe))throw new L("Invalid capture group name");le[fe]=!0,ne[ne.length]=[fe,oe],re=!1,fe="";continue}re?fe+=me:q+=me}return[q,ne]};if(o("RegExp",W)){for(var G=function(){function ue(ie,pe){var te=k(y,this),q=N(ie),ne=pe===void 0,le=[],ee=ie,re,oe,fe,me,Y,ve;if(!te&&q&&ne&&ie.constructor===G)return ie;if((q||k(y,ie))&&(ie=ie.source,ne&&(pe=c(ee))),ie=ie===void 0?"":d(ie),pe=pe===void 0?"":d(pe),ee=ie,p&&"dotAll"in E&&(oe=!!pe&&M(pe,"s")>-1,oe&&(pe=x(pe,/s/g,""))),re=pe,j&&"sticky"in E&&(fe=!!pe&&M(pe,"y")>-1,fe&&F&&(pe=x(pe,/y/g,""))),g&&(me=K(ie),ie=me[0],le=me[1]),Y=f(S(ie,pe),te?this:y,G),(oe||fe||le.length)&&(ve=h(Y),oe&&(ve.dotAll=!0,ve.raw=G(z(ie),re)),fe&&(ve.sticky=!0),le.length&&(ve.groups=le)),ie!==ee)try{b(Y,"source",ee===""?"(?:)":ee)}catch(he){}return Y}return ue}(),J=I(S),Q=0;J.length>Q;)l(G,S,J[Q++]);y.constructor=G,G.prototype=y,u(a,"RegExp",G,{constructor:!0})}C("RegExp")},79669:function(A,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(A,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,B=b.prototype,I=a&&f(function(){var k=!0;try{b(".","d")}catch(i){k=!1}var N={},d="",c=k?"dgimsy":"gimsy",m=function(h,C){Object.defineProperty(N,h,{get:function(){function v(){return d+=C,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(l.hasIndices="d");for(var u in l)m(u,l[u]);var s=Object.getOwnPropertyDescriptor(B,"flags").get.call(N);return s!==c||d!==c});I&&t(B,"flags",{configurable:!0,get:o})},57983:function(A,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),B="toString",I=RegExp.prototype,k=I[B],N=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&k.name!==B;(N||d)&&a(I,B,function(){function c(){var m=t(this),l=o(m.source),u=o(b(m));return"/"+l+"/"+u}return c}(),{unsafe:!0})},1963:function(A,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(A,r,n){"use strict";n(1963)},95309:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(A,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(A,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),B=n(16952),I=n(45490),k=n(4493),N=a("".slice),d=Math.min,c=I("endsWith"),m=!k&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(u){var s=f(B(this));b(u);var i=arguments.length>1?arguments[1]:void 0,h=s.length,C=i===void 0?h:d(o(i),h),v=f(u);return N(s,C-v.length,C)===v}return l}()})},39308:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,B=a([].join),I=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:I},{fromCodePoint:function(){function k(N){for(var d=[],c=arguments.length,m=0,l;c>m;){if(l=+arguments[m++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");d[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return B(d,"")}return k}()})},43673:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),B=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function I(k){return!!~B(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return I}()})},56027:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(A,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",B=t.set,I=t.getterFor(b);o(String,"String",function(k){B(this,{type:b,string:a(k),index:0})},function(){function k(){var N=I(this),d=N.string,c=N.index,m;return c>=d.length?f(void 0,!0):(m=e(d,c),N.index+=m.length,f(m,!1))}return k}())},50340:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(A,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),B=n(16952),I=n(78060),k=n(35483),N=n(28340);a("match",function(d,c,m){return[function(){function l(u){var s=B(this),i=o(u)?void 0:I(u,d);return i?e(i,u,s):new RegExp(u)[d](b(s))}return l}(),function(l){var u=t(this),s=b(l),i=m(c,u,s);if(i.done)return i.value;if(!u.global)return N(u,s);var h=u.unicode;u.lastIndex=0;for(var C=[],v=0,p;(p=N(u,s))!==null;){var g=b(p[0]);C[v]=g,g===""&&(u.lastIndex=k(s,f(u.lastIndex),h)),v++}return v===0?null:C}]})},5143:function(A,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(A,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),B=a([].push),I=a([].join);e({target:"String",stat:!0},{raw:function(){function k(N){var d=t(o(N).raw),c=b(d);if(!c)return"";for(var m=arguments.length,l=[],u=0;;){if(B(l,f(d[u++])),u===c)return I(l,"");u")!=="7"});o("replace",function(x,M,O){var D=w?"$":"$0";return[function(){function E(P,R){var j=c(this),F=I(P)?void 0:l(P,h);return F?a(F,P,j,R):a(M,d(j),P,R)}return E}(),function(E,P){var R=b(this),j=d(E);if(typeof P=="string"&&V(P,D)===-1&&V(P,"$<")===-1){var F=O(M,R,j,P);if(F.done)return F.value}var W=B(P);W||(P=d(P));var z=R.global,K;z&&(K=R.unicode,R.lastIndex=0);for(var G=[],J;J=s(R,j),!(J===null||(g(G,J),!z));){var Q=d(J[0]);Q===""&&(R.lastIndex=m(j,N(R.lastIndex),K))}for(var ue="",ie=0,pe=0;pe=ie&&(ue+=S(j,ie,q)+le,ie=q+te.length)}return ue+S(j,ie)}]},!T||!L||w)},63272:function(A,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),B=n(12605),I=n(78060),k=n(28340);a("search",function(N,d,c){return[function(){function m(l){var u=f(this),s=o(l)?void 0:I(l,N);return s?e(s,l,u):new RegExp(l)[N](B(u))}return m}(),function(m){var l=t(this),u=B(m),s=c(d,l,u);if(s.done)return s.value;var i=l.lastIndex;b(i,0)||(l.lastIndex=0);var h=k(l,u);return b(l.lastIndex,i)||(l.lastIndex=i),h===null?-1:h.index}]})},34325:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(A,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),B=n(28987),I=n(35483),k=n(10188),N=n(12605),d=n(78060),c=n(28340),m=n(62115),l=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,i=Math.min,h=a([].push),C=a("".slice),v=!l(function(){var g=/(?:)/,V=g.exec;g.exec=function(){return V.apply(this,arguments)};var S="ab".split(g);return S.length!==2||S[0]!=="a"||S[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,V,S){var y="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,T){var x=b(this),M=f(w)?void 0:d(w,g);return M?e(M,w,x,T):e(y,N(x),w,T)}return L}(),function(L,w){var T=o(this),x=N(L);if(!p){var M=S(y,T,x,w,y!==V);if(M.done)return M.value}var O=B(T,RegExp),D=T.unicode,E=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(u?"g":"y"),P=new O(u?"^(?:"+T.source+")":T,E),R=w===void 0?s:w>>>0;if(R===0)return[];if(x.length===0)return c(P,x)===null?[x]:[];for(var j=0,F=0,W=[];F1?arguments[1]:void 0,s.length)),h=f(u);return N(s,i,i+h.length)===h}return l}()})},74498:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(A,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(A,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(A,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(A,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(A,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(A,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),B=n(52357),I=n(40033),k=n(45299),N=n(21287),d=n(30365),c=n(57591),m=n(767),l=n(12605),u=n(87458),s=n(80674),i=n(18450),h=n(37310),C=n(81644),v=n(89235),p=n(27193),g=n(74595),V=n(24239),S=n(12867),y=n(55938),L=n(73936),w=n(16639),T=n(19417),x=n(79195),M=n(16738),O=n(24697),D=n(55557),E=n(85889),P=n(52360),R=n(84925),j=n(5419),F=n(22603).forEach,W=T("hidden"),z="Symbol",K="prototype",G=j.set,J=j.getterFor(z),Q=Object[K],ue=a.Symbol,ie=ue&&ue[K],pe=a.RangeError,te=a.TypeError,q=a.QObject,ne=p.f,le=g.f,ee=C.f,re=S.f,oe=o([].push),fe=w("symbols"),me=w("op-symbols"),Y=w("wks"),ve=!q||!q[K]||!q[K].findChild,he=function(Ce,ke,ge){var Se=ne(Q,ke);Se&&delete Q[ke],le(Ce,ke,ge),Se&&Ce!==Q&&le(Q,ke,Se)},Ve=b&&I(function(){return s(le({},"a",{get:function(){function de(){return le(this,"a",{value:7}).a}return de}()})).a!==7})?he:le,Be=function(Ce,ke){var ge=fe[Ce]=s(ie);return G(ge,{type:z,tag:Ce,description:ke}),b||(ge.description=ke),ge},be=function(){function de(Ce,ke,ge){Ce===Q&&be(me,ke,ge),d(Ce);var Se=m(ke);return d(ge),k(fe,Se)?(ge.enumerable?(k(Ce,W)&&Ce[W][Se]&&(Ce[W][Se]=!1),ge=s(ge,{enumerable:u(0,!1)})):(k(Ce,W)||le(Ce,W,u(1,s(null))),Ce[W][Se]=!0),Ve(Ce,Se,ge)):le(Ce,Se,ge)}return de}(),Le=function(){function de(Ce,ke){d(Ce);var ge=c(ke),Se=i(ge).concat(ye(ge));return F(Se,function(Pe){(!b||t(xe,ge,Pe))&&be(Ce,Pe,ge[Pe])}),Ce}return de}(),we=function(){function de(Ce,ke){return ke===void 0?s(Ce):Le(s(Ce),ke)}return de}(),xe=function(){function de(Ce){var ke=m(Ce),ge=t(re,this,ke);return this===Q&&k(fe,ke)&&!k(me,ke)?!1:ge||!k(this,ke)||!k(fe,ke)||k(this,W)&&this[W][ke]?ge:!0}return de}(),Re=function(){function de(Ce,ke){var ge=c(Ce),Se=m(ke);if(!(ge===Q&&k(fe,Se)&&!k(me,Se))){var Pe=ne(ge,Se);return Pe&&k(fe,Se)&&!(k(ge,W)&&ge[W][Se])&&(Pe.enumerable=!0),Pe}}return de}(),He=function(){function de(Ce){var ke=ee(c(Ce)),ge=[];return F(ke,function(Se){!k(fe,Se)&&!k(x,Se)&&oe(ge,Se)}),ge}return de}(),ye=function(Ce){var ke=Ce===Q,ge=ee(ke?me:c(Ce)),Se=[];return F(ge,function(Pe){k(fe,Pe)&&(!ke||k(Q,Pe))&&oe(Se,fe[Pe])}),Se};B||(ue=function(){function de(){if(N(ie,this))throw new te("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),ke=M(Ce),ge=function(){function Se(Pe){var je=this===void 0?a:this;je===Q&&t(Se,me,Pe),k(je,W)&&k(je[W],ke)&&(je[W][ke]=!1);var _e=u(1,Pe);try{Ve(je,ke,_e)}catch(ze){if(!(ze instanceof pe))throw ze;he(je,ke,_e)}}return Se}();return b&&ve&&Ve(Q,ke,{configurable:!0,set:ge}),Be(ke,Ce)}return de}(),ie=ue[K],y(ie,"toString",function(){function de(){return J(this).tag}return de}()),y(ue,"withoutSetter",function(de){return Be(M(de),de)}),S.f=xe,g.f=be,V.f=Le,p.f=Re,h.f=C.f=He,v.f=ye,D.f=function(de){return Be(O(de),de)},b&&(L(ie,"description",{configurable:!0,get:function(){function de(){return J(this).description}return de}()}),f||y(Q,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!B,sham:!B},{Symbol:ue}),F(i(Y),function(de){E(de)}),e({target:z,stat:!0,forced:!B},{useSetter:function(){function de(){ve=!0}return de}(),useSimple:function(){function de(){ve=!1}return de}()}),e({target:"Object",stat:!0,forced:!B,sham:!b},{create:we,defineProperty:be,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!B},{getOwnPropertyNames:He}),P(),R(ue,z),x[W]=!0},10933:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),B=n(21287),I=n(12605),k=n(73936),N=n(5774),d=t.Symbol,c=d&&d.prototype;if(a&&b(d)&&(!("description"in c)||d().description!==void 0)){var m={},l=function(){function p(){var g=arguments.length<1||arguments[0]===void 0?void 0:I(arguments[0]),V=B(c,this)?new d(g):g===void 0?d():d(g);return g===""&&(m[V]=!0),V}return p}();N(l,d),l.prototype=c,c.constructor=l;var u=String(d("description detection"))==="Symbol(description detection)",s=o(c.valueOf),i=o(c.toString),h=/^Symbol\((.*)\)[^)]+$/,C=o("".replace),v=o("".slice);k(c,"description",{configurable:!0,get:function(){function p(){var g=s(this);if(f(m,g))return"";var V=i(g),S=u?v(V,7,-1):C(V,h,"$1");return S===""?void 0:S}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),B=f("string-to-symbol-registry"),I=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(N){var d=o(N);if(t(B,d))return B[d];var c=a("Symbol")(d);return B[d]=c,I[c]=d,c}return k}()})},53795:function(A,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(A,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(A,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(A,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(A,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),B=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function I(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(B,k))return B[k]}return I}()})},48058:function(A,r,n){"use strict";var e=n(85889);e("match")},51583:function(A,r,n){"use strict";var e=n(85889);e("replace")},82403:function(A,r,n){"use strict";var e=n(85889);e("search")},34265:function(A,r,n){"use strict";var e=n(85889);e("species")},3295:function(A,r,n){"use strict";var e=n(85889);e("split")},1078:function(A,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(A,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(A,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(A,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function B(I,k){return o(f(this),I,k,arguments.length>2?arguments[2]:void 0)}return B}())},73364:function(A,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(A,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),B=n(40033),I=e.aTypedArray,k=e.exportTypedArrayMethod,N=b("".slice),d=B(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var l=arguments.length;I(this);var u=N(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),d)},23793:function(A,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(B){var I=a(o(this),B,arguments.length>1?arguments[1]:void 0);return t(this,I)}return b}())},13917:function(A,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(A,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(A,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(A,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(A,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(A,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(A,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(A,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(A,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(A,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(A,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(A,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),B=b("iterator"),I=e.Uint8Array,k=t(f.values),N=t(f.keys),d=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=I&&I.prototype,u=!a(function(){l[B].call([1])}),s=!!l&&l.values&&l[B]===l.values&&l.values.name==="values",i=function(){function h(){return k(c(this))}return h}();m("entries",function(){function h(){return d(c(this))}return h}(),u),m("keys",function(){function h(){return N(c(this))}return h}(),u),m("values",i,u||!s,{name:"values"}),m(B,i,u||!s,{name:"values"})},5659:function(A,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(B){return f(t(this),B)}return b}())},25014:function(A,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(B){var I=arguments.length;return a(t,o(this),I>1?[B,arguments[1]]:[B])}return b}())},32189:function(A,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(B){return a(o(this),B,arguments.length>1?arguments[1]:void 0,function(I,k){return new(t(I))(k)})}return b}())},23030:function(A,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,B=arguments.length,I=new(t(this))(B);B>b;)I[b]=arguments[b++];return I}return f}(),a)},49110:function(A,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var B=arguments.length;return a(t(this),b,B,B>1?arguments[1]:void 0)}return f}())},24309:function(A,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var B=arguments.length;return a(t(this),b,B,B>1?arguments[1]:void 0)}return f}())},56445:function(A,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,B=a(b).length,I=o(B/2),k=0,N;k1?arguments[1]:void 0,1),C=b(i);if(l)return a(d,this,C,h);var v=this.length,p=o(C),g=0;if(p+h>v)throw new I("Wrong length");for(;gm;)u[m]=d[m++];return u}return I}(),B)},88739:function(A,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(A,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),B=n(652),I=n(19228),k=n(5026),N=n(9342),d=b.aTypedArray,c=b.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),u=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),s=!!l&&!t(function(){if(k)return k<74;if(B)return B<67;if(I)return!0;if(N)return N<602;var h=new m(516),C=Array(516),v,p;for(v=0;v<516;v++)p=v%4,h[v]=515-v,C[v]=v-2*p+3;for(l(h,function(g,V){return(g/4|0)-(V/4|0)}),v=0;v<516;v++)if(h[v]!==C[v])return!0}),i=function(C){return function(v,p){return C!==void 0?+C(v,p)||0:p!==p?-1:v!==v?1:v===0&&p===0?1/v>0&&1/p<0?1:-1:v>p}};c("sort",function(){function h(C){return C!==void 0&&o(C),s?l(this,C):f(d(this),i(C))}return h}(),!s||u)},72532:function(A,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function B(I,k){var N=f(this),d=N.length,c=t(I,d),m=o(N);return new m(N.buffer,N.byteOffset+c*N.BYTES_PER_ELEMENT,a((k===void 0?d:t(k,d))-c))}return B}())},62207:function(A,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,B=t.aTypedArray,I=t.exportTypedArrayMethod,k=[].toLocaleString,N=!!b&&o(function(){k.call(new b(1))}),d=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});I("toLocaleString",function(){function c(){return a(k,N?f(B(this)):B(this),f(arguments))}return c}(),d)},906:function(A,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},B=[].toString,I=o([].join);a(function(){B.call({})})&&(B=function(){function N(){return I(this)}return N}());var k=b.toString!==B;e("toString",B,k)},78824:function(A,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(A,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(A,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(A,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(A,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),B=n(39895),I=n(77568),k=n(5419).enforce,N=n(40033),d=n(21820),c=Object,m=Array.isArray,l=c.isExtensible,u=c.isFrozen,s=c.isSealed,i=c.freeze,h=c.seal,C=!a.ActiveXObject&&"ActiveXObject"in a,v,p=function(M){return function(){function O(){return M(this,arguments.length?arguments[0]:void 0)}return O}()},g=b("WeakMap",p,B),V=g.prototype,S=t(V.set),y=function(){return e&&N(function(){var M=i([]);return S(new g,M,1),!u(M)})};if(d)if(C){v=B.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),T=t(V.get);o(V,{delete:function(){function x(M){if(I(M)&&!l(M)){var O=k(this);return O.frozen||(O.frozen=new v),L(this,M)||O.frozen.delete(M)}return L(this,M)}return x}(),has:function(){function x(M){if(I(M)&&!l(M)){var O=k(this);return O.frozen||(O.frozen=new v),w(this,M)||O.frozen.has(M)}return w(this,M)}return x}(),get:function(){function x(M){if(I(M)&&!l(M)){var O=k(this);return O.frozen||(O.frozen=new v),w(this,M)?T(this,M):O.frozen.get(M)}return T(this,M)}return x}(),set:function(){function x(M,O){if(I(M)&&!l(M)){var D=k(this);D.frozen||(D.frozen=new v),w(this,M)?S(this,M,O):D.frozen.set(M,O)}else S(this,M,O);return this}return x}()})}else y()&&o(V,{set:function(){function x(M,O){var D;return m(M)&&(u(M)?D=i:s(M)&&(D=h)),S(this,M,O),D&&D(M),this}return x}()})},90846:function(A,r,n){"use strict";n(80040)},67042:function(A,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(A,r,n){"use strict";n(67042)},5606:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(A,r,n){"use strict";n(5606),n(27807)},25764:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),B=n(58310),I=b(function(){return B&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:I},{queueMicrotask:function(){function k(N){f(arguments.length,1),t(o(N))}return k}()})},27807:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(A,r,n){"use strict";n(45569),n(5213)},7435:function(A){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(A,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=70752},59395:function(A,r,n){var e={"./pda_alarm_button.js":1428,"./pda_atmos_scan.js":78532,"./pda_games.js":2395,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_minesweeper.js":90382,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=59395},32054:function(A,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AdminAntagMenu":23001,"./AdminAntagMenu.js":23001,"./AgentCard":39683,"./AgentCard.tsx":39683,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosGraphMonitor":57258,"./AtmosGraphMonitor.tsx":57258,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./AugmentMenu":92444,"./AugmentMenu.js":92444,"./Autolathe":59179,"./Autolathe.js":59179,"./Autolathe220":29943,"./Autolathe220.tsx":29943,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./CameraConsole220":39222,"./CameraConsole220.js":39222,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./Chameleon":36232,"./Chameleon.tsx":36232,"./ChangelogView":87331,"./ChangelogView.js":87331,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DecalPainter":76430,"./DecalPainter.js":76430,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EmotePanel":69784,"./EmotePanel.js":69784,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./Jukebox":52736,"./Jukebox.tsx":52736,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./ModpacksList":61468,"./ModpacksList.js":61468,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./Photocopier220":8340,"./Photocopier220.js":8340,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./Radio220":41367,"./Radio220.tsx":41367,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/AnalyzerMenu":68303,"./RndConsole/AnalyzerMenu.js":68303,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./Shop":17474,"./Shop.js":17474,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./SingularityMonitor":86013,"./SingularityMonitor.js":86013,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TTSSeedsExplorer":23190,"./TTSSeedsExplorer.tsx":23190,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./goonstation_PTL":95213,"./goonstation_PTL/":95213,"./goonstation_PTL/index":95213,"./goonstation_PTL/index.js":95213,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_alarm_button":1428,"./pda/pda_alarm_button.js":1428,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_games":2395,"./pda/pda_games.js":2395,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_minesweeper":90382,"./pda/pda_minesweeper.js":90382,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=32054},4085:function(A,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,A.exports=a,a.id=4085},10320:function(A,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;A.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(A,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;A.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(A,r,n){"use strict";var e=n(45015),a=String,t=TypeError;A.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(A,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),A.exports=function(b){f[o][b]=!0}},35483:function(A,r,n){"use strict";var e=n(50233).charAt;A.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(A,r,n){"use strict";var e=n(21287),a=TypeError;A.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(A,r,n){"use strict";var e=n(77568),a=String,t=TypeError;A.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(A){"use strict";A.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(A,r,n){"use strict";var e=n(40033);A.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(A,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),B=n(2281),I=n(89393),k=n(37909),g=n(55938),d=n(73936),c=n(21287),m=n(36917),i=n(76649),u=n(24697),s=n(16738),l=n(5419),h=l.enforce,C=l.get,v=t.Int8Array,p=v&&v.prototype,N=t.Uint8ClampedArray,V=N&&N.prototype,S=v&&m(v),y=p&&m(p),L=Object.prototype,w=t.TypeError,T=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",P=e&&!!i&&B(t.opera)!=="Opera",D=!1,E,O,R,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},W=function(){function ie(pe){if(!f(pe))return!1;var te=B(pe);return te==="DataView"||b(j,te)||b(F,te)}return ie}(),z=function ie(pe){var te=m(pe);if(f(te)){var q=C(te);return q&&b(q,M)?q[M]:ie(te)}},K=function(pe){if(!f(pe))return!1;var te=B(pe);return b(j,te)||b(F,te)},G=function(pe){if(K(pe))return pe;throw new w("Target is not a typed array")},J=function(pe){if(o(pe)&&(!i||c(S,pe)))return pe;throw new w(I(pe)+" is not a typed array constructor")},Q=function(pe,te,q,ne){if(a){if(q)for(var le in j){var ee=t[le];if(ee&&b(ee.prototype,pe))try{delete ee.prototype[pe]}catch(re){try{ee.prototype[pe]=te}catch(oe){}}}(!y[pe]||q)&&g(y,pe,q?te:P&&p[pe]||te,ne)}},ue=function(pe,te,q){var ne,le;if(a){if(i){if(q){for(ne in j)if(le=t[ne],le&&b(le,pe))try{delete le[pe]}catch(ee){}}if(!S[pe]||q)try{return g(S,pe,q?te:P&&S[pe]||te)}catch(ee){}else return}for(ne in j)le=t[ne],le&&(!le[pe]||q)&&g(le,pe,te)}};for(E in j)O=t[E],R=O&&O.prototype,R?h(R)[M]=O:P=!1;for(E in F)O=t[E],R=O&&O.prototype,R&&(h(R)[M]=O);if((!P||!o(S)||S===Function.prototype)&&(S=function(){function ie(){throw new w("Incorrect invocation")}return ie}(),P))for(E in j)t[E]&&i(t[E],S);if((!P||!y||y===L)&&(y=S.prototype,P))for(E in j)t[E]&&i(t[E].prototype,y);if(P&&m(V)!==y&&i(V,y),a&&!b(y,T)){D=!0,d(y,T,{configurable:!0,get:function(){function ie(){return f(this)?this[x]:void 0}return ie}()});for(E in j)t[E]&&k(t[E],x,E)}A.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:D&&x,aTypedArray:G,aTypedArrayConstructor:J,exportTypedArrayMethod:Q,exportTypedArrayStaticMethod:ue,getTypedArrayConstructor:z,isView:W,isTypedArray:K,TypedArray:S,TypedArrayPrototype:y}},37336:function(A,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),B=n(73936),I=n(30145),k=n(40033),g=n(60077),d=n(61365),c=n(10188),m=n(43806),i=n(95867),u=n(91784),s=n(36917),l=n(76649),h=n(88471),C=n(54602),v=n(5781),p=n(5774),N=n(84925),V=n(5419),S=f.PROPER,y=f.CONFIGURABLE,L="ArrayBuffer",w="DataView",T="prototype",x="Wrong length",M="Wrong index",P=V.getterFor(L),D=V.getterFor(w),E=V.set,O=e[L],R=O,j=R&&R[T],F=e[w],W=F&&F[T],z=Object.prototype,K=e.Array,G=e.RangeError,J=a(h),Q=a([].reverse),ue=u.pack,ie=u.unpack,pe=function(Ve){return[Ve&255]},te=function(Ve){return[Ve&255,Ve>>8&255]},q=function(Ve){return[Ve&255,Ve>>8&255,Ve>>16&255,Ve>>24&255]},ne=function(Ve){return Ve[3]<<24|Ve[2]<<16|Ve[1]<<8|Ve[0]},le=function(Ve){return ue(i(Ve),23,4)},ee=function(Ve){return ue(Ve,52,8)},re=function(Ve,Be,be){B(Ve[T],Be,{configurable:!0,get:function(){function Le(){return be(this)[Be]}return Le}()})},oe=function(Ve,Be,be,Le){var we=D(Ve),xe=m(be),Re=!!Le;if(xe+Be>we.byteLength)throw new G(M);var He=we.bytes,ye=xe+we.byteOffset,de=C(He,ye,ye+Be);return Re?de:Q(de)},fe=function(Ve,Be,be,Le,we,xe){var Re=D(Ve),He=m(be),ye=Le(+we),de=!!xe;if(He+Be>Re.byteLength)throw new G(M);for(var Ce=Re.bytes,ke=He+Re.byteOffset,ge=0;gewe)throw new G("Wrong offset");if(be=be===void 0?we-xe:c(be),xe+be>we)throw new G(x);E(this,{type:w,buffer:Ve,byteLength:be,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=Ve,this.byteLength=be,this.byteOffset=xe)}return he}(),W=F[T],t&&(re(R,"byteLength",P),re(F,"buffer",D),re(F,"byteLength",D),re(F,"byteOffset",D)),I(W,{getInt8:function(){function he(Ve){return oe(this,1,Ve)[0]<<24>>24}return he}(),getUint8:function(){function he(Ve){return oe(this,1,Ve)[0]}return he}(),getInt16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return he}(),getUint16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return he}(),getInt32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))}return he}(),getUint32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))>>>0}return he}(),getFloat32:function(){function he(Ve){return ie(oe(this,4,Ve,arguments.length>1?arguments[1]:!1),23)}return he}(),getFloat64:function(){function he(Ve){return ie(oe(this,8,Ve,arguments.length>1?arguments[1]:!1),52)}return he}(),setInt8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setUint8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setInt16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setInt32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat32:function(){function he(Ve,Be){fe(this,4,Ve,le,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat64:function(){function he(Ve,Be){fe(this,8,Ve,ee,Be,arguments.length>2?arguments[2]:!1)}return he}()});else{var me=S&&O.name!==L;!k(function(){O(1)})||!k(function(){new O(-1)})||k(function(){return new O,new O(1.5),new O(NaN),O.length!==1||me&&!y})?(R=function(){function he(Ve){return g(this,j),v(new O(m(Ve)),this,R)}return he}(),R[T]=j,j.constructor=R,p(R,O)):me&&y&&b(O,"name",L),l&&s(W)!==z&&l(W,z);var Y=new F(new R(2)),ve=a(W.setInt8);Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),(Y.getInt8(0)||!Y.getInt8(1))&&I(W,{setInt8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}(),setUint8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}()},{unsafe:!0})}N(R,L),N(F,w),A.exports={ArrayBuffer:R,DataView:F}},71447:function(A,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;A.exports=[].copyWithin||function(){function b(B,I){var k=e(this),g=t(k),d=a(B,g),c=a(I,g),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?g:a(m,g))-c,g-d),u=1;for(c0;)c in k?k[d]=k[c]:o(k,d),d+=u,c+=u;return k}return b}()},88471:function(A,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);A.exports=function(){function o(f){for(var b=e(this),B=t(b),I=arguments.length,k=a(I>1?arguments[1]:void 0,B),g=I>2?arguments[2]:void 0,d=g===void 0?B:a(g,B);d>k;)b[k++]=f;return b}return o}()},35601:function(A,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");A.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(A,r,n){"use strict";var e=n(24760);A.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),B=new a(b);b>f;)B[f]=t[f++];return B}},73174:function(A,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),B=n(24760),I=n(60102),k=n(77455),g=n(59201),d=Array;A.exports=function(){function c(m){var i=t(m),u=b(this),s=arguments.length,l=s>1?arguments[1]:void 0,h=l!==void 0;h&&(l=e(l,s>2?arguments[2]:void 0));var C=g(i),v=0,p,N,V,S,y,L;if(C&&!(this===d&&f(C)))for(N=u?new this:[],S=k(i,C),y=S.next;!(V=a(y,S)).done;v++)L=h?o(S,l,[V.value,v],!0):V.value,I(N,v,L);else for(p=B(i),N=u?new this(p):d(p);p>v;v++)L=h?l(i[v],v):i[v],I(N,v,L);return N.length=v,N}return c}()},14211:function(A,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(B,I,k){var g=e(B),d=t(g);if(d===0)return!b&&-1;var c=a(k,d),m;if(b&&I!==I){for(;d>c;)if(m=g[c++],m!==m)return!0}else for(;d>c;c++)if((b||c in g)&&g[c]===I)return b||c||0;return!b&&-1}};A.exports={includes:o(!0),indexOf:o(!1)}},22603:function(A,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),B=a([].push),I=function(g){var d=g===1,c=g===2,m=g===3,i=g===4,u=g===6,s=g===7,l=g===5||u;return function(h,C,v,p){for(var N=o(h),V=t(N),S=f(V),y=e(C,v),L=0,w=p||b,T=d?w(h,S):c||s?w(h,0):void 0,x,M;S>L;L++)if((l||L in V)&&(x=V[L],M=y(x,L,N),g))if(d)T[L]=M;else if(M)switch(g){case 3:return!0;case 5:return x;case 6:return L;case 2:B(T,x)}else switch(g){case 4:return!1;case 7:B(T,x)}return u?-1:m||i?i:T}};A.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},1325:function(A,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,B=[].lastIndexOf,I=!!B&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),g=I||!k;A.exports=g?function(){function d(c){if(I)return e(B,this,arguments)||0;var m=a(this),i=o(m);if(i===0)return-1;var u=i-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=i+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return d}():B},44091:function(A,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");A.exports=function(f){return t>=51||!e(function(){var b=[],B=b.constructor={};return B[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(A,r,n){"use strict";var e=n(40033);A.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(A,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",B=function(k){return function(g,d,c,m){var i=a(g),u=t(i),s=o(i);if(e(d),s===0&&c<2)throw new f(b);var l=k?s-1:0,h=k?-1:1;if(c<2)for(;;){if(l in u){m=u[l],l+=h;break}if(l+=h,k?l<0:s<=l)throw new f(b)}for(;k?l>=0:s>l;l+=h)l in u&&(m=d(m,u[l],l,i));return m}};A.exports={left:B(!1),right:B(!0)}},13345:function(A,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();A.exports=f?function(b,B){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=B}:function(b,B){return b.length=B}},54602:function(A,r,n){"use strict";var e=n(67250);A.exports=e([].slice)},90274:function(A,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var B=f.length;if(B<8)for(var I=1,k,g;I0;)f[g]=f[--g];g!==I++&&(f[g]=k)}else for(var d=a(B/2),c=o(e(f,0,d),b),m=o(e(f,d),b),i=c.length,u=m.length,s=0,l=0;s1?arguments[1]:void 0),M;M=M?M.next:T.first;)for(x(M.value,M.key,this);M&&M.removed;)M=M.previous}return L}(),has:function(){function L(w){return!!y(this,w)}return L}()}),t(N,C?{get:function(){function L(w){var T=y(this,w);return T&&T.value}return L}(),set:function(){function L(w,T){return S(this,w===0?0:w,T)}return L}()}:{add:function(){function L(w){return S(this,w=w===0?0:w,w)}return L}()}),d&&a(N,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(l,h,C){var v=h+" Iterator",p=u(h),N=u(v);I(l,h,function(V,S){i(this,{type:v,target:V,state:p(V),kind:S,last:void 0})},function(){for(var V=N(this),S=V.kind,y=V.last;y&&y.removed;)y=y.previous;return!V.target||!(V.last=y=y?y.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(S==="keys"?y.key:S==="values"?y.value:[y.key,y.value],!1)},C?"entries":"values",!C,!0),g(h)}return s}()}},39895:function(A,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),B=n(77568),I=n(49450),k=n(22603),g=n(45299),d=n(5419),c=d.set,m=d.getterFor,i=k.find,u=k.findIndex,s=e([].splice),l=0,h=function(N){return N.frozen||(N.frozen=new C)},C=function(){this.entries=[]},v=function(N,V){return i(N.entries,function(S){return S[0]===V})};C.prototype={get:function(){function p(N){var V=v(this,N);if(V)return V[1]}return p}(),has:function(){function p(N){return!!v(this,N)}return p}(),set:function(){function p(N,V){var S=v(this,N);S?S[1]=V:this.entries.push([N,V])}return p}(),delete:function(){function p(N){var V=u(this.entries,function(S){return S[0]===N});return~V&&s(this.entries,V,1),!!~V}return p}()},A.exports={getConstructor:function(){function p(N,V,S,y){var L=N(function(M,P){o(M,w),c(M,{type:V,id:l++,frozen:void 0}),b(P)||I(P,M[y],{that:M,AS_ENTRIES:S})}),w=L.prototype,T=m(V),x=function(){function M(P,D,E){var O=T(P),R=t(f(D),!0);return R===!0?h(O).set(D,E):R[O.id]=E,P}return M}();return a(w,{delete:function(){function M(P){var D=T(this);if(!B(P))return!1;var E=t(P);return E===!0?h(D).delete(P):E&&g(E,D.id)&&delete E[D.id]}return M}(),has:function(){function M(P){var D=T(this);if(!B(P))return!1;var E=t(P);return E===!0?h(D).has(P):E&&g(E,D.id)}return M}()}),a(w,S?{get:function(){function M(P){var D=T(this);if(B(P)){var E=t(P);return E===!0?h(D).get(P):E?E[D.id]:void 0}}return M}(),set:function(){function M(P,D){return x(this,P,D)}return M}()}:{add:function(){function M(P){return x(this,P,!0)}return M}()}),L}return p}()}},45150:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),B=n(49450),I=n(60077),k=n(55747),g=n(42871),d=n(77568),c=n(40033),m=n(92490),i=n(84925),u=n(5781);A.exports=function(s,l,h){var C=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,p=C?"set":"add",N=a[s],V=N&&N.prototype,S=N,y={},L=function(O){var R=t(V[O]);f(V,O,O==="add"?function(){function j(F){return R(this,F===0?0:F),this}return j}():O==="delete"?function(j){return v&&!d(j)?!1:R(this,j===0?0:j)}:O==="get"?function(){function j(F){return v&&!d(F)?void 0:R(this,F===0?0:F)}return j}():O==="has"?function(){function j(F){return v&&!d(F)?!1:R(this,F===0?0:F)}return j}():function(){function j(F,W){return R(this,F===0?0:F,W),this}return j}())},w=o(s,!k(N)||!(v||V.forEach&&!c(function(){new N().entries().next()})));if(w)S=h.getConstructor(l,s,C,p),b.enable();else if(o(s,!0)){var T=new S,x=T[p](v?{}:-0,1)!==T,M=c(function(){T.has(1)}),P=m(function(E){new N(E)}),D=!v&&c(function(){for(var E=new N,O=5;O--;)E[p](O,O);return!E.has(-0)});P||(S=l(function(E,O){I(E,V);var R=u(new N,E,S);return g(O)||B(O,R[p],{that:R,AS_ENTRIES:C}),R}),S.prototype=V,V.constructor=S),(M||D)&&(L("delete"),L("has"),C&&L("get")),(D||x)&&L(p),v&&V.clear&&delete V.clear}return y[s]=S,e({global:!0,constructor:!0,forced:S!==N},y),i(S,s),v||h.setStrong(S,s,C),S}},5774:function(A,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);A.exports=function(f,b,B){for(var I=a(b),k=o.f,g=t.f,d=0;d"+g+""}},5959:function(A){"use strict";A.exports=function(r,n){return{value:r,done:n}}},37909:function(A,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);A.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(A){"use strict";A.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(A,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);A.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(A,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,B=Date.prototype,I=B.toISOString,k=e(B.getTime),g=e(B.getUTCDate),d=e(B.getUTCFullYear),c=e(B.getUTCHours),m=e(B.getUTCMilliseconds),i=e(B.getUTCMinutes),u=e(B.getUTCMonth),s=e(B.getUTCSeconds);A.exports=a(function(){return I.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){I.call(new Date(NaN))})?function(){function l(){if(!f(k(this)))throw new o("Invalid time value");var h=this,C=d(h),v=m(h),p=C<0?"-":C>9999?"+":"";return p+t(b(C),p?6:4,0)+"-"+t(u(h)+1,2,0)+"-"+t(g(h),2,0)+"T"+t(c(h),2,0)+":"+t(i(h),2,0)+":"+t(s(h),2,0)+"."+t(v,3,0)+"Z"}return l}():I},10886:function(A,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;A.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(A,r,n){"use strict";var e=n(20001),a=n(74595);A.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(A,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);A.exports=function(f,b,B,I){I||(I={});var k=I.enumerable,g=I.name!==void 0?I.name:b;if(e(B)&&t(B,g,I),I.global)k?f[b]=B:o(b,B);else{try{I.unsafe?f[b]&&(k=!0):delete f[b]}catch(d){}k?f[b]=B:a.f(f,b,{value:B,enumerable:!1,configurable:!I.nonConfigurable,writable:!I.nonWritable})}return f}},30145:function(A,r,n){"use strict";var e=n(55938);A.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(A,r,n){"use strict";var e=n(74685),a=Object.defineProperty;A.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(A,r,n){"use strict";var e=n(89393),a=TypeError;A.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(A,r,n){"use strict";var e=n(40033);A.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(A,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);A.exports=function(f){return o?t.createElement(f):{}}},21291:function(A){"use strict";var r=TypeError,n=9007199254740991;A.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(A,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);A.exports=!!a&&+a[1]},8180:function(A,r,n){"use strict";var e=n(73730),a=n(81702);A.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(A){"use strict";A.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(A){"use strict";A.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(A,r,n){"use strict";var e=n(63318);A.exports=/MSIE|Trident/.test(e)},51802:function(A,r,n){"use strict";var e=n(63318);A.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(A,r,n){"use strict";var e=n(63318);A.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(A,r,n){"use strict";var e=n(74685),a=n(7462);A.exports=a(e.process)==="process"},63383:function(A,r,n){"use strict";var e=n(63318);A.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(A){"use strict";A.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(A,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,B,I;b&&(B=b.split("."),I=B[0]>0&&B[0]<4?1:+(B[0]+B[1])),!I&&a&&(B=a.match(/Edge\/(\d+)/),(!B||B[1]>=74)&&(B=a.match(/Chrome\/(\d+)/),B&&(I=+B[1]))),A.exports=I},9342:function(A,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);A.exports=!!a&&+a[1]},89453:function(A){"use strict";A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(A,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),B=n(41314);A.exports=function(I,k){var g=I.target,d=I.global,c=I.stat,m,i,u,s,l,h;if(d?i=e:c?i=e[g]||f(g,{}):i=e[g]&&e[g].prototype,i)for(u in k){if(l=k[u],I.dontCallGetSet?(h=a(i,u),s=h&&h.value):s=i[u],m=B(d?u:g+(c?".":"#")+u,I.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;b(l,s)}(I.sham||s&&s.sham)&&t(l,"sham",!0),o(i,u,l,I)}}},40033:function(A){"use strict";A.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(A,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),B=f("species"),I=RegExp.prototype;A.exports=function(k,g,d,c){var m=f(k),i=!o(function(){var h={};return h[m]=function(){return 7},""[k](h)!==7}),u=i&&!o(function(){var h=!1,C=/a/;return k==="split"&&(C={},C.constructor={},C.constructor[B]=function(){return C},C.flags="",C[m]=/./[m]),C.exec=function(){return h=!0,null},C[m](""),!h});if(!i||!u||d){var s=/./[m],l=g(m,""[k],function(h,C,v,p,N){var V=C.exec;return V===t||V===I.exec?i&&!N?{done:!0,value:e(s,C,v,p)}:{done:!0,value:e(h,v,C,p)}:{done:!1}});a(String.prototype,k,l[0]),a(I,m,l[1])}c&&b(I[m],"sham",!0)}},65561:function(A,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(B,I,k,g,d,c,m,i){for(var u=d,s=0,l=m?o(m,i):!1,h,C;s0&&e(h)?(C=a(h),u=b(B,I,h,C,u,c-1)-1):(t(u+1),B[u]=h),u++),s++;return u};A.exports=f},50730:function(A,r,n){"use strict";var e=n(40033);A.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(A,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;A.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(A,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);A.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(A,r,n){"use strict";var e=n(40033);A.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(A,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),B=Function,I=e([].concat),k=e([].join),g={},d=function(m,i,u){if(!o(g,i)){for(var s=[],l=0;l]*>)/g,I=/\$([$&'`]|\d{1,2})/g;A.exports=function(k,g,d,c,m,i){var u=d+k.length,s=c.length,l=I;return m!==void 0&&(m=a(m),l=B),f(i,l,function(h,C){var v;switch(o(C,0)){case"$":return"$";case"&":return k;case"`":return b(g,0,d);case"'":return b(g,u);case"<":v=m[b(C,1,-1)];break;default:var p=+C;if(p===0)return h;if(p>s){var N=t(p/10);return N===0?h:N<=s?c[N-1]===void 0?o(C,1):c[N-1]+o(C,1):h}v=c[p-1]}return v===void 0?"":v})}},74685:function(A,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};A.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(A,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);A.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(A){"use strict";A.exports={}},72259:function(A){"use strict";A.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(A,r,n){"use strict";var e=n(4009);A.exports=e("document","documentElement")},36223:function(A,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);A.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(A){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(I,k,g){var d=r(g),c=g*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=I<0||I===0&&1/I<0?1:0,l=0,h,C,v;for(I=n(I),I!==I||I===1/0?(C=I!==I?1:0,h=m):(h=a(t(I)/o),v=e(2,-h),I*v<1&&(h--,v*=2),h+i>=1?I+=u/v:I+=u*e(2,1-i),I*v>=2&&(h++,v/=2),h+i>=m?(C=0,h=m):h+i>=1?(C=(I*v-1)*e(2,k),h+=i):(C=I*e(2,i-1)*e(2,k),h=0));k>=8;)d[l++]=C&255,C/=256,k-=8;for(h=h<0;)d[l++]=h&255,h/=256,c-=8;return d[--l]|=s*128,d},b=function(I,k){var g=I.length,d=g*8-k-1,c=(1<>1,i=d-7,u=g-1,s=I[u--],l=s&127,h;for(s>>=7;i>0;)l=l*256+I[u--],i-=8;for(h=l&(1<<-i)-1,l>>=-i,i+=k;i>0;)h=h*256+I[u--],i-=8;if(l===0)l=1-m;else{if(l===c)return h?NaN:s?-1/0:1/0;h+=e(2,k),l-=m}return(s?-1:1)*h*e(2,l-k)};A.exports={pack:f,unpack:b}},37457:function(A,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);A.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(A,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);A.exports=function(o,f,b){var B,I;return t&&e(B=f.constructor)&&B!==b&&a(I=B.prototype)&&I!==b.prototype&&t(o,I),o}},40492:function(A,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),A.exports=t.inspectSource},81969:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,B=n(37310),I=n(81644),k=n(81834),g=n(16738),d=n(50730),c=!1,m=g("meta"),i=0,u=function(N){b(N,m,{value:{objectID:"O"+i++,weakData:{}}})},s=function(N,V){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!k(N))return"F";if(!V)return"E";u(N)}return N[m].objectID},l=function(N,V){if(!f(N,m)){if(!k(N))return!0;if(!V)return!1;u(N)}return N[m].weakData},h=function(N){return d&&c&&k(N)&&!f(N,m)&&u(N),N},C=function(){v.enable=function(){},c=!0;var N=B.f,V=a([].splice),S={};S[m]=1,N(S).length&&(B.f=function(y){for(var L=N(y),w=0,T=L.length;wy;y++)if(w=P(i[y]),w&&B(m,w))return w;return new c(!1)}V=I(i,S)}for(T=C?i.next:V.next;!(x=a(T,V)).done;){try{w=P(x.value)}catch(D){g(V,"throw",D)}if(typeof w=="object"&&w&&B(m,w))return w}return new c(!1)}},28649:function(A,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);A.exports=function(o,f,b){var B,I;a(o);try{if(B=t(o,"return"),!B){if(f==="throw")throw b;return b}B=e(B,o)}catch(k){I=!0,B=k}if(f==="throw")throw b;if(I)throw B;return a(B),b}},5656:function(A,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};A.exports=function(B,I,k,g){var d=I+" Iterator";return B.prototype=a(e,{next:t(+!g,k)}),o(B,d,!1,!0),f[d]=b,B}},65574:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),B=n(36917),I=n(76649),k=n(84925),g=n(37909),d=n(55938),c=n(24697),m=n(83967),i=n(67635),u=o.PROPER,s=o.CONFIGURABLE,l=i.IteratorPrototype,h=i.BUGGY_SAFARI_ITERATORS,C=c("iterator"),v="keys",p="values",N="entries",V=function(){return this};A.exports=function(S,y,L,w,T,x,M){b(L,y,w);var P=function(J){if(J===T&&j)return j;if(!h&&J&&J in O)return O[J];switch(J){case v:return function(){function Q(){return new L(this,J)}return Q}();case p:return function(){function Q(){return new L(this,J)}return Q}();case N:return function(){function Q(){return new L(this,J)}return Q}()}return function(){return new L(this)}},D=y+" Iterator",E=!1,O=S.prototype,R=O[C]||O["@@iterator"]||T&&O[T],j=!h&&R||P(T),F=y==="Array"&&O.entries||R,W,z,K;if(F&&(W=B(F.call(new S)),W!==Object.prototype&&W.next&&(!t&&B(W)!==l&&(I?I(W,l):f(W[C])||d(W,C,V)),k(W,D,!0,!0),t&&(m[D]=V))),u&&T===p&&R&&R.name!==p&&(!t&&s?g(O,"name",p):(E=!0,j=function(){function G(){return a(R,this)}return G}())),T)if(z={values:P(p),keys:x?j:P(v),entries:P(N)},M)for(K in z)(h||E||!(K in O))&&d(O,K,z[K]);else e({target:y,proto:!0,forced:h||E},z);return(!t||M)&&O[C]!==j&&d(O,C,j,{name:T}),m[y]=j,z}},67635:function(A,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),B=n(24697),I=n(4493),k=B("iterator"),g=!1,d,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(d=c)):g=!0);var i=!t(d)||e(function(){var u={};return d[k].call(u)!==u});i?d={}:I&&(d=o(d)),a(d[k])||b(d,k,function(){return this}),A.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:g}},83967:function(A){"use strict";A.exports={}},24760:function(A,r,n){"use strict";var e=n(10188);A.exports=function(a){return e(a.length)}},20001:function(A,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,B=n(40492),I=n(5419),k=I.enforce,g=I.get,d=String,c=Object.defineProperty,m=e("".slice),i=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),h=A.exports=function(C,v,p){m(d(v),0,7)==="Symbol("&&(v="["+i(d(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(v="get "+v),p&&p.setter&&(v="set "+v),(!o(C,"name")||b&&C.name!==v)&&(f?c(C,"name",{value:v,configurable:!0}):C.name=v),s&&p&&o(p,"arity")&&C.length!==p.arity&&c(C,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&c(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch(V){}var N=k(C);return o(N,"source")||(N.source=u(l,typeof v=="string"?v:"")),C};Function.prototype.toString=h(function(){function C(){return t(this)&&g(this).source||B(this)}return C}(),"toString")},82040:function(A){"use strict";var r=Math.expm1,n=Math.exp;A.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(A,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(B){return B+o-o};A.exports=function(b,B,I,k){var g=+b,d=a(g),c=e(g);if(dI||i!==i?c*(1/0):c*i}},95867:function(A,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;A.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(A){"use strict";var r=Math.log,n=Math.LOG10E;A.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(A){"use strict";var r=Math.log;A.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(A){"use strict";A.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(A){"use strict";var r=Math.ceil,n=Math.floor;A.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(A,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),B=n(51802),I=n(63383),k=n(81702),g=e.MutationObserver||e.WebKitMutationObserver,d=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),u,s,l,h,C;if(!i){var v=new f,p=function(){var V,S;for(k&&(V=c.domain)&&V.exit();S=v.get();)try{S()}catch(y){throw v.head&&u(),y}V&&V.enter()};!b&&!k&&!I&&g&&d?(s=!0,l=d.createTextNode(""),new g(p).observe(l,{characterData:!0}),u=function(){l.data=s=!s}):!B&&m&&m.resolve?(h=m.resolve(void 0),h.constructor=m,C=t(h.then,h),u=function(){C(p)}):k?u=function(){c.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),i=function(V){v.head||u(),v.add(V)}}A.exports=i},81837:function(A,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,B;this.promise=new f(function(I,k){if(b!==void 0||B!==void 0)throw new a("Bad Promise constructor");b=I,B=k}),this.resolve=e(b),this.reject=e(B)};A.exports.f=function(o){return new t(o)}},86213:function(A,r,n){"use strict";var e=n(72586),a=TypeError;A.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(A,r,n){"use strict";var e=n(74685),a=e.isFinite;A.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(A,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),B=t("".charAt),I=e.parseFloat,k=e.Symbol,g=k&&k.iterator,d=1/I(b+"-0")!==-1/0||g&&!a(function(){I(Object(g))});A.exports=d?function(){function c(m){var i=f(o(m)),u=I(i);return u===0&&B(i,0)==="-"?-0:u}return c}():I},13693:function(A,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),B=e.parseInt,I=e.Symbol,k=I&&I.iterator,g=/^[+-]?0x/i,d=t(g.exec),c=B(b+"08")!==8||B(b+"0x16")!==22||k&&!a(function(){B(Object(k))});A.exports=c?function(){function m(i,u){var s=f(o(i));return B(s,u>>>0||(d(g,s)?16:10))}return m}():B},41143:function(A,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),B=n(12867),I=n(46771),k=n(37457),g=Object.assign,d=Object.defineProperty,c=a([].concat);A.exports=!g||o(function(){if(e&&g({b:1},g(d({},"a",{enumerable:!0,get:function(){function l(){d(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},i={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(l){i[l]=l}),g({},m)[u]!==7||f(g({},i)).join("")!==s})?function(){function m(i,u){for(var s=I(i),l=arguments.length,h=1,C=b.f,v=B.f;l>h;)for(var p=k(arguments[h++]),N=C?c(f(p),C(p)):f(p),V=N.length,S=0,y;V>S;)y=N[S++],(!e||t(v,p,y))&&(s[y]=p[y]);return s}return m}():g},80674:function(A,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),B=n(19417),I=">",k="<",g="prototype",d="script",c=B("IE_PROTO"),m=function(){},i=function(v){return k+d+I+v+k+"/"+d+I},u=function(v){v.write(i("")),v.close();var p=v.parentWindow.Object;return v=null,p},s=function(){var v=b("iframe"),p="java"+d+":",N;return v.style.display="none",f.appendChild(v),v.src=String(p),N=v.contentWindow.document,N.open(),N.write(i("document.F=Object")),N.close(),N.F},l,h=function(){try{l=new ActiveXObject("htmlfile")}catch(p){}h=typeof document!="undefined"?document.domain&&l?u(l):s():u(l);for(var v=t.length;v--;)delete h[g][t[v]];return h()};o[c]=!0,A.exports=Object.create||function(){function C(v,p){var N;return v!==null?(m[g]=e(v),N=new m,m[g]=null,N[c]=v):N=h(),p===void 0?N:a.f(N,p)}return C}()},24239:function(A,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function B(I,k){o(I);for(var g=f(k),d=b(k),c=d.length,m=0,i;c>m;)t.f(I,i=d[m++],g[i]);return I}return B}()},74595:function(A,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,B=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k="enumerable",g="configurable",d="writable";r.f=e?t?function(){function c(m,i,u){if(o(m),i=f(i),o(u),typeof m=="function"&&i==="prototype"&&"value"in u&&d in u&&!u[d]){var s=I(m,i);s&&s[d]&&(m[i]=u.value,u={configurable:g in u?u[g]:s[g],enumerable:k in u?u[k]:s[k],writable:!1})}return B(m,i,u)}return c}():B:function(){function c(m,i,u){if(o(m),i=f(i),o(u),a)try{return B(m,i,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[i]=u.value),m}return c}()},27193:function(A,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),B=n(45299),I=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function g(d,c){if(d=f(d),c=b(c),I)try{return k(d,c)}catch(m){}if(B(d,c))return o(!a(t.f,d,c),d[c])}return g}()},81644:function(A,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(I){try{return t(I)}catch(k){return o(f)}};A.exports.f=function(){function B(I){return f&&e(I)==="Window"?b(I):t(a(I))}return B}()},37310:function(A,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(A,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(A,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),B=Object,I=B.prototype;A.exports=f?B.getPrototypeOf:function(k){var g=t(k);if(e(g,b))return g[b];var d=g.constructor;return a(d)&&g instanceof d?d.prototype:g instanceof B?I:null}},81834:function(A,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});A.exports=b||o?function(){function B(I){return!a(I)||o&&t(I)==="ArrayBuffer"?!1:f?f(I):!0}return B}():f},21287:function(A,r,n){"use strict";var e=n(67250);A.exports=e({}.isPrototypeOf)},53726:function(A,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);A.exports=function(B,I){var k=t(B),g=0,d=[],c;for(c in k)!a(f,c)&&a(k,c)&&b(d,c);for(;I.length>g;)a(k,c=I[g++])&&(~o(d,c)||b(d,c));return d}},18450:function(A,r,n){"use strict";var e=n(53726),a=n(89453);A.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(A,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(A,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);A.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(A,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},B;try{B=e(Object.prototype,"__proto__","set"),B(b,[]),f=b instanceof Array}catch(I){}return function(){function I(k,g){return t(k),o(g),a(k)&&(f?B(k,g):k.__proto__=g),k}return I}()}():void 0)},70915:function(A,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),B=n(12867).f,I=t(B),k=t([].push),g=e&&a(function(){var c=Object.create(null);return c[2]=2,!I(c,2)}),d=function(m){return function(i){for(var u=b(i),s=f(u),l=g&&o(u)===null,h=s.length,C=0,v=[],p;h>C;)p=s[C++],(!e||(l?p in u:I(u,p)))&&k(v,m?[p,u[p]]:u[p]);return v}};A.exports={entries:d(!0),values:d(!1)}},2509:function(A,r,n){"use strict";var e=n(2650),a=n(2281);A.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(A,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;A.exports=function(f,b){var B,I;if(b==="string"&&a(B=f.toString)&&!t(I=e(B,f))||a(B=f.valueOf)&&!t(I=e(B,f))||b!=="string"&&a(B=f.toString)&&!t(I=e(B,f)))return I;throw new o("Can't convert object to primitive value")}},97921:function(A,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);A.exports=e("Reflect","ownKeys")||function(){function B(I){var k=t.f(f(I)),g=o.f;return g?b(k,g(I)):k}return B}()},61765:function(A,r,n){"use strict";var e=n(74685);A.exports=e},10729:function(A){"use strict";A.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(A,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),B=n(8180),I=n(73730),k=n(4493),g=n(5026),d=a&&a.prototype,c=b("species"),m=!1,i=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),l=s!==String(a);if(!l&&g===66||k&&!(d.catch&&d.finally))return!0;if(!g||g<51||!/native code/.test(s)){var h=new a(function(p){p(1)}),C=function(N){N(function(){},function(){})},v=h.constructor={};if(v[c]=C,m=h.then(function(){})instanceof C,!m)return!0}return!l&&(B||I)&&!i});A.exports={CONSTRUCTOR:u,REJECTION_EVENT:i,SUBCLASSING:m}},67512:function(A,r,n){"use strict";var e=n(74685);A.exports=e.Promise},66628:function(A,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);A.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),B=b.resolve;return B(f),b.promise}},48199:function(A,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;A.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(A,r,n){"use strict";var e=n(74595).f;A.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(A){"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}()},A.exports=r},28340:function(A,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;A.exports=function(B,I){var k=B.exec;if(t(k)){var g=e(k,B,I);return g!==null&&a(g),g}if(o(B)==="RegExp")return e(f,B,I);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(A,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),B=n(80674),I=n(5419).get,k=n(39173),g=n(35688),d=b("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,i=a("".charAt),u=a("".indexOf),s=a("".replace),l=a("".slice),h=function(){var N=/a/,V=/b*/g;return e(c,N,"a"),e(c,V,"a"),N.lastIndex!==0||V.lastIndex!==0}(),C=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,p=h||v||C||k||g;p&&(m=function(){function N(V){var S=this,y=I(S),L=t(V),w=y.raw,T,x,M,P,D,E,O;if(w)return w.lastIndex=S.lastIndex,T=e(m,w,L),S.lastIndex=w.lastIndex,T;var R=y.groups,j=C&&S.sticky,F=e(o,S),W=S.source,z=0,K=L;if(j&&(F=s(F,"y",""),u(F,"g")===-1&&(F+="g"),K=l(L,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&i(L,S.lastIndex-1)!=="\n")&&(W="(?: "+W+")",K=" "+K,z++),x=new RegExp("^(?:"+W+")",F)),v&&(x=new RegExp("^"+W+"$(?!\\s)",F)),h&&(M=S.lastIndex),P=e(c,j?x:S,K),j?P?(P.input=l(P.input,z),P[0]=l(P[0],z),P.index=S.lastIndex,S.lastIndex+=P[0].length):S.lastIndex=0:h&&P&&(S.lastIndex=S.global?P.index+P[0].length:M),v&&P&&P.length>1&&e(d,P[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(A,r,n){"use strict";var e=n(42871),a=TypeError;A.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(A,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;A.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(A){"use strict";A.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(A,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),B=n(24986),I=e.Function,k=/MSIE .\./.test(f)||o&&function(){var g=e.Bun.version.split(".");return g.length<3||g[0]==="0"&&(g[1]<3||g[1]==="3"&&g[2]==="0")}();A.exports=function(g,d){var c=d?2:1;return k?function(m,i){var u=B(arguments.length,1)>c,s=t(m)?m:I(m),l=u?b(arguments,c):[],h=u?function(){a(s,this,l)}:s;return d?g(h,i):g(h)}:g}},58491:function(A,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");A.exports=function(b){var B=e(b);o&&B&&!B[f]&&a(B,f,{configurable:!0,get:function(){function I(){return this}return I}()})}},84925:function(A,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");A.exports=function(f,b,B){f&&!B&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(A,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");A.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(A,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=A.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(A,r,n){"use strict";var e=n(40095);A.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(A,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");A.exports=function(b,B){var I=e(b).constructor,k;return I===void 0||t(k=e(I)[f])?B:a(k)}},88539:function(A,r,n){"use strict";var e=n(40033);A.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(A,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),B=e("".slice),I=function(g){return function(d,c){var m=t(o(d)),i=a(c),u=m.length,s,l;return i<0||i>=u?g?"":void 0:(s=b(m,i),s<55296||s>56319||i+1===u||(l=b(m,i+1))<56320||l>57343?g?f(m,i):s:g?B(m,i,i+2):(s-55296<<10)+(l-56320)+65536)}};A.exports={codeAt:I(!1),charAt:I(!0)}},34125:function(A,r,n){"use strict";var e=n(63318);A.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(A,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),B=e("".slice),I=Math.ceil,k=function(d){return function(c,m,i){var u=t(f(c)),s=a(m),l=u.length,h=i===void 0?" ":t(i),C,v;return s<=l||h===""?u:(C=s-l,v=b(h,I(C/h.length)),v.length>C&&(v=B(v,0,C)),d?u+v:v+u)}};A.exports={start:k(!1),end:k(!0)}},62443:function(A,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;A.exports=function(){function f(b){var B=a(t(this)),I="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(B+=B))k&1&&(I+=B);return I}return f}()},43476:function(A,r,n){"use strict";var e=n(92648).end,a=n(90012);A.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(A,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";A.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(A,r,n){"use strict";var e=n(92648).start,a=n(90012);A.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(A,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),B=RegExp("(^|[^"+o+"])["+o+"]+$"),I=function(g){return function(d){var c=t(a(d));return g&1&&(c=f(c,b,"")),g&2&&(c=f(c,B,"$1")),c}};A.exports={start:I(1),end:I(2),trim:I(3)}},52357:function(A,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;A.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(A,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);A.exports=function(){var f=a("Symbol"),b=f&&f.prototype,B=b&&b.valueOf,I=t("toPrimitive");b&&!b[I]&&o(b,I,function(k){return e(B,this)},{arity:1})}},66570:function(A,r,n){"use strict";var e=n(52357);A.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(A,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),B=n(5315),I=n(54602),k=n(12689),g=n(24986),d=n(83433),c=n(81702),m=e.setImmediate,i=e.clearImmediate,u=e.process,s=e.Dispatch,l=e.Function,h=e.MessageChannel,C=e.String,v=0,p={},N="onreadystatechange",V,S,y,L;b(function(){V=e.location});var w=function(D){if(f(p,D)){var E=p[D];delete p[D],E()}},T=function(D){return function(){w(D)}},x=function(D){w(D.data)},M=function(D){e.postMessage(C(D),V.protocol+"//"+V.host)};(!m||!i)&&(m=function(){function P(D){g(arguments.length,1);var E=o(D)?D:l(D),O=I(arguments,1);return p[++v]=function(){a(E,void 0,O)},S(v),v}return P}(),i=function(){function P(D){delete p[D]}return P}(),c?S=function(D){u.nextTick(T(D))}:s&&s.now?S=function(D){s.now(T(D))}:h&&!d?(y=new h,L=y.port2,y.port1.onmessage=x,S=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(M)?(S=M,e.addEventListener("message",x,!1)):N in k("script")?S=function(D){B.appendChild(k("script"))[N]=function(){B.removeChild(this),w(D)}}:S=function(D){setTimeout(T(D),0)}),A.exports={set:m,clear:i}},46438:function(A,r,n){"use strict";var e=n(67250);A.exports=e(1 .valueOf)},13912:function(A,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;A.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(A,r,n){"use strict";var e=n(24843),a=TypeError;A.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(A,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;A.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(A,r,n){"use strict";var e=n(37457),a=n(16952);A.exports=function(t){return e(a(t))}},61365:function(A,r,n){"use strict";var e=n(21119);A.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(A,r,n){"use strict";var e=n(61365),a=Math.min;A.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(A,r,n){"use strict";var e=n(16952),a=Object;A.exports=function(t){return a(e(t))}},56043:function(A,r,n){"use strict";var e=n(16140),a=RangeError;A.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(A,r,n){"use strict";var e=n(61365),a=RangeError;A.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(A,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),B=TypeError,I=b("toPrimitive");A.exports=function(k,g){if(!a(k)||t(k))return k;var d=o(k,I),c;if(d){if(g===void 0&&(g="default"),c=e(d,k,g),!a(c)||t(c))return c;throw new B("Can't convert object to primitive value")}return g===void 0&&(g="number"),f(k,g)}},767:function(A,r,n){"use strict";var e=n(24843),a=n(71399);A.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(A,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",A.exports=String(t)==="[object z]"},12605:function(A,r,n){"use strict";var e=n(2281),a=String;A.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(A){"use strict";var r=Math.round;A.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(A){"use strict";var r=String;A.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),B=n(37336),I=n(60077),k=n(87458),g=n(37909),d=n(5841),c=n(10188),m=n(43806),i=n(56043),u=n(15409),s=n(767),l=n(45299),h=n(2281),C=n(77568),v=n(71399),p=n(80674),N=n(21287),V=n(76649),S=n(37310).f,y=n(3805),L=n(22603).forEach,w=n(58491),T=n(73936),x=n(74595),M=n(27193),P=n(78008),D=n(5419),E=n(5781),O=D.get,R=D.set,j=D.enforce,F=x.f,W=M.f,z=a.RangeError,K=B.ArrayBuffer,G=K.prototype,J=B.DataView,Q=b.NATIVE_ARRAY_BUFFER_VIEWS,ue=b.TYPED_ARRAY_TAG,ie=b.TypedArray,pe=b.TypedArrayPrototype,te=b.isTypedArray,q="BYTES_PER_ELEMENT",ne="Wrong length",le=function(Y,ve){T(Y,ve,{configurable:!0,get:function(){function he(){return O(this)[ve]}return he}()})},ee=function(Y){var ve;return N(G,Y)||(ve=h(Y))==="ArrayBuffer"||ve==="SharedArrayBuffer"},re=function(Y,ve){return te(Y)&&!v(ve)&&ve in Y&&d(+ve)&&ve>=0},oe=function(){function me(Y,ve){return ve=s(ve),re(Y,ve)?k(2,Y[ve]):W(Y,ve)}return me}(),fe=function(){function me(Y,ve,he){return ve=s(ve),re(Y,ve)&&C(he)&&l(he,"value")&&!l(he,"get")&&!l(he,"set")&&!he.configurable&&(!l(he,"writable")||he.writable)&&(!l(he,"enumerable")||he.enumerable)?(Y[ve]=he.value,Y):F(Y,ve,he)}return me}();o?(Q||(M.f=oe,x.f=fe,le(pe,"buffer"),le(pe,"byteOffset"),le(pe,"byteLength"),le(pe,"length")),e({target:"Object",stat:!0,forced:!Q},{getOwnPropertyDescriptor:oe,defineProperty:fe}),A.exports=function(me,Y,ve){var he=me.match(/\d+/)[0]/8,Ve=me+(ve?"Clamped":"")+"Array",Be="get"+me,be="set"+me,Le=a[Ve],we=Le,xe=we&&we.prototype,Re={},He=function(ge,Se){var Pe=O(ge);return Pe.view[Be](Se*he+Pe.byteOffset,!0)},ye=function(ge,Se,Pe){var je=O(ge);je.view[be](Se*he+je.byteOffset,ve?u(Pe):Pe,!0)},de=function(ge,Se){F(ge,Se,{get:function(){function Pe(){return He(this,Se)}return Pe}(),set:function(){function Pe(je){return ye(this,Se,je)}return Pe}(),enumerable:!0})};Q?f&&(we=Y(function(ke,ge,Se,Pe){return I(ke,xe),E(function(){return C(ge)?ee(ge)?Pe!==void 0?new Le(ge,i(Se,he),Pe):Se!==void 0?new Le(ge,i(Se,he)):new Le(ge):te(ge)?P(we,ge):t(y,we,ge):new Le(m(ge))}(),ke,we)}),V&&V(we,ie),L(S(Le),function(ke){ke in we||g(we,ke,Le[ke])}),we.prototype=xe):(we=Y(function(ke,ge,Se,Pe){I(ke,xe);var je=0,_e=0,ze,We,Ue;if(!C(ge))Ue=m(ge),We=Ue*he,ze=new K(We);else if(ee(ge)){ze=ge,_e=i(Se,he);var Xe=ge.byteLength;if(Pe===void 0){if(Xe%he)throw new z(ne);if(We=Xe-_e,We<0)throw new z(ne)}else if(We=c(Pe)*he,We+_e>Xe)throw new z(ne);Ue=We/he}else return te(ge)?P(we,ge):t(y,we,ge);for(R(ke,{buffer:ze,byteOffset:_e,byteLength:We,length:Ue,view:new J(ze)});je1?arguments[1]:void 0,h=l!==void 0,C=B(u),v,p,N,V,S,y,L,w;if(C&&!I(C))for(L=b(u,C),w=L.next,u=[];!(y=a(w,L)).done;)u.push(y.value);for(h&&s>2&&(l=e(l,arguments[2])),p=f(u),N=new(g(i))(p),V=k(N),v=0;p>v;v++)S=h?l(u[v],v):u[v],N[v]=V?d(S):+S;return N}return c}()},31082:function(A,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;A.exports=function(f){return t(a(f,o(f)))}},16738:function(A,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);A.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(A,r,n){"use strict";var e=n(52357);A.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(A,r,n){"use strict";var e=n(58310),a=n(40033);A.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(A){"use strict";var r=TypeError;A.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),u=function(h){if(!o(h))return!1;var C=h[m];return C!==void 0?!!C:t(h)},s=!i||!g("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(h){var C=f(this),v=k(C,0),p=0,N,V,S,y,L;for(N=-1,S=arguments.length;N1?arguments[1]:void 0)}return f}()})},68933:function(A,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(A,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(A,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(B){return a(this,B,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(A,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(B){return a(this,B,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(A,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function B(I){var k=o(this),g=f(k),d;return t(I),d=b(k,0),d.length=a(d,k,k,g,0,1,I,arguments.length>1?arguments[1]:void 0),d}return B}()})},61915:function(A,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function B(){var I=arguments.length?arguments[0]:void 0,k=t(this),g=o(k),d=b(k,0);return d.length=a(d,k,k,g,0,I===void 0?1:f(I)),d}return B}()})},25579:function(A,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(A,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(A,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(B){return a(this,B,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(A,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,B=b||!o("indexOf");e({target:"Array",proto:!0,forced:B},{indexOf:function(){function I(k){var g=arguments.length>1?arguments[1]:void 0;return b?f(this,k,g)||0:t(this,k,g)}return I}()})},99636:function(A,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(A,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),B=n(5959),I=n(4493),k=n(58310),g="Array Iterator",d=o.set,c=o.getterFor(g);A.exports=b(Array,"Array",function(i,u){d(this,{type:g,target:e(i),index:0,kind:u})},function(){var i=c(this),u=i.target,s=i.index++;if(!u||s>=u.length)return i.target=void 0,B(void 0,!0);switch(i.kind){case"keys":return B(s,!1);case"values":return B(u[s],!1)}return B([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!I&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(i){}},94432:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),B=t!==Object,I=B||!f("join",",");e({target:"Array",proto:!0,forced:I},{join:function(){function k(g){return b(o(this),g===void 0?",":g)}return k}()})},24683:function(A,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(A,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function B(){}return!(f.of.call(B)instanceof B)});e({target:"Array",stat:!0,forced:b},{of:function(){function B(){for(var I=0,k=arguments.length,g=new(t(this)?this:f)(k);k>I;)o(g,I,arguments[I++]);return g.length=k,g}return B}()})},29645:function(A,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,B=b||!t("reduceRight");e({target:"Array",proto:!0,forced:B},{reduceRight:function(){function I(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return I}()})},60206:function(A,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,B=b||!t("reduce");e({target:"Array",proto:!0,forced:B},{reduce:function(){function I(k){var g=arguments.length;return a(this,k,g,g>1?arguments[1]:void 0)}return I}()})},4788:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(A,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),B=n(57591),I=n(60102),k=n(24697),g=n(44091),d=n(54602),c=g("slice"),m=k("species"),i=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(l,h){var C=B(this),v=b(C),p=f(l,v),N=f(h===void 0?v:h,v),V,S,y;if(a(C)&&(V=C.constructor,t(V)&&(V===i||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===i||V===void 0))return d(C,p,N);for(S=new(V===void 0?i:V)(u(N-p,0)),y=0;p1?arguments[1]:void 0)}return f}()})},48968:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),B=n(12605),I=n(40033),k=n(90274),g=n(55528),d=n(652),c=n(19228),m=n(5026),i=n(9342),u=[],s=a(u.sort),l=a(u.push),h=I(function(){u.sort(void 0)}),C=I(function(){u.sort(null)}),v=g("sort"),p=!I(function(){if(m)return m<70;if(!(d&&d>3)){if(c)return!0;if(i)return i<603;var S="",y,L,w,T;for(y=65;y<76;y++){switch(L=String.fromCharCode(y),y){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(T=0;T<47;T++)u.push({k:L+T,v:w})}for(u.sort(function(x,M){return M.v-x.v}),T=0;TB(w)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function S(y){y!==void 0&&t(y);var L=o(this);if(p)return y===void 0?s(L):s(L,y);var w=[],T=f(L),x,M;for(M=0;MC-V+N;y--)g(h,y-1)}else if(N>V)for(y=C-V;y>v;y--)L=y+V-1,w=y+N-1,L in h?h[w]=h[L]:g(h,w);for(y=0;y9490626562425156e-8?o(g)+b:a(g-1+f(g-1)*f(g+1))}return I}()})},59660:function(A,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(B){var I=+B;return!isFinite(I)||I===0?I:I<0?-f(-I):t(I+o(I*I+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(A,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var B=+b;return B===0?B:t((1+B)/(1-B))/2}return f}()})},92866:function(A,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var B=+b;return a(B)*o(t(B),.3333333333333333)}return f}()})},86107:function(A,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var B=b>>>0;return B?31-a(t(B+.5)*o):32}return f}()})},29248:function(A,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function B(I){var k=a(o(I)-1)+1;return(k+1/(k*f*f))*(f/2)}return B}()})},52540:function(A,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(A,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(A,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(B,I){for(var k=0,g=0,d=arguments.length,c=0,m,i;g0?(i=m/c,k+=i*i):k+=m;return c===1/0?1/0:c*o(k)}return b}()})},6522:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,B){var I=65535,k=+b,g=+B,d=I&k,c=I&g;return 0|d*c+((I&k>>>16)*c+d*(I&g>>>16)<<16>>>0)}return f}()})},95542:function(A,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(A,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(A,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(A,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,B=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:B},{sinh:function(){function I(k){var g=+k;return o(g)<1?(t(g)-t(-g))/2:(f(g-1)-f(-g-1))*(b/2)}return I}()})},54800:function(A,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,B=a(b),I=a(-b);return B===1/0?1:I===1/0?-1:(B-I)/(t(b)+t(-b))}return o}()})},15709:function(A,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(A,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),B=n(41314),I=n(45299),k=n(5781),g=n(21287),d=n(71399),c=n(24843),m=n(40033),i=n(37310).f,u=n(27193).f,s=n(74595).f,l=n(46438),h=n(92648).trim,C="Number",v=o[C],p=f[C],N=v.prototype,V=o.TypeError,S=b("".slice),y=b("".charCodeAt),L=function(E){var O=c(E,"number");return typeof O=="bigint"?O:w(O)},w=function(E){var O=c(E,"number"),R,j,F,W,z,K,G,J;if(d(O))throw new V("Cannot convert a Symbol value to a number");if(typeof O=="string"&&O.length>2){if(O=h(O),R=y(O,0),R===43||R===45){if(j=y(O,2),j===88||j===120)return NaN}else if(R===48){switch(y(O,1)){case 66:case 98:F=2,W=49;break;case 79:case 111:F=8,W=55;break;default:return+O}for(z=S(O,2),K=z.length,G=0;GW)return NaN;return parseInt(z,F)}}return+O},T=B(C,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(E){return g(N,E)&&m(function(){l(E)})},M=function(){function D(E){var O=arguments.length<1?0:v(L(E));return x(this)?k(Object(O),this,M):O}return D}();M.prototype=N,T&&!a&&(N.constructor=M),e({global:!0,constructor:!0,wrap:!0,forced:T},{Number:M});var P=function(E,O){for(var R=t?i(O):"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(","),j=0,F;R.length>j;j++)I(O,F=R[j])&&!I(E,F)&&s(E,F,u(O,F))};a&&p&&P(f[C],p),(T||a)&&P(f[C],v)},324:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(A,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(A,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(A,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(A,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(A,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(A,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),B=RangeError,I=String,k=Math.floor,g=a(f),d=a("".slice),c=a(1 .toFixed),m=function C(v,p,N){return p===0?N:p%2===1?C(v,p-1,N*v):C(v*v,p/2,N)},i=function(v){for(var p=0,N=v;N>=4096;)p+=12,N/=4096;for(;N>=2;)p+=1,N/=2;return p},u=function(v,p,N){for(var V=-1,S=N;++V<6;)S+=p*v[V],v[V]=S%1e7,S=k(S/1e7)},s=function(v,p){for(var N=6,V=0;--N>=0;)V+=v[N],v[N]=k(V/p),V=V%p*1e7},l=function(v){for(var p=6,N="";--p>=0;)if(N!==""||p===0||v[p]!==0){var V=I(v[p]);N=N===""?V:N+g("0",7-V.length)+V}return N},h=b(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){c({})});e({target:"Number",proto:!0,forced:h},{toFixed:function(){function C(v){var p=o(this),N=t(v),V=[0,0,0,0,0,0],S="",y="0",L,w,T,x;if(N<0||N>20)throw new B("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return I(p);if(p<0&&(S="-",p=-p),p>1e-21)if(L=i(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),T=N;T>=7;)u(V,1e7,0),T-=7;for(u(V,m(10,T,1),0),T=L-1;T>=23;)s(V,8388608),T-=23;s(V,1<0?(x=y.length,y=S+(x<=N?"0."+g("0",N-x)+y:d(y,0,x-N)+"."+d(y,x-N))):y=S+y,y}return C}()})},23532:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function B(I){return I===void 0?f(o(this)):f(o(this),I)}return B}()})},87119:function(A,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function B(I,k){b.f(f(this),I,{get:o(k),enumerable:!0,configurable:!0})}return B}()})},31943:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function B(I,k){b.f(f(this),I,{set:o(k),enumerable:!0,configurable:!0})}return B}()})},85028:function(A,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(A,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,B=t(function(){b(1)});e({target:"Object",stat:!0,forced:B,sham:!a},{freeze:function(){function I(k){return b&&o(k)?b(f(k)):k}return I}()})},43331:function(A,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(B,I){t(b,B,I)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function B(I,k){return o(t(I),k)}return B}()})},56196:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function B(I){for(var k=o(I),g=f.f,d=t(k),c={},m=0,i,u;d.length>m;)u=g(k,i=d[m++]),u!==void 0&&b(c,i,u);return c}return B}()})},2950:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(A,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function B(I){var k=o.f;return k?k(f(I)):[]}return B}()})},44205:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function B(I){return o(t(I))}return B}()})},83186:function(A,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,B=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:B},{isFrozen:function(){function I(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},13411:function(A,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,B=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:B},{isSealed:function(){function I(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},76882:function(A,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(A,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(B){return t(a(B))}return b}()})},53118:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),B=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function I(k){var g=o(this),d=f(k),c;do if(c=B(g,d))return c.get;while(g=b(g))}return I}()})},42514:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),B=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function I(k){var g=o(this),d=f(k),c;do if(c=B(g,d))return c.set;while(g=b(g))}return I}()})},84353:function(A,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,B=f(function(){b(1)});e({target:"Object",stat:!0,forced:B,sham:!o},{preventExtensions:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},62987:function(A,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,B=f(function(){b(1)});e({target:"Object",stat:!0,forced:B,sham:!o},{seal:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},48993:function(A,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(A,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(A,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(A,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(A,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),B=n(48199);e({target:"Promise",stat:!0,forced:B},{all:function(){function I(k){var g=this,d=o.f(g),c=d.resolve,m=d.reject,i=f(function(){var u=t(g.resolve),s=[],l=0,h=1;b(k,function(C){var v=l++,p=!1;h++,a(u,g,C).then(function(N){p||(p=!0,s[v]=N,--h||c(s))},m)}),--h||c(s)});return i.error&&m(i.value),d.promise}return I}()})},70641:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),B=n(55938),I=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function g(d){return this.then(void 0,d)}return g}()}),!a&&b(o)){var k=f("Promise").prototype.catch;I.catch!==k&&B(I,"catch",k,{unsafe:!0})}},75946:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),B=n(76649),I=n(84925),k=n(58491),g=n(10320),d=n(55747),c=n(77568),m=n(60077),i=n(28987),u=n(60375).set,s=n(37713),l=n(72259),h=n(10729),C=n(9547),v=n(5419),p=n(67512),N=n(74854),V=n(81837),S="Promise",y=N.CONSTRUCTOR,L=N.REJECTION_EVENT,w=N.SUBCLASSING,T=v.getterFor(S),x=v.set,M=p&&p.prototype,P=p,D=M,E=o.TypeError,O=o.document,R=o.process,j=V.f,F=j,W=!!(O&&O.createEvent&&o.dispatchEvent),z="unhandledrejection",K="rejectionhandled",G=0,J=1,Q=2,ue=1,ie=2,pe,te,q,ne,le=function(be){var Le;return c(be)&&d(Le=be.then)?Le:!1},ee=function(be,Le){var we=Le.value,xe=Le.state===J,Re=xe?be.ok:be.fail,He=be.resolve,ye=be.reject,de=be.domain,Ce,ke,ge;try{Re?(xe||(Le.rejection===ie&&Y(Le),Le.rejection=ue),Re===!0?Ce=we:(de&&de.enter(),Ce=Re(we),de&&(de.exit(),ge=!0)),Ce===be.promise?ye(new E("Promise-chain cycle")):(ke=le(Ce))?f(ke,Ce,He,ye):He(Ce)):ye(we)}catch(Se){de&&!ge&&de.exit(),ye(Se)}},re=function(be,Le){be.notified||(be.notified=!0,s(function(){for(var we=be.reactions,xe;xe=we.get();)ee(xe,be);be.notified=!1,Le&&!be.rejection&&fe(be)}))},oe=function(be,Le,we){var xe,Re;W?(xe=O.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(be,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+be])?Re(xe):be===z&&l("Unhandled promise rejection",we)},fe=function(be){f(u,o,function(){var Le=be.facade,we=be.value,xe=me(be),Re;if(xe&&(Re=h(function(){t?R.emit("unhandledRejection",we,Le):oe(z,Le,we)}),be.rejection=t||me(be)?ie:ue,Re.error))throw Re.value})},me=function(be){return be.rejection!==ue&&!be.parent},Y=function(be){f(u,o,function(){var Le=be.facade;t?R.emit("rejectionHandled",Le):oe(K,Le,be.value)})},ve=function(be,Le,we){return function(xe){be(Le,xe,we)}},he=function(be,Le,we){be.done||(be.done=!0,we&&(be=we),be.value=Le,be.state=Q,re(be,!0))},Ve=function Be(be,Le,we){if(!be.done){be.done=!0,we&&(be=we);try{if(be.facade===Le)throw new E("Promise can't be resolved itself");var xe=le(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,ve(Be,Re,be),ve(he,Re,be))}catch(He){he(Re,He,be)}}):(be.value=Le,be.state=J,re(be,!1))}catch(Re){he({done:!1},Re,be)}}};if(y&&(P=function(){function Be(be){m(this,D),g(be),f(pe,this);var Le=T(this);try{be(ve(Ve,Le),ve(he,Le))}catch(we){he(Le,we)}}return Be}(),D=P.prototype,pe=function(){function Be(be){x(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:G,value:void 0})}return Be}(),pe.prototype=b(D,"then",function(){function Be(be,Le){var we=T(this),xe=j(i(this,P));return we.parent=!0,xe.ok=d(be)?be:!0,xe.fail=d(Le)&&Le,xe.domain=t?R.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){ee(xe,we)}),xe.promise}return Be}()),te=function(){var be=new pe,Le=T(be);this.promise=be,this.resolve=ve(Ve,Le),this.reject=ve(he,Le)},V.f=j=function(be){return be===P||be===q?new te(be):F(be)},!a&&d(p)&&M!==Object.prototype)){ne=M.then,w||b(M,"then",function(){function Be(be,Le){var we=this;return new P(function(xe,Re){f(ne,we,xe,Re)}).then(be,Le)}return Be}(),{unsafe:!0});try{delete M.constructor}catch(Be){}B&&B(M,D)}e({global:!0,constructor:!0,wrap:!0,forced:y},{Promise:P}),I(P,S,!1,!0),k(S)},69861:function(A,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),B=n(28987),I=n(66628),k=n(55938),g=t&&t.prototype,d=!!t&&o(function(){g.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(){function m(i){var u=B(this,f("Promise")),s=b(i);return this.then(s?function(l){return I(u,i()).then(function(){return l})}:i,s?function(l){return I(u,i()).then(function(){throw l})}:i)}return m}()}),!a&&b(t)){var c=f("Promise").prototype.finally;g.finally!==c&&k(g,"finally",c,{unsafe:!0})}},53092:function(A,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),B=n(48199);e({target:"Promise",stat:!0,forced:B},{race:function(){function I(k){var g=this,d=o.f(g),c=d.reject,m=f(function(){var i=t(g.resolve);b(k,function(u){a(i,g,u).then(d.resolve,c)})});return m.error&&c(m.value),d.promise}return I}()})},41719:function(A,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),B=b.reject;return B(f),b.promise}return o}()})},59321:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),B=a("Promise"),I=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(g){return b(I&&this===B?o:this,g)}return k}()})},29674:function(A,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function B(I,k,g){return a(t(I),k,o(g))}return B}()})},81543:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),B=n(77568),I=n(80674),k=n(40033),g=a("Reflect","construct"),d=Object.prototype,c=[].push,m=k(function(){function s(){}return!(g(function(){},[],s)instanceof s)}),i=!k(function(){g(function(){})}),u=m||i;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(l,h){f(l),b(h);var C=arguments.length<3?l:f(arguments[2]);if(i&&!m)return g(l,h,C);if(l===C){switch(h.length){case 0:return new l;case 1:return new l(h[0]);case 2:return new l(h[0],h[1]);case 3:return new l(h[0],h[1],h[2]);case 4:return new l(h[0],h[1],h[2],h[3])}var v=[null];return t(c,v,h),new(t(o,l,v))}var p=C.prototype,N=I(B(p)?p:d),V=t(l,N,h);return B(V)?V:N}return s}()})},9373:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),B=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:B,sham:!a},{defineProperty:function(){function I(k,g,d){t(k);var c=o(g);t(d);try{return f.f(k,c,d),!0}catch(m){return!1}}return I}()})},45093:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var B=t(a(f),b);return B&&!B.configurable?!1:delete f[b]}return o}()})},5815:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,B){return o.f(t(b),B)}return f}()})},88527:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),B=n(36917);function I(k,g){var d=arguments.length<3?k:arguments[2],c,m;if(o(k)===d)return k[g];if(c=b.f(k,g),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,d);if(t(m=B(k)))return I(m,g,d)}e({target:"Reflect",stat:!0},{get:I})},66390:function(A,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(A,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var B=a("Object","preventExtensions");return B&&B(b),!0}catch(I){return!1}}return f}()})},63915:function(A,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,B){a(b),t(B);try{return o(b,B),!0}catch(I){return!1}}return f}()})},92046:function(A,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),B=n(74595),I=n(27193),k=n(36917),g=n(87458);function d(m,i,u){var s=arguments.length<4?m:arguments[3],l=I.f(t(m),i),h,C,v;if(!l){if(o(C=k(m)))return d(C,i,u,s);l=g(0)}if(f(l)){if(l.writable===!1||!o(s))return!1;if(h=I.f(s,i)){if(h.get||h.set||h.writable===!1)return!1;h.value=u,B.f(s,i,h)}else B.f(s,i,g(0,u))}else{if(v=l.set,v===void 0)return!1;a(v,s,u)}return!0}var c=b(function(){var m=function(){},i=B.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:d})},51454:function(A,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),B=n(80674),I=n(37310).f,k=n(21287),g=n(72586),d=n(12605),c=n(73392),m=n(62115),i=n(34550),u=n(55938),s=n(40033),l=n(45299),h=n(5419).enforce,C=n(58491),v=n(24697),p=n(39173),N=n(35688),V=v("match"),S=a.RegExp,y=S.prototype,L=a.SyntaxError,w=t(y.exec),T=t("".charAt),x=t("".replace),M=t("".indexOf),P=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,E=/a/g,O=/a/g,R=new S(E)!==E,j=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,W=e&&(!R||j||p||N||s(function(){return O[V]=!1,S(E)!==E||S(O)===O||String(S(E,"i"))!=="/a/i"})),z=function(ie){for(var pe=ie.length,te=0,q="",ne=!1,le;te<=pe;te++){if(le=T(ie,te),le==="\\"){q+=le+T(ie,++te);continue}!ne&&le==="."?q+="[\\s\\S]":(le==="["?ne=!0:le==="]"&&(ne=!1),q+=le)}return q},K=function(ie){for(var pe=ie.length,te=0,q="",ne=[],le=B(null),ee=!1,re=!1,oe=0,fe="",me;te<=pe;te++){if(me=T(ie,te),me==="\\")me+=T(ie,++te);else if(me==="]")ee=!1;else if(!ee)switch(!0){case me==="[":ee=!0;break;case me==="(":w(D,P(ie,te+1))&&(te+=2,re=!0),q+=me,oe++;continue;case(me===">"&&re):if(fe===""||l(le,fe))throw new L("Invalid capture group name");le[fe]=!0,ne[ne.length]=[fe,oe],re=!1,fe="";continue}re?fe+=me:q+=me}return[q,ne]};if(o("RegExp",W)){for(var G=function(){function ue(ie,pe){var te=k(y,this),q=g(ie),ne=pe===void 0,le=[],ee=ie,re,oe,fe,me,Y,ve;if(!te&&q&&ne&&ie.constructor===G)return ie;if((q||k(y,ie))&&(ie=ie.source,ne&&(pe=c(ee))),ie=ie===void 0?"":d(ie),pe=pe===void 0?"":d(pe),ee=ie,p&&"dotAll"in E&&(oe=!!pe&&M(pe,"s")>-1,oe&&(pe=x(pe,/s/g,""))),re=pe,j&&"sticky"in E&&(fe=!!pe&&M(pe,"y")>-1,fe&&F&&(pe=x(pe,/y/g,""))),N&&(me=K(ie),ie=me[0],le=me[1]),Y=f(S(ie,pe),te?this:y,G),(oe||fe||le.length)&&(ve=h(Y),oe&&(ve.dotAll=!0,ve.raw=G(z(ie),re)),fe&&(ve.sticky=!0),le.length&&(ve.groups=le)),ie!==ee)try{b(Y,"source",ee===""?"(?:)":ee)}catch(he){}return Y}return ue}(),J=I(S),Q=0;J.length>Q;)i(G,S,J[Q++]);y.constructor=G,G.prototype=y,u(a,"RegExp",G,{constructor:!0})}C("RegExp")},79669:function(A,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(A,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,B=b.prototype,I=a&&f(function(){var k=!0;try{b(".","d")}catch(l){k=!1}var g={},d="",c=k?"dgimsy":"gimsy",m=function(h,C){Object.defineProperty(g,h,{get:function(){function v(){return d+=C,!0}return v}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(i.hasIndices="d");for(var u in i)m(u,i[u]);var s=Object.getOwnPropertyDescriptor(B,"flags").get.call(g);return s!==c||d!==c});I&&t(B,"flags",{configurable:!0,get:o})},57983:function(A,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),B="toString",I=RegExp.prototype,k=I[B],g=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&k.name!==B;(g||d)&&a(I,B,function(){function c(){var m=t(this),i=o(m.source),u=o(b(m));return"/"+i+"/"+u}return c}(),{unsafe:!0})},1963:function(A,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(A,r,n){"use strict";n(1963)},95309:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(A,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(A,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),B=n(16952),I=n(45490),k=n(4493),g=a("".slice),d=Math.min,c=I("endsWith"),m=!k&&!c&&!!function(){var i=t(String.prototype,"endsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function i(u){var s=f(B(this));b(u);var l=arguments.length>1?arguments[1]:void 0,h=s.length,C=l===void 0?h:d(o(l),h),v=f(u);return g(s,C-v.length,C)===v}return i}()})},39308:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,B=a([].join),I=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:I},{fromCodePoint:function(){function k(g){for(var d=[],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");d[m]=i<65536?f(i):f(((i-=65536)>>10)+55296,i%1024+56320)}return B(d,"")}return k}()})},43673:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),B=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function I(k){return!!~B(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return I}()})},56027:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(A,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",B=t.set,I=t.getterFor(b);o(String,"String",function(k){B(this,{type:b,string:a(k),index:0})},function(){function k(){var g=I(this),d=g.string,c=g.index,m;return c>=d.length?f(void 0,!0):(m=e(d,c),g.index+=m.length,f(m,!1))}return k}())},50340:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(A,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),B=n(16952),I=n(78060),k=n(35483),g=n(28340);a("match",function(d,c,m){return[function(){function i(u){var s=B(this),l=o(u)?void 0:I(u,d);return l?e(l,u,s):new RegExp(u)[d](b(s))}return i}(),function(i){var u=t(this),s=b(i),l=m(c,u,s);if(l.done)return l.value;if(!u.global)return g(u,s);var h=u.unicode;u.lastIndex=0;for(var C=[],v=0,p;(p=g(u,s))!==null;){var N=b(p[0]);C[v]=N,N===""&&(u.lastIndex=k(s,f(u.lastIndex),h)),v++}return v===0?null:C}]})},5143:function(A,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(A,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(A,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),B=a([].push),I=a([].join);e({target:"String",stat:!0},{raw:function(){function k(g){var d=t(o(g).raw),c=b(d);if(!c)return"";for(var m=arguments.length,i=[],u=0;;){if(B(i,f(d[u++])),u===c)return I(i,"");u")!=="7"});o("replace",function(x,M,P){var D=w?"$":"$0";return[function(){function E(O,R){var j=c(this),F=I(O)?void 0:i(O,h);return F?a(F,O,j,R):a(M,d(j),O,R)}return E}(),function(E,O){var R=b(this),j=d(E);if(typeof O=="string"&&V(O,D)===-1&&V(O,"$<")===-1){var F=P(M,R,j,O);if(F.done)return F.value}var W=B(O);W||(O=d(O));var z=R.global,K;z&&(K=R.unicode,R.lastIndex=0);for(var G=[],J;J=s(R,j),!(J===null||(N(G,J),!z));){var Q=d(J[0]);Q===""&&(R.lastIndex=m(j,g(R.lastIndex),K))}for(var ue="",ie=0,pe=0;pe=ie&&(ue+=S(j,ie,q)+le,ie=q+te.length)}return ue+S(j,ie)}]},!T||!L||w)},63272:function(A,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),B=n(12605),I=n(78060),k=n(28340);a("search",function(g,d,c){return[function(){function m(i){var u=f(this),s=o(i)?void 0:I(i,g);return s?e(s,i,u):new RegExp(i)[g](B(u))}return m}(),function(m){var i=t(this),u=B(m),s=c(d,i,u);if(s.done)return s.value;var l=i.lastIndex;b(l,0)||(i.lastIndex=0);var h=k(i,u);return b(i.lastIndex,l)||(i.lastIndex=l),h===null?-1:h.index}]})},34325:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(A,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),B=n(28987),I=n(35483),k=n(10188),g=n(12605),d=n(78060),c=n(28340),m=n(62115),i=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,h=a([].push),C=a("".slice),v=!i(function(){var N=/(?:)/,V=N.exec;N.exec=function(){return V.apply(this,arguments)};var S="ab".split(N);return S.length!==2||S[0]!=="a"||S[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,V,S){var y="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,T){var x=b(this),M=f(w)?void 0:d(w,N);return M?e(M,w,x,T):e(y,g(x),w,T)}return L}(),function(L,w){var T=o(this),x=g(L);if(!p){var M=S(y,T,x,w,y!==V);if(M.done)return M.value}var P=B(T,RegExp),D=T.unicode,E=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(u?"g":"y"),O=new P(u?"^(?:"+T.source+")":T,E),R=w===void 0?s:w>>>0;if(R===0)return[];if(x.length===0)return c(O,x)===null?[x]:[];for(var j=0,F=0,W=[];F1?arguments[1]:void 0,s.length)),h=f(u);return g(s,l,l+h.length)===h}return i}()})},74498:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(A,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(A,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(A,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(A,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(A,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(A,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(A,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),B=n(52357),I=n(40033),k=n(45299),g=n(21287),d=n(30365),c=n(57591),m=n(767),i=n(12605),u=n(87458),s=n(80674),l=n(18450),h=n(37310),C=n(81644),v=n(89235),p=n(27193),N=n(74595),V=n(24239),S=n(12867),y=n(55938),L=n(73936),w=n(16639),T=n(19417),x=n(79195),M=n(16738),P=n(24697),D=n(55557),E=n(85889),O=n(52360),R=n(84925),j=n(5419),F=n(22603).forEach,W=T("hidden"),z="Symbol",K="prototype",G=j.set,J=j.getterFor(z),Q=Object[K],ue=a.Symbol,ie=ue&&ue[K],pe=a.RangeError,te=a.TypeError,q=a.QObject,ne=p.f,le=N.f,ee=C.f,re=S.f,oe=o([].push),fe=w("symbols"),me=w("op-symbols"),Y=w("wks"),ve=!q||!q[K]||!q[K].findChild,he=function(Ce,ke,ge){var Se=ne(Q,ke);Se&&delete Q[ke],le(Ce,ke,ge),Se&&Ce!==Q&&le(Q,ke,Se)},Ve=b&&I(function(){return s(le({},"a",{get:function(){function de(){return le(this,"a",{value:7}).a}return de}()})).a!==7})?he:le,Be=function(Ce,ke){var ge=fe[Ce]=s(ie);return G(ge,{type:z,tag:Ce,description:ke}),b||(ge.description=ke),ge},be=function(){function de(Ce,ke,ge){Ce===Q&&be(me,ke,ge),d(Ce);var Se=m(ke);return d(ge),k(fe,Se)?(ge.enumerable?(k(Ce,W)&&Ce[W][Se]&&(Ce[W][Se]=!1),ge=s(ge,{enumerable:u(0,!1)})):(k(Ce,W)||le(Ce,W,u(1,s(null))),Ce[W][Se]=!0),Ve(Ce,Se,ge)):le(Ce,Se,ge)}return de}(),Le=function(){function de(Ce,ke){d(Ce);var ge=c(ke),Se=l(ge).concat(ye(ge));return F(Se,function(Pe){(!b||t(xe,ge,Pe))&&be(Ce,Pe,ge[Pe])}),Ce}return de}(),we=function(){function de(Ce,ke){return ke===void 0?s(Ce):Le(s(Ce),ke)}return de}(),xe=function(){function de(Ce){var ke=m(Ce),ge=t(re,this,ke);return this===Q&&k(fe,ke)&&!k(me,ke)?!1:ge||!k(this,ke)||!k(fe,ke)||k(this,W)&&this[W][ke]?ge:!0}return de}(),Re=function(){function de(Ce,ke){var ge=c(Ce),Se=m(ke);if(!(ge===Q&&k(fe,Se)&&!k(me,Se))){var Pe=ne(ge,Se);return Pe&&k(fe,Se)&&!(k(ge,W)&&ge[W][Se])&&(Pe.enumerable=!0),Pe}}return de}(),He=function(){function de(Ce){var ke=ee(c(Ce)),ge=[];return F(ke,function(Se){!k(fe,Se)&&!k(x,Se)&&oe(ge,Se)}),ge}return de}(),ye=function(Ce){var ke=Ce===Q,ge=ee(ke?me:c(Ce)),Se=[];return F(ge,function(Pe){k(fe,Pe)&&(!ke||k(Q,Pe))&&oe(Se,fe[Pe])}),Se};B||(ue=function(){function de(){if(g(ie,this))throw new te("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),ke=M(Ce),ge=function(){function Se(Pe){var je=this===void 0?a:this;je===Q&&t(Se,me,Pe),k(je,W)&&k(je[W],ke)&&(je[W][ke]=!1);var _e=u(1,Pe);try{Ve(je,ke,_e)}catch(ze){if(!(ze instanceof pe))throw ze;he(je,ke,_e)}}return Se}();return b&&ve&&Ve(Q,ke,{configurable:!0,set:ge}),Be(ke,Ce)}return de}(),ie=ue[K],y(ie,"toString",function(){function de(){return J(this).tag}return de}()),y(ue,"withoutSetter",function(de){return Be(M(de),de)}),S.f=xe,N.f=be,V.f=Le,p.f=Re,h.f=C.f=He,v.f=ye,D.f=function(de){return Be(P(de),de)},b&&(L(ie,"description",{configurable:!0,get:function(){function de(){return J(this).description}return de}()}),f||y(Q,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!B,sham:!B},{Symbol:ue}),F(l(Y),function(de){E(de)}),e({target:z,stat:!0,forced:!B},{useSetter:function(){function de(){ve=!0}return de}(),useSimple:function(){function de(){ve=!1}return de}()}),e({target:"Object",stat:!0,forced:!B,sham:!b},{create:we,defineProperty:be,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!B},{getOwnPropertyNames:He}),O(),R(ue,z),x[W]=!0},10933:function(A,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),B=n(21287),I=n(12605),k=n(73936),g=n(5774),d=t.Symbol,c=d&&d.prototype;if(a&&b(d)&&(!("description"in c)||d().description!==void 0)){var m={},i=function(){function p(){var N=arguments.length<1||arguments[0]===void 0?void 0:I(arguments[0]),V=B(c,this)?new d(N):N===void 0?d():d(N);return N===""&&(m[V]=!0),V}return p}();g(i,d),i.prototype=c,c.constructor=i;var u=String(d("description detection"))==="Symbol(description detection)",s=o(c.valueOf),l=o(c.toString),h=/^Symbol\((.*)\)[^)]+$/,C=o("".replace),v=o("".slice);k(c,"description",{configurable:!0,get:function(){function p(){var N=s(this);if(f(m,N))return"";var V=l(N),S=u?v(V,7,-1):C(V,h,"$1");return S===""?void 0:S}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},30828:function(A,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),B=f("string-to-symbol-registry"),I=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(g){var d=o(g);if(t(B,d))return B[d];var c=a("Symbol")(d);return B[d]=c,I[c]=d,c}return k}()})},53795:function(A,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(A,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(A,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(A,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(A,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),B=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function I(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(B,k))return B[k]}return I}()})},48058:function(A,r,n){"use strict";var e=n(85889);e("match")},51583:function(A,r,n){"use strict";var e=n(85889);e("replace")},82403:function(A,r,n){"use strict";var e=n(85889);e("search")},34265:function(A,r,n){"use strict";var e=n(85889);e("species")},3295:function(A,r,n){"use strict";var e=n(85889);e("split")},1078:function(A,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(A,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(A,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(A,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function B(I,k){return o(f(this),I,k,arguments.length>2?arguments[2]:void 0)}return B}())},73364:function(A,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(A,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),B=n(40033),I=e.aTypedArray,k=e.exportTypedArrayMethod,g=b("".slice),d=B(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var i=arguments.length;I(this);var u=g(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return c}(),d)},23793:function(A,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(B){var I=a(o(this),B,arguments.length>1?arguments[1]:void 0);return t(this,I)}return b}())},13917:function(A,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(A,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(A,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(A,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(A,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(A,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(A,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(A,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(A,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(A,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(A,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(A,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),B=b("iterator"),I=e.Uint8Array,k=t(f.values),g=t(f.keys),d=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=I&&I.prototype,u=!a(function(){i[B].call([1])}),s=!!i&&i.values&&i[B]===i.values&&i.values.name==="values",l=function(){function h(){return k(c(this))}return h}();m("entries",function(){function h(){return d(c(this))}return h}(),u),m("keys",function(){function h(){return g(c(this))}return h}(),u),m("values",l,u||!s,{name:"values"}),m(B,l,u||!s,{name:"values"})},5659:function(A,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(B){return f(t(this),B)}return b}())},25014:function(A,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(B){var I=arguments.length;return a(t,o(this),I>1?[B,arguments[1]]:[B])}return b}())},32189:function(A,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(B){return a(o(this),B,arguments.length>1?arguments[1]:void 0,function(I,k){return new(t(I))(k)})}return b}())},23030:function(A,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,B=arguments.length,I=new(t(this))(B);B>b;)I[b]=arguments[b++];return I}return f}(),a)},49110:function(A,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var B=arguments.length;return a(t(this),b,B,B>1?arguments[1]:void 0)}return f}())},24309:function(A,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var B=arguments.length;return a(t(this),b,B,B>1?arguments[1]:void 0)}return f}())},56445:function(A,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,B=a(b).length,I=o(B/2),k=0,g;k1?arguments[1]:void 0,1),C=b(l);if(i)return a(d,this,C,h);var v=this.length,p=o(C),N=0;if(p+h>v)throw new I("Wrong length");for(;Nm;)u[m]=d[m++];return u}return I}(),B)},88739:function(A,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(A,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),B=n(652),I=n(19228),k=n(5026),g=n(9342),d=b.aTypedArray,c=b.exportTypedArrayMethod,m=e.Uint16Array,i=m&&a(m.prototype.sort),u=!!i&&!(t(function(){i(new m(2),null)})&&t(function(){i(new m(2),{})})),s=!!i&&!t(function(){if(k)return k<74;if(B)return B<67;if(I)return!0;if(g)return g<602;var h=new m(516),C=Array(516),v,p;for(v=0;v<516;v++)p=v%4,h[v]=515-v,C[v]=v-2*p+3;for(i(h,function(N,V){return(N/4|0)-(V/4|0)}),v=0;v<516;v++)if(h[v]!==C[v])return!0}),l=function(C){return function(v,p){return C!==void 0?+C(v,p)||0:p!==p?-1:v!==v?1:v===0&&p===0?1/v>0&&1/p<0?1:-1:v>p}};c("sort",function(){function h(C){return C!==void 0&&o(C),s?i(this,C):f(d(this),l(C))}return h}(),!s||u)},72532:function(A,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function B(I,k){var g=f(this),d=g.length,c=t(I,d),m=o(g);return new m(g.buffer,g.byteOffset+c*g.BYTES_PER_ELEMENT,a((k===void 0?d:t(k,d))-c))}return B}())},62207:function(A,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,B=t.aTypedArray,I=t.exportTypedArrayMethod,k=[].toLocaleString,g=!!b&&o(function(){k.call(new b(1))}),d=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});I("toLocaleString",function(){function c(){return a(k,g?f(B(this)):B(this),f(arguments))}return c}(),d)},906:function(A,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},B=[].toString,I=o([].join);a(function(){B.call({})})&&(B=function(){function g(){return I(this)}return g}());var k=b.toString!==B;e("toString",B,k)},78824:function(A,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(A,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(A,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(A,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(A,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),B=n(39895),I=n(77568),k=n(5419).enforce,g=n(40033),d=n(21820),c=Object,m=Array.isArray,i=c.isExtensible,u=c.isFrozen,s=c.isSealed,l=c.freeze,h=c.seal,C=!a.ActiveXObject&&"ActiveXObject"in a,v,p=function(M){return function(){function P(){return M(this,arguments.length?arguments[0]:void 0)}return P}()},N=b("WeakMap",p,B),V=N.prototype,S=t(V.set),y=function(){return e&&g(function(){var M=l([]);return S(new N,M,1),!u(M)})};if(d)if(C){v=B.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),T=t(V.get);o(V,{delete:function(){function x(M){if(I(M)&&!i(M)){var P=k(this);return P.frozen||(P.frozen=new v),L(this,M)||P.frozen.delete(M)}return L(this,M)}return x}(),has:function(){function x(M){if(I(M)&&!i(M)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,M)||P.frozen.has(M)}return w(this,M)}return x}(),get:function(){function x(M){if(I(M)&&!i(M)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,M)?T(this,M):P.frozen.get(M)}return T(this,M)}return x}(),set:function(){function x(M,P){if(I(M)&&!i(M)){var D=k(this);D.frozen||(D.frozen=new v),w(this,M)?S(this,M,P):D.frozen.set(M,P)}else S(this,M,P);return this}return x}()})}else y()&&o(V,{set:function(){function x(M,P){var D;return m(M)&&(u(M)?D=l:s(M)&&(D=h)),S(this,M,P),D&&D(M),this}return x}()})},90846:function(A,r,n){"use strict";n(80040)},67042:function(A,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(A,r,n){"use strict";n(67042)},5606:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(A,r,n){"use strict";n(5606),n(27807)},25764:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),B=n(58310),I=b(function(){return B&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:I},{queueMicrotask:function(){function k(g){f(arguments.length,1),t(o(g))}return k}()})},27807:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(A,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(A,r,n){"use strict";n(45569),n(5213)},7435:function(A){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var N=[],d=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},c=function(u,s){if(typeof s=="object"){if(s===null)return s;if(N.includes(s))return"[circular ref]";N.push(s);var i=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return i?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(d):s}return d(s)},m=JSON.stringify(k,c);return N=null,m},f=function(k){if(0)var N,d,c},b=function(k,N){if(0)var d,c,m},B=function(){};A.exports={subscribe:t,sendMessage:f,sendLogEntry:b,setupHotReloading:B}}},kt={};function X(A){var r=kt[A];if(r!==void 0)return r.exports;var n=kt[A]={exports:{}};return Jt[A](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(A){if(typeof window=="object")return window}}()})(),function(){X.o=function(A,r){return Object.prototype.hasOwnProperty.call(A,r)}}();var Rn={};(function(){"use strict";X(33313),X(10933),X(79250),X(53795),X(87806),X(64677),X(48058),X(51583),X(82403),X(34265),X(3295),X(1078),X(63207),X(80520),X(39600),X(93237),X(32057),X(68933),X(47830),X(13455),X(64094),X(61915),X(32384),X(25579),X(63532),X(33425),X(43894),X(99636),X(34570),X(94432),X(24683),X(69984),X(32089),X(60206),X(29645),X(4788),X(58672),X(19356),X(48968),X(49852),X(2712),X(864),X(54243),X(75621),X(26267),X(50095),X(33451),X(74587),X(25082),X(47421),X(32122),X(6306),X(90216),X(84663),X(92332),X(98329),X(9631),X(47091),X(59660),X(15383),X(92866),X(86107),X(29248),X(52540),X(79007),X(77199),X(6522),X(95542),X(2966),X(20997),X(57400),X(45571),X(54800),X(15709),X(76059),X(96614),X(324),X(90426),X(95443),X(87968),X(55007),X(55323),X(13521),X(5006),X(99009),X(85770),X(23532),X(87119),X(78618),X(27129),X(31943),X(3579),X(97397),X(85028),X(8225),X(43331),X(62289),X(56196),X(2950),X(44205),X(76882),X(83186),X(76065),X(13411),X(26634),X(53118),X(42514),X(84353),X(62987),X(48993),X(52917),X(4972),X(28913),X(36382),X(53092),X(69861),X(29674),X(81543),X(9373),X(45093),X(63074),X(5815),X(88527),X(66390),X(7784),X(50551),X(76483),X(92046),X(63915),X(51454),X(79669),X(23057),X(57983),X(17953),X(30442),X(6403),X(9867),X(43673),X(12354),X(22515),X(5143),X(93514),X(5416),X(11619),X(44590),X(63272),X(39930),X(4038),X(8448),X(70604),X(34965),X(95309),X(82256),X(49484),X(38931),X(39308),X(91550),X(75008),X(56027),X(50340),X(34325),X(74498),X(15812),X(57726),X(80756),X(70567),X(66756),X(60037),X(44195),X(24575),X(71968),X(78824),X(72846),X(99872),X(73364),X(58166),X(23793),X(43820),X(13917),X(19852),X(40379),X(92770),X(81069),X(63689),X(5659),X(25014),X(32189),X(23030),X(24309),X(49110),X(56445),X(30939),X(48321),X(88739),X(60415),X(72532),X(62207),X(906),X(90846),X(40348),X(83006),X(25764),X(69401),X(95012),X(30236)})(),function(){"use strict";var A=X(89005);X(67160),X(23542),X(30386),X(98996),X(50578),X(4444),X(77870),X(39108),X(11714),X(73492),X(49641),X(17570),X(61858),X(32882),X(23632),X(56492);var r=X(85822),n=X(7435),e=X(56518),a=X(26427),t=X(18498),o=X(49060),f=X(72178),b=X(24826),B;/** + */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var g=[],d=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},c=function(u,s){if(typeof s=="object"){if(s===null)return s;if(g.includes(s))return"[circular ref]";g.push(s);var l=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return l?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(d):s}return d(s)},m=JSON.stringify(k,c);return g=null,m},f=function(k){if(0)var g,d,c},b=function(k,g){if(0)var d,c,m},B=function(){};A.exports={subscribe:t,sendMessage:f,sendLogEntry:b,setupHotReloading:B}}},kt={};function X(A){var r=kt[A];if(r!==void 0)return r.exports;var n=kt[A]={exports:{}};return Jt[A](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(A){if(typeof window=="object")return window}}()})(),function(){X.o=function(A,r){return Object.prototype.hasOwnProperty.call(A,r)}}();var Rn={};(function(){"use strict";X(33313),X(10933),X(79250),X(53795),X(87806),X(64677),X(48058),X(51583),X(82403),X(34265),X(3295),X(1078),X(63207),X(80520),X(39600),X(93237),X(32057),X(68933),X(47830),X(13455),X(64094),X(61915),X(32384),X(25579),X(63532),X(33425),X(43894),X(99636),X(34570),X(94432),X(24683),X(69984),X(32089),X(60206),X(29645),X(4788),X(58672),X(19356),X(48968),X(49852),X(2712),X(864),X(54243),X(75621),X(26267),X(50095),X(33451),X(74587),X(25082),X(47421),X(32122),X(6306),X(90216),X(84663),X(92332),X(98329),X(9631),X(47091),X(59660),X(15383),X(92866),X(86107),X(29248),X(52540),X(79007),X(77199),X(6522),X(95542),X(2966),X(20997),X(57400),X(45571),X(54800),X(15709),X(76059),X(96614),X(324),X(90426),X(95443),X(87968),X(55007),X(55323),X(13521),X(5006),X(99009),X(85770),X(23532),X(87119),X(78618),X(27129),X(31943),X(3579),X(97397),X(85028),X(8225),X(43331),X(62289),X(56196),X(2950),X(44205),X(76882),X(83186),X(76065),X(13411),X(26634),X(53118),X(42514),X(84353),X(62987),X(48993),X(52917),X(4972),X(28913),X(36382),X(53092),X(69861),X(29674),X(81543),X(9373),X(45093),X(63074),X(5815),X(88527),X(66390),X(7784),X(50551),X(76483),X(92046),X(63915),X(51454),X(79669),X(23057),X(57983),X(17953),X(30442),X(6403),X(9867),X(43673),X(12354),X(22515),X(5143),X(93514),X(5416),X(11619),X(44590),X(63272),X(39930),X(4038),X(8448),X(70604),X(34965),X(95309),X(82256),X(49484),X(38931),X(39308),X(91550),X(75008),X(56027),X(50340),X(34325),X(74498),X(15812),X(57726),X(80756),X(70567),X(66756),X(60037),X(44195),X(24575),X(71968),X(78824),X(72846),X(99872),X(73364),X(58166),X(23793),X(43820),X(13917),X(19852),X(40379),X(92770),X(81069),X(63689),X(5659),X(25014),X(32189),X(23030),X(24309),X(49110),X(56445),X(30939),X(48321),X(88739),X(60415),X(72532),X(62207),X(906),X(90846),X(40348),X(83006),X(25764),X(69401),X(95012),X(30236)})(),function(){"use strict";var A=X(89005);X(67160),X(23542),X(30386),X(98996),X(50578),X(4444),X(77870),X(39108),X(11714),X(73492),X(49641),X(17570),X(61858),X(32882),X(23632),X(56492);var r=X(85822),n=X(7435),e=X(56518),a=X(26427),t=X(18498),o=X(49060),f=X(72178),b=X(24826),B;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(B=window.performance)==null||(B=B.timing)==null?void 0:B.navigationStart),r.perf.mark("init");var I=(0,f.configureStore)(),k=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var d=X(71253),c=d.getRoutedComponent,m=c(I);return(0,A.createComponentVNode)(2,f.StoreProvider,{store:I,children:(0,A.createComponentVNode)(2,m)})}),N=function d(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",d);return}(0,b.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),I.subscribe(k),Byond.subscribe(function(c,m){return I.dispatch({type:c,payload:m})})};N()}()})();})(); + */r.perf.mark("inception",(B=window.performance)==null||(B=B.timing)==null?void 0:B.navigationStart),r.perf.mark("init");var I=(0,f.configureStore)(),k=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var d=X(71253),c=d.getRoutedComponent,m=c(I);return(0,A.createComponentVNode)(2,f.StoreProvider,{store:I,children:(0,A.createComponentVNode)(2,m)})}),g=function d(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",d);return}(0,b.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),I.subscribe(k),Byond.subscribe(function(c,m){return I.dispatch({type:c,payload:m})})};g()}()})();})();