diff --git a/code/modules/arcade/prize_counter.dm b/code/modules/arcade/prize_counter.dm index 5e34b1d59c73..29642c8fc8aa 100644 --- a/code/modules/arcade/prize_counter.dm +++ b/code/modules/arcade/prize_counter.dm @@ -7,7 +7,7 @@ density = TRUE anchored = TRUE idle_power_consumption = 40 - + /// Amount of arcade tickets in the prize counter. var/tickets = 0 /obj/machinery/prize_counter/Initialize(mapload) @@ -20,6 +20,58 @@ component_parts += new /obj/item/stack/sheet/glass(null) RefreshParts() +/obj/machinery/prize_counter/ui_state(mob/user) + return GLOB.default_state + +/obj/machinery/prize_counter/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "PrizeCounter", name) + ui.set_autoupdate(FALSE) + ui.open() + +/obj/machinery/prize_counter/ui_assets(mob/user) + return list( + get_asset_datum(/datum/asset/spritesheet/prize_counter) + ) + +/obj/machinery/prize_counter/ui_data(mob/user) + var/list/data = list() + data["tickets"] = tickets + return data + +/obj/machinery/prize_counter/ui_static_data(mob/user) + var/list/static_data = list() + + var/list/prizes = list() + for(var/datum/prize_item/prize in GLOB.global_prizes.prizes) + prizes += list(list( + "name" = initial(prize.name), + "desc" = initial(prize.desc), + "cost" = prize.cost, + "itemID" = GLOB.global_prizes.prizes.Find(prize), + "imageID" = replacetext(replacetext("[prize.typepath]", "/obj/item/", ""), "/", "-"), + )) + static_data["prizes"] = prizes + + return static_data + +/obj/machinery/prize_counter/ui_act(action, params, datum/tgui/ui) + if(..()) + return + . = TRUE + + add_fingerprint(usr) + switch(action) + if("purchase") + var/itemID = text2num(params["purchase"]) + if(!GLOB.global_prizes.PlaceOrder(src, itemID)) + return + return TRUE + if("eject") + print_tickets(usr) + return TRUE + /obj/machinery/prize_counter/update_icon_state() if(stat & BROKEN) icon_state = "prize_counter-broken" @@ -30,11 +82,12 @@ else icon_state = "prize_counter-on" -/obj/machinery/prize_counter/attackby(obj/item/O as obj, mob/user as mob, params) +/obj/machinery/prize_counter/attackby(obj/item/O, mob/user, params) if(istype(O, /obj/item/stack/tickets)) var/obj/item/stack/tickets/T = O if(user.unEquip(T)) //Because if you can't drop it for some reason, you shouldn't be increasing the tickets var tickets += T.amount + SStgui.update_uis(src) qdel(T) else to_chat(user, "\The [T] seems stuck to your hand!") @@ -59,155 +112,18 @@ update_icon(UPDATE_ICON_STATE) return TRUE -/obj/machinery/prize_counter/attack_hand(mob/user as mob) +/obj/machinery/prize_counter/attack_hand(mob/user) if(..()) return - add_fingerprint(user) - interact(user) - -/obj/machinery/prize_counter/interact(mob/user as mob) - user.set_machine(src) - - if(stat & (BROKEN|NOPOWER)) - return - - var/dat = {" - - - Arcade Ticket Exchange - - - -

Tickets: [tickets] | Eject Tickets

-

Arcade Ticket Exchange

-

- Exchange that pile of tickets for a pile of cool prizes! -

-
- - - - - - - - - "} - - for(var/datum/prize_item/item in GLOB.global_prizes.prizes) - var/cost_class="affordable" - if(item.cost>tickets) - cost_class="toomuch" - var/itemID = GLOB.global_prizes.prizes.Find(item) - var/row_color="light" - if(itemID%2 == 0) - row_color="dark" - dat += {" - - - - "} - dat += {" - - - "} - - dat += {" - -
Available Prizes:
#Name/DescriptionTickets
- [itemID] - -

[item.name]

-

[item.desc]

-
- [item.cost] -
- -"} - user << browse(dat, "window=prize_counter;size=440x600;can_resize=0") - onclose(user, "prize_counter") - return - -/obj/machinery/prize_counter/Topic(href, href_list) - if(..()) - return 1 - - add_fingerprint(usr) - - if(href_list["eject"]) - print_tickets() - - if(href_list["buy"]) - var/itemID = text2num(href_list["buy"]) - var/datum/prize_item/item = GLOB.global_prizes.prizes[itemID] - var/sure = tgui_alert(usr,"Are you sure you wish to purchase [item.name] for [item.cost] tickets?", "You sure?", list("Yes","No")) - if(sure == "No") - updateUsrDialog() - return - if(!GLOB.global_prizes.PlaceOrder(src, itemID)) - to_chat(usr, "Unable to complete the exchange.") - else - to_chat(usr, "You've successfully purchased the item.") + ui_interact(user) - interact(usr) - return +/obj/machinery/prize_counter/attack_ghost(mob/user) + ui_interact(user) /obj/machinery/prize_counter/proc/print_tickets() - if(!tickets) - return if(tickets >= 9999) new /obj/item/stack/tickets(get_turf(src), 9999) //max stack size tickets -= 9999 - print_tickets() else new /obj/item/stack/tickets(get_turf(src), tickets) tickets = 0 diff --git a/code/modules/arcade/prize_datums.dm b/code/modules/arcade/prize_datums.dm index 7323ed49ceb2..2225818773c5 100644 --- a/code/modules/arcade/prize_datums.dm +++ b/code/modules/arcade/prize_datums.dm @@ -8,22 +8,16 @@ GLOBAL_DATUM_INIT(global_prizes, /datum/prizes, new()) prizes += new itempath() /datum/prizes/proc/PlaceOrder(obj/machinery/prize_counter/prize_counter, itemID) - if(!prize_counter.Adjacent(usr)) - to_chat(usr, "You need to be closer!") - return - if(!prize_counter) - return 0 var/datum/prize_item/item = GLOB.global_prizes.prizes[itemID] + if(!prize_counter) + return if(!item) - return 0 - if(prize_counter.tickets >= item.cost) - new item.typepath(prize_counter.loc) - prize_counter.tickets -= item.cost - to_chat(usr, "Enjoy your prize!") - return TRUE - else - to_chat(usr, "Not enough tickets!") - return FALSE + return + + new item.typepath(prize_counter.loc) + prize_counter.tickets -= item.cost + to_chat(usr, "Enjoy your prize!") + playsound(prize_counter, 'sound/machines/machine_vend.ogg', 50, TRUE) ////////////////////////////////////// // prize_item datum // diff --git a/code/modules/asset_cache/assets/asset_prize_counter.dm b/code/modules/asset_cache/assets/asset_prize_counter.dm new file mode 100644 index 000000000000..d7f340033cf2 --- /dev/null +++ b/code/modules/asset_cache/assets/asset_prize_counter.dm @@ -0,0 +1,13 @@ +/datum/asset/spritesheet/prize_counter + name = "prize_counter" + +/datum/asset/spritesheet/prize_counter/create_spritesheets() + for(var/datum/prize_item/prize in GLOB.global_prizes.prizes) + var/obj/item/prize_item = prize.typepath + var/prize_icon = icon(icon = initial(prize_item.icon), icon_state = initial(prize_item.icon_state)) + var/imgid = replacetext(replacetext("[prize_item]", "/obj/item/", ""), "/", "-") + Insert(imgid, prize_icon) + +/datum/asset/spritesheet/prize_counter/ModifyInserted(icon/pre_asset) + pre_asset.Scale(64, 64) + return pre_asset diff --git a/paradise.dme b/paradise.dme index 3fbe62c257bd..6a6ee47fb233 100644 --- a/paradise.dme +++ b/paradise.dme @@ -1504,6 +1504,7 @@ #include "code\modules\asset_cache\assets\asset_nanomap.dm" #include "code\modules\asset_cache\assets\asset_panels.dm" #include "code\modules\asset_cache\assets\asset_paper.dm" +#include "code\modules\asset_cache\assets\asset_prize_counter.dm" #include "code\modules\asset_cache\assets\asset_rpd.dm" #include "code\modules\asset_cache\assets\asset_safe.dm" #include "code\modules\asset_cache\assets\asset_tgui.dm" diff --git a/tgui/packages/tgui/interfaces/PrizeCounter.tsx b/tgui/packages/tgui/interfaces/PrizeCounter.tsx new file mode 100644 index 000000000000..bbb075248c0d --- /dev/null +++ b/tgui/packages/tgui/interfaces/PrizeCounter.tsx @@ -0,0 +1,105 @@ +import { classes } from 'common/react'; +import { useBackend, useLocalState } from '../backend'; +import { Button, Section, Stack, Input } from '../components'; +import { Window } from '../layouts'; + +type Prize = { + name: string; + desc: string; + cost: number; + itemID: number; + imageID: string; +}; + +type PrizeData = { + tickets: number; + prizes: Prize[]; +}; + +export const PrizeCounter = (props, context) => { + const { act, data } = useBackend(context); + const { tickets, prizes = [] } = data; + const [searchText, setSearchText] = useLocalState(context, 'searchText', ''); + const filteredPrizes = prizes.filter((prize) => + prize.name.toLowerCase().includes(searchText.toLowerCase()) + ); + return ( + + + + +
+ + setSearchText(value)} + /> + + +
+
+
+
+
+ ); +}; diff --git a/tgui/packages/tgui/styles/interfaces/PrizeCounter.scss b/tgui/packages/tgui/styles/interfaces/PrizeCounter.scss new file mode 100644 index 000000000000..4a236858e9cc --- /dev/null +++ b/tgui/packages/tgui/styles/interfaces/PrizeCounter.scss @@ -0,0 +1,55 @@ +@use '../base.scss'; + +$background-color: rgba(0, 0, 0, 0.33) !default; +$text-color: rgba(255, 255, 255) !default; + +.PrizeCounter__BuyButton { + width: 64px; + height: 100%; + padding-top: 0.25em; + text-align: center; + font-size: 1.5rem; + font-weight: bold; + background-color: lighten($background-color, 25%); + color: darken($text-color, 25%); + + transition: + color 100ms, + background-color 100ms; + + &:hover { + background-color: lighten($background-color, 33%); + color: $text-color; + } + + .fa, + .fas, + .far { + color: rgba(60, 255, 60, 0.66); + transform: scale(1.6); + position: absolute; + top: 2.1em; + left: 1.4em; + } + + &--disabled { + background-color: rgba(255, 50, 50, 0.1); + color: darken($text-color, 50%); + .fa, + .fas, + .far { + color: rgba(255, 60, 60, 0.66); + } + &:hover, + &:focus { + background-color: rgba(255, 50, 50, 0.1); + color: darken($text-color, 50%); + } + } +} + +.PrizeCounter__Item { + margin-bottom: base.em(6px); + background-color: rgba(125, 125, 125, 0.05); + border: base.em(1px) solid lighten($background-color, 25%); +} diff --git a/tgui/packages/tgui/styles/main.scss b/tgui/packages/tgui/styles/main.scss index 8abd5d705224..bfbde3105577 100644 --- a/tgui/packages/tgui/styles/main.scss +++ b/tgui/packages/tgui/styles/main.scss @@ -59,6 +59,7 @@ @include meta.load-css('./interfaces/PDA.scss'); @include meta.load-css('./interfaces/PdaPainter.scss'); @include meta.load-css('./interfaces/PoolController.scss'); +@include meta.load-css('./interfaces/PrizeCounter.scss'); @include meta.load-css('./interfaces/RndConsole.scss'); @include meta.load-css('./interfaces/Roulette.scss'); @include meta.load-css('./interfaces/Safe.scss'); diff --git a/tgui/public/tgui.bundle.css b/tgui/public/tgui.bundle.css index b1fc209e69e6..238af5569bd2 100644 --- a/tgui/public/tgui.bundle.css +++ b/tgui/public/tgui.bundle.css @@ -1 +1 @@ -html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a!important}.color-white{color:#fff!important}.color-red{color:#df3e3e!important}.color-orange{color:#f37f33!important}.color-yellow{color:#fbda21!important}.color-olive{color:#cbe41c!important}.color-green{color:#25ca4c!important}.color-teal{color:#00d6cc!important}.color-blue{color:#2e93de!important}.color-violet{color:#7349cf!important}.color-purple{color:#ad45d0!important}.color-pink{color:#e34da1!important}.color-brown{color:#b97447!important}.color-grey{color:#848484!important}.color-good{color:#68c22d!important}.color-average{color:#f29a29!important}.color-bad{color:#df3e3e!important}.color-label{color:#8b9bb0!important}.color-bg-black{background-color:#000!important}.color-bg-white{background-color:#d9d9d9!important}.color-bg-red{background-color:#bd2020!important}.color-bg-orange{background-color:#d95e0c!important}.color-bg-yellow{background-color:#d9b804!important}.color-bg-olive{background-color:#9aad14!important}.color-bg-green{background-color:#1b9638!important}.color-bg-teal{background-color:#009a93!important}.color-bg-blue{background-color:#1c71b1!important}.color-bg-violet{background-color:#552dab!important}.color-bg-purple{background-color:#8b2baa!important}.color-bg-pink{background-color:#cf2082!important}.color-bg-brown{background-color:#8c5836!important}.color-bg-grey{background-color:#646464!important}.color-bg-good{background-color:#4d9121!important}.color-bg-average{background-color:#cd7a0d!important}.color-bg-bad{background-color:#bd2020!important}.color-bg-label{background-color:#657a94!important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9)!important;background:rgba(0,0,0,0)!important;outline:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;filter:none!important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8)!important}.outline-dotted{outline-style:dotted!important}.outline-dashed{outline-style:dashed!important}.outline-solid{outline-style:solid!important}.outline-double{outline-style:double!important}.outline-groove{outline-style:groove!important}.outline-ridge{outline-style:ridge!important}.outline-inset{outline-style:inset!important}.outline-outset{outline-style:outset!important}.outline-color-black{outline:.167rem solid #1a1a1a!important}.outline-color-white{outline:.167rem solid #fff!important}.outline-color-red{outline:.167rem solid #df3e3e!important}.outline-color-orange{outline:.167rem solid #f37f33!important}.outline-color-yellow{outline:.167rem solid #fbda21!important}.outline-color-olive{outline:.167rem solid #cbe41c!important}.outline-color-green{outline:.167rem solid #25ca4c!important}.outline-color-teal{outline:.167rem solid #00d6cc!important}.outline-color-blue{outline:.167rem solid #2e93de!important}.outline-color-violet{outline:.167rem solid #7349cf!important}.outline-color-purple{outline:.167rem solid #ad45d0!important}.outline-color-pink{outline:.167rem solid #e34da1!important}.outline-color-brown{outline:.167rem solid #b97447!important}.outline-color-grey{outline:.167rem solid #848484!important}.outline-color-good{outline:.167rem solid #68c22d!important}.outline-color-average{outline:.167rem solid #f29a29!important}.outline-color-bad{outline:.167rem solid #df3e3e!important}.outline-color-label{outline:.167rem solid #8b9bb0!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconRight .fa,.Button--hasContent.Button--iconRight .fas,.Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--multiLine{white-space:normal;word-wrap:break-word}.Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.Button--color--black:focus{transition:color .25s,background-color .25s}.Button--color--black:hover{background-color:#101010;color:#fff}.Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.Button--color--white:focus{transition:color .25s,background-color .25s}.Button--color--white:hover{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--red:focus{transition:color .25s,background-color .25s}.Button--color--red:hover{background-color:#d93f3f;color:#fff}.Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.Button--color--orange:focus{transition:color .25s,background-color .25s}.Button--color--orange:hover{background-color:#ef7e33;color:#fff}.Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--yellow:focus{transition:color .25s,background-color .25s}.Button--color--yellow:hover{background-color:#f5d523;color:#000}.Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.Button--color--olive:focus{transition:color .25s,background-color .25s}.Button--color--olive:hover{background-color:#bdd327;color:#fff}.Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--color--green:focus{transition:color .25s,background-color .25s}.Button--color--green:hover{background-color:#2fb94f;color:#fff}.Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.Button--color--teal:focus{transition:color .25s,background-color .25s}.Button--color--teal:hover{background-color:#10bdb6;color:#fff}.Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.Button--color--blue:focus{transition:color .25s,background-color .25s}.Button--color--blue:hover{background-color:#308fd6;color:#fff}.Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.Button--color--violet:focus{transition:color .25s,background-color .25s}.Button--color--violet:hover{background-color:#7249ca;color:#fff}.Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.Button--color--purple:focus{transition:color .25s,background-color .25s}.Button--color--purple:hover{background-color:#aa46ca;color:#fff}.Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.Button--color--pink:focus{transition:color .25s,background-color .25s}.Button--color--pink:hover{background-color:#e04ca0;color:#fff}.Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.Button--color--brown:focus{transition:color .25s,background-color .25s}.Button--color--brown:hover{background-color:#ae724c;color:#fff}.Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.Button--color--grey:focus{transition:color .25s,background-color .25s}.Button--color--grey:hover{background-color:#818181;color:#fff}.Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.Button--color--good:focus{transition:color .25s,background-color .25s}.Button--color--good:hover{background-color:#67b335;color:#fff}.Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.Button--color--average:focus{transition:color .25s,background-color .25s}.Button--color--average:hover{background-color:#eb972b;color:#fff}.Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--bad:focus{transition:color .25s,background-color .25s}.Button--color--bad:hover{background-color:#d93f3f;color:#fff}.Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.Button--color--label:focus{transition:color .25s,background-color .25s}.Button--color--label:hover{background-color:#8a9aae;color:#fff}.Button--color--default{transition:color .1s,background-color .1s;background-color:#3e6189;color:#fff}.Button--color--default:focus{transition:color .25s,background-color .25s}.Button--color--default:hover{background-color:#567daa;color:#fff}.Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--caution:focus{transition:color .25s,background-color .25s}.Button--color--caution:hover{background-color:#f5d523;color:#000}.Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--danger:focus{transition:color .25s,background-color .25s}.Button--color--danger:hover{background-color:#d93f3f;color:#fff}.Button--color--transparent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.Button--color--transparent:focus{transition:color .25s,background-color .25s}.Button--color--transparent:hover{background-color:#3a3a3a;color:#fff}.Button--color--translucent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,.6);color:rgba(255,255,255,.5)}.Button--color--translucent:focus{transition:color .25s,background-color .25s}.Button--color--translucent:hover{background-color:#3a3a3a;color:#fff}.Button--disabled{background-color:#999!important}.Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--selected:focus{transition:color .25s,background-color .25s}.Button--selected:hover{background-color:#2fb94f;color:#fff}.Button--modal{float:right;z-index:1;margin-top:-.5rem}.Collapsible{margin-bottom:.5rem}.Collapsible:last-child{margin-bottom:0}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Dropdown{position:relative;align-items:center}.Dropdown__control{display:inline-block;align-items:center;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.3333333333em;-ms-user-select:none;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{overflow-y:auto;align-items:center;z-index:5;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-scroll{overflow-y:scroll}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color .1s ease-out}.Dropdown__menuentry.selected{background-color:rgba(255,255,255,.5)!important;transition:background-color 0ms}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em);text-align:left;padding-top:2.5px}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:block}.Flex--iefix.Flex--inline,.Flex__item--iefix{display:inline-block}.Flex--iefix--column>.Flex__item--iefix{display:block}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:7em;width:10em;line-height:2em;vertical-align:middle}.IconStack:after{color:rgba(0,0,0,0);content:"."}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue,.Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Knob__popupValue--right{top:.25rem;right:-50%}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotate(135deg)}.Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotate(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.NanoMap__container{overflow:hidden;width:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0;margin:0}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:20%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.ProgressBar__fill--animated{transition:background-color .5s,width .5s}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--disabled{border:1px solid #999}.ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.ProgressBar--color--black{border:.0833333333em solid #000!important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464!important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94!important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto .2em}.RoundGauge__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}to{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.Section .Section:first-child{margin-top:-.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Slider:not(.Slider__disabled){cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--zebra>.Stack__item:nth-child(2n){background-color:rgba(0,0,0,.33)}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:700;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:rgba(0,0,0,0)}.Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:Consolas,monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.AccountsUplinkTerminal__list tr>td{text-align:center}.AccountsUplinkTerminal__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.AccountsUplinkTerminal__list tr:not(:first-child):hover,.AccountsUplinkTerminal__list tr:not(:first-child):focus{background-color:#252525}.AccountsUplinkTerminal__listRow--SUSPENDED{background-color:#740c20}.AlertModal__Message{text-align:center;justify-content:center}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color .5s ease-out,width .5s ease-out;background-color:#3e6189;height:100%}.BrigCells__list .Table__row--header,.BrigCells__list .Table__cell{text-align:center}.BrigCells__list .BrigCells__listRow--active .Table__cell{background-color:#890e26}.CameraConsole__left{position:absolute;top:0;bottom:0;left:0;width:18.3333333333em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.Contractor *{font-family:Courier New,Courier,monospace}.Contractor .Section__titleText{display:inline-block;max-width:70%}.Contractor .Section__titleText>.Flex{width:100%}.Contractor .Section__titleText>.Flex>.Flex__item:first-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.Contractor__Contract .Button{font-size:11px;white-space:normal!important}.Contractor__photoZoom{text-align:center}.Contractor__photoZoom>img{width:96px;-ms-interpolation-mode:nearest-neighbor}.Contractor__photoZoom>.Button{position:absolute}.Exofab .Dropdown__control{margin-bottom:-1px}.Exofab .Dropdown__selected-text{overflow:hidden;text-overflow:ellipsis;width:80%;display:inline-block;margin-bottom:-3px}.Exofab__materials{height:100%;overflow:auto}.Exofab__materials .Section__content{height:calc(100% - 31px)}.Exofab__material:not(.Exofab__material--line){margin-bottom:.25rem}.Exofab__material:not(.Exofab__material--line) .Button{width:28px;margin-right:.5rem}.Exofab__material--line .Button{background-color:rgba(0,0,0,0);width:14px}.Exofab__material--name{color:#7e90a7;text-transform:capitalize}.Exofab__material .Button{margin-bottom:0;padding:0;vertical-align:middle}.Exofab__queue{height:100%}.Exofab__queue--queue .Button{margin:0;transform:scale(.75)}.Exofab__queue--queue .Button:first-of-type{margin-left:.25rem}.Exofab__queue--time{text-align:center;color:#7e90a7}.Exofab__queue--deficit{text-align:center;color:#db2828;font-weight:700}.Exofab__queue--deficit>div:not(.Divider){display:inline-block;margin-bottom:-.75rem}.Exofab__queue .Section__content{height:calc(100% - 31px)}.Exofab__queue .Exofab__material--amount{margin-right:.25rem}.Exofab__design--cost{display:inline-block;vertical-align:middle;margin-top:.25rem}.Exofab__design--cost>div{display:inline-block}.Exofab__design--cost .Exofab__material{margin-left:.25rem}.Exofab__design--time{display:inline-block;margin-left:.5rem;color:#7e90a7}.Exofab__design--time i{margin-right:.25rem}.Exofab__designs .Section__content{height:calc(100% - 31px);overflow:auto}.Exofab__building{height:45px}.Exofab__building .ProgressBar{width:100%;height:75%}.Exofab__building .ProgressBar__content{line-height:26px;text-align:right;font-size:12px;font-weight:700;display:flex;justify-content:flex-end}.Exofab__dropdown{line-height:14px;font-size:12px;width:225px;height:85%;margin-top:1.5px}.Ingredient__Table tr:nth-child(2n){background-color:#333}.Ingredient__Table td{padding:3px}.Library__Booklist tr>td{text-align:center}.Library__Booklist tr:not(:first-child){height:24px;line-height:24px;transition:background-color 50ms}.Library__Booklist tr:not(:first-child):hover,.Library__Booklist tr:not(:first-child):focus{background-color:#252525}.Library__SearchContainer{background-color:rgba(37,37,37,.5)}.Library__SearchContainer tr td:first-child{width:60%}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:12px}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color .5s,width .5s;background-color:#3e6189;height:100%}.Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.Newscaster__menu .Section__content{padding-left:0}.Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.Newscaster__menuButton--selected{color:#fff}.Newscaster__menuButton--selected:after{content:"";background-color:#4972a1;width:2px;height:24px;position:absolute;left:-6px}.Newscaster__menuButton--security{color:#4972a1}.Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.Newscaster__menuButton:hover{color:#fff}.Newscaster__menuButton:hover:before{background-color:#fff}.Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.Newscaster__menu--open{width:175px}.Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.Newscaster__jobCategory:last-child{margin-bottom:.5rem}.Newscaster__jobOpening--command{font-weight:700}.Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.Newscaster__emptyNotice{color:#7e90a7;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.Newscaster__emptyNotice i{margin-bottom:.25rem}.Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor}.Newscaster__photo:hover{border-color:gray}.Newscaster__photoZoom{text-align:center}.Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor}.Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.Newscaster__story:last-child{margin-bottom:.5rem}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem!important;border-width:.65rem!important;padding-left:0!important;padding-right:0!important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee!important;border-color:#f7f6ee!important}.NuclearBomb__Button--1{background-color:#d3cfb7!important;border-color:#d3cfb7!important;color:#a9a692!important}.NuclearBomb__Button--E{background-color:#d9b804!important;border-color:#d9b804!important}.NuclearBomb__Button--E:hover{background-color:#f3d00e!important;border-color:#f3d00e!important}.NuclearBomb__Button--C{background-color:#bd2020!important;border-color:#bd2020!important}.NuclearBomb__Button--C:hover{background-color:#d52b2b!important;border-color:#d52b2b!important}.OreRedemption__Ores .OreLine,.OreRedemption__Ores .OreHeader{min-height:32px;padding:0 .5rem}.OreRedemption__Ores .OreHeader{line-height:32px;background-color:rgba(0,0,0,.33);font-weight:700}.OreRedemption__Ores .OreLine:last-of-type{margin-bottom:.5rem}.OreRedemption__Ores .Section__content{padding:0;height:100%;overflow:auto}.PDA__footer{position:fixed;bottom:0%;left:0%;right:0%;height:30px}.PDA__footer__button{text-align:center;padding-top:4px;padding-bottom:2px;font-size:24px}.PdaPainter__list tr>td{text-align:center}.PdaPainter__list tr{height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.PdaPainter__list tr:hover,.PdaPainter__list tr:focus{background-color:#252525}.PoolController__Buttons .Button:not(:last-child){margin-bottom:8px}.RndConsole{position:relative}.RndConsole__Overlay{position:absolute;display:flex;align-items:stretch;justify-content:stretch;top:0;left:0;width:100%;height:100vh}.RndConsole__LatheCategory__MatchingDesigns .Table__cell{padding-bottom:4px}.RndConsole__MainMenu__Buttons .Button:not(:last-child){margin-bottom:4px}.RndConsole__LatheMaterials .Table__cell:nth-child(2){padding-left:16px}.RndConsole__LatheMaterialStorage .Table__cell{padding:4px 0;border-bottom:1px solid #767676}.RndConsole__Overlay__Wrapper{display:flex;align-items:center;justify-content:stretch;flex-grow:1;padding:24px;background-color:rgba(255,255,255,0)}.RndConsole__Overlay__Wrapper .NoticeBox{flex-grow:1;margin-bottom:80px;font-size:18pt;padding:.3em .75em}.RndConsole__RndNavbar .Button{margin-bottom:10px}.Roulette{font-family:Palatino}.Roulette__board{display:table;width:100%;border-collapse:collapse;border:2px solid #fff;margin:0}.Roulette__board-row{padding:0;margin:0}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:2px solid #fff;font-family:Palatino}.Roulette__board-cell:first-child{padding-left:0}.Roulette__board-cell:last-child{padding-right:0}.Roulette__board-extrabutton{text-align:center;font-size:20px;font-weight:700;height:28px;border:none!important;margin:0!important;padding-top:4px!important;color:#fff!important}.Roulette__lowertable{margin-top:8px;margin-left:80px;margin-right:80px;border-collapse:collapse;border:2px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0;margin:0}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:700;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0!important;border:none!important;font-size:50px;line-height:60px!important;text-align:center;font-weight:700}.Roulette__lowertable--header{width:1%;text-align:center;font-size:20px;font-weight:700}.Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.Safe--engraving--arrow{color:#35435a}.Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe--dialer{margin-bottom:.5rem}.Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.Safe--dialer--right .Button i{z-index:-100}.Safe--dialer .Button{width:80px}.Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.SecureStorage__displayBox{background-color:#212121;color:#8b8b8b;border:.167em inset #e8e4c9;font-size:375%;font-family:monospace;padding:.25em}.SecureStorage__displayBox--good{background-color:#002003;color:#03e017}.SecureStorage__displayBox--bad{background-color:#210000;color:#e00202}.SecureStorage__Button{outline-width:.25rem!important;border-width:.3rem!important;border:.167em outset #e8e4c9;padding-left:0!important;padding-right:0!important}.SecureStorage__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9;color:#a9a692}.SecureStorage__Button--keypad:hover{background-color:#f7f6ee;border-color:#f7f6ee;color:#a9a692}.SecureStorage__Button--E{background-color:#d9b804;border-color:#d9b804;color:#fff}.SecureStorage__Button--E:hover{background-color:#f5d317;border-color:#f5d317;color:#fff}.SecureStorage__Button--C{background-color:#bd2020;border-color:#bd2020;color:#fff}.SecureStorage__Button--C:hover{background-color:#d83434;border-color:#d83434;color:#fff}.SecurityRecords__list tr>td{text-align:center}.SecurityRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.SecurityRecords__list tr:not(:first-child):hover,.SecurityRecords__list tr:not(:first-child):focus{background-color:#252525}.SecurityRecords__listRow--arrest{background-color:#740c20}.SecurityRecords__listRow--execute{background-color:#683e8c}.SecurityRecords__listRow--incarcerated{background-color:#633203}.SecurityRecords__listRow--parolled{background-color:#006d7b}.SecurityRecords__listRow--released{background-color:#1c5574}.SecurityRecords__listRow--demote{background-color:#155500}.SecurityRecords__listRow--search{background-color:#987a00}.SecurityRecords__listRow--monitor{background-color:#1f1180}.MedicalRecords__list tr>td{text-align:center}.MedicalRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.MedicalRecords__list tr:not(:first-child):hover,.MedicalRecords__list tr:not(:first-child):focus{background-color:#252525}.MedicalRecords__listRow--deceased{background-color:#740c20}.MedicalRecords__listRow--ssd{background-color:#006d7b}.MedicalRecords__listRow--physically_unfit{background-color:#987a00}.MedicalRecords__listRow--disabled{background-color:#1f1180}.MedicalRecords__listMedbot--0{background-color:#2b1414}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.Layout__content--noMargin{margin:0}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color .25s,background-color .25s}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom,#2a2a2a,#202020)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDQyNSAyMDAiIG9wYWNpdHk9Ii4zMyI+PHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPjxwYXRoIGQ9Ik0gNC44NDQ2MzMzLDIyLjEwODc1IEEgMTMuNDEyMDM5LDEyLjUwMTg0MiAwIDAgMSAxMy40Nzc1ODgsMC4wMzkyNCBsIDY2LjExODMxNSwwIGEgNS4zNjQ4MTU4LDUuMDAwNzM3IDAgMCAxIDUuMzY0ODIzLDUuMDAwNzMgbCAwLDc5Ljg3OTMxIHoiIC8+PHBhdGggZD0ibSA0MjAuMTU1MzUsMTc3Ljg5MTE5IGEgMTMuNDEyMDM4LDEyLjUwMTg0MiAwIDAgMSAtOC42MzI5NSwyMi4wNjk1MSBsIC02Ni4xMTgzMiwwIGEgNS4zNjQ4MTUyLDUuMDAwNzM3IDAgMCAxIC01LjM2NDgyLC01LjAwMDc0IGwgMCwtNzkuODc5MzEgeiIgLz48L3N2Zz48IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT48IS0tIGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LXNhLzQuMC8gLS0+);background-size:70%;background-position:center;background-repeat:no-repeat}.theme-abductor .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-abductor .Button:last-child{margin-right:0;margin-bottom:0}.theme-abductor .Button .fa,.theme-abductor .Button .fas,.theme-abductor .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-abductor .Button--hasContent .fa,.theme-abductor .Button--hasContent .fas,.theme-abductor .Button--hasContent .far{margin-right:.25em}.theme-abductor .Button--hasContent.Button--iconRight .fa,.theme-abductor .Button--hasContent.Button--iconRight .fas,.theme-abductor .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-abductor .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-abductor .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-abductor .Button--circular{border-radius:50%}.theme-abductor .Button--compact{padding:0 .25em;line-height:1.333em}.theme-abductor .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-abductor .Button--color--default{transition:color .1s,background-color .1s;background-color:#ad2350;color:#fff}.theme-abductor .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--default:hover{background-color:#d03a6b;color:#fff}.theme-abductor .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-abductor .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-abductor .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-abductor .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-abductor .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#2a314a;color:#fff;background-color:rgba(42,49,74,0);color:rgba(255,255,255,.5)}.theme-abductor .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--transparent:hover{background-color:#404764;color:#fff}.theme-abductor .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#2a314a;color:#fff;background-color:rgba(42,49,74,.6);color:rgba(255,255,255,.5)}.theme-abductor .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--translucent:hover{background-color:#404764;color:#fff}.theme-abductor .Button--disabled{background-color:#363636!important}.theme-abductor .Button--selected{transition:color .1s,background-color .1s;background-color:#465899;color:#fff}.theme-abductor .Button--selected:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--selected:hover{background-color:#6577b5;color:#fff}.theme-abductor .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-abductor .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-abductor .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-abductor .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-abductor .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-abductor .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-abductor .Input--disabled{color:#777;border-color:#171717;border-color:rgba(23,23,23,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-abductor .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-abductor .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-abductor .NumberInput--fluid{display:block}.theme-abductor .NumberInput__content{margin-left:.5em}.theme-abductor .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-abductor .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-abductor .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-abductor .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-abductor .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-abductor .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-abductor .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-abductor .ProgressBar--color--default{border:.0833333333em solid #931e44}.theme-abductor .ProgressBar--color--default .ProgressBar__fill{background-color:#931e44}.theme-abductor .ProgressBar--color--disabled{border:1px solid #363636}.theme-abductor .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-abductor .Section{position:relative;margin-bottom:.5em;background-color:#1c2132;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-abductor .Section:last-child{margin-bottom:0}.theme-abductor .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #ad2350}.theme-abductor .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-abductor .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-abductor .Section__rest{position:relative}.theme-abductor .Section__content{padding:.66em .5em}.theme-abductor .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-abductor .Section--fill{display:flex;flex-direction:column;height:100%}.theme-abductor .Section--fill>.Section__rest{flex-grow:1}.theme-abductor .Section--fill>.Section__rest>.Section__content{height:100%}.theme-abductor .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-abductor .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-abductor .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-abductor .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-abductor .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-abductor .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-abductor .Section .Section:first-child{margin-top:-.5em}.theme-abductor .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-abductor .Section .Section .Section .Section__titleText{font-size:1em}.theme-abductor .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#a82d55;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-abductor .Layout,.theme-abductor .Layout *{scrollbar-base-color:#202538;scrollbar-face-color:#384263;scrollbar-3dlight-color:#2a314a;scrollbar-highlight-color:#2a314a;scrollbar-track-color:#202538;scrollbar-arrow-color:#818db8;scrollbar-shadow-color:#384263}.theme-abductor .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-abductor .Layout__content--flexRow{display:flex;flex-flow:row}.theme-abductor .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-abductor .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-abductor .Layout__content--noMargin{margin:0}.theme-abductor .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2a314a;background-image:linear-gradient(to bottom,#353e5e,#1f2436)}.theme-abductor .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-abductor .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-abductor .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-abductor .Window__contentPadding:after{height:0}.theme-abductor .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-abductor .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(68,76,104,.25);pointer-events:none}.theme-abductor .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-abductor .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-abductor .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-abductor .TitleBar{background-color:#9e1b46;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-abductor .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#9e1b46;transition:color .25s,background-color .25s}.theme-abductor .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-abductor .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-abductor .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-abductor .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-abductor .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-abductor .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-abductor .Layout__content{background-image:none}.theme-cardtable .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-cardtable .Button:last-child{margin-right:0;margin-bottom:0}.theme-cardtable .Button .fa,.theme-cardtable .Button .fas,.theme-cardtable .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-cardtable .Button--hasContent .fa,.theme-cardtable .Button--hasContent .fas,.theme-cardtable .Button--hasContent .far{margin-right:.25em}.theme-cardtable .Button--hasContent.Button--iconRight .fa,.theme-cardtable .Button--hasContent.Button--iconRight .fas,.theme-cardtable .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-cardtable .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-cardtable .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-cardtable .Button--circular{border-radius:50%}.theme-cardtable .Button--compact{padding:0 .25em;line-height:1.333em}.theme-cardtable .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-cardtable .Button--color--default{transition:color .1s,background-color .1s;background-color:#117039;color:#fff}.theme-cardtable .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--default:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-cardtable .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-cardtable .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-cardtable .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-cardtable .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#117039;color:#fff;background-color:rgba(17,112,57,0);color:rgba(255,255,255,.5)}.theme-cardtable .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--transparent:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#117039;color:#fff;background-color:rgba(17,112,57,.6);color:rgba(255,255,255,.5)}.theme-cardtable .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--translucent:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--disabled{background-color:#363636!important}.theme-cardtable .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-cardtable .Button--selected:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--selected:hover{background-color:#c11919;color:#fff}.theme-cardtable .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-cardtable .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:0;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-cardtable .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-cardtable .Input--fluid{display:block;width:auto}.theme-cardtable .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-cardtable .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-cardtable .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-cardtable .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-cardtable .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #fff;border:.0833333333em solid rgba(255,255,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-cardtable .NumberInput--fluid{display:block}.theme-cardtable .NumberInput__content{margin-left:.5em}.theme-cardtable .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-cardtable .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #fff;background-color:#fff}.theme-cardtable .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-cardtable .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-cardtable .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-cardtable .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-cardtable .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-cardtable .ProgressBar--color--default{border:.0833333333em solid #000}.theme-cardtable .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-cardtable .ProgressBar--color--disabled{border:1px solid #363636}.theme-cardtable .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-cardtable .Section{position:relative;margin-bottom:.5em;background-color:#0b4b26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-cardtable .Section:last-child{margin-bottom:0}.theme-cardtable .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-cardtable .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-cardtable .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-cardtable .Section__rest{position:relative}.theme-cardtable .Section__content{padding:.66em .5em}.theme-cardtable .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-cardtable .Section--fill{display:flex;flex-direction:column;height:100%}.theme-cardtable .Section--fill>.Section__rest{flex-grow:1}.theme-cardtable .Section--fill>.Section__rest>.Section__content{height:100%}.theme-cardtable .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-cardtable .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-cardtable .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-cardtable .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-cardtable .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-cardtable .Section .Section:first-child{margin-top:-.5em}.theme-cardtable .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-cardtable .Section .Section .Section .Section__titleText{font-size:1em}.theme-cardtable .Layout,.theme-cardtable .Layout *{scrollbar-base-color:#0d542b;scrollbar-face-color:#16914a;scrollbar-3dlight-color:#117039;scrollbar-highlight-color:#117039;scrollbar-track-color:#0d542b;scrollbar-arrow-color:#5ae695;scrollbar-shadow-color:#16914a}.theme-cardtable .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-cardtable .Layout__content--flexRow{display:flex;flex-flow:row}.theme-cardtable .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-cardtable .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-cardtable .Layout__content--noMargin{margin:0}.theme-cardtable .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#117039;background-image:linear-gradient(to bottom,#117039,#117039)}.theme-cardtable .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-cardtable .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-cardtable .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-cardtable .Window__contentPadding:after{height:0}.theme-cardtable .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-cardtable .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(39,148,85,.25);pointer-events:none}.theme-cardtable .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-cardtable .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-cardtable .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-cardtable .TitleBar{background-color:#381608;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-cardtable .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#381608;transition:color .25s,background-color .25s}.theme-cardtable .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-cardtable .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-cardtable .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-cardtable .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-cardtable .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-cardtable .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-cardtable .Button{border:.1666666667em solid #fff}.theme-changeling .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-changeling .Button:last-child{margin-right:0;margin-bottom:0}.theme-changeling .Button .fa,.theme-changeling .Button .fas,.theme-changeling .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-changeling .Button--hasContent .fa,.theme-changeling .Button--hasContent .fas,.theme-changeling .Button--hasContent .far{margin-right:.25em}.theme-changeling .Button--hasContent.Button--iconRight .fa,.theme-changeling .Button--hasContent.Button--iconRight .fas,.theme-changeling .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-changeling .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-changeling .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-changeling .Button--circular{border-radius:50%}.theme-changeling .Button--compact{padding:0 .25em;line-height:1.333em}.theme-changeling .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-changeling .Button--color--default{transition:color .1s,background-color .1s;background-color:#563d6b;color:#fff}.theme-changeling .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--default:hover{background-color:#715589;color:#fff}.theme-changeling .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-changeling .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-changeling .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-changeling .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-changeling .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#2e2633;color:#fff;background-color:rgba(46,38,51,0);color:rgba(255,255,255,.5)}.theme-changeling .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--transparent:hover{background-color:#443b4a;color:#fff}.theme-changeling .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#2e2633;color:#fff;background-color:rgba(46,38,51,.6);color:rgba(255,255,255,.5)}.theme-changeling .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--translucent:hover{background-color:#443b4a;color:#fff}.theme-changeling .Button--disabled{background-color:#999!important}.theme-changeling .Button--selected{transition:color .1s,background-color .1s;background-color:#188552;color:#fff}.theme-changeling .Button--selected:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--selected:hover{background-color:#2ba66d;color:#fff}.theme-changeling .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-changeling .Section{position:relative;margin-bottom:.5em;background-color:#1f1922;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-changeling .Section:last-child{margin-bottom:0}.theme-changeling .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #563d6b}.theme-changeling .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-changeling .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-changeling .Section__rest{position:relative}.theme-changeling .Section__content{padding:.66em .5em}.theme-changeling .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-changeling .Section--fill{display:flex;flex-direction:column;height:100%}.theme-changeling .Section--fill>.Section__rest{flex-grow:1}.theme-changeling .Section--fill>.Section__rest>.Section__content{height:100%}.theme-changeling .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-changeling .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-changeling .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-changeling .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-changeling .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-changeling .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-changeling .Section .Section:first-child{margin-top:-.5em}.theme-changeling .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-changeling .Section .Section .Section .Section__titleText{font-size:1em}.theme-changeling .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-changeling .Tabs--fill{height:100%}.theme-changeling .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-changeling .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-changeling .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-changeling .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-changeling .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-changeling .Tabs--horizontal:last-child{margin-bottom:0}.theme-changeling .Tabs__Tab{flex-grow:0}.theme-changeling .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-changeling .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-changeling .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-changeling .Tab--selected{background-color:#563d6b;color:#e3daea}.theme-changeling .Tab__text{flex-grow:1;margin:0 .5em}.theme-changeling .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-changeling .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-changeling .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-changeling .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d9cee3}.theme-changeling .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-changeling .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d9cee3}.theme-changeling .Layout,.theme-changeling .Layout *{scrollbar-base-color:#231d26;scrollbar-face-color:#44384b;scrollbar-3dlight-color:#2e2633;scrollbar-highlight-color:#2e2633;scrollbar-track-color:#231d26;scrollbar-arrow-color:#9986a5;scrollbar-shadow-color:#44384b}.theme-changeling .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-changeling .Layout__content--flexRow{display:flex;flex-flow:row}.theme-changeling .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-changeling .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-changeling .Layout__content--noMargin{margin:0}.theme-changeling .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2e2633;background-image:linear-gradient(to bottom,#3e3345,#1e1921)}.theme-changeling .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-changeling .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-changeling .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-changeling .Window__contentPadding:after{height:0}.theme-changeling .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-changeling .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(72,63,78,.25);pointer-events:none}.theme-changeling .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-changeling .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-changeling .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-changeling .TitleBar{background-color:#352d3b;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-changeling .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#352d3b;transition:color .25s,background-color .25s}.theme-changeling .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-changeling .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-changeling .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-changeling .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-changeling .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-changeling .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-changeling .Layout__content{background-image:none}.theme-hackerman .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hackerman .Button:last-child{margin-right:0;margin-bottom:0}.theme-hackerman .Button .fa,.theme-hackerman .Button .fas,.theme-hackerman .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-hackerman .Button--hasContent .fa,.theme-hackerman .Button--hasContent .fas,.theme-hackerman .Button--hasContent .far{margin-right:.25em}.theme-hackerman .Button--hasContent.Button--iconRight .fa,.theme-hackerman .Button--hasContent.Button--iconRight .fas,.theme-hackerman .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-hackerman .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hackerman .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hackerman .Button--circular{border-radius:50%}.theme-hackerman .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hackerman .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-hackerman .Button--color--default{transition:color .1s,background-color .1s;background-color:#0f0;color:#000}.theme-hackerman .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--default:hover{background-color:#40ff40;color:#000}.theme-hackerman .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-hackerman .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-hackerman .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-hackerman .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-hackerman .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#121b12;color:#fff;background-color:rgba(18,27,18,0);color:rgba(255,255,255,.5)}.theme-hackerman .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--transparent:hover{background-color:#252f25;color:#fff}.theme-hackerman .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#121b12;color:#fff;background-color:rgba(18,27,18,.6);color:rgba(255,255,255,.5)}.theme-hackerman .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--translucent:hover{background-color:#252f25;color:#fff}.theme-hackerman .Button--disabled{background-color:#363636!important}.theme-hackerman .Button--selected{transition:color .1s,background-color .1s;background-color:#0f0;color:#000}.theme-hackerman .Button--selected:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--selected:hover{background-color:#40ff40;color:#000}.theme-hackerman .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-hackerman .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid lime;border:.0833333333em solid rgba(0,255,0,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-hackerman .Input--disabled{color:#777;border-color:#404040;border-color:rgba(64,64,64,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-hackerman .Input--fluid{display:block;width:auto}.theme-hackerman .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-hackerman .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-hackerman .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-hackerman .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-hackerman .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-hackerman .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-hackerman .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-hackerman .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-hackerman .ProgressBar--color--default{border:.0833333333em solid #00d900}.theme-hackerman .ProgressBar--color--default .ProgressBar__fill{background-color:#00d900}.theme-hackerman .ProgressBar--color--disabled{border:1px solid #363636}.theme-hackerman .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-hackerman .Modal{background-color:#121b12;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Section{position:relative;margin-bottom:.5em;background-color:#0c120c;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hackerman .Section:last-child{margin-bottom:0}.theme-hackerman .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid lime}.theme-hackerman .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-hackerman .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-hackerman .Section__rest{position:relative}.theme-hackerman .Section__content{padding:.66em .5em}.theme-hackerman .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hackerman .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hackerman .Section--fill>.Section__rest{flex-grow:1}.theme-hackerman .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hackerman .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hackerman .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-hackerman .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-hackerman .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hackerman .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-hackerman .Section .Section:first-child{margin-top:-.5em}.theme-hackerman .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hackerman .Section .Section .Section .Section__titleText{font-size:1em}.theme-hackerman .Layout,.theme-hackerman .Layout *{scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-hackerman .Layout__content--flexRow{display:flex;flex-flow:row}.theme-hackerman .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-hackerman .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-hackerman .Layout__content--noMargin{margin:0}.theme-hackerman .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#121b12;background-image:linear-gradient(to bottom,#121b12,#121b12)}.theme-hackerman .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-hackerman .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-hackerman .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-hackerman .Window__contentPadding:after{height:0}.theme-hackerman .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-hackerman .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(40,50,40,.25);pointer-events:none}.theme-hackerman .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-hackerman .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-hackerman .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-hackerman .TitleBar{background-color:#223d22;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-hackerman .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#223d22;transition:color .25s,background-color .25s}.theme-hackerman .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-hackerman .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-hackerman .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-hackerman .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-hackerman .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-hackerman .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-hackerman .Layout__content{background-image:none}.theme-hackerman .Button{font-family:monospace;border-width:.1666666667em;border-style:outset;border-color:#0a0;outline:.0833333333em solid #007a00}.theme-hackerman .candystripe:nth-child(odd){background-color:rgba(0,100,0,.5)}.theme-malfunction .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-malfunction .Button:last-child{margin-right:0;margin-bottom:0}.theme-malfunction .Button .fa,.theme-malfunction .Button .fas,.theme-malfunction .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-malfunction .Button--hasContent .fa,.theme-malfunction .Button--hasContent .fas,.theme-malfunction .Button--hasContent .far{margin-right:.25em}.theme-malfunction .Button--hasContent.Button--iconRight .fa,.theme-malfunction .Button--hasContent.Button--iconRight .fas,.theme-malfunction .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-malfunction .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-malfunction .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-malfunction .Button--circular{border-radius:50%}.theme-malfunction .Button--compact{padding:0 .25em;line-height:1.333em}.theme-malfunction .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-malfunction .Button--color--default{transition:color .1s,background-color .1s;background-color:#910101;color:#fff}.theme-malfunction .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--default:hover{background-color:#b31111;color:#fff}.theme-malfunction .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-malfunction .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-malfunction .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-malfunction .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-malfunction .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#1b3443;color:#fff;background-color:rgba(27,52,67,0);color:rgba(255,255,255,.5)}.theme-malfunction .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--transparent:hover{background-color:#2f4b5c;color:#fff}.theme-malfunction .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#1b3443;color:#fff;background-color:rgba(27,52,67,.6);color:rgba(255,255,255,.5)}.theme-malfunction .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--translucent:hover{background-color:#2f4b5c;color:#fff}.theme-malfunction .Button--disabled{background-color:#363636!important}.theme-malfunction .Button--selected{transition:color .1s,background-color .1s;background-color:#1e5881;color:#fff}.theme-malfunction .Button--selected:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--selected:hover{background-color:#3273a1;color:#fff}.theme-malfunction .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-malfunction .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#1a3f57;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-malfunction .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-malfunction .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-malfunction .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-malfunction .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-malfunction .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-malfunction .Input--disabled{color:#777;border-color:#090909;border-color:rgba(9,9,9,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-malfunction .Input--fluid{display:block;width:auto}.theme-malfunction .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-malfunction .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-malfunction .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-malfunction .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-malfunction .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;color:#910101;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-malfunction .NumberInput--fluid{display:block}.theme-malfunction .NumberInput__content{margin-left:.5em}.theme-malfunction .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-malfunction .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #910101;background-color:#910101}.theme-malfunction .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-malfunction .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-malfunction .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-malfunction .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-malfunction .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-malfunction .ProgressBar--color--default{border:.0833333333em solid #7b0101}.theme-malfunction .ProgressBar--color--default .ProgressBar__fill{background-color:#7b0101}.theme-malfunction .ProgressBar--color--disabled{border:1px solid #363636}.theme-malfunction .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-malfunction .Section{position:relative;margin-bottom:.5em;background-color:#12232d;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-malfunction .Section:last-child{margin-bottom:0}.theme-malfunction .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #910101}.theme-malfunction .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-malfunction .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-malfunction .Section__rest{position:relative}.theme-malfunction .Section__content{padding:.66em .5em}.theme-malfunction .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-malfunction .Section--fill{display:flex;flex-direction:column;height:100%}.theme-malfunction .Section--fill>.Section__rest{flex-grow:1}.theme-malfunction .Section--fill>.Section__rest>.Section__content{height:100%}.theme-malfunction .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-malfunction .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-malfunction .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-malfunction .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-malfunction .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-malfunction .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-malfunction .Section .Section:first-child{margin-top:-.5em}.theme-malfunction .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-malfunction .Section .Section .Section .Section__titleText{font-size:1em}.theme-malfunction .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#235577;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-malfunction .Layout,.theme-malfunction .Layout *{scrollbar-base-color:#142732;scrollbar-face-color:#274b61;scrollbar-3dlight-color:#1b3443;scrollbar-highlight-color:#1b3443;scrollbar-track-color:#142732;scrollbar-arrow-color:#6ba2c3;scrollbar-shadow-color:#274b61}.theme-malfunction .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-malfunction .Layout__content--flexRow{display:flex;flex-flow:row}.theme-malfunction .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-malfunction .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-malfunction .Layout__content--noMargin{margin:0}.theme-malfunction .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1b3443;background-image:linear-gradient(to bottom,#244559,#12232d)}.theme-malfunction .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-malfunction .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-malfunction .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-malfunction .Window__contentPadding:after{height:0}.theme-malfunction .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-malfunction .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(50,79,96,.25);pointer-events:none}.theme-malfunction .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-malfunction .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-malfunction .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-malfunction .TitleBar{background-color:#1a3f57;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-malfunction .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#1a3f57;transition:color .25s,background-color .25s}.theme-malfunction .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-malfunction .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-malfunction .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-malfunction .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-malfunction .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-malfunction .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-malfunction .Layout__content{background-image:none}.theme-ntos .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-ntos .Button:last-child{margin-right:0;margin-bottom:0}.theme-ntos .Button .fa,.theme-ntos .Button .fas,.theme-ntos .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-ntos .Button--hasContent .fa,.theme-ntos .Button--hasContent .fas,.theme-ntos .Button--hasContent .far{margin-right:.25em}.theme-ntos .Button--hasContent.Button--iconRight .fa,.theme-ntos .Button--hasContent.Button--iconRight .fas,.theme-ntos .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-ntos .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-ntos .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-ntos .Button--circular{border-radius:50%}.theme-ntos .Button--compact{padding:0 .25em;line-height:1.333em}.theme-ntos .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-ntos .Button--color--default{transition:color .1s,background-color .1s;background-color:#384e68;color:#fff}.theme-ntos .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--default:hover{background-color:#4f6885;color:#fff}.theme-ntos .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-ntos .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#1f2b39;color:#fff;background-color:rgba(31,43,57,0);color:rgba(227,240,255,.75)}.theme-ntos .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--transparent:hover{background-color:#334151;color:#fff}.theme-ntos .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#1f2b39;color:#fff;background-color:rgba(31,43,57,.6);color:rgba(227,240,255,.75)}.theme-ntos .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--translucent:hover{background-color:#334151;color:#fff}.theme-ntos .Button--disabled{background-color:#999!important}.theme-ntos .Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-ntos .Button--selected:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--selected:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-ntos .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-ntos .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-ntos .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-ntos .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-ntos .ProgressBar--color--default{border:.0833333333em solid #384e68}.theme-ntos .ProgressBar--color--default .ProgressBar__fill{background-color:#384e68}.theme-ntos .ProgressBar--color--disabled{border:1px solid #999}.theme-ntos .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-ntos .Section{position:relative;margin-bottom:.5em;background-color:#151d26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-ntos .Section:last-child{margin-bottom:0}.theme-ntos .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-ntos .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-ntos .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-ntos .Section__rest{position:relative}.theme-ntos .Section__content{padding:.66em .5em}.theme-ntos .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-ntos .Section--fill{display:flex;flex-direction:column;height:100%}.theme-ntos .Section--fill>.Section__rest{flex-grow:1}.theme-ntos .Section--fill>.Section__rest>.Section__content{height:100%}.theme-ntos .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-ntos .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-ntos .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-ntos .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-ntos .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-ntos .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-ntos .Section .Section:first-child{margin-top:-.5em}.theme-ntos .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-ntos .Section .Section .Section .Section__titleText{font-size:1em}.theme-ntos .Layout,.theme-ntos .Layout *{scrollbar-base-color:#17202b;scrollbar-face-color:#2e3f55;scrollbar-3dlight-color:#1f2b39;scrollbar-highlight-color:#1f2b39;scrollbar-track-color:#17202b;scrollbar-arrow-color:#7693b5;scrollbar-shadow-color:#2e3f55}.theme-ntos .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-ntos .Layout__content--flexRow{display:flex;flex-flow:row}.theme-ntos .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-ntos .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-ntos .Layout__content--noMargin{margin:0}.theme-ntos .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1f2b39;background-image:linear-gradient(to bottom,#223040,#1b2633)}.theme-ntos .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-ntos .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-ntos .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-ntos .Window__contentPadding:after{height:0}.theme-ntos .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-ntos .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,69,85,.25);pointer-events:none}.theme-ntos .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-ntos .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-ntos .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-ntos .TitleBar{background-color:#2a3b4e;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-ntos .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#2a3b4e;transition:color .25s,background-color .25s}.theme-ntos .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-ntos .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-ntos .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-ntos .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-ntos .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-ntos .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-paper .Tabs--fill{height:100%}.theme-paper .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-paper .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-paper .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-paper .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-paper .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-paper .Tabs--horizontal:last-child{margin-bottom:0}.theme-paper .Tabs__Tab{flex-grow:0}.theme-paper .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-paper .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-paper .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-paper .Tab--selected{background-color:rgba(255,255,255,.125);color:#fafafa}.theme-paper .Tab__text{flex-grow:1;margin:0 .5em}.theme-paper .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-paper .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-paper .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-paper .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #f9f9f9}.theme-paper .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-paper .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #f9f9f9}.theme-paper .Section{position:relative;margin-bottom:.5em;background-color:#e6e6e6;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-paper .Section:last-child{margin-bottom:0}.theme-paper .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-paper .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#000}.theme-paper .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-paper .Section__rest{position:relative}.theme-paper .Section__content{padding:.66em .5em}.theme-paper .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paper .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paper .Section--fill>.Section__rest{flex-grow:1}.theme-paper .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paper .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paper .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-paper .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-paper .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paper .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paper .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-paper .Section .Section:first-child{margin-top:-.5em}.theme-paper .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paper .Section .Section .Section .Section__titleText{font-size:1em}.theme-paper .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paper .Button:last-child{margin-right:0;margin-bottom:0}.theme-paper .Button .fa,.theme-paper .Button .fas,.theme-paper .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-paper .Button--hasContent .fa,.theme-paper .Button--hasContent .fas,.theme-paper .Button--hasContent .far{margin-right:.25em}.theme-paper .Button--hasContent.Button--iconRight .fa,.theme-paper .Button--hasContent.Button--iconRight .fas,.theme-paper .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-paper .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paper .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paper .Button--circular{border-radius:50%}.theme-paper .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paper .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-paper .Button--color--default{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000}.theme-paper .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-paper .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-paper .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-paper .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-paper .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-paper .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#fff;color:#000;background-color:rgba(255,255,255,0);color:rgba(0,0,0,.5)}.theme-paper .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--transparent:hover{background-color:#fff;color:#000}.theme-paper .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#fff;color:#000;background-color:rgba(255,255,255,.6);color:rgba(0,0,0,.5)}.theme-paper .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--translucent:hover{background-color:#fff;color:#000}.theme-paper .Button--disabled{background-color:#363636!important}.theme-paper .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-paper .Button--selected:focus{transition:color .25s,background-color .25s}.theme-paper .Button--selected:hover{background-color:#c11919;color:#fff}.theme-paper .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-paper .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-paper .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-paper .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-paper .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-paper .ProgressBar--color--default{border:.0833333333em solid #bfbfbf}.theme-paper .ProgressBar--color--default .ProgressBar__fill{background-color:#bfbfbf}.theme-paper .ProgressBar--color--disabled{border:1px solid #363636}.theme-paper .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-paper .Layout,.theme-paper .Layout *{scrollbar-base-color:#bfbfbf;scrollbar-face-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-highlight-color:#fff;scrollbar-track-color:#bfbfbf;scrollbar-arrow-color:#fff;scrollbar-shadow-color:#fff}.theme-paper .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-paper .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paper .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paper .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-paper .Layout__content--noMargin{margin:0}.theme-paper .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#fff;background-image:linear-gradient(to bottom,#fff,#fff)}.theme-paper .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paper .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paper .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paper .Window__contentPadding:after{height:0}.theme-paper .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paper .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.25);pointer-events:none}.theme-paper .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paper .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paper .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paper .TitleBar{background-color:#fff;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paper .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#fff;transition:color .25s,background-color .25s}.theme-paper .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paper .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-paper .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paper .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-paper .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paper .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .PaperInput{position:relative;display:inline-block;width:120px;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .PaperInput__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-paper .PaperInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:12px;line-height:17px;height:17px;margin:0;padding:0 6px;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-paper .PaperInput__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .Layout__content{background-image:none}.theme-paper .Window{background-image:none;color:#000}.theme-paper .paper-text input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-text input,.theme-paper .paper-field{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-retro .Button .fa,.theme-retro .Button .fas,.theme-retro .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-retro .Button--hasContent .fa,.theme-retro .Button--hasContent .fas,.theme-retro .Button--hasContent .far{margin-right:.25em}.theme-retro .Button--hasContent.Button--iconRight .fa,.theme-retro .Button--hasContent.Button--iconRight .fas,.theme-retro .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-retro .Button--circular{border-radius:50%}.theme-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-retro .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-retro .Button--color--default{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000}.theme-retro .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-retro .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-retro .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-retro .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-retro .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000;background-color:rgba(232,228,201,0);color:rgba(255,255,255,.5)}.theme-retro .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--transparent:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000;background-color:rgba(232,228,201,.6);color:rgba(255,255,255,.5)}.theme-retro .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--translucent:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--disabled{background-color:#363636!important}.theme-retro .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-retro .Button--selected:focus{transition:color .25s,background-color .25s}.theme-retro .Button--selected:hover{background-color:#c11919;color:#fff}.theme-retro .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-retro .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-retro .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-retro .ProgressBar--color--disabled{border:1px solid #999}.theme-retro .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-retro .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-retro .Section:last-child{margin-bottom:0}.theme-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-retro .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-retro .Section__rest{position:relative}.theme-retro .Section__content{padding:.66em .5em}.theme-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-retro .Section--fill>.Section__rest{flex-grow:1}.theme-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-retro .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-retro .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-retro .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-retro .Section .Section:first-child{margin-top:-.5em}.theme-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-retro .Layout,.theme-retro .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-retro .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-retro .Layout__content--noMargin{margin:0}.theme-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#e8e4c9,#e8e4c9)}.theme-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-retro .Window__contentPadding:after{height:0}.theme-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-retro .TitleBar{background-color:#585337;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#585337;transition:color .25s,background-color .25s}.theme-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-retro .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-retro .Button{font-family:monospace;color:#161613;border:.1666666667em outset #e8e4c9;outline:.0833333333em solid #161613}.theme-retro .Layout__content{background-image:none}.theme-safe .Section{position:relative;margin-bottom:.5em;background-color:#b2ae74;box-sizing:border-box}.theme-safe .Section:last-child{margin-bottom:0}.theme-safe .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #3d566b}.theme-safe .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-safe .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-safe .Section__rest{position:relative}.theme-safe .Section__content{padding:.66em .5em}.theme-safe .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-safe .Section--fill{display:flex;flex-direction:column;height:100%}.theme-safe .Section--fill>.Section__rest{flex-grow:1}.theme-safe .Section--fill>.Section__rest>.Section__content{height:100%}.theme-safe .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-safe .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-safe .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-safe .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-safe .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-safe .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-safe .Section .Section:first-child{margin-top:-.5em}.theme-safe .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-safe .Section .Section .Section .Section__titleText{font-size:1em}.theme-safe .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#222b3a;background-image:linear-gradient(to bottom,#242d3d,#202937)}.theme-safe .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-safe .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-safe .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-safe .Window__contentPadding:after{height:0}.theme-safe .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-safe .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(58,69,86,.25);pointer-events:none}.theme-safe .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-safe .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-safe .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-safe .TitleBar{background-color:#35435a;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-safe .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#35435a;transition:color .25s,background-color .25s}.theme-safe .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-safe .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-safe .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-safe .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-safe .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-safe .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-safe .Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.theme-safe .Safe--engraving--arrow{color:#35435a}.theme-safe .Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.theme-safe .Safe--dialer{margin-bottom:.5rem}.theme-safe .Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.theme-safe .Safe--dialer--right .Button i{z-index:-100}.theme-safe .Safe--dialer .Button{width:80px}.theme-safe .Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.theme-safe .Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.theme-safe .Layout__content{background-image:none}.theme-safe .Section{font-family:Comic Sans MS,cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom,#b2ae74,#8e8b5d);transform:rotate(-1deg)}.theme-safe .Section__title{padding-bottom:0;border:0}.theme-safe .Section:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom,transparent 0%,#ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.theme-securestorage .TitleBar{background-color:#e8e4c9;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-securestorage .TitleBar__clickable{color:rgba(25,25,22,.5);background-color:#e8e4c9;transition:color .25s,background-color .25s}.theme-securestorage .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-securestorage .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:#191916;font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-securestorage .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-securestorage .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-securestorage .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-securestorage .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-securestorage .Layout,.theme-securestorage .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-securestorage .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-securestorage .Layout__content--flexRow{display:flex;flex-flow:row}.theme-securestorage .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-securestorage .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-securestorage .Layout__content--noMargin{margin:0}.theme-securestorage .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#f1efde,#dfd9b4)}.theme-securestorage .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-securestorage .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-securestorage .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-securestorage .Window__contentPadding:after{height:0}.theme-securestorage .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-securestorage .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-securestorage .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-securestorage .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-securestorage .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-securestorage .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-securestorage .Section:last-child{margin-bottom:0}.theme-securestorage .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-securestorage .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-securestorage .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-securestorage .Section__rest{position:relative}.theme-securestorage .Section__content{padding:.66em .5em}.theme-securestorage .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-securestorage .Section--fill{display:flex;flex-direction:column;height:100%}.theme-securestorage .Section--fill>.Section__rest{flex-grow:1}.theme-securestorage .Section--fill>.Section__rest>.Section__content{height:100%}.theme-securestorage .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-securestorage .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-securestorage .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-securestorage .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-securestorage .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-securestorage .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-securestorage .Section .Section:first-child{margin-top:-.5em}.theme-securestorage .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-securestorage .Section .Section .Section .Section__titleText{font-size:1em}.theme-securestorage .Layout__content{background-image:none}.theme-security .color-label{color:#b08e8b!important}.theme-security .color-bg-good{background-color:#4d9121!important}.theme-security .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-security .Button:last-child{margin-right:0;margin-bottom:0}.theme-security .Button .fa,.theme-security .Button .fas,.theme-security .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-security .Button--hasContent .fa,.theme-security .Button--hasContent .fas,.theme-security .Button--hasContent .far{margin-right:.25em}.theme-security .Button--hasContent.Button--iconRight .fa,.theme-security .Button--hasContent.Button--iconRight .fas,.theme-security .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-security .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-security .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-security .Button--circular{border-radius:50%}.theme-security .Button--compact{padding:0 .25em;line-height:1.333em}.theme-security .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-security .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-security .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-security .Button--color--default{transition:color .1s,background-color .1s;background-color:#a14c49;color:#fff}.theme-security .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--default:hover{background-color:#bb6f6d;color:#fff}.theme-security .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-security .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-security .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-security .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-security .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.theme-security .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--transparent:hover{background-color:#3a3a3a;color:#fff}.theme-security .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,.6);color:rgba(255,255,255,.5)}.theme-security .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--translucent:hover{background-color:#3a3a3a;color:#fff}.theme-security .Button--disabled{background-color:#999!important}.theme-security .Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-security .Button--selected:focus{transition:color .25s,background-color .25s}.theme-security .Button--selected:hover{background-color:#2fb94f;color:#fff}.theme-security .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-security .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #ff8d88;border:.0833333333em solid rgba(255,141,136,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-security .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-security .Input--fluid{display:block;width:auto}.theme-security .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-security .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-security .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-security .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-security .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-security .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-security .NoticeBox--type--info{color:#fff;background-color:#822329}.theme-security .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-security .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-security .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-security .Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-security .Section:last-child{margin-bottom:0}.theme-security .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #a14c49}.theme-security .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-security .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-security .Section__rest{position:relative}.theme-security .Section__content{padding:.66em .5em}.theme-security .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-security .Section--fill{display:flex;flex-direction:column;height:100%}.theme-security .Section--fill>.Section__rest{flex-grow:1}.theme-security .Section--fill>.Section__rest>.Section__content{height:100%}.theme-security .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-security .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-security .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-security .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-security .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-security .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-security .Section .Section:first-child{margin-top:-.5em}.theme-security .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-security .Section .Section .Section .Section__titleText{font-size:1em}.theme-security .Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.theme-security .Newscaster__menu .Section__content{padding-left:0}.theme-security .Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.theme-security .Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.theme-security .Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.theme-security .Newscaster__menuButton--selected{color:#fff}.theme-security .Newscaster__menuButton--selected:after{content:"";background-color:#a14c49;width:2px;height:24px;position:absolute;left:-6px}.theme-security .Newscaster__menuButton--security{color:#a14c49}.theme-security .Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.theme-security .Newscaster__menuButton:hover{color:#fff}.theme-security .Newscaster__menuButton:hover:before{background-color:#fff}.theme-security .Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.theme-security .Newscaster__menu--open{width:175px}.theme-security .Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.theme-security .Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.theme-security .Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.theme-security .Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.theme-security .Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.theme-security .Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.theme-security .Newscaster__jobCategory:last-child{margin-bottom:.5rem}.theme-security .Newscaster__jobOpening--command{font-weight:700}.theme-security .Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.theme-security .Newscaster__emptyNotice{color:#a7817e;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.theme-security .Newscaster__emptyNotice i{margin-bottom:.25rem}.theme-security .Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor}.theme-security .Newscaster__photo:hover{border-color:gray}.theme-security .Newscaster__photoZoom{text-align:center}.theme-security .Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor}.theme-security .Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.theme-security .Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.theme-security .Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__story:last-child{margin-bottom:.5rem}.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconRight .fa,.theme-syndicate .Button--hasContent.Button--iconRight .fas,.theme-syndicate .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-syndicate .Button--color--default{transition:color .1s,background-color .1s;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--default:hover{background-color:#509350;color:#fff}.theme-syndicate .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-syndicate .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-syndicate .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#550202;color:#fff;background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--transparent:hover{background-color:#701313;color:#fff}.theme-syndicate .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#550202;color:#fff;background-color:rgba(85,2,2,.6);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--translucent:hover{background-color:#701313;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636!important}.theme-syndicate .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--selected:hover{background-color:#c11919;color:#fff}.theme-syndicate .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-syndicate .Input--disabled{color:#777;border-color:#6b6b6b;border-color:rgba(107,107,107,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-syndicate .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-syndicate .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .ProgressBar--color--disabled{border:1px solid #999}.theme-syndicate .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-syndicate .Section .Section:first-child{margin-top:-.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-syndicate .Layout__content--noMargin{margin:0}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom,#730303,#370101)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color .25s,background-color .25s}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDIwMCAyODkuNzQyIiBvcGFjaXR5PSIuMzMiPjxwYXRoIGQ9Im0gOTMuNTM3Njc3LDAgYyAtMTguMTEzMTI1LDAgLTM0LjIyMDEzMywzLjExMTY0IC00OC4zMjM0ODQsOS4zMzQzNyAtMTMuOTY1MDkyLDYuMjIxNjcgLTI0LjYxMjQ0MiwxNS4wNzExNCAtMzEuOTQwNjUxLDI2LjU0NzEgLTcuMTg5OTM5OCwxMS4zMzc4OSAtMTAuMzAxMjI2NiwyNC43NDkxMSAtMTAuMzAxMjI2Niw0MC4yMzQ3OCAwLDEwLjY0NjYyIDIuNzI1MDAyNiwyMC40NjQ2NSA4LjE3NTExMTYsMjkuNDUyNTggNS42MTUyNzcsOC45ODY4NiAxNC4wMzgyNzcsMTcuMzUyMDQgMjUuMjY4ODIxLDI1LjA5NDM2IDExLjIzMDU0NCw3LjYwNTMxIDI2LjUwNzQyMSwxNS40MTgzNSA0NS44MzA1MTQsMjMuNDM3ODIgMTkuOTgzNzQ4LDguMjk1NTcgMzQuODQ4ODQ4LDE1LjU1NDcxIDQ0LjU5Mjk5OCwyMS43NzYzOCA5Ljc0NDE0LDYuMjIyNzMgMTYuNzYxNywxMi44NTg1IDIxLjA1NTcyLDE5LjkwOTUxIDQuMjk0MDQsNy4wNTIwOCA2LjQ0MTkzLDE1Ljc2NDA4IDYuNDQxOTMsMjYuMTM0NTkgMCwxNi4xNzcwMiAtNS4yMDE5NiwyOC40ODIyMiAtMTUuNjA2NzMsMzYuOTE2ODIgLTEwLjIzOTYsOC40MzQ3IC0yNS4wMjIwMywxMi42NTIzIC00NC4zNDUxNjksMTIuNjUyMyAtMTQuMDM4MTcxLDAgLTI1LjUxNTI0NywtMS42NTk0IC0zNC40MzM2MTgsLTQuOTc3NyAtOC45MTgzNywtMy40NTY2IC0xNi4xODU1NzIsLTguNzExMyAtMjEuODAwODM5LC0xNS43NjMzIC01LjYxNTI3NywtNy4wNTIxIC0xMC4wNzQ3OTUsLTE2LjY2MDg4IC0xMy4zNzc4OTksLTI4LjgyODEyIGwgLTI0Ljc3MzE2MjYyOTM5NDUsMCAwLDU2LjgyNjMyIEMgMzMuODU2NzY5LDI4Ni4wNzYwMSA2My43NDkwNCwyODkuNzQyMDEgODkuNjc4MzgzLDI4OS43NDIwMSBjIDE2LjAyMDAyNywwIDMwLjcxOTc4NywtMS4zODI3IDQ0LjA5NzMzNywtNC4xNDc5IDEzLjU0MjcyLC0yLjkwNDMgMjUuMTA0MSwtNy40Njc2IDM0LjY4MzA5LC0xMy42ODkzIDkuNzQ0MTMsLTYuMzU5NyAxNy4zNDA0MiwtMTQuNTE5NSAyMi43OTA1MiwtMjQuNDc0OCA1LjQ1MDEsLTEwLjA5MzMyIDguMTc1MTEsLTIyLjM5OTU5IDguMTc1MTEsLTM2LjkxNjgyIDAsLTEyLjk5NzY0IC0zLjMwMjEsLTI0LjMzNTM5IC05LjkwODI5LC0zNC4wMTQ2IC02LjQ0MTA1LC05LjgxNzI1IC0xNS41MjU0NSwtMTguNTI3MDcgLTI3LjI1MTQ2LC0yNi4xMzEzMyAtMTEuNTYwODUsLTcuNjA0MjcgLTI3LjkxMDgzLC0xNS44MzE0MiAtNDkuMDUwNjYsLTI0LjY4MDIyIC0xNy41MDY0NCwtNy4xOTAxMiAtMzAuNzE5NjY4LC0xMy42ODk0OCAtMzkuNjM4MDM4LC0xOS40OTcwMSAtOC45MTgzNzEsLTUuODA3NTIgLTE4LjYwNzQ3NCwtMTIuNDM0MDkgLTI0LjA5NjUyNCwtMTguODc0MTcgLTUuNDI2MDQzLC02LjM2NjE2IC05LjY1ODgyNiwtMTUuMDcwMDMgLTkuNjU4ODI2LC0yNC44ODcyOSAwLC05LjI2NDAxIDIuMDc1NDE0LC0xNy4yMTM0NSA2LjIyMzQ1NCwtMjMuODUwMzMgMTEuMDk4Mjk4LC0xNC4zOTc0OCA0MS4yODY2MzgsLTEuNzk1MDcgNDUuMDc1NjA5LDI0LjM0NzYyIDQuODM5MzkyLDYuNzc0OTEgOC44NDkzNSwxNi4yNDcyOSAxMi4wMjk1MTUsMjguNDE1NiBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNC40NzgyNSwtNS45MjQ0OCAtOS45NTQ4OCwtMTAuNjMyMjIgLTE1LjkwODM3LC0xNC4zNzQxMSAxLjY0MDU1LDAuNDc5MDUgMy4xOTAzOSwxLjAyMzc2IDQuNjM4NjUsMS42NDAyNCA2LjQ5ODYxLDIuNjI2MDcgMTIuMTY3OTMsNy4zMjc0NyAxNy4wMDczLDE0LjEwMzQ1IDQuODM5MzksNi43NzQ5MSA4Ljg0OTM1LDE2LjI0NTY3IDEyLjAyOTUyLDI4LjQxMzk3IDAsMCA4LjQ4MTI4LC0wLjEyODk0IDguNDg5NzgsLTAuMDAyIDAuNDE3NzYsNi40MTQ5NCAtMS43NTMzOSw5LjQ1Mjg2IC00LjEyMzQyLDEyLjU2MTA0IC0yLjQxNzQsMy4xNjk3OCAtNS4xNDQ4Niw2Ljc4OTczIC00LjAwMjc4LDEzLjAwMjkgMS41MDc4Niw4LjIwMzE4IDEwLjE4MzU0LDEwLjU5NjQyIDE0LjYyMTk0LDkuMzExNTQgLTMuMzE4NDIsLTAuNDk5MTEgLTUuMzE4NTUsLTEuNzQ5NDggLTUuMzE4NTUsLTEuNzQ5NDggMCwwIDEuODc2NDYsMC45OTg2OCA1LjY1MTE3LC0xLjM1OTgxIC0zLjI3Njk1LDAuOTU1NzEgLTEwLjcwNTI5LC0wLjc5NzM4IC0xMS44MDEyNSwtNi43NjMxMyAtMC45NTc1MiwtNS4yMDg2MSAwLjk0NjU0LC03LjI5NTE0IDMuNDAxMTMsLTEwLjUxNDgyIDIuNDU0NjIsLTMuMjE5NjggNS4yODQyNiwtNi45NTgzMSA0LjY4NDMsLTE0LjQ4ODI0IGwgMC4wMDMsMC4wMDIgOC45MjY3NiwwIDAsLTU1Ljk5OTY3IGMgLTE1LjA3MTI1LC0zLjg3MTY4IC0yNy42NTMxNCwtNi4zNjA0MiAtMzcuNzQ2NzEsLTcuNDY1ODYgLTkuOTU1MzEsLTEuMTA3NTUgLTIwLjE4ODIzLC0xLjY1OTgxIC0zMC42OTY2MTMsLTEuNjU5ODEgeiBtIDcwLjMyMTYwMywxNy4zMDg5MyAwLjIzODA1LDQwLjMwNDkgYyAxLjMxODA4LDEuMjI2NjYgMi40Mzk2NSwyLjI3ODE1IDMuMzQwODEsMy4xMDYwMiA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNCwxNi4yNDU2NiAxMi4wMjk1MSwyOC40MTM5NyBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNi42NzczMSwtNC41OTM4MSAtMTkuODM2NDMsLTEwLjQ3MzA5IC0zNi4xNDA3MSwtMTUuODI1MjIgeiBtIC0yOC4xMjA0OSw1LjYwNTUxIDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzcsLTYuNDY2OTcgLTEzLjg0Njc4LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDUsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gMTUuMjIxOTUsMjQuMDA4NDggOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzOCwtNi40NjY5NyAtMTMuODQ2NzksLTkuNzE3MjYgLTguNTY0NzksLTE3LjcxNjU1IHogbSAyMi43OTcwNCwwIGMgMi43NzE1LDcuOTk5MjkgMS43ODc0MSwxMS4yNDk1OCAtNC40OTM1NCwxNy43MTY1NSBsIDQuNDkzNTQsLTE3LjcxNjU1IHogbSAtOTkuMTEzODQsMi4yMDc2NCA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM4MiwtNi40NjY5NyAtMTMuODQ2NzgyLC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk1NDIsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IiAvPjwvc3ZnPjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4=)}.theme-syndicate .candystripe:nth-child(odd){background-color:rgba(0,0,0,.4)}.theme-syndicate .candystripe:nth-child(2n){background-color:rgba(0,0,0,.25)}.theme-nologo .Layout__content{background-image:none} +html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a!important}.color-white{color:#fff!important}.color-red{color:#df3e3e!important}.color-orange{color:#f37f33!important}.color-yellow{color:#fbda21!important}.color-olive{color:#cbe41c!important}.color-green{color:#25ca4c!important}.color-teal{color:#00d6cc!important}.color-blue{color:#2e93de!important}.color-violet{color:#7349cf!important}.color-purple{color:#ad45d0!important}.color-pink{color:#e34da1!important}.color-brown{color:#b97447!important}.color-grey{color:#848484!important}.color-good{color:#68c22d!important}.color-average{color:#f29a29!important}.color-bad{color:#df3e3e!important}.color-label{color:#8b9bb0!important}.color-bg-black{background-color:#000!important}.color-bg-white{background-color:#d9d9d9!important}.color-bg-red{background-color:#bd2020!important}.color-bg-orange{background-color:#d95e0c!important}.color-bg-yellow{background-color:#d9b804!important}.color-bg-olive{background-color:#9aad14!important}.color-bg-green{background-color:#1b9638!important}.color-bg-teal{background-color:#009a93!important}.color-bg-blue{background-color:#1c71b1!important}.color-bg-violet{background-color:#552dab!important}.color-bg-purple{background-color:#8b2baa!important}.color-bg-pink{background-color:#cf2082!important}.color-bg-brown{background-color:#8c5836!important}.color-bg-grey{background-color:#646464!important}.color-bg-good{background-color:#4d9121!important}.color-bg-average{background-color:#cd7a0d!important}.color-bg-bad{background-color:#bd2020!important}.color-bg-label{background-color:#657a94!important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9)!important;background:rgba(0,0,0,0)!important;outline:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;filter:none!important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8)!important}.outline-dotted{outline-style:dotted!important}.outline-dashed{outline-style:dashed!important}.outline-solid{outline-style:solid!important}.outline-double{outline-style:double!important}.outline-groove{outline-style:groove!important}.outline-ridge{outline-style:ridge!important}.outline-inset{outline-style:inset!important}.outline-outset{outline-style:outset!important}.outline-color-black{outline:.167rem solid #1a1a1a!important}.outline-color-white{outline:.167rem solid #fff!important}.outline-color-red{outline:.167rem solid #df3e3e!important}.outline-color-orange{outline:.167rem solid #f37f33!important}.outline-color-yellow{outline:.167rem solid #fbda21!important}.outline-color-olive{outline:.167rem solid #cbe41c!important}.outline-color-green{outline:.167rem solid #25ca4c!important}.outline-color-teal{outline:.167rem solid #00d6cc!important}.outline-color-blue{outline:.167rem solid #2e93de!important}.outline-color-violet{outline:.167rem solid #7349cf!important}.outline-color-purple{outline:.167rem solid #ad45d0!important}.outline-color-pink{outline:.167rem solid #e34da1!important}.outline-color-brown{outline:.167rem solid #b97447!important}.outline-color-grey{outline:.167rem solid #848484!important}.outline-color-good{outline:.167rem solid #68c22d!important}.outline-color-average{outline:.167rem solid #f29a29!important}.outline-color-bad{outline:.167rem solid #df3e3e!important}.outline-color-label{outline:.167rem solid #8b9bb0!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconRight .fa,.Button--hasContent.Button--iconRight .fas,.Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--multiLine{white-space:normal;word-wrap:break-word}.Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.Button--color--black:focus{transition:color .25s,background-color .25s}.Button--color--black:hover{background-color:#101010;color:#fff}.Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.Button--color--white:focus{transition:color .25s,background-color .25s}.Button--color--white:hover{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--red:focus{transition:color .25s,background-color .25s}.Button--color--red:hover{background-color:#d93f3f;color:#fff}.Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.Button--color--orange:focus{transition:color .25s,background-color .25s}.Button--color--orange:hover{background-color:#ef7e33;color:#fff}.Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--yellow:focus{transition:color .25s,background-color .25s}.Button--color--yellow:hover{background-color:#f5d523;color:#000}.Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.Button--color--olive:focus{transition:color .25s,background-color .25s}.Button--color--olive:hover{background-color:#bdd327;color:#fff}.Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--color--green:focus{transition:color .25s,background-color .25s}.Button--color--green:hover{background-color:#2fb94f;color:#fff}.Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.Button--color--teal:focus{transition:color .25s,background-color .25s}.Button--color--teal:hover{background-color:#10bdb6;color:#fff}.Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.Button--color--blue:focus{transition:color .25s,background-color .25s}.Button--color--blue:hover{background-color:#308fd6;color:#fff}.Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.Button--color--violet:focus{transition:color .25s,background-color .25s}.Button--color--violet:hover{background-color:#7249ca;color:#fff}.Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.Button--color--purple:focus{transition:color .25s,background-color .25s}.Button--color--purple:hover{background-color:#aa46ca;color:#fff}.Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.Button--color--pink:focus{transition:color .25s,background-color .25s}.Button--color--pink:hover{background-color:#e04ca0;color:#fff}.Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.Button--color--brown:focus{transition:color .25s,background-color .25s}.Button--color--brown:hover{background-color:#ae724c;color:#fff}.Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.Button--color--grey:focus{transition:color .25s,background-color .25s}.Button--color--grey:hover{background-color:#818181;color:#fff}.Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.Button--color--good:focus{transition:color .25s,background-color .25s}.Button--color--good:hover{background-color:#67b335;color:#fff}.Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.Button--color--average:focus{transition:color .25s,background-color .25s}.Button--color--average:hover{background-color:#eb972b;color:#fff}.Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--bad:focus{transition:color .25s,background-color .25s}.Button--color--bad:hover{background-color:#d93f3f;color:#fff}.Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.Button--color--label:focus{transition:color .25s,background-color .25s}.Button--color--label:hover{background-color:#8a9aae;color:#fff}.Button--color--default{transition:color .1s,background-color .1s;background-color:#3e6189;color:#fff}.Button--color--default:focus{transition:color .25s,background-color .25s}.Button--color--default:hover{background-color:#567daa;color:#fff}.Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--caution:focus{transition:color .25s,background-color .25s}.Button--color--caution:hover{background-color:#f5d523;color:#000}.Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--danger:focus{transition:color .25s,background-color .25s}.Button--color--danger:hover{background-color:#d93f3f;color:#fff}.Button--color--transparent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.Button--color--transparent:focus{transition:color .25s,background-color .25s}.Button--color--transparent:hover{background-color:#3a3a3a;color:#fff}.Button--color--translucent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,.6);color:rgba(255,255,255,.5)}.Button--color--translucent:focus{transition:color .25s,background-color .25s}.Button--color--translucent:hover{background-color:#3a3a3a;color:#fff}.Button--disabled{background-color:#999!important}.Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--selected:focus{transition:color .25s,background-color .25s}.Button--selected:hover{background-color:#2fb94f;color:#fff}.Button--modal{float:right;z-index:1;margin-top:-.5rem}.Collapsible{margin-bottom:.5rem}.Collapsible:last-child{margin-bottom:0}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Dropdown{position:relative;align-items:center}.Dropdown__control{display:inline-block;align-items:center;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.3333333333em;-ms-user-select:none;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{overflow-y:auto;align-items:center;z-index:5;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-scroll{overflow-y:scroll}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color .1s ease-out}.Dropdown__menuentry.selected{background-color:rgba(255,255,255,.5)!important;transition:background-color 0ms}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em);text-align:left;padding-top:2.5px}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:block}.Flex--iefix.Flex--inline,.Flex__item--iefix{display:inline-block}.Flex--iefix--column>.Flex__item--iefix{display:block}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:7em;width:10em;line-height:2em;vertical-align:middle}.IconStack:after{color:rgba(0,0,0,0);content:"."}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue,.Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Knob__popupValue--right{top:.25rem;right:-50%}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotate(135deg)}.Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotate(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.NanoMap__container{overflow:hidden;width:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0;margin:0}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:20%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.ProgressBar__fill--animated{transition:background-color .5s,width .5s}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--disabled{border:1px solid #999}.ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.ProgressBar--color--black{border:.0833333333em solid #000!important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464!important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94!important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto .2em}.RoundGauge__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}to{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.Section .Section:first-child{margin-top:-.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Slider:not(.Slider__disabled){cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--zebra>.Stack__item:nth-child(2n){background-color:rgba(0,0,0,.33)}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:700;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:rgba(0,0,0,0)}.Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:Consolas,monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.AccountsUplinkTerminal__list tr>td{text-align:center}.AccountsUplinkTerminal__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.AccountsUplinkTerminal__list tr:not(:first-child):hover,.AccountsUplinkTerminal__list tr:not(:first-child):focus{background-color:#252525}.AccountsUplinkTerminal__listRow--SUSPENDED{background-color:#740c20}.AlertModal__Message{text-align:center;justify-content:center}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color .5s ease-out,width .5s ease-out;background-color:#3e6189;height:100%}.BrigCells__list .Table__row--header,.BrigCells__list .Table__cell{text-align:center}.BrigCells__list .BrigCells__listRow--active .Table__cell{background-color:#890e26}.CameraConsole__left{position:absolute;top:0;bottom:0;left:0;width:18.3333333333em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.Contractor *{font-family:Courier New,Courier,monospace}.Contractor .Section__titleText{display:inline-block;max-width:70%}.Contractor .Section__titleText>.Flex{width:100%}.Contractor .Section__titleText>.Flex>.Flex__item:first-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.Contractor__Contract .Button{font-size:11px;white-space:normal!important}.Contractor__photoZoom{text-align:center}.Contractor__photoZoom>img{width:96px;-ms-interpolation-mode:nearest-neighbor}.Contractor__photoZoom>.Button{position:absolute}.Exofab .Dropdown__control{margin-bottom:-1px}.Exofab .Dropdown__selected-text{overflow:hidden;text-overflow:ellipsis;width:80%;display:inline-block;margin-bottom:-3px}.Exofab__materials{height:100%;overflow:auto}.Exofab__materials .Section__content{height:calc(100% - 31px)}.Exofab__material:not(.Exofab__material--line){margin-bottom:.25rem}.Exofab__material:not(.Exofab__material--line) .Button{width:28px;margin-right:.5rem}.Exofab__material--line .Button{background-color:rgba(0,0,0,0);width:14px}.Exofab__material--name{color:#7e90a7;text-transform:capitalize}.Exofab__material .Button{margin-bottom:0;padding:0;vertical-align:middle}.Exofab__queue{height:100%}.Exofab__queue--queue .Button{margin:0;transform:scale(.75)}.Exofab__queue--queue .Button:first-of-type{margin-left:.25rem}.Exofab__queue--time{text-align:center;color:#7e90a7}.Exofab__queue--deficit{text-align:center;color:#db2828;font-weight:700}.Exofab__queue--deficit>div:not(.Divider){display:inline-block;margin-bottom:-.75rem}.Exofab__queue .Section__content{height:calc(100% - 31px)}.Exofab__queue .Exofab__material--amount{margin-right:.25rem}.Exofab__design--cost{display:inline-block;vertical-align:middle;margin-top:.25rem}.Exofab__design--cost>div{display:inline-block}.Exofab__design--cost .Exofab__material{margin-left:.25rem}.Exofab__design--time{display:inline-block;margin-left:.5rem;color:#7e90a7}.Exofab__design--time i{margin-right:.25rem}.Exofab__designs .Section__content{height:calc(100% - 31px);overflow:auto}.Exofab__building{height:45px}.Exofab__building .ProgressBar{width:100%;height:75%}.Exofab__building .ProgressBar__content{line-height:26px;text-align:right;font-size:12px;font-weight:700;display:flex;justify-content:flex-end}.Exofab__dropdown{line-height:14px;font-size:12px;width:225px;height:85%;margin-top:1.5px}.Ingredient__Table tr:nth-child(2n){background-color:#333}.Ingredient__Table td{padding:3px}.Library__Booklist tr>td{text-align:center}.Library__Booklist tr:not(:first-child){height:24px;line-height:24px;transition:background-color 50ms}.Library__Booklist tr:not(:first-child):hover,.Library__Booklist tr:not(:first-child):focus{background-color:#252525}.Library__SearchContainer{background-color:rgba(37,37,37,.5)}.Library__SearchContainer tr td:first-child{width:60%}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:12px}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color .5s,width .5s;background-color:#3e6189;height:100%}.Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.Newscaster__menu .Section__content{padding-left:0}.Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.Newscaster__menuButton--selected{color:#fff}.Newscaster__menuButton--selected:after{content:"";background-color:#4972a1;width:2px;height:24px;position:absolute;left:-6px}.Newscaster__menuButton--security{color:#4972a1}.Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.Newscaster__menuButton:hover{color:#fff}.Newscaster__menuButton:hover:before{background-color:#fff}.Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.Newscaster__menu--open{width:175px}.Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.Newscaster__jobCategory:last-child{margin-bottom:.5rem}.Newscaster__jobOpening--command{font-weight:700}.Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.Newscaster__emptyNotice{color:#7e90a7;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.Newscaster__emptyNotice i{margin-bottom:.25rem}.Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor}.Newscaster__photo:hover{border-color:gray}.Newscaster__photoZoom{text-align:center}.Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor}.Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.Newscaster__story:last-child{margin-bottom:.5rem}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem!important;border-width:.65rem!important;padding-left:0!important;padding-right:0!important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee!important;border-color:#f7f6ee!important}.NuclearBomb__Button--1{background-color:#d3cfb7!important;border-color:#d3cfb7!important;color:#a9a692!important}.NuclearBomb__Button--E{background-color:#d9b804!important;border-color:#d9b804!important}.NuclearBomb__Button--E:hover{background-color:#f3d00e!important;border-color:#f3d00e!important}.NuclearBomb__Button--C{background-color:#bd2020!important;border-color:#bd2020!important}.NuclearBomb__Button--C:hover{background-color:#d52b2b!important;border-color:#d52b2b!important}.OreRedemption__Ores .OreLine,.OreRedemption__Ores .OreHeader{min-height:32px;padding:0 .5rem}.OreRedemption__Ores .OreHeader{line-height:32px;background-color:rgba(0,0,0,.33);font-weight:700}.OreRedemption__Ores .OreLine:last-of-type{margin-bottom:.5rem}.OreRedemption__Ores .Section__content{padding:0;height:100%;overflow:auto}.PDA__footer{position:fixed;bottom:0%;left:0%;right:0%;height:30px}.PDA__footer__button{text-align:center;padding-top:4px;padding-bottom:2px;font-size:24px}.PdaPainter__list tr>td{text-align:center}.PdaPainter__list tr{height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.PdaPainter__list tr:hover,.PdaPainter__list tr:focus{background-color:#252525}.PoolController__Buttons .Button:not(:last-child){margin-bottom:8px}.PrizeCounter__BuyButton{width:64px;height:100%;padding-top:.25em;text-align:center;font-size:1.5rem;font-weight:700;background-color:rgba(64,64,64,.33);color:#bfbfbf;transition:color .1s,background-color .1s}.PrizeCounter__BuyButton:hover{background-color:rgba(84,84,84,.33);color:#fff}.PrizeCounter__BuyButton .fa,.PrizeCounter__BuyButton .fas,.PrizeCounter__BuyButton .far{color:rgba(60,255,60,.66);transform:scale(1.6);position:absolute;top:2.1em;left:1.4em}.PrizeCounter__BuyButton--disabled{background-color:rgba(255,50,50,.1);color:gray}.PrizeCounter__BuyButton--disabled .fa,.PrizeCounter__BuyButton--disabled .fas,.PrizeCounter__BuyButton--disabled .far{color:rgba(255,60,60,.66)}.PrizeCounter__BuyButton--disabled:hover,.PrizeCounter__BuyButton--disabled:focus{background-color:rgba(255,50,50,.1);color:gray}.PrizeCounter__Item{margin-bottom:.5em;background-color:rgba(125,125,125,.05);border:.0833333333em solid rgba(64,64,64,.33)}.RndConsole{position:relative}.RndConsole__Overlay{position:absolute;display:flex;align-items:stretch;justify-content:stretch;top:0;left:0;width:100%;height:100vh}.RndConsole__LatheCategory__MatchingDesigns .Table__cell{padding-bottom:4px}.RndConsole__MainMenu__Buttons .Button:not(:last-child){margin-bottom:4px}.RndConsole__LatheMaterials .Table__cell:nth-child(2){padding-left:16px}.RndConsole__LatheMaterialStorage .Table__cell{padding:4px 0;border-bottom:1px solid #767676}.RndConsole__Overlay__Wrapper{display:flex;align-items:center;justify-content:stretch;flex-grow:1;padding:24px;background-color:rgba(255,255,255,0)}.RndConsole__Overlay__Wrapper .NoticeBox{flex-grow:1;margin-bottom:80px;font-size:18pt;padding:.3em .75em}.RndConsole__RndNavbar .Button{margin-bottom:10px}.Roulette{font-family:Palatino}.Roulette__board{display:table;width:100%;border-collapse:collapse;border:2px solid #fff;margin:0}.Roulette__board-row{padding:0;margin:0}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:2px solid #fff;font-family:Palatino}.Roulette__board-cell:first-child{padding-left:0}.Roulette__board-cell:last-child{padding-right:0}.Roulette__board-extrabutton{text-align:center;font-size:20px;font-weight:700;height:28px;border:none!important;margin:0!important;padding-top:4px!important;color:#fff!important}.Roulette__lowertable{margin-top:8px;margin-left:80px;margin-right:80px;border-collapse:collapse;border:2px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0;margin:0}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:700;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0!important;border:none!important;font-size:50px;line-height:60px!important;text-align:center;font-weight:700}.Roulette__lowertable--header{width:1%;text-align:center;font-size:20px;font-weight:700}.Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.Safe--engraving--arrow{color:#35435a}.Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe--dialer{margin-bottom:.5rem}.Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.Safe--dialer--right .Button i{z-index:-100}.Safe--dialer .Button{width:80px}.Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.SecureStorage__displayBox{background-color:#212121;color:#8b8b8b;border:.167em inset #e8e4c9;font-size:375%;font-family:monospace;padding:.25em}.SecureStorage__displayBox--good{background-color:#002003;color:#03e017}.SecureStorage__displayBox--bad{background-color:#210000;color:#e00202}.SecureStorage__Button{outline-width:.25rem!important;border-width:.3rem!important;border:.167em outset #e8e4c9;padding-left:0!important;padding-right:0!important}.SecureStorage__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9;color:#a9a692}.SecureStorage__Button--keypad:hover{background-color:#f7f6ee;border-color:#f7f6ee;color:#a9a692}.SecureStorage__Button--E{background-color:#d9b804;border-color:#d9b804;color:#fff}.SecureStorage__Button--E:hover{background-color:#f5d317;border-color:#f5d317;color:#fff}.SecureStorage__Button--C{background-color:#bd2020;border-color:#bd2020;color:#fff}.SecureStorage__Button--C:hover{background-color:#d83434;border-color:#d83434;color:#fff}.SecurityRecords__list tr>td{text-align:center}.SecurityRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.SecurityRecords__list tr:not(:first-child):hover,.SecurityRecords__list tr:not(:first-child):focus{background-color:#252525}.SecurityRecords__listRow--arrest{background-color:#740c20}.SecurityRecords__listRow--execute{background-color:#683e8c}.SecurityRecords__listRow--incarcerated{background-color:#633203}.SecurityRecords__listRow--parolled{background-color:#006d7b}.SecurityRecords__listRow--released{background-color:#1c5574}.SecurityRecords__listRow--demote{background-color:#155500}.SecurityRecords__listRow--search{background-color:#987a00}.SecurityRecords__listRow--monitor{background-color:#1f1180}.MedicalRecords__list tr>td{text-align:center}.MedicalRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.MedicalRecords__list tr:not(:first-child):hover,.MedicalRecords__list tr:not(:first-child):focus{background-color:#252525}.MedicalRecords__listRow--deceased{background-color:#740c20}.MedicalRecords__listRow--ssd{background-color:#006d7b}.MedicalRecords__listRow--physically_unfit{background-color:#987a00}.MedicalRecords__listRow--disabled{background-color:#1f1180}.MedicalRecords__listMedbot--0{background-color:#2b1414}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.Layout__content--noMargin{margin:0}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color .25s,background-color .25s}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom,#2a2a2a,#202020)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDQyNSAyMDAiIG9wYWNpdHk9Ii4zMyI+PHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPjxwYXRoIGQ9Ik0gNC44NDQ2MzMzLDIyLjEwODc1IEEgMTMuNDEyMDM5LDEyLjUwMTg0MiAwIDAgMSAxMy40Nzc1ODgsMC4wMzkyNCBsIDY2LjExODMxNSwwIGEgNS4zNjQ4MTU4LDUuMDAwNzM3IDAgMCAxIDUuMzY0ODIzLDUuMDAwNzMgbCAwLDc5Ljg3OTMxIHoiIC8+PHBhdGggZD0ibSA0MjAuMTU1MzUsMTc3Ljg5MTE5IGEgMTMuNDEyMDM4LDEyLjUwMTg0MiAwIDAgMSAtOC42MzI5NSwyMi4wNjk1MSBsIC02Ni4xMTgzMiwwIGEgNS4zNjQ4MTUyLDUuMDAwNzM3IDAgMCAxIC01LjM2NDgyLC01LjAwMDc0IGwgMCwtNzkuODc5MzEgeiIgLz48L3N2Zz48IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT48IS0tIGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LXNhLzQuMC8gLS0+);background-size:70%;background-position:center;background-repeat:no-repeat}.theme-abductor .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-abductor .Button:last-child{margin-right:0;margin-bottom:0}.theme-abductor .Button .fa,.theme-abductor .Button .fas,.theme-abductor .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-abductor .Button--hasContent .fa,.theme-abductor .Button--hasContent .fas,.theme-abductor .Button--hasContent .far{margin-right:.25em}.theme-abductor .Button--hasContent.Button--iconRight .fa,.theme-abductor .Button--hasContent.Button--iconRight .fas,.theme-abductor .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-abductor .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-abductor .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-abductor .Button--circular{border-radius:50%}.theme-abductor .Button--compact{padding:0 .25em;line-height:1.333em}.theme-abductor .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-abductor .Button--color--default{transition:color .1s,background-color .1s;background-color:#ad2350;color:#fff}.theme-abductor .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--default:hover{background-color:#d03a6b;color:#fff}.theme-abductor .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-abductor .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-abductor .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-abductor .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-abductor .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#2a314a;color:#fff;background-color:rgba(42,49,74,0);color:rgba(255,255,255,.5)}.theme-abductor .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--transparent:hover{background-color:#404764;color:#fff}.theme-abductor .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#2a314a;color:#fff;background-color:rgba(42,49,74,.6);color:rgba(255,255,255,.5)}.theme-abductor .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--color--translucent:hover{background-color:#404764;color:#fff}.theme-abductor .Button--disabled{background-color:#363636!important}.theme-abductor .Button--selected{transition:color .1s,background-color .1s;background-color:#465899;color:#fff}.theme-abductor .Button--selected:focus{transition:color .25s,background-color .25s}.theme-abductor .Button--selected:hover{background-color:#6577b5;color:#fff}.theme-abductor .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-abductor .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-abductor .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-abductor .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-abductor .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-abductor .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-abductor .Input--disabled{color:#777;border-color:#171717;border-color:rgba(23,23,23,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-abductor .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-abductor .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-abductor .NumberInput--fluid{display:block}.theme-abductor .NumberInput__content{margin-left:.5em}.theme-abductor .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-abductor .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-abductor .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-abductor .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-abductor .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-abductor .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-abductor .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-abductor .ProgressBar--color--default{border:.0833333333em solid #931e44}.theme-abductor .ProgressBar--color--default .ProgressBar__fill{background-color:#931e44}.theme-abductor .ProgressBar--color--disabled{border:1px solid #363636}.theme-abductor .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-abductor .Section{position:relative;margin-bottom:.5em;background-color:#1c2132;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-abductor .Section:last-child{margin-bottom:0}.theme-abductor .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #ad2350}.theme-abductor .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-abductor .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-abductor .Section__rest{position:relative}.theme-abductor .Section__content{padding:.66em .5em}.theme-abductor .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-abductor .Section--fill{display:flex;flex-direction:column;height:100%}.theme-abductor .Section--fill>.Section__rest{flex-grow:1}.theme-abductor .Section--fill>.Section__rest>.Section__content{height:100%}.theme-abductor .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-abductor .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-abductor .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-abductor .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-abductor .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-abductor .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-abductor .Section .Section:first-child{margin-top:-.5em}.theme-abductor .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-abductor .Section .Section .Section .Section__titleText{font-size:1em}.theme-abductor .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#a82d55;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-abductor .Layout,.theme-abductor .Layout *{scrollbar-base-color:#202538;scrollbar-face-color:#384263;scrollbar-3dlight-color:#2a314a;scrollbar-highlight-color:#2a314a;scrollbar-track-color:#202538;scrollbar-arrow-color:#818db8;scrollbar-shadow-color:#384263}.theme-abductor .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-abductor .Layout__content--flexRow{display:flex;flex-flow:row}.theme-abductor .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-abductor .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-abductor .Layout__content--noMargin{margin:0}.theme-abductor .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2a314a;background-image:linear-gradient(to bottom,#353e5e,#1f2436)}.theme-abductor .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-abductor .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-abductor .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-abductor .Window__contentPadding:after{height:0}.theme-abductor .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-abductor .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(68,76,104,.25);pointer-events:none}.theme-abductor .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-abductor .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-abductor .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-abductor .TitleBar{background-color:#9e1b46;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-abductor .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#9e1b46;transition:color .25s,background-color .25s}.theme-abductor .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-abductor .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-abductor .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-abductor .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-abductor .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-abductor .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-abductor .Layout__content{background-image:none}.theme-cardtable .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-cardtable .Button:last-child{margin-right:0;margin-bottom:0}.theme-cardtable .Button .fa,.theme-cardtable .Button .fas,.theme-cardtable .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-cardtable .Button--hasContent .fa,.theme-cardtable .Button--hasContent .fas,.theme-cardtable .Button--hasContent .far{margin-right:.25em}.theme-cardtable .Button--hasContent.Button--iconRight .fa,.theme-cardtable .Button--hasContent.Button--iconRight .fas,.theme-cardtable .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-cardtable .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-cardtable .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-cardtable .Button--circular{border-radius:50%}.theme-cardtable .Button--compact{padding:0 .25em;line-height:1.333em}.theme-cardtable .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-cardtable .Button--color--default{transition:color .1s,background-color .1s;background-color:#117039;color:#fff}.theme-cardtable .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--default:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-cardtable .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-cardtable .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-cardtable .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-cardtable .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#117039;color:#fff;background-color:rgba(17,112,57,0);color:rgba(255,255,255,.5)}.theme-cardtable .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--transparent:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#117039;color:#fff;background-color:rgba(17,112,57,.6);color:rgba(255,255,255,.5)}.theme-cardtable .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--color--translucent:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--disabled{background-color:#363636!important}.theme-cardtable .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-cardtable .Button--selected:focus{transition:color .25s,background-color .25s}.theme-cardtable .Button--selected:hover{background-color:#c11919;color:#fff}.theme-cardtable .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-cardtable .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:0;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-cardtable .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-cardtable .Input--fluid{display:block;width:auto}.theme-cardtable .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-cardtable .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-cardtable .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-cardtable .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-cardtable .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #fff;border:.0833333333em solid rgba(255,255,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-cardtable .NumberInput--fluid{display:block}.theme-cardtable .NumberInput__content{margin-left:.5em}.theme-cardtable .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-cardtable .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #fff;background-color:#fff}.theme-cardtable .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-cardtable .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-cardtable .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-cardtable .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-cardtable .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-cardtable .ProgressBar--color--default{border:.0833333333em solid #000}.theme-cardtable .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-cardtable .ProgressBar--color--disabled{border:1px solid #363636}.theme-cardtable .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-cardtable .Section{position:relative;margin-bottom:.5em;background-color:#0b4b26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-cardtable .Section:last-child{margin-bottom:0}.theme-cardtable .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-cardtable .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-cardtable .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-cardtable .Section__rest{position:relative}.theme-cardtable .Section__content{padding:.66em .5em}.theme-cardtable .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-cardtable .Section--fill{display:flex;flex-direction:column;height:100%}.theme-cardtable .Section--fill>.Section__rest{flex-grow:1}.theme-cardtable .Section--fill>.Section__rest>.Section__content{height:100%}.theme-cardtable .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-cardtable .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-cardtable .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-cardtable .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-cardtable .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-cardtable .Section .Section:first-child{margin-top:-.5em}.theme-cardtable .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-cardtable .Section .Section .Section .Section__titleText{font-size:1em}.theme-cardtable .Layout,.theme-cardtable .Layout *{scrollbar-base-color:#0d542b;scrollbar-face-color:#16914a;scrollbar-3dlight-color:#117039;scrollbar-highlight-color:#117039;scrollbar-track-color:#0d542b;scrollbar-arrow-color:#5ae695;scrollbar-shadow-color:#16914a}.theme-cardtable .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-cardtable .Layout__content--flexRow{display:flex;flex-flow:row}.theme-cardtable .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-cardtable .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-cardtable .Layout__content--noMargin{margin:0}.theme-cardtable .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#117039;background-image:linear-gradient(to bottom,#117039,#117039)}.theme-cardtable .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-cardtable .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-cardtable .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-cardtable .Window__contentPadding:after{height:0}.theme-cardtable .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-cardtable .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(39,148,85,.25);pointer-events:none}.theme-cardtable .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-cardtable .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-cardtable .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-cardtable .TitleBar{background-color:#381608;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-cardtable .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#381608;transition:color .25s,background-color .25s}.theme-cardtable .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-cardtable .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-cardtable .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-cardtable .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-cardtable .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-cardtable .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-cardtable .Button{border:.1666666667em solid #fff}.theme-changeling .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-changeling .Button:last-child{margin-right:0;margin-bottom:0}.theme-changeling .Button .fa,.theme-changeling .Button .fas,.theme-changeling .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-changeling .Button--hasContent .fa,.theme-changeling .Button--hasContent .fas,.theme-changeling .Button--hasContent .far{margin-right:.25em}.theme-changeling .Button--hasContent.Button--iconRight .fa,.theme-changeling .Button--hasContent.Button--iconRight .fas,.theme-changeling .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-changeling .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-changeling .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-changeling .Button--circular{border-radius:50%}.theme-changeling .Button--compact{padding:0 .25em;line-height:1.333em}.theme-changeling .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-changeling .Button--color--default{transition:color .1s,background-color .1s;background-color:#563d6b;color:#fff}.theme-changeling .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--default:hover{background-color:#715589;color:#fff}.theme-changeling .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-changeling .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-changeling .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-changeling .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-changeling .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#2e2633;color:#fff;background-color:rgba(46,38,51,0);color:rgba(255,255,255,.5)}.theme-changeling .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--transparent:hover{background-color:#443b4a;color:#fff}.theme-changeling .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#2e2633;color:#fff;background-color:rgba(46,38,51,.6);color:rgba(255,255,255,.5)}.theme-changeling .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--color--translucent:hover{background-color:#443b4a;color:#fff}.theme-changeling .Button--disabled{background-color:#999!important}.theme-changeling .Button--selected{transition:color .1s,background-color .1s;background-color:#188552;color:#fff}.theme-changeling .Button--selected:focus{transition:color .25s,background-color .25s}.theme-changeling .Button--selected:hover{background-color:#2ba66d;color:#fff}.theme-changeling .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-changeling .Section{position:relative;margin-bottom:.5em;background-color:#1f1922;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-changeling .Section:last-child{margin-bottom:0}.theme-changeling .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #563d6b}.theme-changeling .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-changeling .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-changeling .Section__rest{position:relative}.theme-changeling .Section__content{padding:.66em .5em}.theme-changeling .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-changeling .Section--fill{display:flex;flex-direction:column;height:100%}.theme-changeling .Section--fill>.Section__rest{flex-grow:1}.theme-changeling .Section--fill>.Section__rest>.Section__content{height:100%}.theme-changeling .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-changeling .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-changeling .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-changeling .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-changeling .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-changeling .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-changeling .Section .Section:first-child{margin-top:-.5em}.theme-changeling .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-changeling .Section .Section .Section .Section__titleText{font-size:1em}.theme-changeling .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-changeling .Tabs--fill{height:100%}.theme-changeling .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-changeling .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-changeling .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-changeling .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-changeling .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-changeling .Tabs--horizontal:last-child{margin-bottom:0}.theme-changeling .Tabs__Tab{flex-grow:0}.theme-changeling .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-changeling .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-changeling .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-changeling .Tab--selected{background-color:#563d6b;color:#e3daea}.theme-changeling .Tab__text{flex-grow:1;margin:0 .5em}.theme-changeling .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-changeling .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-changeling .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-changeling .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d9cee3}.theme-changeling .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-changeling .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d9cee3}.theme-changeling .Layout,.theme-changeling .Layout *{scrollbar-base-color:#231d26;scrollbar-face-color:#44384b;scrollbar-3dlight-color:#2e2633;scrollbar-highlight-color:#2e2633;scrollbar-track-color:#231d26;scrollbar-arrow-color:#9986a5;scrollbar-shadow-color:#44384b}.theme-changeling .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-changeling .Layout__content--flexRow{display:flex;flex-flow:row}.theme-changeling .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-changeling .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-changeling .Layout__content--noMargin{margin:0}.theme-changeling .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2e2633;background-image:linear-gradient(to bottom,#3e3345,#1e1921)}.theme-changeling .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-changeling .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-changeling .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-changeling .Window__contentPadding:after{height:0}.theme-changeling .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-changeling .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(72,63,78,.25);pointer-events:none}.theme-changeling .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-changeling .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-changeling .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-changeling .TitleBar{background-color:#352d3b;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-changeling .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#352d3b;transition:color .25s,background-color .25s}.theme-changeling .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-changeling .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-changeling .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-changeling .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-changeling .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-changeling .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-changeling .Layout__content{background-image:none}.theme-hackerman .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hackerman .Button:last-child{margin-right:0;margin-bottom:0}.theme-hackerman .Button .fa,.theme-hackerman .Button .fas,.theme-hackerman .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-hackerman .Button--hasContent .fa,.theme-hackerman .Button--hasContent .fas,.theme-hackerman .Button--hasContent .far{margin-right:.25em}.theme-hackerman .Button--hasContent.Button--iconRight .fa,.theme-hackerman .Button--hasContent.Button--iconRight .fas,.theme-hackerman .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-hackerman .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hackerman .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hackerman .Button--circular{border-radius:50%}.theme-hackerman .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hackerman .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-hackerman .Button--color--default{transition:color .1s,background-color .1s;background-color:#0f0;color:#000}.theme-hackerman .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--default:hover{background-color:#40ff40;color:#000}.theme-hackerman .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-hackerman .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-hackerman .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-hackerman .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-hackerman .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#121b12;color:#fff;background-color:rgba(18,27,18,0);color:rgba(255,255,255,.5)}.theme-hackerman .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--transparent:hover{background-color:#252f25;color:#fff}.theme-hackerman .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#121b12;color:#fff;background-color:rgba(18,27,18,.6);color:rgba(255,255,255,.5)}.theme-hackerman .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--color--translucent:hover{background-color:#252f25;color:#fff}.theme-hackerman .Button--disabled{background-color:#363636!important}.theme-hackerman .Button--selected{transition:color .1s,background-color .1s;background-color:#0f0;color:#000}.theme-hackerman .Button--selected:focus{transition:color .25s,background-color .25s}.theme-hackerman .Button--selected:hover{background-color:#40ff40;color:#000}.theme-hackerman .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-hackerman .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid lime;border:.0833333333em solid rgba(0,255,0,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-hackerman .Input--disabled{color:#777;border-color:#404040;border-color:rgba(64,64,64,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-hackerman .Input--fluid{display:block;width:auto}.theme-hackerman .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-hackerman .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-hackerman .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-hackerman .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-hackerman .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-hackerman .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-hackerman .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-hackerman .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-hackerman .ProgressBar--color--default{border:.0833333333em solid #00d900}.theme-hackerman .ProgressBar--color--default .ProgressBar__fill{background-color:#00d900}.theme-hackerman .ProgressBar--color--disabled{border:1px solid #363636}.theme-hackerman .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-hackerman .Modal{background-color:#121b12;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Section{position:relative;margin-bottom:.5em;background-color:#0c120c;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hackerman .Section:last-child{margin-bottom:0}.theme-hackerman .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid lime}.theme-hackerman .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-hackerman .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-hackerman .Section__rest{position:relative}.theme-hackerman .Section__content{padding:.66em .5em}.theme-hackerman .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hackerman .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hackerman .Section--fill>.Section__rest{flex-grow:1}.theme-hackerman .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hackerman .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hackerman .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-hackerman .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-hackerman .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hackerman .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-hackerman .Section .Section:first-child{margin-top:-.5em}.theme-hackerman .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hackerman .Section .Section .Section .Section__titleText{font-size:1em}.theme-hackerman .Layout,.theme-hackerman .Layout *{scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-hackerman .Layout__content--flexRow{display:flex;flex-flow:row}.theme-hackerman .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-hackerman .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-hackerman .Layout__content--noMargin{margin:0}.theme-hackerman .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#121b12;background-image:linear-gradient(to bottom,#121b12,#121b12)}.theme-hackerman .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-hackerman .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-hackerman .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-hackerman .Window__contentPadding:after{height:0}.theme-hackerman .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-hackerman .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(40,50,40,.25);pointer-events:none}.theme-hackerman .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-hackerman .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-hackerman .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-hackerman .TitleBar{background-color:#223d22;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-hackerman .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#223d22;transition:color .25s,background-color .25s}.theme-hackerman .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-hackerman .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-hackerman .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-hackerman .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-hackerman .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-hackerman .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-hackerman .Layout__content{background-image:none}.theme-hackerman .Button{font-family:monospace;border-width:.1666666667em;border-style:outset;border-color:#0a0;outline:.0833333333em solid #007a00}.theme-hackerman .candystripe:nth-child(odd){background-color:rgba(0,100,0,.5)}.theme-malfunction .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-malfunction .Button:last-child{margin-right:0;margin-bottom:0}.theme-malfunction .Button .fa,.theme-malfunction .Button .fas,.theme-malfunction .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-malfunction .Button--hasContent .fa,.theme-malfunction .Button--hasContent .fas,.theme-malfunction .Button--hasContent .far{margin-right:.25em}.theme-malfunction .Button--hasContent.Button--iconRight .fa,.theme-malfunction .Button--hasContent.Button--iconRight .fas,.theme-malfunction .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-malfunction .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-malfunction .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-malfunction .Button--circular{border-radius:50%}.theme-malfunction .Button--compact{padding:0 .25em;line-height:1.333em}.theme-malfunction .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-malfunction .Button--color--default{transition:color .1s,background-color .1s;background-color:#910101;color:#fff}.theme-malfunction .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--default:hover{background-color:#b31111;color:#fff}.theme-malfunction .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-malfunction .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-malfunction .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-malfunction .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-malfunction .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#1b3443;color:#fff;background-color:rgba(27,52,67,0);color:rgba(255,255,255,.5)}.theme-malfunction .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--transparent:hover{background-color:#2f4b5c;color:#fff}.theme-malfunction .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#1b3443;color:#fff;background-color:rgba(27,52,67,.6);color:rgba(255,255,255,.5)}.theme-malfunction .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--color--translucent:hover{background-color:#2f4b5c;color:#fff}.theme-malfunction .Button--disabled{background-color:#363636!important}.theme-malfunction .Button--selected{transition:color .1s,background-color .1s;background-color:#1e5881;color:#fff}.theme-malfunction .Button--selected:focus{transition:color .25s,background-color .25s}.theme-malfunction .Button--selected:hover{background-color:#3273a1;color:#fff}.theme-malfunction .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-malfunction .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#1a3f57;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-malfunction .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-malfunction .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-malfunction .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-malfunction .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-malfunction .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-malfunction .Input--disabled{color:#777;border-color:#090909;border-color:rgba(9,9,9,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-malfunction .Input--fluid{display:block;width:auto}.theme-malfunction .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-malfunction .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-malfunction .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-malfunction .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-malfunction .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;color:#910101;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-malfunction .NumberInput--fluid{display:block}.theme-malfunction .NumberInput__content{margin-left:.5em}.theme-malfunction .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-malfunction .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #910101;background-color:#910101}.theme-malfunction .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-malfunction .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-malfunction .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-malfunction .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-malfunction .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-malfunction .ProgressBar--color--default{border:.0833333333em solid #7b0101}.theme-malfunction .ProgressBar--color--default .ProgressBar__fill{background-color:#7b0101}.theme-malfunction .ProgressBar--color--disabled{border:1px solid #363636}.theme-malfunction .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-malfunction .Section{position:relative;margin-bottom:.5em;background-color:#12232d;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-malfunction .Section:last-child{margin-bottom:0}.theme-malfunction .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #910101}.theme-malfunction .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-malfunction .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-malfunction .Section__rest{position:relative}.theme-malfunction .Section__content{padding:.66em .5em}.theme-malfunction .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-malfunction .Section--fill{display:flex;flex-direction:column;height:100%}.theme-malfunction .Section--fill>.Section__rest{flex-grow:1}.theme-malfunction .Section--fill>.Section__rest>.Section__content{height:100%}.theme-malfunction .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-malfunction .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-malfunction .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-malfunction .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-malfunction .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-malfunction .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-malfunction .Section .Section:first-child{margin-top:-.5em}.theme-malfunction .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-malfunction .Section .Section .Section .Section__titleText{font-size:1em}.theme-malfunction .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#235577;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-malfunction .Layout,.theme-malfunction .Layout *{scrollbar-base-color:#142732;scrollbar-face-color:#274b61;scrollbar-3dlight-color:#1b3443;scrollbar-highlight-color:#1b3443;scrollbar-track-color:#142732;scrollbar-arrow-color:#6ba2c3;scrollbar-shadow-color:#274b61}.theme-malfunction .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-malfunction .Layout__content--flexRow{display:flex;flex-flow:row}.theme-malfunction .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-malfunction .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-malfunction .Layout__content--noMargin{margin:0}.theme-malfunction .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1b3443;background-image:linear-gradient(to bottom,#244559,#12232d)}.theme-malfunction .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-malfunction .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-malfunction .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-malfunction .Window__contentPadding:after{height:0}.theme-malfunction .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-malfunction .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(50,79,96,.25);pointer-events:none}.theme-malfunction .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-malfunction .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-malfunction .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-malfunction .TitleBar{background-color:#1a3f57;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-malfunction .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#1a3f57;transition:color .25s,background-color .25s}.theme-malfunction .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-malfunction .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-malfunction .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-malfunction .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-malfunction .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-malfunction .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-malfunction .Layout__content{background-image:none}.theme-ntos .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-ntos .Button:last-child{margin-right:0;margin-bottom:0}.theme-ntos .Button .fa,.theme-ntos .Button .fas,.theme-ntos .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-ntos .Button--hasContent .fa,.theme-ntos .Button--hasContent .fas,.theme-ntos .Button--hasContent .far{margin-right:.25em}.theme-ntos .Button--hasContent.Button--iconRight .fa,.theme-ntos .Button--hasContent.Button--iconRight .fas,.theme-ntos .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-ntos .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-ntos .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-ntos .Button--circular{border-radius:50%}.theme-ntos .Button--compact{padding:0 .25em;line-height:1.333em}.theme-ntos .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-ntos .Button--color--default{transition:color .1s,background-color .1s;background-color:#384e68;color:#fff}.theme-ntos .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--default:hover{background-color:#4f6885;color:#fff}.theme-ntos .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-ntos .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#1f2b39;color:#fff;background-color:rgba(31,43,57,0);color:rgba(227,240,255,.75)}.theme-ntos .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--transparent:hover{background-color:#334151;color:#fff}.theme-ntos .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#1f2b39;color:#fff;background-color:rgba(31,43,57,.6);color:rgba(227,240,255,.75)}.theme-ntos .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--translucent:hover{background-color:#334151;color:#fff}.theme-ntos .Button--disabled{background-color:#999!important}.theme-ntos .Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-ntos .Button--selected:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--selected:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-ntos .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-ntos .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-ntos .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-ntos .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-ntos .ProgressBar--color--default{border:.0833333333em solid #384e68}.theme-ntos .ProgressBar--color--default .ProgressBar__fill{background-color:#384e68}.theme-ntos .ProgressBar--color--disabled{border:1px solid #999}.theme-ntos .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-ntos .Section{position:relative;margin-bottom:.5em;background-color:#151d26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-ntos .Section:last-child{margin-bottom:0}.theme-ntos .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-ntos .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-ntos .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-ntos .Section__rest{position:relative}.theme-ntos .Section__content{padding:.66em .5em}.theme-ntos .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-ntos .Section--fill{display:flex;flex-direction:column;height:100%}.theme-ntos .Section--fill>.Section__rest{flex-grow:1}.theme-ntos .Section--fill>.Section__rest>.Section__content{height:100%}.theme-ntos .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-ntos .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-ntos .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-ntos .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-ntos .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-ntos .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-ntos .Section .Section:first-child{margin-top:-.5em}.theme-ntos .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-ntos .Section .Section .Section .Section__titleText{font-size:1em}.theme-ntos .Layout,.theme-ntos .Layout *{scrollbar-base-color:#17202b;scrollbar-face-color:#2e3f55;scrollbar-3dlight-color:#1f2b39;scrollbar-highlight-color:#1f2b39;scrollbar-track-color:#17202b;scrollbar-arrow-color:#7693b5;scrollbar-shadow-color:#2e3f55}.theme-ntos .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-ntos .Layout__content--flexRow{display:flex;flex-flow:row}.theme-ntos .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-ntos .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-ntos .Layout__content--noMargin{margin:0}.theme-ntos .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1f2b39;background-image:linear-gradient(to bottom,#223040,#1b2633)}.theme-ntos .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-ntos .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-ntos .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-ntos .Window__contentPadding:after{height:0}.theme-ntos .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-ntos .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,69,85,.25);pointer-events:none}.theme-ntos .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-ntos .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-ntos .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-ntos .TitleBar{background-color:#2a3b4e;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-ntos .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#2a3b4e;transition:color .25s,background-color .25s}.theme-ntos .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-ntos .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-ntos .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-ntos .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-ntos .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-ntos .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-paper .Tabs--fill{height:100%}.theme-paper .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-paper .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-paper .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-paper .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-paper .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-paper .Tabs--horizontal:last-child{margin-bottom:0}.theme-paper .Tabs__Tab{flex-grow:0}.theme-paper .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-paper .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-paper .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-paper .Tab--selected{background-color:rgba(255,255,255,.125);color:#fafafa}.theme-paper .Tab__text{flex-grow:1;margin:0 .5em}.theme-paper .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-paper .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-paper .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-paper .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #f9f9f9}.theme-paper .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-paper .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #f9f9f9}.theme-paper .Section{position:relative;margin-bottom:.5em;background-color:#e6e6e6;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-paper .Section:last-child{margin-bottom:0}.theme-paper .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-paper .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#000}.theme-paper .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-paper .Section__rest{position:relative}.theme-paper .Section__content{padding:.66em .5em}.theme-paper .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paper .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paper .Section--fill>.Section__rest{flex-grow:1}.theme-paper .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paper .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paper .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-paper .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-paper .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paper .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paper .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-paper .Section .Section:first-child{margin-top:-.5em}.theme-paper .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paper .Section .Section .Section .Section__titleText{font-size:1em}.theme-paper .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paper .Button:last-child{margin-right:0;margin-bottom:0}.theme-paper .Button .fa,.theme-paper .Button .fas,.theme-paper .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-paper .Button--hasContent .fa,.theme-paper .Button--hasContent .fas,.theme-paper .Button--hasContent .far{margin-right:.25em}.theme-paper .Button--hasContent.Button--iconRight .fa,.theme-paper .Button--hasContent.Button--iconRight .fas,.theme-paper .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-paper .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paper .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paper .Button--circular{border-radius:50%}.theme-paper .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paper .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-paper .Button--color--default{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000}.theme-paper .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-paper .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-paper .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-paper .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-paper .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-paper .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#fff;color:#000;background-color:rgba(255,255,255,0);color:rgba(0,0,0,.5)}.theme-paper .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--transparent:hover{background-color:#fff;color:#000}.theme-paper .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#fff;color:#000;background-color:rgba(255,255,255,.6);color:rgba(0,0,0,.5)}.theme-paper .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-paper .Button--color--translucent:hover{background-color:#fff;color:#000}.theme-paper .Button--disabled{background-color:#363636!important}.theme-paper .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-paper .Button--selected:focus{transition:color .25s,background-color .25s}.theme-paper .Button--selected:hover{background-color:#c11919;color:#fff}.theme-paper .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-paper .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-paper .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-paper .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-paper .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-paper .ProgressBar--color--default{border:.0833333333em solid #bfbfbf}.theme-paper .ProgressBar--color--default .ProgressBar__fill{background-color:#bfbfbf}.theme-paper .ProgressBar--color--disabled{border:1px solid #363636}.theme-paper .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-paper .Layout,.theme-paper .Layout *{scrollbar-base-color:#bfbfbf;scrollbar-face-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-highlight-color:#fff;scrollbar-track-color:#bfbfbf;scrollbar-arrow-color:#fff;scrollbar-shadow-color:#fff}.theme-paper .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-paper .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paper .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paper .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-paper .Layout__content--noMargin{margin:0}.theme-paper .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#fff;background-image:linear-gradient(to bottom,#fff,#fff)}.theme-paper .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paper .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paper .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paper .Window__contentPadding:after{height:0}.theme-paper .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paper .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.25);pointer-events:none}.theme-paper .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paper .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paper .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paper .TitleBar{background-color:#fff;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paper .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#fff;transition:color .25s,background-color .25s}.theme-paper .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paper .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-paper .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paper .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-paper .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paper .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .PaperInput{position:relative;display:inline-block;width:120px;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .PaperInput__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-paper .PaperInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:12px;line-height:17px;height:17px;margin:0;padding:0 6px;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-paper .PaperInput__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .Layout__content{background-image:none}.theme-paper .Window{background-image:none;color:#000}.theme-paper .paper-text input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-text input,.theme-paper .paper-field{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-retro .Button .fa,.theme-retro .Button .fas,.theme-retro .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-retro .Button--hasContent .fa,.theme-retro .Button--hasContent .fas,.theme-retro .Button--hasContent .far{margin-right:.25em}.theme-retro .Button--hasContent.Button--iconRight .fa,.theme-retro .Button--hasContent.Button--iconRight .fas,.theme-retro .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-retro .Button--circular{border-radius:50%}.theme-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-retro .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-retro .Button--color--default{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000}.theme-retro .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-retro .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-retro .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-retro .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-retro .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000;background-color:rgba(232,228,201,0);color:rgba(255,255,255,.5)}.theme-retro .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--transparent:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#e8e4c9;color:#000;background-color:rgba(232,228,201,.6);color:rgba(255,255,255,.5)}.theme-retro .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-retro .Button--color--translucent:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--disabled{background-color:#363636!important}.theme-retro .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-retro .Button--selected:focus{transition:color .25s,background-color .25s}.theme-retro .Button--selected:hover{background-color:#c11919;color:#fff}.theme-retro .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-retro .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-retro .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-retro .ProgressBar--color--disabled{border:1px solid #999}.theme-retro .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-retro .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-retro .Section:last-child{margin-bottom:0}.theme-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-retro .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-retro .Section__rest{position:relative}.theme-retro .Section__content{padding:.66em .5em}.theme-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-retro .Section--fill>.Section__rest{flex-grow:1}.theme-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-retro .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-retro .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-retro .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-retro .Section .Section:first-child{margin-top:-.5em}.theme-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-retro .Layout,.theme-retro .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-retro .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-retro .Layout__content--noMargin{margin:0}.theme-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#e8e4c9,#e8e4c9)}.theme-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-retro .Window__contentPadding:after{height:0}.theme-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-retro .TitleBar{background-color:#585337;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#585337;transition:color .25s,background-color .25s}.theme-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-retro .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-retro .Button{font-family:monospace;color:#161613;border:.1666666667em outset #e8e4c9;outline:.0833333333em solid #161613}.theme-retro .Layout__content{background-image:none}.theme-safe .Section{position:relative;margin-bottom:.5em;background-color:#b2ae74;box-sizing:border-box}.theme-safe .Section:last-child{margin-bottom:0}.theme-safe .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #3d566b}.theme-safe .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-safe .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-safe .Section__rest{position:relative}.theme-safe .Section__content{padding:.66em .5em}.theme-safe .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-safe .Section--fill{display:flex;flex-direction:column;height:100%}.theme-safe .Section--fill>.Section__rest{flex-grow:1}.theme-safe .Section--fill>.Section__rest>.Section__content{height:100%}.theme-safe .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-safe .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-safe .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-safe .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-safe .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-safe .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-safe .Section .Section:first-child{margin-top:-.5em}.theme-safe .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-safe .Section .Section .Section .Section__titleText{font-size:1em}.theme-safe .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#222b3a;background-image:linear-gradient(to bottom,#242d3d,#202937)}.theme-safe .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-safe .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-safe .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-safe .Window__contentPadding:after{height:0}.theme-safe .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-safe .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(58,69,86,.25);pointer-events:none}.theme-safe .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-safe .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-safe .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-safe .TitleBar{background-color:#35435a;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-safe .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#35435a;transition:color .25s,background-color .25s}.theme-safe .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-safe .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-safe .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-safe .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-safe .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-safe .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-safe .Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.theme-safe .Safe--engraving--arrow{color:#35435a}.theme-safe .Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.theme-safe .Safe--dialer{margin-bottom:.5rem}.theme-safe .Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.theme-safe .Safe--dialer--right .Button i{z-index:-100}.theme-safe .Safe--dialer .Button{width:80px}.theme-safe .Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.theme-safe .Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.theme-safe .Layout__content{background-image:none}.theme-safe .Section{font-family:Comic Sans MS,cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom,#b2ae74,#8e8b5d);transform:rotate(-1deg)}.theme-safe .Section__title{padding-bottom:0;border:0}.theme-safe .Section:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom,transparent 0%,#ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.theme-securestorage .TitleBar{background-color:#e8e4c9;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-securestorage .TitleBar__clickable{color:rgba(25,25,22,.5);background-color:#e8e4c9;transition:color .25s,background-color .25s}.theme-securestorage .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-securestorage .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:#191916;font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-securestorage .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-securestorage .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-securestorage .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-securestorage .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-securestorage .Layout,.theme-securestorage .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-securestorage .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-securestorage .Layout__content--flexRow{display:flex;flex-flow:row}.theme-securestorage .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-securestorage .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-securestorage .Layout__content--noMargin{margin:0}.theme-securestorage .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#f1efde,#dfd9b4)}.theme-securestorage .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-securestorage .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-securestorage .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-securestorage .Window__contentPadding:after{height:0}.theme-securestorage .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-securestorage .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-securestorage .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-securestorage .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-securestorage .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-securestorage .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-securestorage .Section:last-child{margin-bottom:0}.theme-securestorage .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-securestorage .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-securestorage .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-securestorage .Section__rest{position:relative}.theme-securestorage .Section__content{padding:.66em .5em}.theme-securestorage .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-securestorage .Section--fill{display:flex;flex-direction:column;height:100%}.theme-securestorage .Section--fill>.Section__rest{flex-grow:1}.theme-securestorage .Section--fill>.Section__rest>.Section__content{height:100%}.theme-securestorage .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-securestorage .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-securestorage .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-securestorage .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-securestorage .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-securestorage .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-securestorage .Section .Section:first-child{margin-top:-.5em}.theme-securestorage .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-securestorage .Section .Section .Section .Section__titleText{font-size:1em}.theme-securestorage .Layout__content{background-image:none}.theme-security .color-label{color:#b08e8b!important}.theme-security .color-bg-good{background-color:#4d9121!important}.theme-security .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-security .Button:last-child{margin-right:0;margin-bottom:0}.theme-security .Button .fa,.theme-security .Button .fas,.theme-security .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-security .Button--hasContent .fa,.theme-security .Button--hasContent .fas,.theme-security .Button--hasContent .far{margin-right:.25em}.theme-security .Button--hasContent.Button--iconRight .fa,.theme-security .Button--hasContent.Button--iconRight .fas,.theme-security .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-security .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-security .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-security .Button--circular{border-radius:50%}.theme-security .Button--compact{padding:0 .25em;line-height:1.333em}.theme-security .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-security .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-security .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-security .Button--color--default{transition:color .1s,background-color .1s;background-color:#a14c49;color:#fff}.theme-security .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--default:hover{background-color:#bb6f6d;color:#fff}.theme-security .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-security .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-security .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-security .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-security .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5)}.theme-security .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--transparent:hover{background-color:#3a3a3a;color:#fff}.theme-security .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#252525;color:#fff;background-color:rgba(37,37,37,.6);color:rgba(255,255,255,.5)}.theme-security .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-security .Button--color--translucent:hover{background-color:#3a3a3a;color:#fff}.theme-security .Button--disabled{background-color:#999!important}.theme-security .Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-security .Button--selected:focus{transition:color .25s,background-color .25s}.theme-security .Button--selected:hover{background-color:#2fb94f;color:#fff}.theme-security .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-security .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #ff8d88;border:.0833333333em solid rgba(255,141,136,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-security .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-security .Input--fluid{display:block;width:auto}.theme-security .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-security .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-security .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-security .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-security .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-security .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-security .NoticeBox--type--info{color:#fff;background-color:#822329}.theme-security .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-security .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-security .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-security .Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-security .Section:last-child{margin-bottom:0}.theme-security .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #a14c49}.theme-security .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-security .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-security .Section__rest{position:relative}.theme-security .Section__content{padding:.66em .5em}.theme-security .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-security .Section--fill{display:flex;flex-direction:column;height:100%}.theme-security .Section--fill>.Section__rest{flex-grow:1}.theme-security .Section--fill>.Section__rest>.Section__content{height:100%}.theme-security .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-security .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-security .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-security .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-security .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-security .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-security .Section .Section:first-child{margin-top:-.5em}.theme-security .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-security .Section .Section .Section .Section__titleText{font-size:1em}.theme-security .Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.theme-security .Newscaster__menu .Section__content{padding-left:0}.theme-security .Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.theme-security .Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.theme-security .Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.theme-security .Newscaster__menuButton--selected{color:#fff}.theme-security .Newscaster__menuButton--selected:after{content:"";background-color:#a14c49;width:2px;height:24px;position:absolute;left:-6px}.theme-security .Newscaster__menuButton--security{color:#a14c49}.theme-security .Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.theme-security .Newscaster__menuButton:hover{color:#fff}.theme-security .Newscaster__menuButton:hover:before{background-color:#fff}.theme-security .Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.theme-security .Newscaster__menu--open{width:175px}.theme-security .Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.theme-security .Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.theme-security .Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.theme-security .Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.theme-security .Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.theme-security .Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.theme-security .Newscaster__jobCategory:last-child{margin-bottom:.5rem}.theme-security .Newscaster__jobOpening--command{font-weight:700}.theme-security .Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.theme-security .Newscaster__emptyNotice{color:#a7817e;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.theme-security .Newscaster__emptyNotice i{margin-bottom:.25rem}.theme-security .Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor}.theme-security .Newscaster__photo:hover{border-color:gray}.theme-security .Newscaster__photoZoom{text-align:center}.theme-security .Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor}.theme-security .Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.theme-security .Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.theme-security .Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__story:last-child{margin-bottom:.5rem}.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconRight .fa,.theme-syndicate .Button--hasContent.Button--iconRight .fas,.theme-syndicate .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-syndicate .Button--color--default{transition:color .1s,background-color .1s;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--default:hover{background-color:#509350;color:#fff}.theme-syndicate .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-syndicate .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-syndicate .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#550202;color:#fff;background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--transparent:hover{background-color:#701313;color:#fff}.theme-syndicate .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#550202;color:#fff;background-color:rgba(85,2,2,.6);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--translucent:hover{background-color:#701313;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636!important}.theme-syndicate .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--selected:hover{background-color:#c11919;color:#fff}.theme-syndicate .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-syndicate .Input--disabled{color:#777;border-color:#6b6b6b;border-color:rgba(107,107,107,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-syndicate .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-syndicate .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .ProgressBar--color--disabled{border:1px solid #999}.theme-syndicate .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-syndicate .Section .Section:first-child{margin-top:-.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-syndicate .Layout__content--noMargin{margin:0}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom,#730303,#370101)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color .25s,background-color .25s}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDIwMCAyODkuNzQyIiBvcGFjaXR5PSIuMzMiPjxwYXRoIGQ9Im0gOTMuNTM3Njc3LDAgYyAtMTguMTEzMTI1LDAgLTM0LjIyMDEzMywzLjExMTY0IC00OC4zMjM0ODQsOS4zMzQzNyAtMTMuOTY1MDkyLDYuMjIxNjcgLTI0LjYxMjQ0MiwxNS4wNzExNCAtMzEuOTQwNjUxLDI2LjU0NzEgLTcuMTg5OTM5OCwxMS4zMzc4OSAtMTAuMzAxMjI2NiwyNC43NDkxMSAtMTAuMzAxMjI2Niw0MC4yMzQ3OCAwLDEwLjY0NjYyIDIuNzI1MDAyNiwyMC40NjQ2NSA4LjE3NTExMTYsMjkuNDUyNTggNS42MTUyNzcsOC45ODY4NiAxNC4wMzgyNzcsMTcuMzUyMDQgMjUuMjY4ODIxLDI1LjA5NDM2IDExLjIzMDU0NCw3LjYwNTMxIDI2LjUwNzQyMSwxNS40MTgzNSA0NS44MzA1MTQsMjMuNDM3ODIgMTkuOTgzNzQ4LDguMjk1NTcgMzQuODQ4ODQ4LDE1LjU1NDcxIDQ0LjU5Mjk5OCwyMS43NzYzOCA5Ljc0NDE0LDYuMjIyNzMgMTYuNzYxNywxMi44NTg1IDIxLjA1NTcyLDE5LjkwOTUxIDQuMjk0MDQsNy4wNTIwOCA2LjQ0MTkzLDE1Ljc2NDA4IDYuNDQxOTMsMjYuMTM0NTkgMCwxNi4xNzcwMiAtNS4yMDE5NiwyOC40ODIyMiAtMTUuNjA2NzMsMzYuOTE2ODIgLTEwLjIzOTYsOC40MzQ3IC0yNS4wMjIwMywxMi42NTIzIC00NC4zNDUxNjksMTIuNjUyMyAtMTQuMDM4MTcxLDAgLTI1LjUxNTI0NywtMS42NTk0IC0zNC40MzM2MTgsLTQuOTc3NyAtOC45MTgzNywtMy40NTY2IC0xNi4xODU1NzIsLTguNzExMyAtMjEuODAwODM5LC0xNS43NjMzIC01LjYxNTI3NywtNy4wNTIxIC0xMC4wNzQ3OTUsLTE2LjY2MDg4IC0xMy4zNzc4OTksLTI4LjgyODEyIGwgLTI0Ljc3MzE2MjYyOTM5NDUsMCAwLDU2LjgyNjMyIEMgMzMuODU2NzY5LDI4Ni4wNzYwMSA2My43NDkwNCwyODkuNzQyMDEgODkuNjc4MzgzLDI4OS43NDIwMSBjIDE2LjAyMDAyNywwIDMwLjcxOTc4NywtMS4zODI3IDQ0LjA5NzMzNywtNC4xNDc5IDEzLjU0MjcyLC0yLjkwNDMgMjUuMTA0MSwtNy40Njc2IDM0LjY4MzA5LC0xMy42ODkzIDkuNzQ0MTMsLTYuMzU5NyAxNy4zNDA0MiwtMTQuNTE5NSAyMi43OTA1MiwtMjQuNDc0OCA1LjQ1MDEsLTEwLjA5MzMyIDguMTc1MTEsLTIyLjM5OTU5IDguMTc1MTEsLTM2LjkxNjgyIDAsLTEyLjk5NzY0IC0zLjMwMjEsLTI0LjMzNTM5IC05LjkwODI5LC0zNC4wMTQ2IC02LjQ0MTA1LC05LjgxNzI1IC0xNS41MjU0NSwtMTguNTI3MDcgLTI3LjI1MTQ2LC0yNi4xMzEzMyAtMTEuNTYwODUsLTcuNjA0MjcgLTI3LjkxMDgzLC0xNS44MzE0MiAtNDkuMDUwNjYsLTI0LjY4MDIyIC0xNy41MDY0NCwtNy4xOTAxMiAtMzAuNzE5NjY4LC0xMy42ODk0OCAtMzkuNjM4MDM4LC0xOS40OTcwMSAtOC45MTgzNzEsLTUuODA3NTIgLTE4LjYwNzQ3NCwtMTIuNDM0MDkgLTI0LjA5NjUyNCwtMTguODc0MTcgLTUuNDI2MDQzLC02LjM2NjE2IC05LjY1ODgyNiwtMTUuMDcwMDMgLTkuNjU4ODI2LC0yNC44ODcyOSAwLC05LjI2NDAxIDIuMDc1NDE0LC0xNy4yMTM0NSA2LjIyMzQ1NCwtMjMuODUwMzMgMTEuMDk4Mjk4LC0xNC4zOTc0OCA0MS4yODY2MzgsLTEuNzk1MDcgNDUuMDc1NjA5LDI0LjM0NzYyIDQuODM5MzkyLDYuNzc0OTEgOC44NDkzNSwxNi4yNDcyOSAxMi4wMjk1MTUsMjguNDE1NiBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNC40NzgyNSwtNS45MjQ0OCAtOS45NTQ4OCwtMTAuNjMyMjIgLTE1LjkwODM3LC0xNC4zNzQxMSAxLjY0MDU1LDAuNDc5MDUgMy4xOTAzOSwxLjAyMzc2IDQuNjM4NjUsMS42NDAyNCA2LjQ5ODYxLDIuNjI2MDcgMTIuMTY3OTMsNy4zMjc0NyAxNy4wMDczLDE0LjEwMzQ1IDQuODM5MzksNi43NzQ5MSA4Ljg0OTM1LDE2LjI0NTY3IDEyLjAyOTUyLDI4LjQxMzk3IDAsMCA4LjQ4MTI4LC0wLjEyODk0IDguNDg5NzgsLTAuMDAyIDAuNDE3NzYsNi40MTQ5NCAtMS43NTMzOSw5LjQ1Mjg2IC00LjEyMzQyLDEyLjU2MTA0IC0yLjQxNzQsMy4xNjk3OCAtNS4xNDQ4Niw2Ljc4OTczIC00LjAwMjc4LDEzLjAwMjkgMS41MDc4Niw4LjIwMzE4IDEwLjE4MzU0LDEwLjU5NjQyIDE0LjYyMTk0LDkuMzExNTQgLTMuMzE4NDIsLTAuNDk5MTEgLTUuMzE4NTUsLTEuNzQ5NDggLTUuMzE4NTUsLTEuNzQ5NDggMCwwIDEuODc2NDYsMC45OTg2OCA1LjY1MTE3LC0xLjM1OTgxIC0zLjI3Njk1LDAuOTU1NzEgLTEwLjcwNTI5LC0wLjc5NzM4IC0xMS44MDEyNSwtNi43NjMxMyAtMC45NTc1MiwtNS4yMDg2MSAwLjk0NjU0LC03LjI5NTE0IDMuNDAxMTMsLTEwLjUxNDgyIDIuNDU0NjIsLTMuMjE5NjggNS4yODQyNiwtNi45NTgzMSA0LjY4NDMsLTE0LjQ4ODI0IGwgMC4wMDMsMC4wMDIgOC45MjY3NiwwIDAsLTU1Ljk5OTY3IGMgLTE1LjA3MTI1LC0zLjg3MTY4IC0yNy42NTMxNCwtNi4zNjA0MiAtMzcuNzQ2NzEsLTcuNDY1ODYgLTkuOTU1MzEsLTEuMTA3NTUgLTIwLjE4ODIzLC0xLjY1OTgxIC0zMC42OTY2MTMsLTEuNjU5ODEgeiBtIDcwLjMyMTYwMywxNy4zMDg5MyAwLjIzODA1LDQwLjMwNDkgYyAxLjMxODA4LDEuMjI2NjYgMi40Mzk2NSwyLjI3ODE1IDMuMzQwODEsMy4xMDYwMiA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNCwxNi4yNDU2NiAxMi4wMjk1MSwyOC40MTM5NyBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNi42NzczMSwtNC41OTM4MSAtMTkuODM2NDMsLTEwLjQ3MzA5IC0zNi4xNDA3MSwtMTUuODI1MjIgeiBtIC0yOC4xMjA0OSw1LjYwNTUxIDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzcsLTYuNDY2OTcgLTEzLjg0Njc4LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDUsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gMTUuMjIxOTUsMjQuMDA4NDggOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzOCwtNi40NjY5NyAtMTMuODQ2NzksLTkuNzE3MjYgLTguNTY0NzksLTE3LjcxNjU1IHogbSAyMi43OTcwNCwwIGMgMi43NzE1LDcuOTk5MjkgMS43ODc0MSwxMS4yNDk1OCAtNC40OTM1NCwxNy43MTY1NSBsIDQuNDkzNTQsLTE3LjcxNjU1IHogbSAtOTkuMTEzODQsMi4yMDc2NCA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM4MiwtNi40NjY5NyAtMTMuODQ2NzgyLC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk1NDIsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IiAvPjwvc3ZnPjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4=)}.theme-syndicate .candystripe:nth-child(odd){background-color:rgba(0,0,0,.4)}.theme-syndicate .candystripe:nth-child(2n){background-color:rgba(0,0,0,.25)}.theme-nologo .Layout__content{background-image:none} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index e6cef39869e7..08c70655cc1d 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var $t={15113:function(I,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=p(n(28770)),a=p(n(12866)),t=p(n(88577)),o=p(n(29727)),f=p(n(13657)),N=p(n(97902)),k=p(n(57547)),S=p(n(4709));r.detectOverflow=S.default;var y=n(65601);function p(d){return d&&d.__esModule?d:{default:d}}var i={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,u=new Array(d),s=0;s0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,l=m.visualViewport,d=!(0,o.default)()&&y,u=(p.left+(d&&l?l.offsetLeft:0))/i,s=(p.top+(d&&l?l.offsetTop:0))/c,C=p.width/i,g=p.height/c;return{width:C,height:g,top:s,right:u+C,bottom:s+g,left:u,x:u,y:s}}},98310:function(I,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=d(n(63064)),t=d(n(16940)),o=d(n(88577)),f=d(n(29727)),N=d(n(9252)),k=d(n(75663)),S=n(65601),y=d(n(83199)),p=d(n(16292)),i=d(n(11848)),c=d(n(1707)),m=d(n(21194)),l=n(79257);function d(v){return v&&v.__esModule?v:{default:v}}function u(v,h){var V=(0,y.default)(v,!1,h==="fixed");return V.top=V.top+v.clientTop,V.left=V.left+v.clientLeft,V.bottom=V.top+v.clientHeight,V.right=V.left+v.clientWidth,V.width=v.clientWidth,V.height=v.clientHeight,V.x=V.left,V.y=V.top,V}function s(v,h,V){return h===e.viewport?(0,m.default)((0,a.default)(v,V)):(0,S.isElement)(h)?u(h,V):(0,m.default)((0,t.default)((0,N.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),V=["absolute","fixed"].indexOf((0,k.default)(v).position)>=0,b=V&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,i.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(v,h,V,b){var B=h==="clippingParents"?C(v):[].concat(h),L=[].concat(B,[V]),w=L[0],T=L.reduce(function(A,x){var E=s(v,x,b);return A.top=(0,l.max)(E.top,A.top),A.right=(0,l.min)(E.right,A.right),A.bottom=(0,l.min)(E.bottom,A.bottom),A.left=(0,l.max)(E.left,A.left),A},s(v,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=y(n(83199)),a=y(n(3107)),t=y(n(1707)),o=n(65601),f=y(n(94889)),N=y(n(9252)),k=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),l=(0,S.round)(m.width)/c.offsetWidth||1,d=(0,S.round)(m.height)/c.offsetHeight||1;return l!==1||d!==1}function i(c,m,l){l===void 0&&(l=!1);var d=(0,o.isHTMLElement)(m),u=(0,o.isHTMLElement)(m)&&p(m),s=(0,N.default)(m),C=(0,e.default)(c,u,l),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!l)&&(((0,t.default)(m)!=="body"||(0,k.default)(s))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):s&&(v.x=(0,f.default)(s))),{x:C.left+g.scrollLeft-v.x,y:C.top+g.scrollTop-v.y,width:C.width,height:C.height}}},75663:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(I,r,n){"use strict";r.__esModule=!0,r.default=k;var e=N(n(9252)),a=N(n(75663)),t=N(n(94889)),o=N(n(42532)),f=n(79257);function N(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),i=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(S),u=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:d,y:u}}},89741:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-N)<=1&&(N=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:k}}},1707:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(I,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(k){return k&&k.__esModule?k:{default:k}}function N(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},29727:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),f=S(n(36875)),N=S(n(16292)),k=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),l=/Trident/i.test((0,k.default)());if(l&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var u=(0,N.default)(c);for((0,o.isShadowRoot)(u)&&(u=u.host);(0,o.isHTMLElement)(u)&&["html","body"].indexOf((0,a.default)(u))<0;){var s=(0,t.default)(u);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||m&&s.willChange==="filter"||m&&s.filter&&s.filter!=="none")return u;u=u.parentNode}return null}function i(c){for(var m=(0,e.default)(c),l=y(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=y(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||p(c)||m}},16292:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)(N)==="html"?N:N.assignedSlot||N.parentNode||((0,t.isShadowRoot)(N)?N.host:null)||(0,a.default)(N)}},87899:function(I,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(k){return k&&k.__esModule?k:{default:k}}function N(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:N((0,e.default)(k))}},63064:function(I,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function N(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),i=y.visualViewport,c=p.clientWidth,m=p.clientHeight,l=0,d=0;if(i){c=i.width,m=i.height;var u=(0,o.default)();(u||!u&&S==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(k),y:d}}},44901:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},42532:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:N,scrollTop:k}}},94889:function(I,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)((0,a.default)(N)).left+(0,t.default)(N).scrollLeft}},65601:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}function t(N){var k=(0,e.default)(N).Element;return N instanceof k||N instanceof Element}function o(N){var k=(0,e.default)(N).HTMLElement;return N instanceof k||N instanceof HTMLElement}function f(N){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(N).ShadowRoot;return N instanceof k||N instanceof ShadowRoot}},95294:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+k)}},36875:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(I,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(k){return k&&k.__esModule?k:{default:k}}function N(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),i=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=S.concat(m);return i?l:l.concat(N((0,a.default)(m)))}},37802:function(I,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],N=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,L){return B.concat([L+"-"+N,L+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,L){return B.concat([L,L+"-"+N,L+"-"+k])},[]),l=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",C=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",V=r.afterWrite="afterWrite",b=r.modifierPhases=[l,d,u,s,C,g,v,h,V]},60028:function(I,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(37802);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(16055);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(98420);r.createPopper=f.createPopper;var N=n(22008);r.createPopperLite=N.createPopper},20637:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},i=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(m){var l=i[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(p){var i=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),l=m.reduce(function(d,u){return d[u]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var N=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),f=p(n(26608)),N=n(87415),k=p(n(41e3)),S=p(n(62605)),y=n(37802);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(u,s){return u=typeof u=="function"?u(Object.assign({},s.rects,{placement:s.placement})):u,(0,k.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,C=d.name,g=d.options,v=s.elements.arrow,h=s.modifiersData.popperOffsets,V=(0,e.default)(s.placement),b=(0,f.default)(V),B=[y.left,y.right].indexOf(V)>=0,L=B?"height":"width";if(!(!v||!h)){var w=i(g.padding,s),T=(0,a.default)(v),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=s.rects.reference[L]+s.rects.reference[b]-h[b]-s.rects.popper[L],P=h[b]-s.rects.reference[b],R=(0,o.default)(v),M=R?b==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-P/2,j=w[A],W=M-T[L]-w[x],U=M/2-T[L]/2+D,K=(0,N.within)(j,U,W),$=b;s.modifiersData[C]=(u={},u[$]=K,u.centerOffset=K-U,u)}}function m(d){var u=d.state,s=d.options,C=s.element,g=C===void 0?"[data-popper-arrow]":C;g!=null&&(typeof g=="string"&&(g=u.elements.popper.querySelector(g),!g)||(0,t.default)(u.elements.popper,g)&&(u.elements.arrow=g))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=y(n(29727)),t=y(n(44901)),o=y(n(9252)),f=y(n(75663)),N=y(n(16275)),k=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,u){var s=d.x,C=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(C*g)/g||0}}function c(d){var u,s=d.popper,C=d.popperRect,g=d.placement,v=d.variation,h=d.offsets,V=d.position,b=d.gpuAcceleration,B=d.adaptive,L=d.roundOffsets,w=d.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,P=typeof L=="function"?L({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var R=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),D=e.left,j=e.top,W=window;if(B){var U=(0,a.default)(s),K="clientHeight",$="clientWidth";if(U===(0,t.default)(s)&&(U=(0,o.default)(s),(0,f.default)(U).position!=="static"&&V==="absolute"&&(K="scrollHeight",$="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var z=w&&U===W&&W.visualViewport?W.visualViewport.height:U[K];E-=z-C.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var Y=w&&U===W&&W.visualViewport?W.visualViewport.width:U[$];A-=Y-C.width,A*=b?1:-1}}var H=Object.assign({position:V},B&&p),Q=L===!0?i({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=Q.x,E=Q.y,b){var re;return Object.assign({},H,(re={},re[j]=M?"0":"",re[D]=R?"0":"",re.transform=(W.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",re))}return Object.assign({},H,(u={},u[j]=M?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,C=s.gpuAcceleration,g=C===void 0?!0:C,v=s.adaptive,h=v===void 0?!0:v,V=s.roundOffsets,b=V===void 0?!0:V,B={placement:(0,N.default)(u.placement),variation:(0,k.default)(u.placement),popper:u.elements.popper,popperRect:u.rects.popper,gpuAcceleration:g,isFixed:u.options.strategy==="fixed"};u.modifiersData.popperOffsets!=null&&(u.styles.popper=Object.assign({},u.styles.popper,c(Object.assign({},B,{offsets:u.modifiersData.popperOffsets,position:u.options.strategy,adaptive:h,roundOffsets:b})))),u.modifiersData.arrow!=null&&(u.styles.arrow=Object.assign({},u.styles.arrow,c(Object.assign({},B,{offsets:u.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-placement":u.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},21068:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}var t={passive:!0};function o(N){var k=N.state,S=N.instance,y=N.options,p=y.scroll,i=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,l=(0,e.default)(k.elements.popper),d=[].concat(k.scrollParents.reference,k.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",S.update,t)}),m&&l.addEventListener("resize",S.update,t),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",S.update,t)}),m&&l.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function N(){}return N}(),effect:o,data:{}}},51825:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),f=S(n(36705)),N=n(37802),k=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===N.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,l=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var u=l.mainAxis,s=u===void 0?!0:u,C=l.altAxis,g=C===void 0?!0:C,v=l.fallbackPlacements,h=l.padding,V=l.boundary,b=l.rootBoundary,B=l.altBoundary,L=l.flipVariations,w=L===void 0?!0:L,T=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(P).reduce(function(ce,q){return ce.concat((0,a.default)(q)===N.auto?(0,f.default)(m,{placement:q,boundary:V,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=m.rects.reference,D=m.rects.popper,j=new Map,W=!0,U=R[0],K=0;K=0,Q=H?"width":"height",re=(0,o.default)(m,{placement:$,boundary:V,rootBoundary:b,altBoundary:B,padding:h}),ae=H?Y?N.right:N.left:Y?N.bottom:N.top;M[Q]>D[Q]&&(ae=(0,e.default)(ae));var de=(0,e.default)(ae),ve=[];if(s&&ve.push(re[z]<=0),g&&ve.push(re[ae]<=0,re[de]<=0),ve.every(function(ce){return ce})){U=$,W=!1;break}j.set($,ve)}if(W)for(var ye=w?3:1,Le=function(){function ce(q){var se=R.find(function(me){var te=j.get(me);if(te)return te.slice(0,q).every(function(be){return be})});if(se)return U=se,"break"}return ce}(),pe=ye;pe>0;pe--){var ne=Le(pe);if(ne==="break")break}m.placement!==U&&(m.modifiersData[d]._skip=!0,m.placement=U,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function N(S){var y=S.state,p=S.name,i=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,l=(0,a.default)(y,{elementContext:"reference"}),d=(0,a.default)(y,{altBoundary:!0}),u=o(l,i),s=o(d,c,m),C=f(u),g=f(s);y.modifiersData[p]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:C,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},16055:function(I,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var f=p(n(51825));r.flip=f.default;var N=p(n(44677));r.hide=N.default;var k=p(n(34331));r.offset=k.default;var S=p(n(56154));r.popperOffsets=S.default;var y=p(n(69770));r.preventOverflow=y.default;function p(i){return i&&i.__esModule?i:{default:i}}},34331:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],l=c[1];return m=m||0,l=(l||0)*i,[a.left,a.right].indexOf(p)>=0?{x:l,y:m}:{x:m,y:l}}function f(k){var S=k.state,y=k.options,p=k.name,i=y.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(s,C){return s[C]=o(C,S.rects,c),s},{}),l=m[S.placement],d=l.x,u=l.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=d,S.modifiersData.popperOffsets.y+=u),S.modifiersData[p]=m}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var N=f.state,k=f.name;N.modifiersData[k]=(0,e.default)({reference:N.rects.reference,element:N.rects.popper,strategy:"absolute",placement:N.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),f=n(87415),N=c(n(12866)),k=c(n(29727)),S=c(n(4709)),y=c(n(56918)),p=c(n(26143)),i=n(79257);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var u=d.state,s=d.options,C=d.name,g=s.mainAxis,v=g===void 0?!0:g,h=s.altAxis,V=h===void 0?!1:h,b=s.boundary,B=s.rootBoundary,L=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(u,{boundary:b,rootBoundary:B,padding:w,altBoundary:L}),R=(0,a.default)(u.placement),M=(0,y.default)(u.placement),D=!M,j=(0,t.default)(R),W=(0,o.default)(j),U=u.modifiersData.popperOffsets,K=u.rects.reference,$=u.rects.popper,z=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,Y=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,Q={x:0,y:0};if(U){if(v){var re,ae=j==="y"?e.top:e.left,de=j==="y"?e.bottom:e.right,ve=j==="y"?"height":"width",ye=U[j],Le=ye+P[ae],pe=ye-P[de],ne=A?-$[ve]/2:0,ce=M===e.start?K[ve]:$[ve],q=M===e.start?-$[ve]:-K[ve],se=u.elements.arrow,me=A&&se?(0,N.default)(se):{width:0,height:0},te=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=te[ae],fe=te[de],ge=(0,f.within)(0,K[ve],me[ve]),ke=D?K[ve]/2-ne-ge-be-Y.mainAxis:ce-ge-be-Y.mainAxis,Ce=D?-K[ve]/2+ne+ge+fe+Y.mainAxis:q+ge+fe+Y.mainAxis,Se=u.elements.arrow&&(0,k.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(re=H==null?void 0:H[j])!=null?re:0,Oe=ye+ke-xe-we,We=ye+Ce-xe,Ve=(0,f.within)(A?(0,i.min)(Le,Oe):Le,ye,A?(0,i.max)(pe,We):pe);U[j]=Ve,Q[j]=Ve-ye}if(V){var oe,le=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,ue=U[W],Ne=W==="y"?"height":"width",Ae=ue+P[le],De=ue-P[he],je=[e.top,e.left].indexOf(R)!==-1,Ke=(oe=H==null?void 0:H[W])!=null?oe:0,Ue=je?Ae:ue-K[Ne]-$[Ne]-Ke+Y.altAxis,_e=je?ue+K[Ne]+$[Ne]-Ke-Y.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(Ue,ue,_e):(0,f.within)(A?Ue:Ae,ue,A?_e:De);U[W]=Ge,Q[W]=Ge-ue}u.modifiersData[C]=Q}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=N(n(21068)),t=N(n(56154)),o=N(n(85445)),f=N(n(20637));function N(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},98420:function(I,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(21068)),o=l(n(56154)),f=l(n(85445)),N=l(n(20637)),k=l(n(34331)),S=l(n(51825)),y=l(n(69770)),p=l(n(11106)),i=l(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var m=n(16055);Object.keys(m).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(e,s)||s in r&&r[s]===m[s]||(r[s]=m[s])});function l(s){return s&&s.__esModule?s:{default:s}}var d=r.defaultModifiers=[t.default,o.default,f.default,N.default,k.default,S.default,y.default,p.default,i.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(I,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(k){return k&&k.__esModule?k:{default:k}}function N(k,S){S===void 0&&(S={});var y=S,p=y.placement,i=y.boundary,c=y.rootBoundary,m=y.padding,l=y.flipVariations,d=y.allowedAutoPlacements,u=d===void 0?a.placements:d,s=(0,e.default)(p),C=s?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===s}):a.basePlacements,g=C.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=C);var v=g.reduce(function(h,V){return h[V]=(0,t.default)(k,{placement:V,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(V)],h},{});return Object.keys(v).sort(function(h,V){return v[h]-v[V]})}},49306:function(I,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(k){return k&&k.__esModule?k:{default:k}}function N(k){var S=k.reference,y=k.element,p=k.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-y.width/2,l=S.y+S.height/2-y.height/2,d;switch(i){case o.top:d={x:m,y:S.y-y.height};break;case o.bottom:d={x:m,y:S.y+S.height};break;case o.right:d={x:S.x+S.width,y:l};break;case o.left:d={x:S.x-y.width,y:l};break;default:d={x:S.x,y:S.y}}var u=i?(0,t.default)(i):null;if(u!=null){var s=u==="y"?"height":"width";switch(c){case o.start:d[u]=d[u]-(S[s]/2-y[s]/2);break;case o.end:d[u]=d[u]+(S[s]/2-y[s]/2);break;default:}}return d}},97902:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},4709:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),f=p(n(21194)),N=n(37802),k=n(65601),S=p(n(41e3)),y=p(n(62605));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var l=m,d=l.placement,u=d===void 0?c.placement:d,s=l.strategy,C=s===void 0?c.strategy:s,g=l.boundary,v=g===void 0?N.clippingParents:g,h=l.rootBoundary,V=h===void 0?N.viewport:h,b=l.elementContext,B=b===void 0?N.popper:b,L=l.altBoundary,w=L===void 0?!1:L,T=l.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,N.basePlacements)),E=B===N.popper?N.reference:N.popper,P=c.rects.popper,R=c.elements[w?E:B],M=(0,e.default)((0,k.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,V,C),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:P,strategy:"absolute",placement:u}),W=(0,f.default)(Object.assign({},P,j)),U=B===N.popper?W:D,K={top:M.top-U.top+x.top,bottom:U.bottom-M.bottom+x.bottom,left:M.left-U.left+x.left,right:U.right-M.right+x.right},$=c.modifiersData.offset;if(B===N.popper&&$){var z=$[u];Object.keys(K).forEach(function(Y){var H=[N.right,N.bottom].indexOf(Y)>=0?1:-1,Q=[N.top,N.bottom].indexOf(Y)>=0?"y":"x";K[Y]+=z[Q]*H})}return K}},62605:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},15022:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},56918:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(I,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},57547:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},41e3:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,N=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){N.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(i){if(!N.has(i)){var c=f.get(i);c&&S(c)}}),k.push(y)}return o.forEach(function(y){N.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(N,k){return N.concat(f.filter(function(S){return S.phase===k}))},[])}},21194:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},88492:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},87415:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,N){return(0,e.max)(o,(0,e.min)(f,N))}function t(o,f,N){var k=a(o,f,N);return k>N?N:k}},60208:function(I,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Le,r._M=He,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=K,r.createFragment=z,r.createPortal=ae,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=$,r.createVNode=D,r.directClone=Q,r.findDOMfromVNode=V,r.forwardRef=Xt,r.getFlagsForElementVnode=ve,r.linkEvent=p,r.normalizeProps=Y,r.options=void 0,r.render=Wt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(O){var F=typeof O;return F==="string"||F==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function N(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function y(O,F){var _={};if(O)for(var G in O)_[G]=O[G];if(F)for(var J in F)_[J]=F[J];return _}function p(O,F){return o(F)?{data:O,event:F}:null}function i(O){return!k(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function l(O){return O.substr(2).toLowerCase()}function d(O,F){O.appendChild(F)}function u(O,F,_){k(_)?d(O,F):O.insertBefore(F,_)}function s(O,F){return F?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function C(O,F,_){O.replaceChild(F,_)}function g(O,F){O.removeChild(F)}function v(O){for(var F=0;F0,Be=k(ie),Ie=f(ie)&&ie[0]===R;Te||Be||Ie?(_=_||F.slice(0,Z),(Te||Ie)&&(ee=Q(ee)),(Be||Ie)&&(ee.key=R+Z),_.push(ee)):_&&_.push(ee),ee.flags|=65536}}_=_||F,_.length===0?G=1:G=8}else _=F,_.flags|=65536,F.flags&81920&&(_=Q(F)),G=2;return O.children=_,O.childFlags=G,O}function Le(O){return t(O)||e(O)?$(O,null):n(O)?z(O,0,null):O.flags&16384?Q(O):O}var pe="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",ce={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var se=q(0),me=q(null),te=q(!0);function be(O,F){var _=F.$EV;return _||(_=F.$EV=q(null)),_[O]||++se[O]===1&&(me[O]=oe(O)),_}function fe(O,F){var _=F.$EV;_&&_[O]&&(--se[O]===0&&(document.removeEventListener(l(O),me[O]),me[O]=null),_[O]=null)}function ge(O,F,_,G){if(o(_))be(O,G)[O]=_;else if(i(_)){if(x(F,_))return;be(O,G)[O]=_}else fe(O,G)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ce(O,F,_,G){var J=ke(O);do{if(F&&J.disabled)return;var Z=J.$EV;if(Z){var ee=Z[_];if(ee&&(G.dom=J,ee.event?ee.event(ee.data,O):ee(O),O.cancelBubble))return}J=J.parentNode}while(!k(J))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var F={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function _(){return F.dom}return _}()}),F}function We(O){return function(F){if(F.button!==0){F.stopPropagation();return}Ce(F,!0,O,Oe(F))}}function Ve(O){return function(F){Ce(F,!1,O,Oe(F))}}function oe(O){var F=O==="onClick"||O==="onDblClick"?We(O):Ve(O);return document.addEventListener(l(O),F),F}function le(O,F){var _=document.createElement("i");return _.innerHTML=F,_.innerHTML===O.innerHTML}function he(O,F,_){if(O[F]){var G=O[F];G.event?G.event(G.data,_):G(_)}else{var J=F.toLowerCase();O[J]&&O[J](_)}}function ue(O,F){var _=function(J){var Z=this.$V;if(Z){var ee=Z.props||c,ie=Z.dom;if(f(O))he(ee,O,J);else for(var Te=0;Te-1&&F.options[Z]&&(ie=F.options[Z].value),_&&a(ie)&&(ie=O.defaultValue),Ge(G,ie)}}var Bt=ue("onInput",pt),Lt=ue("onChange");function It(O,F){Ne(O,"input",Bt),F.onChange&&Ne(O,"change",Lt)}function pt(O,F,_){var G=O.value,J=F.value;if(a(G)){if(_){var Z=O.defaultValue;!a(Z)&&Z!==J&&(F.defaultValue=Z,F.value=Z)}}else J!==G&&(F.defaultValue=G,F.value=G)}function wt(O,F,_,G,J,Z){O&64?_e(G,_):O&256?ft(G,_,J,F):O&128&&pt(G,_,J),Z&&(_.$V=F)}function Gt(O,F,_){O&64?Ue(F,_):O&256?St(F):O&128&&It(F,_)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!P(O,null)&&O.current&&(O.current=null)}function ot(O,F,_){O&&(o(O)||O.current!==void 0)&&_.push(function(){!P(O,F)&&O.current!==void 0&&(O.current=F)})}function Xe(O,F){Je(O),b(O,F)}function Je(O){var F=O.flags,_=O.children,G;if(F&481){G=O.ref;var J=O.props;lt(G);var Z=O.childFlags;if(!k(J))for(var ee=Object.keys(J),ie=0,Te=ee.length;ie0;ee&&(Z=Tt(_),Z&&Gt(F,G,_));for(var ie in _)ht(ie,null,_[ie],G,J,Z,null);ee&&wt(F,O,G,_,!0,Z)}function At(O,F,_){var G=Le(O.render(F,O.state,_)),J=_;return o(O.getChildContext)&&(J=y(_,O.getChildContext())),O.$CX=J,G}function Et(O,F,_,G,J,Z){var ee=new F(_,G),ie=ee.$N=!!(F.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=J,ee.$L=Z,O.children=ee,ee.$BS=!1,ee.context=G,ee.props===c&&(ee.props=_),ie)ee.state=L(ee,_,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Be=ee.state;if(k(Be))ee.state=Te;else for(var Ie in Te)Be[Ie]=Te[Ie];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,_,G),ee}function vt(O,F){var _=O.props||c;return O.flags&32768?O.type.render(_,O.ref,F):O.type(_,F)}function He(O,F,_,G,J,Z){var ee=O.flags|=16384;ee&481?Pt(O,F,_,G,J,Z):ee&4?nn(O,F,_,G,J,Z):ee&8?(on(O,F,_,G,J,Z),Rt(O,Z)):ee&512||ee&16?Mt(O,F,J):ee&8192?tn(O,_,F,G,J,Z):ee&1024&&en(O,_,F,J,Z)}function en(O,F,_,G,J){He(O.children,O.ref,F,!1,null,J);var Z=re();Mt(Z,_,G),O.dom=Z.dom}function tn(O,F,_,G,J,Z){var ee=O.children,ie=O.childFlags;ie&12&&ee.length===0&&(ie=O.childFlags=2,ee=O.children=re()),ie===2?He(ee,_,F,G,J,Z):nt(ee,_,F,G,J,Z)}function Mt(O,F,_){var G=O.dom=document.createTextNode(O.children);k(F)||u(F,G,_)}function Pt(O,F,_,G,J,Z){var ee=O.flags,ie=O.props,Te=O.className,Be=O.childFlags,Ie=O.dom=s(O.type,G=G||(ee&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(G?Ie.setAttribute("class",Te):Ie.className=Te),Be===16)A(Ie,Ee);else if(Be!==1){var Pe=G&&O.type!=="foreignObject";Be===2?(Ee.flags&16384&&(O.children=Ee=Q(Ee)),He(Ee,Ie,_,Pe,null,Z)):(Be===8||Be===4)&&nt(Ee,Ie,_,Pe,null,Z)}k(F)||u(F,Ie,J),k(ie)||xt(O,ee,ie,Ie,G),ot(O.ref,Ie,Z)}function nt(O,F,_,G,J,Z){for(var ee=0;eePe)&&(Ie=V(ee[Pe-1],!1).nextSibling)}Ct(Te,Be,ee,ie,_,G,J,Ie,O,Z)}function sn(O,F,_,G){var J=O.ref,Z=F.ref,ee=F.children;if(Ct(O.childFlags,F.childFlags,O.children,ee,J,_,!1,null,O,G),F.dom=O.dom,J!==Z&&!t(ee)){var ie=ee.dom;g(J,ie),d(Z,ie)}}function mn(O,F,_,G,J,Z){var ee=F.dom=O.dom,ie=O.props,Te=F.props,Be=!1,Ie=!1,Ee;if(G=G||(J&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Be=(J&448)>0,Be&&(Ie=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],ze=Ee[Fe];Me!==ze&&ht(Fe,Me,ze,ee,G,Ie,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ee,G,Ie,O)}var et=F.children,Ye=F.className;O.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):G?ee.setAttribute("class",Ye):ee.className=Ye),J&4096?un(ee,et):Ct(O.childFlags,F.childFlags,O.children,et,ee,_,G&&F.type!=="foreignObject",null,O,Z),Be&&wt(J,F,ee,Ee,!1,Ie);var at=F.ref,Qe=O.ref;Qe!==at&&(lt(Qe),ot(at,ee,Z))}function fn(O,F,_,G,J,Z){Je(O),nt(F,_,G,J,V(O,!0),Z),b(O,_)}function Ct(O,F,_,G,J,Z,ee,ie,Te,Be){switch(O){case 2:switch(F){case 2:Ze(_,G,J,Z,ee,ie,Be);break;case 1:Xe(_,J);break;case 16:Je(_),A(J,G);break;default:fn(_,G,J,Z,ee,Be);break}break;case 1:switch(F){case 2:He(G,J,Z,ee,ie,Be);break;case 1:break;case 16:A(J,G);break;default:nt(G,J,Z,ee,ie,Be);break}break;case 16:switch(F){case 16:ln(_,G,J);break;case 2:ut(J),He(G,J,Z,ee,ie,Be);break;case 1:ut(J);break;default:ut(J),nt(G,J,Z,ee,ie,Be);break}break;default:switch(F){case 16:rt(_),A(J,G);break;case 2:dt(J,Te,_),He(G,J,Z,ee,ie,Be);break;case 1:dt(J,Te,_);break;default:var Ie=_.length|0,Ee=G.length|0;Ie===0?Ee>0&&nt(G,J,Z,ee,ie,Be):Ee===0?dt(J,Te,_):F===8&&O===8?Nn(_,G,J,Z,ee,Ie,Ee,ie,Te,Be):gn(_,G,J,Z,ee,Ie,Ee,ie,Be);break}break}}function pn(O,F,_,G,J){J.push(function(){O.componentDidUpdate(F,_,G)})}function Dt(O,F,_,G,J,Z,ee,ie,Te){var Be=O.state,Ie=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(F=L(O,_,F!==Be?y(Be,F):F)),ee||!Pe||Pe&&O.shouldComponentUpdate(_,F,J)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(_,F,J),O.props=_,O.state=F,O.context=J;var Fe=null,Me=At(O,_,J);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Ie,Be)),Ze(O.$LI,Me,G,O.$CX,Z,ie,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Ie,Be,Fe,Te)}else O.props=_,O.state=F,O.context=J}function hn(O,F,_,G,J,Z,ee){var ie=F.children=O.children;if(!k(ie)){ie.$L=ee;var Te=F.props||c,Be=F.ref,Ie=O.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,G),ie.$UN)return;ie.$BR=!1}k(ie.$PS)||(Ee=y(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,_,G,J,!1,Z,ee),Ie!==Be&&(lt(Ie),ot(Be,ie,ee))}}function vn(O,F,_,G,J,Z,ee){var ie=!0,Te=F.props||c,Be=F.ref,Ie=O.props,Ee=!a(Be),Pe=O.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ie=Be.onComponentShouldUpdate(Ie,Te)),ie!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Ie,Te);var Fe=Le(vt(F,G));Ze(Pe,Fe,_,G,J,Z,ee),F.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Ie,Te)}else F.children=Pe}function Cn(O,F){var _=F.children,G=F.dom=O.dom;_!==O.children&&(G.nodeValue=_)}function gn(O,F,_,G,J,Z,ee,ie,Te){for(var Be=Z>ee?ee:Z,Ie=0,Ee,Pe;Ieee)for(Ie=Be;IeIe||Pe>Ee)break e;Fe=O[Pe],Me=F[Pe]}for(Fe=O[Ie],Me=F[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(F[Ee]=Me=Q(Me)),Ze(Fe,Me,_,G,J,ie,Be),O[Ie]=Me,Ie--,Ee--,Pe>Ie||Pe>Ee)break e;Fe=O[Ie],Me=F[Ee]}}if(Pe>Ie){if(Pe<=Ee)for(ze=Ee+1,Re=zeEe)for(;Pe<=Ie;)Xe(O[Pe++],_);else Vn(O,F,G,Z,ee,Ie,Ee,Pe,_,J,ie,Te,Be)}function Vn(O,F,_,G,J,Z,ee,ie,Te,Be,Ie,Ee,Pe){var Fe,Me,ze,Re=0,et=ie,Ye=ie,at=Z-ie+1,Qe=ee-ie+1,ct=new Int32Array(Qe+1),tt=at===G,Vt=!1,$e=0,it=0;if(J<4||(at|Qe)<32)for(Re=et;Re<=Z;++Re)if(Fe=O[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(F[ie]=Me=Q(Me)),Ze(Fe,Me,Te,_,Be,Ie,Pe),++it;break}!tt&&ie>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Ht={};for(Re=Ye;Re<=ee;++Re)Ht[F[Re].key]=Re;for(Re=et;Re<=Z;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=F[ie],Me.flags&16384&&(F[ie]=Me=Q(Me)),Ze(Fe,Me,Te,_,Be,Ie,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(F,Te,_,Be,Ie,Pe);else if(Vt){var zt=bn(ct);for(ie=zt.length-1,Re=Qe-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=F[$e],Me.flags&16384&&(F[$e]=Me=Q(Me)),ze=$e+1,He(Me,Te,_,Be,ze=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=F[$e],Me.flags&16384&&(F[$e]=Me=Q(Me)),ze=$e+1,He(Me,Te,_,Be,zejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));_>1,O[qe[ie]]0&&(st[_]=qe[Z-1]),qe[Z]=_)}Z=J+1;var Be=new Int32Array(Z);for(ee=qe[Z-1];Z-- >0;)Be[Z]=ee,ee=st[ee],qe[Z]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,F,_,G){var J=[],Z=F.$V;w.v=!0,a(Z)?a(O)||(O.flags&16384&&(O=Q(O)),He(O,F,G,!1,null,J),F.$V=O,Z=O):a(O)?(Xe(Z,F),F.$V=null):(O.flags&16384&&(O=Q(O)),Ze(Z,O,F,G,!1,null,J),Z=F.$V=O),v(J),w.v=!1,o(_)&&_(),o(T.renderComplete)&&T.renderComplete(Z,F)}function Wt(O,F,_,G){_===void 0&&(_=null),G===void 0&&(G=c),Ft(O,F,_,G)}function kn(O){return function(){function F(_,G,J,Z){O||(O=_),Wt(G,O,J,Z)}return F}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,F,_,G){var J=O.$PS;if(o(F)&&(F=F(J?y(O.state,J):O.state,O.props,O.context)),a(J))O.$PS=F;else for(var Z in F)J[Z]=F[Z];if(O.$BR)o(_)&&O.$L.push(_.bind(O));else{if(!w.v&&mt.length===0){_t(O,G),o(_)&&_.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),G&&(O.$F=!0),gt||(gt=!0,Sn(Kt)),o(_)){var ee=O.$QU;ee||(ee=O.$QU=[]),ee.push(_)}}}function Bn(O){for(var F=O.$QU,_=0;_=0;--U){var K=this.tryEntries[U],$=K.completion;if(K.tryLoc==="root")return W("end");if(K.tryLoc<=this.prev){var z=a.call(K,"catchLoc"),Y=a.call(K,"finallyLoc");if(z&&Y){if(this.prev=0;--W){var U=this.tryEntries[W];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var W=this.tryEntries[j];if(W.finallyLoc===D)return this.complete(W.completion,W.afterLoc),x(W),u}}return M}(),catch:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc===D){var U=W.completion;if(U.type==="throw"){var K=U.arg;x(W)}return K}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(D,j,W){return this.delegate={iterator:P(D),resultName:j,nextLoc:W},this.method==="next"&&(this.arg=o),u}return M}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var N in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(N,r.headers[N]);a.send(r.body||null)})})},72026:function(I,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(s,C){var g=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(g)return(g=g.call(s)).next.bind(g);if(Array.isArray(s)||(g=e(s))||C&&s&&typeof s.length=="number"){g&&(s=g);var v=0;return function(){return v>=s.length?{done:!0}:{done:!1,value:s[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(s,C){if(s){if(typeof s=="string")return a(s,C);var g=Object.prototype.toString.call(s).slice(8,-1);if(g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set")return Array.from(s);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(s,C)}}function a(s,C){(C==null||C>s.length)&&(C=s.length);for(var g=0,v=new Array(C);g0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,l=m.visualViewport,d=!(0,o.default)()&&y,u=(p.left+(d&&l?l.offsetLeft:0))/i,s=(p.top+(d&&l?l.offsetTop:0))/c,C=p.width/i,g=p.height/c;return{width:C,height:g,top:s,right:u+C,bottom:s+g,left:u,x:u,y:s}}},98310:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=d(n(63064)),t=d(n(16940)),o=d(n(88577)),f=d(n(29727)),N=d(n(9252)),k=d(n(75663)),S=n(65601),y=d(n(83199)),p=d(n(16292)),i=d(n(11848)),c=d(n(1707)),m=d(n(21194)),l=n(79257);function d(v){return v&&v.__esModule?v:{default:v}}function u(v,h){var V=(0,y.default)(v,!1,h==="fixed");return V.top=V.top+v.clientTop,V.left=V.left+v.clientLeft,V.bottom=V.top+v.clientHeight,V.right=V.left+v.clientWidth,V.width=v.clientWidth,V.height=v.clientHeight,V.x=V.left,V.y=V.top,V}function s(v,h,V){return h===e.viewport?(0,m.default)((0,a.default)(v,V)):(0,S.isElement)(h)?u(h,V):(0,m.default)((0,t.default)((0,N.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),V=["absolute","fixed"].indexOf((0,k.default)(v).position)>=0,b=V&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,i.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(v,h,V,b){var B=h==="clippingParents"?C(v):[].concat(h),I=[].concat(B,[V]),w=I[0],T=I.reduce(function(A,x){var E=s(v,x,b);return A.top=(0,l.max)(E.top,A.top),A.right=(0,l.min)(E.right,A.right),A.bottom=(0,l.min)(E.bottom,A.bottom),A.left=(0,l.max)(E.left,A.left),A},s(v,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(L,r,n){"use strict";r.__esModule=!0,r.default=i;var e=y(n(83199)),a=y(n(3107)),t=y(n(1707)),o=n(65601),f=y(n(94889)),N=y(n(9252)),k=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),l=(0,S.round)(m.width)/c.offsetWidth||1,d=(0,S.round)(m.height)/c.offsetHeight||1;return l!==1||d!==1}function i(c,m,l){l===void 0&&(l=!1);var d=(0,o.isHTMLElement)(m),u=(0,o.isHTMLElement)(m)&&p(m),s=(0,N.default)(m),C=(0,e.default)(c,u,l),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!l)&&(((0,t.default)(m)!=="body"||(0,k.default)(s))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):s&&(v.x=(0,f.default)(s))),{x:C.left+g.scrollLeft-v.x,y:C.top+g.scrollTop-v.y,width:C.width,height:C.height}}},75663:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(L,r,n){"use strict";r.__esModule=!0,r.default=k;var e=N(n(9252)),a=N(n(75663)),t=N(n(94889)),o=N(n(42532)),f=n(79257);function N(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,p=(0,e.default)(S),i=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(S),u=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:d,y:u}}},89741:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-N)<=1&&(N=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:k}}},1707:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(k){return k&&k.__esModule?k:{default:k}}function N(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},29727:function(L,r,n){"use strict";r.__esModule=!0,r.default=i;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),f=S(n(36875)),N=S(n(16292)),k=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),l=/Trident/i.test((0,k.default)());if(l&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var u=(0,N.default)(c);for((0,o.isShadowRoot)(u)&&(u=u.host);(0,o.isHTMLElement)(u)&&["html","body"].indexOf((0,a.default)(u))<0;){var s=(0,t.default)(u);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||m&&s.willChange==="filter"||m&&s.filter&&s.filter!=="none")return u;u=u.parentNode}return null}function i(c){for(var m=(0,e.default)(c),l=y(c);l&&(0,f.default)(l)&&(0,t.default)(l).position==="static";)l=y(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||p(c)||m}},16292:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)(N)==="html"?N:N.assignedSlot||N.parentNode||((0,t.isShadowRoot)(N)?N.host:null)||(0,a.default)(N)}},87899:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(k){return k&&k.__esModule?k:{default:k}}function N(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:N((0,e.default)(k))}},63064:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(k){return k&&k.__esModule?k:{default:k}}function N(k,S){var y=(0,e.default)(k),p=(0,a.default)(k),i=y.visualViewport,c=p.clientWidth,m=p.clientHeight,l=0,d=0;if(i){c=i.width,m=i.height;var u=(0,o.default)();(u||!u&&S==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(k),y:d}}},44901:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},42532:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:N,scrollTop:k}}},94889:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)((0,a.default)(N)).left+(0,t.default)(N).scrollLeft}},65601:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}function t(N){var k=(0,e.default)(N).Element;return N instanceof k||N instanceof Element}function o(N){var k=(0,e.default)(N).HTMLElement;return N instanceof k||N instanceof HTMLElement}function f(N){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(N).ShadowRoot;return N instanceof k||N instanceof ShadowRoot}},95294:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+k)}},36875:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(k){return k&&k.__esModule?k:{default:k}}function N(k,S){var y;S===void 0&&(S=[]);var p=(0,e.default)(k),i=p===((y=k.ownerDocument)==null?void 0:y.body),c=(0,t.default)(p),m=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=S.concat(m);return i?l:l.concat(N((0,a.default)(m)))}},37802:function(L,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],N=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+N,I+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+N,I+"-"+k])},[]),l=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",C=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",V=r.afterWrite="afterWrite",b=r.modifierPhases=[l,d,u,s,C,g,v,h,V]},60028:function(L,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(37802);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(16055);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(98420);r.createPopper=f.createPopper;var N=n(22008);r.createPopperLite=N.createPopper},20637:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var p=S.styles[y]||{},i=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(m){var l=i[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(p){var i=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:y[p]),l=m.reduce(function(d,u){return d[u]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var N=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),f=p(n(26608)),N=n(87415),k=p(n(41e3)),S=p(n(62605)),y=n(37802);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(u,s){return u=typeof u=="function"?u(Object.assign({},s.rects,{placement:s.placement})):u,(0,k.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,C=d.name,g=d.options,v=s.elements.arrow,h=s.modifiersData.popperOffsets,V=(0,e.default)(s.placement),b=(0,f.default)(V),B=[y.left,y.right].indexOf(V)>=0,I=B?"height":"width";if(!(!v||!h)){var w=i(g.padding,s),T=(0,a.default)(v),A=b==="y"?y.top:y.left,x=b==="y"?y.bottom:y.right,E=s.rects.reference[I]+s.rects.reference[b]-h[b]-s.rects.popper[I],P=h[b]-s.rects.reference[b],R=(0,o.default)(v),M=R?b==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-P/2,j=w[A],W=M-T[I]-w[x],U=M/2-T[I]/2+D,K=(0,N.within)(j,U,W),$=b;s.modifiersData[C]=(u={},u[$]=K,u.centerOffset=K-U,u)}}function m(d){var u=d.state,s=d.options,C=s.element,g=C===void 0?"[data-popper-arrow]":C;g!=null&&(typeof g=="string"&&(g=u.elements.popper.querySelector(g),!g)||(0,t.default)(u.elements.popper,g)&&(u.elements.arrow=g))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=y(n(29727)),t=y(n(44901)),o=y(n(9252)),f=y(n(75663)),N=y(n(16275)),k=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,u){var s=d.x,C=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(C*g)/g||0}}function c(d){var u,s=d.popper,C=d.popperRect,g=d.placement,v=d.variation,h=d.offsets,V=d.position,b=d.gpuAcceleration,B=d.adaptive,I=d.roundOffsets,w=d.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var R=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),D=e.left,j=e.top,W=window;if(B){var U=(0,a.default)(s),K="clientHeight",$="clientWidth";if(U===(0,t.default)(s)&&(U=(0,o.default)(s),(0,f.default)(U).position!=="static"&&V==="absolute"&&(K="scrollHeight",$="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var z=w&&U===W&&W.visualViewport?W.visualViewport.height:U[K];E-=z-C.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var Y=w&&U===W&&W.visualViewport?W.visualViewport.width:U[$];A-=Y-C.width,A*=b?1:-1}}var H=Object.assign({position:V},B&&p),Q=I===!0?i({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=Q.x,E=Q.y,b){var re;return Object.assign({},H,(re={},re[j]=M?"0":"",re[D]=R?"0":"",re.transform=(W.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",re))}return Object.assign({},H,(u={},u[j]=M?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,C=s.gpuAcceleration,g=C===void 0?!0:C,v=s.adaptive,h=v===void 0?!0:v,V=s.roundOffsets,b=V===void 0?!0:V,B={placement:(0,N.default)(u.placement),variation:(0,k.default)(u.placement),popper:u.elements.popper,popperRect:u.rects.popper,gpuAcceleration:g,isFixed:u.options.strategy==="fixed"};u.modifiersData.popperOffsets!=null&&(u.styles.popper=Object.assign({},u.styles.popper,c(Object.assign({},B,{offsets:u.modifiersData.popperOffsets,position:u.options.strategy,adaptive:h,roundOffsets:b})))),u.modifiersData.arrow!=null&&(u.styles.arrow=Object.assign({},u.styles.arrow,c(Object.assign({},B,{offsets:u.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-placement":u.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},21068:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}var t={passive:!0};function o(N){var k=N.state,S=N.instance,y=N.options,p=y.scroll,i=p===void 0?!0:p,c=y.resize,m=c===void 0?!0:c,l=(0,e.default)(k.elements.popper),d=[].concat(k.scrollParents.reference,k.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",S.update,t)}),m&&l.addEventListener("resize",S.update,t),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",S.update,t)}),m&&l.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function N(){}return N}(),effect:o,data:{}}},51825:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),f=S(n(36705)),N=n(37802),k=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===N.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,l=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var u=l.mainAxis,s=u===void 0?!0:u,C=l.altAxis,g=C===void 0?!0:C,v=l.fallbackPlacements,h=l.padding,V=l.boundary,b=l.rootBoundary,B=l.altBoundary,I=l.flipVariations,w=I===void 0?!0:I,T=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(P).reduce(function(ce,q){return ce.concat((0,a.default)(q)===N.auto?(0,f.default)(m,{placement:q,boundary:V,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=m.rects.reference,D=m.rects.popper,j=new Map,W=!0,U=R[0],K=0;K=0,Q=H?"width":"height",re=(0,o.default)(m,{placement:$,boundary:V,rootBoundary:b,altBoundary:B,padding:h}),ae=H?Y?N.right:N.left:Y?N.bottom:N.top;M[Q]>D[Q]&&(ae=(0,e.default)(ae));var de=(0,e.default)(ae),ve=[];if(s&&ve.push(re[z]<=0),g&&ve.push(re[ae]<=0,re[de]<=0),ve.every(function(ce){return ce})){U=$,W=!1;break}j.set($,ve)}if(W)for(var ye=w?3:1,Ie=function(){function ce(q){var se=R.find(function(me){var te=j.get(me);if(te)return te.slice(0,q).every(function(be){return be})});if(se)return U=se,"break"}return ce}(),pe=ye;pe>0;pe--){var ne=Ie(pe);if(ne==="break")break}m.placement!==U&&(m.modifiersData[d]._skip=!0,m.placement=U,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-y.height-p.y,right:S.right-y.width+p.x,bottom:S.bottom-y.height+p.y,left:S.left-y.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function N(S){var y=S.state,p=S.name,i=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,l=(0,a.default)(y,{elementContext:"reference"}),d=(0,a.default)(y,{altBoundary:!0}),u=o(l,i),s=o(d,c,m),C=f(u),g=f(s);y.modifiersData[p]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:C,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},16055:function(L,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var f=p(n(51825));r.flip=f.default;var N=p(n(44677));r.hide=N.default;var k=p(n(34331));r.offset=k.default;var S=p(n(56154));r.popperOffsets=S.default;var y=p(n(69770));r.preventOverflow=y.default;function p(i){return i&&i.__esModule?i:{default:i}}},34331:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var p=(0,e.default)(k),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=c[0],l=c[1];return m=m||0,l=(l||0)*i,[a.left,a.right].indexOf(p)>=0?{x:l,y:m}:{x:m,y:l}}function f(k){var S=k.state,y=k.options,p=k.name,i=y.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(s,C){return s[C]=o(C,S.rects,c),s},{}),l=m[S.placement],d=l.x,u=l.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=d,S.modifiersData.popperOffsets.y+=u),S.modifiersData[p]=m}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var N=f.state,k=f.name;N.modifiersData[k]=(0,e.default)({reference:N.rects.reference,element:N.rects.popper,strategy:"absolute",placement:N.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),f=n(87415),N=c(n(12866)),k=c(n(29727)),S=c(n(4709)),y=c(n(56918)),p=c(n(26143)),i=n(79257);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var u=d.state,s=d.options,C=d.name,g=s.mainAxis,v=g===void 0?!0:g,h=s.altAxis,V=h===void 0?!1:h,b=s.boundary,B=s.rootBoundary,I=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(u,{boundary:b,rootBoundary:B,padding:w,altBoundary:I}),R=(0,a.default)(u.placement),M=(0,y.default)(u.placement),D=!M,j=(0,t.default)(R),W=(0,o.default)(j),U=u.modifiersData.popperOffsets,K=u.rects.reference,$=u.rects.popper,z=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,Y=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,Q={x:0,y:0};if(U){if(v){var re,ae=j==="y"?e.top:e.left,de=j==="y"?e.bottom:e.right,ve=j==="y"?"height":"width",ye=U[j],Ie=ye+P[ae],pe=ye-P[de],ne=A?-$[ve]/2:0,ce=M===e.start?K[ve]:$[ve],q=M===e.start?-$[ve]:-K[ve],se=u.elements.arrow,me=A&&se?(0,N.default)(se):{width:0,height:0},te=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=te[ae],fe=te[de],ge=(0,f.within)(0,K[ve],me[ve]),ke=D?K[ve]/2-ne-ge-be-Y.mainAxis:ce-ge-be-Y.mainAxis,Ce=D?-K[ve]/2+ne+ge+fe+Y.mainAxis:q+ge+fe+Y.mainAxis,Se=u.elements.arrow&&(0,k.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(re=H==null?void 0:H[j])!=null?re:0,Oe=ye+ke-xe-we,We=ye+Ce-xe,Ve=(0,f.within)(A?(0,i.min)(Ie,Oe):Ie,ye,A?(0,i.max)(pe,We):pe);U[j]=Ve,Q[j]=Ve-ye}if(V){var oe,le=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,ue=U[W],Ne=W==="y"?"height":"width",Ae=ue+P[le],De=ue-P[he],je=[e.top,e.left].indexOf(R)!==-1,Ke=(oe=H==null?void 0:H[W])!=null?oe:0,Ue=je?Ae:ue-K[Ne]-$[Ne]-Ke+Y.altAxis,_e=je?ue+K[Ne]+$[Ne]-Ke-Y.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(Ue,ue,_e):(0,f.within)(A?Ue:Ae,ue,A?_e:De);U[W]=Ge,Q[W]=Ge-ue}u.modifiersData[C]=Q}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=N(n(21068)),t=N(n(56154)),o=N(n(85445)),f=N(n(20637));function N(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},98420:function(L,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(21068)),o=l(n(56154)),f=l(n(85445)),N=l(n(20637)),k=l(n(34331)),S=l(n(51825)),y=l(n(69770)),p=l(n(11106)),i=l(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var m=n(16055);Object.keys(m).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(e,s)||s in r&&r[s]===m[s]||(r[s]=m[s])});function l(s){return s&&s.__esModule?s:{default:s}}var d=r.defaultModifiers=[t.default,o.default,f.default,N.default,k.default,S.default,y.default,p.default,i.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(k){return k&&k.__esModule?k:{default:k}}function N(k,S){S===void 0&&(S={});var y=S,p=y.placement,i=y.boundary,c=y.rootBoundary,m=y.padding,l=y.flipVariations,d=y.allowedAutoPlacements,u=d===void 0?a.placements:d,s=(0,e.default)(p),C=s?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===s}):a.basePlacements,g=C.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=C);var v=g.reduce(function(h,V){return h[V]=(0,t.default)(k,{placement:V,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(V)],h},{});return Object.keys(v).sort(function(h,V){return v[h]-v[V]})}},49306:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(k){return k&&k.__esModule?k:{default:k}}function N(k){var S=k.reference,y=k.element,p=k.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-y.width/2,l=S.y+S.height/2-y.height/2,d;switch(i){case o.top:d={x:m,y:S.y-y.height};break;case o.bottom:d={x:m,y:S.y+S.height};break;case o.right:d={x:S.x+S.width,y:l};break;case o.left:d={x:S.x-y.width,y:l};break;default:d={x:S.x,y:S.y}}var u=i?(0,t.default)(i):null;if(u!=null){var s=u==="y"?"height":"width";switch(c){case o.start:d[u]=d[u]-(S[s]/2-y[s]/2);break;case o.end:d[u]=d[u]+(S[s]/2-y[s]/2);break;default:}}return d}},97902:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},4709:function(L,r,n){"use strict";r.__esModule=!0,r.default=i;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),f=p(n(21194)),N=n(37802),k=n(65601),S=p(n(41e3)),y=p(n(62605));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var l=m,d=l.placement,u=d===void 0?c.placement:d,s=l.strategy,C=s===void 0?c.strategy:s,g=l.boundary,v=g===void 0?N.clippingParents:g,h=l.rootBoundary,V=h===void 0?N.viewport:h,b=l.elementContext,B=b===void 0?N.popper:b,I=l.altBoundary,w=I===void 0?!1:I,T=l.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,N.basePlacements)),E=B===N.popper?N.reference:N.popper,P=c.rects.popper,R=c.elements[w?E:B],M=(0,e.default)((0,k.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,V,C),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:P,strategy:"absolute",placement:u}),W=(0,f.default)(Object.assign({},P,j)),U=B===N.popper?W:D,K={top:M.top-U.top+x.top,bottom:U.bottom-M.bottom+x.bottom,left:M.left-U.left+x.left,right:U.right-M.right+x.right},$=c.modifiersData.offset;if(B===N.popper&&$){var z=$[u];Object.keys(K).forEach(function(Y){var H=[N.right,N.bottom].indexOf(Y)>=0?1:-1,Q=[N.top,N.bottom].indexOf(Y)>=0?"y":"x";K[Y]+=z[Q]*H})}return K}},62605:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},15022:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},56918:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(L,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},57547:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},41e3:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,N=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){N.add(y.name);var p=[].concat(y.requires||[],y.requiresIfExists||[]);p.forEach(function(i){if(!N.has(i)){var c=f.get(i);c&&S(c)}}),k.push(y)}return o.forEach(function(y){N.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(N,k){return N.concat(f.filter(function(S){return S.phase===k}))},[])}},21194:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},88492:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},87415:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,N){return(0,e.max)(o,(0,e.min)(f,N))}function t(o,f,N){var k=a(o,f,N);return k>N?N:k}},60208:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Ie,r._M=He,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=K,r.createFragment=z,r.createPortal=ae,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=$,r.createVNode=D,r.directClone=Q,r.findDOMfromVNode=V,r.forwardRef=Xt,r.getFlagsForElementVnode=ve,r.linkEvent=p,r.normalizeProps=Y,r.options=void 0,r.render=Wt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(O){var F=typeof O;return F==="string"||F==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function N(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function y(O,F){var _={};if(O)for(var G in O)_[G]=O[G];if(F)for(var J in F)_[J]=F[J];return _}function p(O,F){return o(F)?{data:O,event:F}:null}function i(O){return!k(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function l(O){return O.substr(2).toLowerCase()}function d(O,F){O.appendChild(F)}function u(O,F,_){k(_)?d(O,F):O.insertBefore(F,_)}function s(O,F){return F?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function C(O,F,_){O.replaceChild(F,_)}function g(O,F){O.removeChild(F)}function v(O){for(var F=0;F0,Be=k(ie),Le=f(ie)&&ie[0]===R;Te||Be||Le?(_=_||F.slice(0,Z),(Te||Le)&&(ee=Q(ee)),(Be||Le)&&(ee.key=R+Z),_.push(ee)):_&&_.push(ee),ee.flags|=65536}}_=_||F,_.length===0?G=1:G=8}else _=F,_.flags|=65536,F.flags&81920&&(_=Q(F)),G=2;return O.children=_,O.childFlags=G,O}function Ie(O){return t(O)||e(O)?$(O,null):n(O)?z(O,0,null):O.flags&16384?Q(O):O}var pe="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",ce={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var se=q(0),me=q(null),te=q(!0);function be(O,F){var _=F.$EV;return _||(_=F.$EV=q(null)),_[O]||++se[O]===1&&(me[O]=oe(O)),_}function fe(O,F){var _=F.$EV;_&&_[O]&&(--se[O]===0&&(document.removeEventListener(l(O),me[O]),me[O]=null),_[O]=null)}function ge(O,F,_,G){if(o(_))be(O,G)[O]=_;else if(i(_)){if(x(F,_))return;be(O,G)[O]=_}else fe(O,G)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ce(O,F,_,G){var J=ke(O);do{if(F&&J.disabled)return;var Z=J.$EV;if(Z){var ee=Z[_];if(ee&&(G.dom=J,ee.event?ee.event(ee.data,O):ee(O),O.cancelBubble))return}J=J.parentNode}while(!k(J))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var F={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function _(){return F.dom}return _}()}),F}function We(O){return function(F){if(F.button!==0){F.stopPropagation();return}Ce(F,!0,O,Oe(F))}}function Ve(O){return function(F){Ce(F,!1,O,Oe(F))}}function oe(O){var F=O==="onClick"||O==="onDblClick"?We(O):Ve(O);return document.addEventListener(l(O),F),F}function le(O,F){var _=document.createElement("i");return _.innerHTML=F,_.innerHTML===O.innerHTML}function he(O,F,_){if(O[F]){var G=O[F];G.event?G.event(G.data,_):G(_)}else{var J=F.toLowerCase();O[J]&&O[J](_)}}function ue(O,F){var _=function(J){var Z=this.$V;if(Z){var ee=Z.props||c,ie=Z.dom;if(f(O))he(ee,O,J);else for(var Te=0;Te-1&&F.options[Z]&&(ie=F.options[Z].value),_&&a(ie)&&(ie=O.defaultValue),Ge(G,ie)}}var Bt=ue("onInput",pt),It=ue("onChange");function Lt(O,F){Ne(O,"input",Bt),F.onChange&&Ne(O,"change",It)}function pt(O,F,_){var G=O.value,J=F.value;if(a(G)){if(_){var Z=O.defaultValue;!a(Z)&&Z!==J&&(F.defaultValue=Z,F.value=Z)}}else J!==G&&(F.defaultValue=G,F.value=G)}function wt(O,F,_,G,J,Z){O&64?_e(G,_):O&256?ft(G,_,J,F):O&128&&pt(G,_,J),Z&&(_.$V=F)}function Gt(O,F,_){O&64?Ue(F,_):O&256?St(F):O&128&&Lt(F,_)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!P(O,null)&&O.current&&(O.current=null)}function ot(O,F,_){O&&(o(O)||O.current!==void 0)&&_.push(function(){!P(O,F)&&O.current!==void 0&&(O.current=F)})}function Xe(O,F){Je(O),b(O,F)}function Je(O){var F=O.flags,_=O.children,G;if(F&481){G=O.ref;var J=O.props;lt(G);var Z=O.childFlags;if(!k(J))for(var ee=Object.keys(J),ie=0,Te=ee.length;ie0;ee&&(Z=Tt(_),Z&&Gt(F,G,_));for(var ie in _)ht(ie,null,_[ie],G,J,Z,null);ee&&wt(F,O,G,_,!0,Z)}function At(O,F,_){var G=Ie(O.render(F,O.state,_)),J=_;return o(O.getChildContext)&&(J=y(_,O.getChildContext())),O.$CX=J,G}function Et(O,F,_,G,J,Z){var ee=new F(_,G),ie=ee.$N=!!(F.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=J,ee.$L=Z,O.children=ee,ee.$BS=!1,ee.context=G,ee.props===c&&(ee.props=_),ie)ee.state=I(ee,_,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Be=ee.state;if(k(Be))ee.state=Te;else for(var Le in Te)Be[Le]=Te[Le];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,_,G),ee}function vt(O,F){var _=O.props||c;return O.flags&32768?O.type.render(_,O.ref,F):O.type(_,F)}function He(O,F,_,G,J,Z){var ee=O.flags|=16384;ee&481?Pt(O,F,_,G,J,Z):ee&4?nn(O,F,_,G,J,Z):ee&8?(on(O,F,_,G,J,Z),Rt(O,Z)):ee&512||ee&16?Mt(O,F,J):ee&8192?tn(O,_,F,G,J,Z):ee&1024&&en(O,_,F,J,Z)}function en(O,F,_,G,J){He(O.children,O.ref,F,!1,null,J);var Z=re();Mt(Z,_,G),O.dom=Z.dom}function tn(O,F,_,G,J,Z){var ee=O.children,ie=O.childFlags;ie&12&&ee.length===0&&(ie=O.childFlags=2,ee=O.children=re()),ie===2?He(ee,_,F,G,J,Z):nt(ee,_,F,G,J,Z)}function Mt(O,F,_){var G=O.dom=document.createTextNode(O.children);k(F)||u(F,G,_)}function Pt(O,F,_,G,J,Z){var ee=O.flags,ie=O.props,Te=O.className,Be=O.childFlags,Le=O.dom=s(O.type,G=G||(ee&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(G?Le.setAttribute("class",Te):Le.className=Te),Be===16)A(Le,Ee);else if(Be!==1){var Pe=G&&O.type!=="foreignObject";Be===2?(Ee.flags&16384&&(O.children=Ee=Q(Ee)),He(Ee,Le,_,Pe,null,Z)):(Be===8||Be===4)&&nt(Ee,Le,_,Pe,null,Z)}k(F)||u(F,Le,J),k(ie)||xt(O,ee,ie,Le,G),ot(O.ref,Le,Z)}function nt(O,F,_,G,J,Z){for(var ee=0;eePe)&&(Le=V(ee[Pe-1],!1).nextSibling)}Ct(Te,Be,ee,ie,_,G,J,Le,O,Z)}function sn(O,F,_,G){var J=O.ref,Z=F.ref,ee=F.children;if(Ct(O.childFlags,F.childFlags,O.children,ee,J,_,!1,null,O,G),F.dom=O.dom,J!==Z&&!t(ee)){var ie=ee.dom;g(J,ie),d(Z,ie)}}function mn(O,F,_,G,J,Z){var ee=F.dom=O.dom,ie=O.props,Te=F.props,Be=!1,Le=!1,Ee;if(G=G||(J&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Be=(J&448)>0,Be&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],ze=Ee[Fe];Me!==ze&&ht(Fe,Me,ze,ee,G,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ee,G,Le,O)}var et=F.children,Ye=F.className;O.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):G?ee.setAttribute("class",Ye):ee.className=Ye),J&4096?un(ee,et):Ct(O.childFlags,F.childFlags,O.children,et,ee,_,G&&F.type!=="foreignObject",null,O,Z),Be&&wt(J,F,ee,Ee,!1,Le);var at=F.ref,Qe=O.ref;Qe!==at&&(lt(Qe),ot(at,ee,Z))}function fn(O,F,_,G,J,Z){Je(O),nt(F,_,G,J,V(O,!0),Z),b(O,_)}function Ct(O,F,_,G,J,Z,ee,ie,Te,Be){switch(O){case 2:switch(F){case 2:Ze(_,G,J,Z,ee,ie,Be);break;case 1:Xe(_,J);break;case 16:Je(_),A(J,G);break;default:fn(_,G,J,Z,ee,Be);break}break;case 1:switch(F){case 2:He(G,J,Z,ee,ie,Be);break;case 1:break;case 16:A(J,G);break;default:nt(G,J,Z,ee,ie,Be);break}break;case 16:switch(F){case 16:ln(_,G,J);break;case 2:ut(J),He(G,J,Z,ee,ie,Be);break;case 1:ut(J);break;default:ut(J),nt(G,J,Z,ee,ie,Be);break}break;default:switch(F){case 16:rt(_),A(J,G);break;case 2:dt(J,Te,_),He(G,J,Z,ee,ie,Be);break;case 1:dt(J,Te,_);break;default:var Le=_.length|0,Ee=G.length|0;Le===0?Ee>0&&nt(G,J,Z,ee,ie,Be):Ee===0?dt(J,Te,_):F===8&&O===8?Nn(_,G,J,Z,ee,Le,Ee,ie,Te,Be):gn(_,G,J,Z,ee,Le,Ee,ie,Be);break}break}}function pn(O,F,_,G,J){J.push(function(){O.componentDidUpdate(F,_,G)})}function Dt(O,F,_,G,J,Z,ee,ie,Te){var Be=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(F=I(O,_,F!==Be?y(Be,F):F)),ee||!Pe||Pe&&O.shouldComponentUpdate(_,F,J)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(_,F,J),O.props=_,O.state=F,O.context=J;var Fe=null,Me=At(O,_,J);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Be)),Ze(O.$LI,Me,G,O.$CX,Z,ie,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Be,Fe,Te)}else O.props=_,O.state=F,O.context=J}function hn(O,F,_,G,J,Z,ee){var ie=F.children=O.children;if(!k(ie)){ie.$L=ee;var Te=F.props||c,Be=F.ref,Le=O.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,G),ie.$UN)return;ie.$BR=!1}k(ie.$PS)||(Ee=y(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,_,G,J,!1,Z,ee),Le!==Be&&(lt(Le),ot(Be,ie,ee))}}function vn(O,F,_,G,J,Z,ee){var ie=!0,Te=F.props||c,Be=F.ref,Le=O.props,Ee=!a(Be),Pe=O.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ie=Be.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Le,Te);var Fe=Ie(vt(F,G));Ze(Pe,Fe,_,G,J,Z,ee),F.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Le,Te)}else F.children=Pe}function Cn(O,F){var _=F.children,G=F.dom=O.dom;_!==O.children&&(G.nodeValue=_)}function gn(O,F,_,G,J,Z,ee,ie,Te){for(var Be=Z>ee?ee:Z,Le=0,Ee,Pe;Leee)for(Le=Be;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=F[Pe]}for(Fe=O[Le],Me=F[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(F[Ee]=Me=Q(Me)),Ze(Fe,Me,_,G,J,ie,Be),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=F[Ee]}}if(Pe>Le){if(Pe<=Ee)for(ze=Ee+1,Re=zeEe)for(;Pe<=Le;)Xe(O[Pe++],_);else Vn(O,F,G,Z,ee,Le,Ee,Pe,_,J,ie,Te,Be)}function Vn(O,F,_,G,J,Z,ee,ie,Te,Be,Le,Ee,Pe){var Fe,Me,ze,Re=0,et=ie,Ye=ie,at=Z-ie+1,Qe=ee-ie+1,ct=new Int32Array(Qe+1),tt=at===G,Vt=!1,$e=0,it=0;if(J<4||(at|Qe)<32)for(Re=et;Re<=Z;++Re)if(Fe=O[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(F[ie]=Me=Q(Me)),Ze(Fe,Me,Te,_,Be,Le,Pe),++it;break}!tt&&ie>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Ht={};for(Re=Ye;Re<=ee;++Re)Ht[F[Re].key]=Re;for(Re=et;Re<=Z;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=F[ie],Me.flags&16384&&(F[ie]=Me=Q(Me)),Ze(Fe,Me,Te,_,Be,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(F,Te,_,Be,Le,Pe);else if(Vt){var zt=bn(ct);for(ie=zt.length-1,Re=Qe-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=F[$e],Me.flags&16384&&(F[$e]=Me=Q(Me)),ze=$e+1,He(Me,Te,_,Be,ze=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=F[$e],Me.flags&16384&&(F[$e]=Me=Q(Me)),ze=$e+1,He(Me,Te,_,Be,zejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));_>1,O[qe[ie]]0&&(st[_]=qe[Z-1]),qe[Z]=_)}Z=J+1;var Be=new Int32Array(Z);for(ee=qe[Z-1];Z-- >0;)Be[Z]=ee,ee=st[ee],qe[Z]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,F,_,G){var J=[],Z=F.$V;w.v=!0,a(Z)?a(O)||(O.flags&16384&&(O=Q(O)),He(O,F,G,!1,null,J),F.$V=O,Z=O):a(O)?(Xe(Z,F),F.$V=null):(O.flags&16384&&(O=Q(O)),Ze(Z,O,F,G,!1,null,J),Z=F.$V=O),v(J),w.v=!1,o(_)&&_(),o(T.renderComplete)&&T.renderComplete(Z,F)}function Wt(O,F,_,G){_===void 0&&(_=null),G===void 0&&(G=c),Ft(O,F,_,G)}function kn(O){return function(){function F(_,G,J,Z){O||(O=_),Wt(G,O,J,Z)}return F}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,F,_,G){var J=O.$PS;if(o(F)&&(F=F(J?y(O.state,J):O.state,O.props,O.context)),a(J))O.$PS=F;else for(var Z in F)J[Z]=F[Z];if(O.$BR)o(_)&&O.$L.push(_.bind(O));else{if(!w.v&&mt.length===0){_t(O,G),o(_)&&_.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),G&&(O.$F=!0),gt||(gt=!0,Sn(Kt)),o(_)){var ee=O.$QU;ee||(ee=O.$QU=[]),ee.push(_)}}}function Bn(O){for(var F=O.$QU,_=0;_=0;--U){var K=this.tryEntries[U],$=K.completion;if(K.tryLoc==="root")return W("end");if(K.tryLoc<=this.prev){var z=a.call(K,"catchLoc"),Y=a.call(K,"finallyLoc");if(z&&Y){if(this.prev=0;--W){var U=this.tryEntries[W];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var W=this.tryEntries[j];if(W.finallyLoc===D)return this.complete(W.completion,W.afterLoc),x(W),u}}return M}(),catch:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc===D){var U=W.completion;if(U.type==="throw"){var K=U.arg;x(W)}return K}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(D,j,W){return this.delegate={iterator:P(D),resultName:j,nextLoc:W},this.method==="next"&&(this.arg=o),u}return M}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var N in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(N,r.headers[N]);a.send(r.body||null)})})},72026:function(L,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(s,C){var g=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(g)return(g=g.call(s)).next.bind(g);if(Array.isArray(s)||(g=e(s))||C&&s&&typeof s.length=="number"){g&&(s=g);var v=0;return function(){return v>=s.length?{done:!0}:{done:!1,value:s[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(s,C){if(s){if(typeof s=="string")return a(s,C);var g=Object.prototype.toString.call(s).slice(8,-1);if(g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set")return Array.from(s);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(s,C)}}function a(s,C){(C==null||C>s.length)&&(C=s.length);for(var g=0,v=new Array(C);gL)return 1}return 0},y=r.sortBy=function(){function s(){for(var C=arguments.length,g=new Array(C),v=0;vI)return 1}return 0},y=r.sortBy=function(){function s(){for(var C=arguments.length,g=new Array(C),v=0;v1?N-1:0),S=1;S1?N-1:0),S=1;S1?S-1:0),p=1;p1?y-1:0),i=1;i1?S-1:0),p=1;p1?y-1:0),i=1;ii?i:y}return S}(),e=r.clamp01=function(){function S(y){return y<0?0:y>1?1:y}return S}(),a=r.scale=function(){function S(y,p,i){return(y-p)/(i-p)}return S}(),t=r.round=function(){function S(y,p){if(!y||isNaN(y))return y;var i,c,m,l;return p|=0,i=Math.pow(10,p),y*=i,l=y>0|-(y<0),m=Math.abs(y%1)>=.4999999999854481,c=Math.floor(y),m&&(y=c+(l>0)),(m?y:Math.round(y))/i}return S}(),o=r.toFixed=function(){function S(y,p){return p===void 0&&(p=0),Number(y).toFixed(Math.max(p,0))}return S}(),f=r.inRange=function(){function S(y,p){return p&&y>=p[0]&&y<=p[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(y,p){for(var i=0,c=Object.keys(p);ii?i:y}return S}(),e=r.clamp01=function(){function S(y){return y<0?0:y>1?1:y}return S}(),a=r.scale=function(){function S(y,p,i){return(y-p)/(i-p)}return S}(),t=r.round=function(){function S(y,p){if(!y||isNaN(y))return y;var i,c,m,l;return p|=0,i=Math.pow(10,p),y*=i,l=y>0|-(y<0),m=Math.abs(y%1)>=.4999999999854481,c=Math.floor(y),m&&(y=c+(l>0)),(m?y:Math.round(y))/i}return S}(),o=r.toFixed=function(){function S(y,p){return p===void 0&&(p=0),Number(y).toFixed(Math.max(p,0))}return S}(),f=r.inRange=function(){function S(y,p){return p&&y>=p[0]&&y<=p[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(y,p){for(var i=0,c=Object.keys(p);i1?l-1:0),u=1;u1?b-1:0),L=1;L=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return se("end");if(te.tryLoc<=this.prev){var fe=V.call(te,"catchLoc"),ge=V.call(te,"finallyLoc");if(fe&&ge){if(this.prev=0;--se){var me=this.tryEntries[se];if(me.tryLoc<=this.prev&&V.call(me,"finallyLoc")&&this.prev=0;--q){var se=this.tryEntries[q];if(se.finallyLoc===ce)return this.complete(se.completion,se.afterLoc),ye(se),j}}return ne}(),catch:function(){function ne(ce){for(var q=this.tryEntries.length-1;q>=0;--q){var se=this.tryEntries[q];if(se.tryLoc===ce){var me=se.completion;if(me.type==="throw"){var te=me.arg;ye(se)}return te}}throw new Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(ce,q,se){return this.delegate={iterator:pe(ce),resultName:q,nextLoc:se},this.method==="next"&&(this.arg=g),j}return ne}()},v}function e(g,v,h,V,b,B,L){try{var w=g[B](L),T=w.value}catch(A){h(A);return}w.done?v(T):Promise.resolve(T).then(V,b)}function a(g){return function(){var v=this,h=arguments;return new Promise(function(V,b){var B=g.apply(v,h);function L(T){e(B,V,b,L,w,"next",T)}function w(T){e(B,V,b,L,w,"throw",T)}L(void 0)})}}/** + */var a=r.createStore=function(){function S(y,p){if(p)return p(S)(y);var i,c=[],m=function(){function u(){return i}return u}(),l=function(){function u(s){c.push(s)}return u}(),d=function(){function u(s){i=y(i,s);for(var C=0;C1?l-1:0),u=1;u1?b-1:0),I=1;I=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return se("end");if(te.tryLoc<=this.prev){var fe=V.call(te,"catchLoc"),ge=V.call(te,"finallyLoc");if(fe&&ge){if(this.prev=0;--se){var me=this.tryEntries[se];if(me.tryLoc<=this.prev&&V.call(me,"finallyLoc")&&this.prev=0;--q){var se=this.tryEntries[q];if(se.finallyLoc===ce)return this.complete(se.completion,se.afterLoc),ye(se),j}}return ne}(),catch:function(){function ne(ce){for(var q=this.tryEntries.length-1;q>=0;--q){var se=this.tryEntries[q];if(se.tryLoc===ce){var me=se.completion;if(me.type==="throw"){var te=me.arg;ye(se)}return te}}throw new Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(ce,q,se){return this.delegate={iterator:pe(ce),resultName:q,nextLoc:se},this.method==="next"&&(this.arg=g),j}return ne}()},v}function e(g,v,h,V,b,B,I){try{var w=g[B](I),T=w.value}catch(A){h(A);return}w.done?v(T):Promise.resolve(T).then(V,b)}function a(g){return function(){var v=this,h=arguments;return new Promise(function(V,b){var B=g.apply(v,h);function I(T){e(B,V,b,I,w,"next",T)}function w(T){e(B,V,b,I,w,"throw",T)}I(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_LOCAL_STORAGE=1,f=r.IMPL_INDEXED_DB=2,N=1,k="para-tgui",S="storage-v1",y="readonly",p="readwrite",i=function(v){return function(){try{return!!v()}catch(h){return!1}}},c=i(function(){return window.localStorage&&window.localStorage.getItem}),m=i(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),l=function(){function g(){this.impl=t,this.store={}}var v=g.prototype;return v.get=function(){function h(V){return this.store[V]}return h}(),v.set=function(){function h(V,b){this.store[V]=b}return h}(),v.remove=function(){function h(V){this.store[V]=void 0}return h}(),v.clear=function(){function h(){this.store={}}return h}(),g}(),d=function(){function g(){this.impl=o}var v=g.prototype;return v.get=function(){function h(V){var b=localStorage.getItem(V);if(typeof b=="string")return JSON.parse(b)}return h}(),v.set=function(){function h(V,b){localStorage.setItem(V,JSON.stringify(b))}return h}(),v.remove=function(){function h(V){localStorage.removeItem(V)}return h}(),v.clear=function(){function h(){localStorage.clear()}return h}(),g}(),u=function(){function g(){this.impl=f,this.dbPromise=new Promise(function(h,V){var b=window.indexedDB||window.msIndexedDB,B=b.open(k,N);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(L){V(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return h(B.result)},B.onerror=function(){V(new Error("Failed to open IDB: "+B.error))}})}var v=g.prototype;return v.getStore=function(){function h(V){return this.dbPromise.then(function(b){return b.transaction(S,V).objectStore(S)})}return h}(),v.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(y);case 2:return L=T.sent,T.abrupt("return",new Promise(function(A,x){var E=L.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return L===null&&(L=void 0),A.next=3,this.getStore(p);case 3:w=A.sent,w.put(L,B);case 5:case"end":return A.stop()}}return T}(),b,this)}return b}()));function V(b,B){return h.apply(this,arguments)}return V}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:L=T.sent,L.delete(B);case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function V(){return h.apply(this,arguments)}return V}(),g}(),s=function(){function g(){this.backendPromise=a(n().mark(function(){function h(){var V;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:if(!m()){B.next=10;break}return B.prev=1,V=new u,B.next=5,V.dbPromise;case 5:return B.abrupt("return",V);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!c()){B.next=12;break}return B.abrupt("return",new d);case 12:return B.abrupt("return",new l);case 13:case"end":return B.stop()}}return b}(),h,null,[[1,8]])}return h}()))()}var v=g.prototype;return v.get=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.get(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.set=function(){var h=a(n().mark(function(){function b(B,L){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return w=A.sent,A.abrupt("return",w.set(B,L));case 4:case"end":return A.stop()}}return T}(),b,this)}return b}()));function V(b,B){return h.apply(this,arguments)}return V}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var L;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return L=T.sent,T.abrupt("return",L.remove(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.clear());case 4:case"end":return w.stop()}}return L}(),b,this)}return b}()));function V(){return h.apply(this,arguments)}return V}(),g}(),C=r.storage=new s},37843:function(I,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,i){if(p){if(typeof p=="string")return a(p,i);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,i)}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,m=new Array(i);c=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,i){if(p){if(typeof p=="string")return a(p,i);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,i)}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,m=new Array(i);c",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(l,d){var u=parseInt(d,10);return String.fromCharCode(u)}).replace(/&#x?([0-9a-f]+);/gi,function(l,d){var u=parseInt(d,16);return String.fromCharCode(u)})}return p}(),y=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return p}()},32742:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function p(i){if(Array.isArray(i))return p(i.join(""));for(var c=i.split("\n"),m,l=n(c),d;!(d=l()).done;)for(var u=d.value,s=0;s",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(l,d){var u=parseInt(d,10);return String.fromCharCode(u)}).replace(/&#x?([0-9a-f]+);/gi,function(l,d){var u=parseInt(d,16);return String.fromCharCode(u)})}return p}(),y=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return p}()},32742:function(L,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,N){N===void 0&&(N=!1);var k;return function(){for(var S=arguments.length,y=new Array(S),p=0;p=f)o.apply(null,p),N=c;else{var m;k=setTimeout(function(){return S.apply(void 0,p)},f-(c-((m=N)!=null?m:0)))}}return S}()}return t}()},41202:function(I,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(72026);/** + */var n=r.debounce=function(){function t(o,f,N){N===void 0&&(N=!1);var k;return function(){for(var S=arguments.length,y=new Array(S),p=0;p=f)o.apply(null,p),N=c;else{var m;k=setTimeout(function(){return S.apply(void 0,p)},f-(c-((m=N)!=null?m:0)))}}return S}()}return t}()},41202:function(L,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(72026);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -58,11 +58,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,u){return d+u},t=function(d,u){return d-u},o=function(d,u){return d*u},f=function(d,u){return d/u},N=r.vecAdd=function(){function l(){for(var d=arguments.length,u=new Array(d),s=0;s=0)&&(y[i]=k[i]);return y}var N=r.BlockQuote=function(){function k(S){var y=S.className,p=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",y])},p)))}return k}()},93843:function(I,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(66586),a=n(28823),t=n(32883),o=n(30381),f=["as","className","children"];/** + */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.BlockQuote=function(){function k(S){var y=S.className,p=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",y])},p)))}return k}()},93843:function(L,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(66586),a=n(28823),t=n(32883),o=n(30381),f=["as","className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(v,h){if(v==null)return{};var V={},b=Object.keys(v),B,L;for(L=0;L=0)&&(V[B]=v[B]);return V}var k=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return v}(),S=r.halfUnit=function(){function v(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return v}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},i=function(h){return function(V,b){(typeof b=="number"||typeof b=="string")&&(V[h]=b)}},c=function(h,V){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=V(B))}},m=function(h,V){return function(b,B){B&&(b[h]=V)}},l=function(h,V,b){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var w=0;w0&&(V.style=x),V}return v}(),C=r.computeBoxClassName=function(){function v(h){var V=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(V)&&"color-"+V,p(b)&&"color-bg-"+b])}return v}(),g=r.Box=function(){function v(h){var V=h.as,b=V===void 0?"div":V,B=h.className,L=h.children,w=N(h,f);if(typeof L=="function")return L(s(h));var T=typeof B=="string"?B+" "+C(w):C(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,L,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),f=n(93843),N=n(69433),k=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function N(v,h){if(v==null)return{};var V={},b=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var k=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return v}(),S=r.halfUnit=function(){function v(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return v}(),y=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},i=function(h){return function(V,b){(typeof b=="number"||typeof b=="string")&&(V[h]=b)}},c=function(h,V){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=V(B))}},m=function(h,V){return function(b,B){B&&(b[h]=V)}},l=function(h,V,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(V.style=x),V}return v}(),C=r.computeBoxClassName=function(){function v(h){var V=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(V)&&"color-"+V,p(b)&&"color-bg-"+b])}return v}(),g=r.Box=function(){function v(h){var V=h.as,b=V===void 0?"div":V,B=h.className,I=h.children,w=N(h,f);if(typeof I=="function")return I(s(h));var T=typeof B=="string"?B+" "+C(w):C(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),f=n(93843),N=n(69433),k=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,m(v,h)}function m(v,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function V(b,B){return b.__proto__=B,b}return V}(),m(v,h)}function l(v,h){if(v==null)return{};var V={},b=Object.keys(v),B,L;for(L=0;L=0)&&(V[B]=v[B]);return V}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function v(h){var V=h.className,b=h.fluid,B=h.icon,L=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,P=h.tooltip,R=h.tooltipPosition,M=h.ellipsis,D=h.compact,j=h.circular,W=h.content,U=h.iconColor,K=h.iconRight,$=h.iconStyle,z=h.children,Y=h.onclick,H=h.onClick,Q=h.multiLine,re=l(h,S),ae=!!(W||z);Y&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),re.onClick=function(ve){!x&&H&&H(ve)},Byond.IS_LTE_IE8&&(re.unselectable=!0);var de=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ae&&"Button--hasContent",M&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",Q&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",V]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function ve(ye){var Le=window.event?ye.which:ye.keyCode;if(Le===t.KEY_SPACE||Le===t.KEY_ENTER){ye.preventDefault(),!x&&H&&H(ye);return}if(Le===t.KEY_ESCAPE){ye.preventDefault();return}}return ve}()},re,{children:[B&&!K&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:L,spin:w,style:$}),W,z,B&&K&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:L,spin:w,style:$})]})));return P&&(de=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:de})),de}return v}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(h){var V=h.checked,b=l(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:V?"check-square-o":"square-o",selected:V},b)))}return v}();u.Checkbox=s;var C=r.ButtonConfirm=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var V=h.prototype;return V.setClickedOnce=function(){function b(B){var L=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",L.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),V.render=function(){function b(){var B=this,L=this.props,w=L.confirmContent,T=w===void 0?"Confirm?":w,A=L.confirmColor,x=A===void 0?"bad":A,E=L.confirmIcon,P=L.icon,R=L.color,M=L.content,D=L.onClick,j=l(L,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:R,onClick:function(){function W(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return W}()},j)))}return b}(),h}(e.Component);u.Confirm=C;var g=r.ButtonInput=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var V=h.prototype;return V.setInInput=function(){function b(B){var L=this.props.disabled;if(!L&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),V.commitResult=function(){function b(B){if(this.inputRef){var L=this.inputRef.current,w=L.value!=="";if(w){this.props.onCommit(B,L.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),V.render=function(){function b(){var B=this,L=this.props,w=L.fluid,T=L.content,A=L.icon,x=L.iconRotation,E=L.iconSpin,P=L.tooltip,R=L.tooltipPosition,M=L.color,D=M===void 0?"default":M,j=L.disabled,W=L.placeholder,U=L.maxLength,K=L.multiLine,$=l(L,i),z=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+D,K+"Button--multiLine"])},$,{onClick:function(){function Y(){return B.setInInput(!0)}return Y}(),children:[A&&(0,e.createComponentVNode)(2,N.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function Y(H){B.state.inInput&&(B.setInInput(!1),B.commitResult(H))}return Y}(),onKeyDown:function(){function Y(H){if(H.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(H);return}H.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return Y}()},null,this.inputRef)]})));return P&&(z=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:z})),z}return b}(),h}(e.Component);u.Input=g},75614:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),f=n(93843),N=["params"],k=["params"],S=["parent","params"];function y(C,g){if(C==null)return{};var v={},h=Object.keys(C),V,b;for(b=0;b=0)&&(v[V]=C[V]);return v}function p(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,i(C,g)}function i(C,g){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(h,V){return h.__proto__=V,h}return v}(),i(C,g)}/** + */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,m(v,h)}function m(v,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function V(b,B){return b.__proto__=B,b}return V}(),m(v,h)}function l(v,h){if(v==null)return{};var V={},b=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function v(h){var V=h.className,b=h.fluid,B=h.icon,I=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,P=h.tooltip,R=h.tooltipPosition,M=h.ellipsis,D=h.compact,j=h.circular,W=h.content,U=h.iconColor,K=h.iconRight,$=h.iconStyle,z=h.children,Y=h.onclick,H=h.onClick,Q=h.multiLine,re=l(h,S),ae=!!(W||z);Y&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),re.onClick=function(ve){!x&&H&&H(ve)},Byond.IS_LTE_IE8&&(re.unselectable=!0);var de=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ae&&"Button--hasContent",M&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",Q&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",V]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function ve(ye){var Ie=window.event?ye.which:ye.keyCode;if(Ie===t.KEY_SPACE||Ie===t.KEY_ENTER){ye.preventDefault(),!x&&H&&H(ye);return}if(Ie===t.KEY_ESCAPE){ye.preventDefault();return}}return ve}()},re,{children:[B&&!K&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:$}),W,z,B&&K&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:$})]})));return P&&(de=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:de})),de}return v}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(h){var V=h.checked,b=l(h,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:V?"check-square-o":"square-o",selected:V},b)))}return v}();u.Checkbox=s;var C=r.ButtonConfirm=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var V=h.prototype;return V.setClickedOnce=function(){function b(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),V.render=function(){function b(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,R=I.color,M=I.content,D=I.onClick,j=l(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:R,onClick:function(){function W(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return W}()},j)))}return b}(),h}(e.Component);u.Confirm=C;var g=r.ButtonInput=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var V=h.prototype;return V.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),V.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),V.render=function(){function b(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,R=I.tooltipPosition,M=I.color,D=M===void 0?"default":M,j=I.disabled,W=I.placeholder,U=I.maxLength,K=I.multiLine,$=l(I,i),z=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+D,K+"Button--multiLine"])},$,{onClick:function(){function Y(){return B.setInInput(!0)}return Y}(),children:[A&&(0,e.createComponentVNode)(2,N.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function Y(H){B.state.inInput&&(B.setInInput(!1),B.commitResult(H))}return Y}(),onKeyDown:function(){function Y(H){if(H.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(H);return}H.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return Y}()},null,this.inputRef)]})));return P&&(z=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:R,children:z})),z}return b}(),h}(e.Component);u.Input=g},75614:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),f=n(93843),N=["params"],k=["params"],S=["parent","params"];function y(C,g){if(C==null)return{};var v={},h=Object.keys(C),V,b;for(b=0;b=0)&&(v[V]=C[V]);return v}function p(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,i(C,g)}function i(C,g){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(h,V){return h.__proto__=V,h}return v}(),i(C,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],l=function(g){var v=m.length;m.push(null);var h=g||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function V(b){c.log("rendering '"+h+"'"),m[v]=h,Byond.winset(h,b)}return V}(),unmount:function(){function V(){c.log("unmounting '"+h+"'"),m[v]=null,Byond.winset(h,{parent:""})}return V}()}};window.addEventListener("beforeunload",function(){for(var C=0;C=0)&&(u[C]=l[C]);return u}function k(l,d){l.prototype=Object.create(d.prototype),l.prototype.constructor=l,S(l,d)}function S(l,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,C){return s.__proto__=C,s}return u}(),S(l,d)}/** +*/var c=(0,o.createLogger)("ByondUi"),m=[],l=function(g){var v=m.length;m.push(null);var h=g||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function V(b){c.log("rendering '"+h+"'"),m[v]=h,Byond.winset(h,b)}return V}(),unmount:function(){function V(){c.log("unmounting '"+h+"'"),m[v]=null,Byond.winset(h,{parent:""})}return V}()}};window.addEventListener("beforeunload",function(){for(var C=0;C=0)&&(u[C]=l[C]);return u}function k(l,d){l.prototype=Object.create(d.prototype),l.prototype.constructor=l,S(l,d)}function S(l,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,C){return s.__proto__=C,s}return u}(),S(l,d)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=function(d,u,s,C){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);s!==void 0&&(g[0]=s[0],v[0]=s[1]),C!==void 0&&(g[1]=C[0],v[1]=C[1]);var h=(0,a.map)(function(V){return(0,a.zipWith)(function(b,B,L,w){return(b-B)/(L-B)*w})(V,g,v,u)})(d);return h},p=function(d){for(var u="",s=0;s0){var M=R[0],D=R[R.length-1];R.push([P[0]+x,D[1]]),R.push([P[0]+x,-x]),R.push([-x,-x]),R.push([-x,M[1]])}var j=p(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:L,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return W}()})))}return s}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:Byond.IS_LTE_IE8?c:i}},52760:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function f(y,p){if(y==null)return{};var i={},c=Object.keys(y),m,l;for(l=0;l=0)&&(i[m]=y[m]);return i}function N(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,m){return c.__proto__=m,c}return i}(),k(y,p)}/** +*/var y=function(d,u,s,C){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);s!==void 0&&(g[0]=s[0],v[0]=s[1]),C!==void 0&&(g[1]=C[0],v[1]=C[1]);var h=(0,a.map)(function(V){return(0,a.zipWith)(function(b,B,I,w){return(b-B)/(I-B)*w})(V,g,v,u)})(d);return h},p=function(d){for(var u="",s=0;s0){var M=R[0],D=R[R.length-1];R.push([P[0]+x,D[1]]),R.push([P[0]+x,-x]),R.push([-x,-x]),R.push([-x,M[1]])}var j=p(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return W}()})))}return s}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:Byond.IS_LTE_IE8?c:i}},52760:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function f(y,p){if(y==null)return{};var i={},c=Object.keys(y),m,l;for(l=0;l=0)&&(i[m]=y[m]);return i}function N(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,k(y,p)}function k(y,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,m){return c.__proto__=m,c}return i}(),k(y,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(y){N(p,y);function p(c){var m;m=y.call(this,c)||this;var l=c.open;return m.state={open:l||!1},m}var i=p.prototype;return i.render=function(){function c(){var m=this,l=this.props,d=this.state.open,u=l.children,s=l.color,C=s===void 0?"default":s,g=l.title,v=l.buttons,h=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:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!d})}return V}()},h,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:u})]})}return c}(),p}(e.Component)},25762:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** +*/var S=r.Collapsible=function(y){N(p,y);function p(c){var m;m=y.call(this,c)||this;var l=c.open;return m.state={open:l||!1},m}var i=p.prototype;return i.render=function(){function c(){var m=this,l=this.props,d=this.state.open,u=l.children,s=l.color,C=s===void 0?"default":s,g=l.title,v=l.buttons,h=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:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!d})}return V}()},h,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:u})]})}return c}(),p}(e.Component)},25762:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.ColorBox=function(){function k(S){var y=S.content,p=S.children,i=S.className,c=S.color,m=S.backgroundColor,l=f(S,o);return l.color=y?null:"transparent",l.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),y||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return k}();N.defaultHooks=a.pureComponentHooks},73712:function(I,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(28823),a=n(93843),t=["format"];function o(S,y){if(S==null)return{};var p={},i=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}function f(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,N(S,y)}function N(S,y){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(i,c){return i.__proto__=c,i}return p}(),N(S,y)}var k=r.Countdown=function(S){f(y,S);function y(i){var c;return c=S.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}var p=y.prototype;return p.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),p.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,m=c.format,l=o(c,t),d=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,d):d})))}return i}(),y}(e.Component);k.defaultProps={rate:1e3}},15148:function(I,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","children"];/** + */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.ColorBox=function(){function k(S){var y=S.content,p=S.children,i=S.className,c=S.color,m=S.backgroundColor,l=f(S,o);return l.color=y?null:"transparent",l.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),y||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return k}();N.defaultHooks=a.pureComponentHooks},73712:function(L,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(28823),a=n(93843),t=["format"];function o(S,y){if(S==null)return{};var p={},i=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}function f(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,N(S,y)}function N(S,y){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(i,c){return i.__proto__=c,i}return p}(),N(S,y)}var k=r.Countdown=function(S){f(y,S);function y(i){var c;return c=S.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}var p=y.prototype;return p.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),p.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,m=c.format,l=o(c,t),d=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,d):d})))}return i}(),y}(e.Component);k.defaultProps={rate:1e3}},15148:function(L,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.Dimmer=function(){function k(S){var y=S.className,p=S.children,i=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(y))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return k}()},81878:function(I,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(28823),a=n(66586);/** + */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.Dimmer=function(){function k(S){var y=S.className,p=S.children,i=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(y))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return k}()},81878:function(L,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(28823),a=n(66586);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var N=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function f(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,N(p,i)}function N(p,i){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),N(p,i)}var k=400,S=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},y=r.DraggableControl=function(p){f(i,p);function i(m){var l;return l=p.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 d=l.props.suppressFlicker;d>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},d))},l.handleDragStart=function(d){var u=l.props,s=u.value,C=u.dragMatrix,g=u.disabled,v=l.state.editing;v||g||(document.body.style["pointer-events"]="none",l.ref=d.currentTarget,l.setState({originalValue:s,dragging:!1,value:s,origin:S(d,C)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,V=h.dragging,b=h.value,B=l.props.onDrag;V&&B&&B(d,b)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(d){var u,s=l.props,C=s.minValue,g=s.maxValue,v=s.step,h=s.dragMatrix,V=s.disabled;if(!V){var b=l.ref.offsetWidth/((g-C)/v),B=(u=l.props.stepPixelSize)!=null?u:b;typeof B=="function"&&(B=B(b)),l.setState(function(L){var w=Object.assign({},L),T=L.origin,A=S(d,h)-T;if(L.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,C,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},l.handleDragEnd=function(d){var u=l.props,s=u.onChange,C=u.onDrag,g=l.state,v=g.dragging,h=g.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(),s&&s(d,h),C&&C(d,h);else if(l.inputRef){var V=l.inputRef.current;V.value=h;try{V.focus(),V.select()}catch(b){}}},l}var c=i.prototype;return c.render=function(){function m(){var l=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,h=v.animated,V=v.value,b=v.unit,B=v.minValue,L=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,R=v.fontSize,M=v.disabled,D=V;(u||g)&&(D=C);var j=function(){function K($){return $+(b?" "+b:"")}return K}(),W=h&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||M?"none":void 0,height:E,"line-height":P,"font-size":R},onBlur:function(){function K($){if(s){var z=(0,a.clamp)(parseFloat($.target.value),B,L);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),T&&T($,z),A&&A($,z)}}return K}(),onKeyDown:function(){function K($){if($.keyCode===13){var z=(0,a.clamp)(parseFloat($.target.value),B,L);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),T&&T($,z),A&&A($,z);return}if($.keyCode===27){l.setState({editing:!1});return}}return K}(),disabled:M},null,this.inputRef);return x({dragging:u,editing:s,value:V,displayValue:D,displayElement:W,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),f=n(69433),N=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(s,C){if(s==null)return{};var g={},v=Object.keys(s),h,V;for(V=0;V=0)&&(g[h]=s[h]);return g}function p(s,C){s.prototype=Object.create(C.prototype),s.prototype.constructor=s,i(s,C)}function i(s,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),i(s,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function s(){return null}return s}()},l="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",u=r.Dropdown=function(s){p(C,s);function C(v){var h;return h=s.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=C.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),C.renderedMenu=h);var V=this.getDOMNode();C.currentOpenMenu=V,h.scrollTop=0,h.style.width=this.props.menuWidth||V.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=C.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var h=this,V=C.renderedMenu;if(V){V.offsetHeight>200?V.className=d:V.className=l;var b=this.props.options,B=b===void 0?[]:b,L=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=L.length?L:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),V,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,V,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(h){var V=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){V.openMenu(),window.addEventListener("click",V.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(h){this.setState(function(V){return Object.assign({},V,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),g.render=function(){function v(){var h=this,V=this.props,b=V.icon,B=V.iconRotation,L=V.iconSpin,w=V.clipSelectedText,T=w===void 0?!0:w,A=V.color,x=A===void 0?"default":A,E=V.dropdownStyle,P=V.over,R=V.nochevron,M=V.width,D=V.onClick,j=V.onSelected,W=V.selected,U=V.disabled,K=V.displayText,$=y(V,N),z=$.className,Y=y($,k),H=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",z]),onClick:function(){function Q(re){U&&!h.state.open||(h.setOpen(!h.state.open),D&&D(re))}return Q}()},Y,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:L,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:H?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var C,g;return(C=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?C:m}return s}()}},92462:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],f=["className"],N=["className","style","grow","order","shrink","basis","align"],k=["className"];/** + */var t=r.Divider=function(){function o(f){var N=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function f(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,N(p,i)}function N(p,i){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),N(p,i)}var k=400,S=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},y=r.DraggableControl=function(p){f(i,p);function i(m){var l;return l=p.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 d=l.props.suppressFlicker;d>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},d))},l.handleDragStart=function(d){var u=l.props,s=u.value,C=u.dragMatrix,g=u.disabled,v=l.state.editing;v||g||(document.body.style["pointer-events"]="none",l.ref=d.currentTarget,l.setState({originalValue:s,dragging:!1,value:s,origin:S(d,C)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,V=h.dragging,b=h.value,B=l.props.onDrag;V&&B&&B(d,b)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(d){var u,s=l.props,C=s.minValue,g=s.maxValue,v=s.step,h=s.dragMatrix,V=s.disabled;if(!V){var b=l.ref.offsetWidth/((g-C)/v),B=(u=l.props.stepPixelSize)!=null?u:b;typeof B=="function"&&(B=B(b)),l.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(d,h)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,C,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},l.handleDragEnd=function(d){var u=l.props,s=u.onChange,C=u.onDrag,g=l.state,v=g.dragging,h=g.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(),s&&s(d,h),C&&C(d,h);else if(l.inputRef){var V=l.inputRef.current;V.value=h;try{V.focus(),V.select()}catch(b){}}},l}var c=i.prototype;return c.render=function(){function m(){var l=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,h=v.animated,V=v.value,b=v.unit,B=v.minValue,I=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,R=v.fontSize,M=v.disabled,D=V;(u||g)&&(D=C);var j=function(){function K($){return $+(b?" "+b:"")}return K}(),W=h&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||M?"none":void 0,height:E,"line-height":P,"font-size":R},onBlur:function(){function K($){if(s){var z=(0,a.clamp)(parseFloat($.target.value),B,I);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),T&&T($,z),A&&A($,z)}}return K}(),onKeyDown:function(){function K($){if($.keyCode===13){var z=(0,a.clamp)(parseFloat($.target.value),B,I);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),T&&T($,z),A&&A($,z);return}if($.keyCode===27){l.setState({editing:!1});return}}return K}(),disabled:M},null,this.inputRef);return x({dragging:u,editing:s,value:V,displayValue:D,displayElement:W,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),f=n(69433),N=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(s,C){if(s==null)return{};var g={},v=Object.keys(s),h,V;for(V=0;V=0)&&(g[h]=s[h]);return g}function p(s,C){s.prototype=Object.create(C.prototype),s.prototype.constructor=s,i(s,C)}function i(s,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),i(s,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function s(){return null}return s}()},l="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",u=r.Dropdown=function(s){p(C,s);function C(v){var h;return h=s.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=C.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),C.renderedMenu=h);var V=this.getDOMNode();C.currentOpenMenu=V,h.scrollTop=0,h.style.width=this.props.menuWidth||V.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=C.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var h=this,V=C.renderedMenu;if(V){V.offsetHeight>200?V.className=d:V.className=l;var b=this.props.options,B=b===void 0?[]:b,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),V,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,V,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(h){var V=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){V.openMenu(),window.addEventListener("click",V.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(h){this.setState(function(V){return Object.assign({},V,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),g.render=function(){function v(){var h=this,V=this.props,b=V.icon,B=V.iconRotation,I=V.iconSpin,w=V.clipSelectedText,T=w===void 0?!0:w,A=V.color,x=A===void 0?"default":A,E=V.dropdownStyle,P=V.over,R=V.nochevron,M=V.width,D=V.onClick,j=V.onSelected,W=V.selected,U=V.disabled,K=V.displayText,$=y(V,N),z=$.className,Y=y($,k),H=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",z]),onClick:function(){function Q(re){U&&!h.state.open||(h.setOpen(!h.state.open),D&&D(re))}return Q}()},Y,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:H?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var C,g;return(C=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?C:m}return s}()}},92462:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],f=["className"],N=["className","style","grow","order","shrink","basis","align"],k=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}var y=r.computeFlexClassName=function(){function d(u){return(0,a.classes)(["Flex",u.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&u.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(u)])}return d}(),p=r.computeFlexProps=function(){function d(u){var s=u.className,C=u.direction,g=u.wrap,v=u.align,h=u.justify,V=u.inline,b=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":C,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":h})},b))}return d}(),i=r.Flex=function(){function d(u){var s=u.className,C=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(C)]),null,1,Object.assign({},p(C))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(u){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(u)])}return d}(),m=r.computeFlexItemProps=function(){function d(u){var s=u.className,C=u.style,g=u.grow,v=u.order,h=u.shrink,V=u.basis,b=V===void 0?u.width:V,B=u.align,L=S(u,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:v,"align-self":B})},L))}return d}(),l=function(u){var s=u.className,C=S(u,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(C))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},81753:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],f=["size","style"];/** + */function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}var y=r.computeFlexClassName=function(){function d(u){return(0,a.classes)(["Flex",u.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&u.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(u)])}return d}(),p=r.computeFlexProps=function(){function d(u){var s=u.className,C=u.direction,g=u.wrap,v=u.align,h=u.justify,V=u.inline,b=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":C,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":h})},b))}return d}(),i=r.Flex=function(){function d(u){var s=u.className,C=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(C)]),null,1,Object.assign({},p(C))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(u){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(u)])}return d}(),m=r.computeFlexItemProps=function(){function d(u){var s=u.className,C=u.style,g=u.grow,v=u.order,h=u.shrink,V=u.basis,b=V===void 0?u.width:V,B=u.align,I=S(u,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:v,"align-self":B})},I))}return d}(),l=function(u){var s=u.className,C=S(u,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(C))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},81753:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(y,p){if(y==null)return{};var i={},c=Object.keys(y),m,l;for(l=0;l=0)&&(i[m]=y[m]);return i}var k=r.Grid=function(){function y(p){var i=p.children,c=N(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return y}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function y(p){var i=p.size,c=i===void 0?1:i,m=p.style,l=N(p,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},l)))}return y}();k.defaultHooks=t.pureComponentHooks,k.Column=S},69433:function(I,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** + */function N(y,p){if(y==null)return{};var i={},c=Object.keys(y),m,l;for(l=0;l=0)&&(i[m]=y[m]);return i}var k=r.Grid=function(){function y(p){var i=p.children,c=N(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return y}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function y(p){var i=p.size,c=i===void 0?1:i,m=p.style,l=N(p,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},l)))}return y}();k.defaultHooks=t.pureComponentHooks,k.Column=S},69433:function(L,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var k=/-o$/,S=r.Icon=function(){function p(i){var c=i.name,m=i.size,l=i.spin,d=i.className,u=i.style,s=u===void 0?{}:u,C=i.rotation,g=i.inverse,v=N(i,o);m&&(s["font-size"]=m*100+"%"),typeof C=="number"&&(s.transform="rotate("+C+"deg)");var h=k.test(c),V=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+V,l&&"fa-spin"]),style:s},v)))}return p}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function p(i){var c=i.className,m=i.style,l=m===void 0?{}:m,d=i.children,u=N(i,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:l},u,{children:d})))}return p}();S.Stack=y},51190:function(I,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],N=["className","fluid","monospace"];function k(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,y(c,m)}function y(c,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(d,u){return d.__proto__=u,d}return l}(),y(c,m)}/** + */function N(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var k=/-o$/,S=r.Icon=function(){function p(i){var c=i.name,m=i.size,l=i.spin,d=i.className,u=i.style,s=u===void 0?{}:u,C=i.rotation,g=i.inverse,v=N(i,o);m&&(s["font-size"]=m*100+"%"),typeof C=="number"&&(s.transform="rotate("+C+"deg)");var h=k.test(c),V=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+V,l&&"fa-spin"]),style:s},v)))}return p}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function p(i){var c=i.className,m=i.style,l=m===void 0?{}:m,d=i.children,u=N(i,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:l},u,{children:d})))}return p}();S.Stack=y},51190:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],N=["className","fluid","monospace"];function k(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,y(c,m)}function y(c,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(d,u){return d.__proto__=u,d}return l}(),y(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),i=r.Input=function(c){S(m,c);function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(u){var s=d.state.editing,C=d.props.onInput;s||d.setEditing(!0),C&&C(u,u.target.value)},d.handleFocus=function(u){var s=d.state.editing;s||d.setEditing(!0)},d.handleBlur=function(u){var s=d.state.editing,C=d.props.onChange;s&&(d.setEditing(!1),C&&C(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,C=s.onInput,g=s.onChange,v=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),C&&C(u,u.target.value),v&&v(u,u.target.value),d.props.selfClear?u.target.value="":u.target.blur();return}if(u.keyCode===o.KEY_ESCAPE){d.setEditing(!1),u.target.value=p(d.props.value),u.target.blur();return}},d}var l=m.prototype;return l.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.inputRef.current;C&&(C.value=p(s),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),l.componentDidUpdate=function(){function d(u,s){var C=this.state.editing,g=u.value,v=this.props.value,h=this.inputRef.current;h&&!C&&g!==v&&(h.value=p(v))}return d}(),l.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),l.render=function(){function d(){var u=this.props,s=u.selfClear,C=u.onInput,g=u.onChange,v=u.onEnter,h=u.value,V=u.maxLength,b=u.placeholder,B=u.autofocus,L=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,P=k(u,f),R=P.className,M=P.fluid,D=P.monospace,j=k(P,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",D&&"Input--monospace",L&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:V,cols:A,rows:E,disabled:L},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:V,disabled:L},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var p=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),i=r.Input=function(c){S(m,c);function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(u){var s=d.state.editing,C=d.props.onInput;s||d.setEditing(!0),C&&C(u,u.target.value)},d.handleFocus=function(u){var s=d.state.editing;s||d.setEditing(!0)},d.handleBlur=function(u){var s=d.state.editing,C=d.props.onChange;s&&(d.setEditing(!1),C&&C(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,C=s.onInput,g=s.onChange,v=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),C&&C(u,u.target.value),v&&v(u,u.target.value),d.props.selfClear?u.target.value="":u.target.blur();return}if(u.keyCode===o.KEY_ESCAPE){d.setEditing(!1),u.target.value=p(d.props.value),u.target.blur();return}},d}var l=m.prototype;return l.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.inputRef.current;C&&(C.value=p(s),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),l.componentDidUpdate=function(){function d(u,s){var C=this.state.editing,g=u.value,v=this.props.value,h=this.inputRef.current;h&&!C&&g!==v&&(h.value=p(v))}return d}(),l.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),l.render=function(){function d(){var u=this.props,s=u.selfClear,C=u.onInput,g=u.onChange,v=u.onEnter,h=u.value,V=u.maxLength,b=u.placeholder,B=u.autofocus,I=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,P=k(u,f),R=P.className,M=P.fluid,D=P.monospace,j=k(P,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",D&&"Input--monospace",I&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:V,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:V,disabled:I},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var y=r.Knob=function(){function p(i){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},i)));var c=i.animated,m=i.format,l=i.maxValue,d=i.minValue,u=i.onChange,s=i.onDrag,C=i.step,g=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,V=i.value,b=i.className,B=i.style,L=i.fillValue,w=i.color,T=i.ranges,A=T===void 0?{}:T,x=i.size,E=x===void 0?1:x,P=i.bipolar,R=i.children,M=i.popUpPosition,D=S(i,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:V},{children:function(){function j(W){var U=W.dragging,K=W.editing,$=W.value,z=W.displayValue,Y=W.displayElement,H=W.inputElement,Q=W.handleDragStart,re=(0,a.scale)(L!=null?L:z,d,l),ae=(0,a.scale)(z,d,l),de=w||(0,a.keyOfMatchingRange)(L!=null?L:$,A)||"default",ve=(ae-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+de,P&&"Knob--bipolar",b,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+ve+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),Y,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)-re*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),H],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:Q})))}return j}()})))}return p}()},36563:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** + */function S(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var y=r.Knob=function(){function p(i){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},i)));var c=i.animated,m=i.format,l=i.maxValue,d=i.minValue,u=i.onChange,s=i.onDrag,C=i.step,g=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,V=i.value,b=i.className,B=i.style,I=i.fillValue,w=i.color,T=i.ranges,A=T===void 0?{}:T,x=i.size,E=x===void 0?1:x,P=i.bipolar,R=i.children,M=i.popUpPosition,D=S(i,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:V},{children:function(){function j(W){var U=W.dragging,K=W.editing,$=W.value,z=W.displayValue,Y=W.displayElement,H=W.inputElement,Q=W.handleDragStart,re=(0,a.scale)(I!=null?I:z,d,l),ae=(0,a.scale)(z,d,l),de=w||(0,a.keyOfMatchingRange)(I!=null?I:$,A)||"default",ve=(ae-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+de,P&&"Knob--bipolar",b,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+ve+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),Y,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)-re*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),H],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:Q})))}return j}()})))}return p}()},36563:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(S,y){if(S==null)return{};var p={},i=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var N=r.LabeledControls=function(){function S(y){var p=y.children,i=f(y,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:p})))}return S}(),k=function(y){var p=y.label,i=y.children,c=f(y,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};N.Item=k},88488:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(81878),f=n(30341);/** + */function f(S,y){if(S==null)return{};var p={},i=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var N=r.LabeledControls=function(){function S(y){var p=y.children,i=f(y,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:p})))}return S}(),k=function(y){var p=y.label,i=y.children,c=f(y,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};N.Item=k},88488:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(81878),f=n(30341);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=r.LabeledList=function(){function y(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return y}();N.defaultHooks=a.pureComponentHooks;var k=function(p){var i=p.className,c=p.label,m=p.labelColor,l=m===void 0?"label":m,d=p.color,u=p.textAlign,s=p.buttons,C=p.tooltip,g=p.content,v=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:u,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:s?void 0:2,children:[g,v]}),s&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",s,0)],0);return C&&(h=(0,e.createComponentVNode)(2,f.Tooltip,{content:C,children:h})),h};k.defaultHooks=a.pureComponentHooks;var S=function(p){var i=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};S.defaultHooks=a.pureComponentHooks,N.Item=k,N.Divider=S},59743:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),f=["className","children","onEnter"];/** + */var N=r.LabeledList=function(){function y(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return y}();N.defaultHooks=a.pureComponentHooks;var k=function(p){var i=p.className,c=p.label,m=p.labelColor,l=m===void 0?"label":m,d=p.color,u=p.textAlign,s=p.buttons,C=p.tooltip,g=p.content,v=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:u,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:s?void 0:2,children:[g,v]}),s&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",s,0)],0);return C&&(h=(0,e.createComponentVNode)(2,f.Tooltip,{content:C,children:h})),h};k.defaultHooks=a.pureComponentHooks;var S=function(p){var i=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};S.defaultHooks=a.pureComponentHooks,N.Item=k,N.Divider=S},59743:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(S,y){if(S==null)return{};var p={},i=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(y){var p=y.className,i=y.children,c=y.onEnter,m=N(y,f),l;return c&&(l=function(){function d(u){u.keyCode===13&&c(u)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),f=n(83611),N=n(96820);function k(m,l){m.prototype=Object.create(l.prototype),m.prototype.constructor=m,S(m,l)}function S(m,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),S(m,l)}var y=function(l){return l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),l.cancelBubble=!0,l.returnValue=!1,!1},p=r.NanoMap=function(m){k(l,m);function l(u){var s;s=m.call(this,u)||this;var C=window.innerWidth/2-256,g=window.innerHeight/2-256;return s.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},s.handleDragStart=function(v){s.ref=v.target,s.setState({dragging:!1,originX:v.screenX,originY:v.screenY}),document.addEventListener("mousemove",s.handleDragMove),document.addEventListener("mouseup",s.handleDragEnd),y(v)},s.handleDragMove=function(v){s.setState(function(h){var V=Object.assign({},h),b=v.screenX-V.originX,B=v.screenY-V.originY;return h.dragging?(V.offsetX+=b,V.offsetY+=B,V.originX=v.screenX,V.originY=v.screenY):V.dragging=!0,V}),y(v)},s.handleDragEnd=function(v){s.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",s.handleDragMove),document.removeEventListener("mouseup",s.handleDragEnd),y(v)},s.handleZoom=function(v,h){s.setState(function(V){var b=Math.min(Math.max(h,1),8),B=(b-V.zoom)*1.5;return V.zoom=b,V.offsetX=V.offsetX-262*B,V.offsetY=V.offsetY-256*B,u.onZoom&&u.onZoom(V.zoom),V})},s}var d=l.prototype;return d.render=function(){function u(){var s=(0,t.useBackend)(this.context),C=s.config,g=this.state,v=g.dragging,h=g.offsetX,V=g.offsetY,b=g.zoom,B=b===void 0?1:b,L=this.props.children,w=C.map+"_nanomap_z1.png",T=510*B+"px",A={width:T,height:T,"margin-top":V+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:v?"move":"auto"},x={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:A,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(w),style:x}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom})]})}return u}(),l}(e.Component),i=function(l,d){var u=l.x,s=l.y,C=l.zoom,g=C===void 0?1:C,v=l.icon,h=l.tooltip,V=l.color,b=u*2*g-g-3,B=s*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:h,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:B+"px",left:b+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:v,color:V,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(l,d){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function u(s){return s+"x"}return u}(),value:l.zoom,onDrag:function(){function u(s,C){return l.onZoom(s,C)}return u}()})})})})};p.Zoomer=c},19153:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** + */function N(S,y){if(S==null)return{};var p={},i=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(y){var p=y.className,i=y.children,c=y.onEnter,m=N(y,f),l;return c&&(l=function(){function d(u){u.keyCode===13&&c(u)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),f=n(83611),N=n(96820);function k(m,l){m.prototype=Object.create(l.prototype),m.prototype.constructor=m,S(m,l)}function S(m,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),S(m,l)}var y=function(l){return l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),l.cancelBubble=!0,l.returnValue=!1,!1},p=r.NanoMap=function(m){k(l,m);function l(u){var s;s=m.call(this,u)||this;var C=window.innerWidth/2-256,g=window.innerHeight/2-256;return s.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},s.handleDragStart=function(v){s.ref=v.target,s.setState({dragging:!1,originX:v.screenX,originY:v.screenY}),document.addEventListener("mousemove",s.handleDragMove),document.addEventListener("mouseup",s.handleDragEnd),y(v)},s.handleDragMove=function(v){s.setState(function(h){var V=Object.assign({},h),b=v.screenX-V.originX,B=v.screenY-V.originY;return h.dragging?(V.offsetX+=b,V.offsetY+=B,V.originX=v.screenX,V.originY=v.screenY):V.dragging=!0,V}),y(v)},s.handleDragEnd=function(v){s.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",s.handleDragMove),document.removeEventListener("mouseup",s.handleDragEnd),y(v)},s.handleZoom=function(v,h){s.setState(function(V){var b=Math.min(Math.max(h,1),8),B=(b-V.zoom)*1.5;return V.zoom=b,V.offsetX=V.offsetX-262*B,V.offsetY=V.offsetY-256*B,u.onZoom&&u.onZoom(V.zoom),V})},s}var d=l.prototype;return d.render=function(){function u(){var s=(0,t.useBackend)(this.context),C=s.config,g=this.state,v=g.dragging,h=g.offsetX,V=g.offsetY,b=g.zoom,B=b===void 0?1:b,I=this.props.children,w=C.map+"_nanomap_z1.png",T=510*B+"px",A={width:T,height:T,"margin-top":V+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:v?"move":"auto"},x={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:A,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(w),style:x}),(0,e.createComponentVNode)(2,a.Box,{children:I})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom})]})}return u}(),l}(e.Component),i=function(l,d){var u=l.x,s=l.y,C=l.zoom,g=C===void 0?1:C,v=l.icon,h=l.tooltip,V=l.color,b=u*2*g-g-3,B=s*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:h,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:B+"px",left:b+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:v,color:V,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(l,d){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function u(s){return s+"x"}return u}(),value:l.zoom,onDrag:function(){function u(s,C){return l.onZoom(s,C)}return u}()})})})})};p.Zoomer=c},19153:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.NoticeBox=function(){function k(S){var y=S.className,p=S.color,i=S.info,c=S.warning,m=S.success,l=S.danger,d=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",y])},d)))}return k}();N.defaultHooks=a.pureComponentHooks},43023:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843);function N(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,k(p,i)}function k(p,i){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),k(p,i)}/** + */function f(k,S){if(k==null)return{};var y={},p=Object.keys(k),i,c;for(c=0;c=0)&&(y[i]=k[i]);return y}var N=r.NoticeBox=function(){function k(S){var y=S.className,p=S.color,i=S.info,c=S.warning,m=S.success,l=S.danger,d=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",y])},d)))}return k}();N.defaultHooks=a.pureComponentHooks},43023:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843);function N(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,k(p,i)}function k(p,i){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),k(p,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,y=r.NumberInput=function(p){N(i,p);function i(m){var l;l=p.call(this,m)||this;var d=m.value;return l.inputRef=(0,e.createRef)(),l.state={value:d,dragging:!1,editing:!1,internalValue:null,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.value,C=l.state.editing;C||(document.body.style["pointer-events"]="none",l.ref=u.target,l.setState({dragging:!1,origin:u.screenY,value:s,internalValue:s}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var g=l.state,v=g.dragging,h=g.value,V=l.props.onDrag;v&&V&&V(u,h)},l.props.updateRate||S),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s=l.props,C=s.minValue,g=s.maxValue,v=s.step,h=s.stepPixelSize;l.setState(function(V){var b=Object.assign({},V),B=b.origin-u.screenY;if(V.dragging){var L=Number.isFinite(C)?C%v:0;b.internalValue=(0,a.clamp)(b.internalValue+B*v/h,C-v,g+v),b.value=(0,a.clamp)(b.internalValue-b.internalValue%v+L,C,g),b.origin=u.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},l.handleDragEnd=function(u){var s=l.props,C=s.onChange,g=s.onDrag,v=l.state,h=v.dragging,V=v.value,b=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),C&&C(u,V),g&&g(u,V);else if(l.inputRef){var B=l.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(L){}}},l}var c=i.prototype;return c.render=function(){function m(){var l=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,h=v.className,V=v.fluid,b=v.animated,B=v.value,L=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,R=v.format,M=v.onChange,D=v.onDrag,j=B;(u||g)&&(j=C);var W=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!u&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R}):R?R(j):j,L?" "+L:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",V&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function U(K){if(s){var $=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),M&&M(K,$),D&&D(K,$)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var $=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),M&&M(K,$),D&&D(K,$);return}if(K.keyCode===27){l.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),i}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(N,k){N.prototype=Object.create(k.prototype),N.prototype.constructor=N,o(N,k)}function o(N,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(N,k)}var f=r.Popper=function(N){t(k,N);function k(){var y;return y=N.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}var S=k.prototype;return S.componentDidMount=function(){function y(){var p=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,d=Object.entries(c);l0&&(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.value,C=l.state.editing;C||(document.body.style["pointer-events"]="none",l.ref=u.target,l.setState({dragging:!1,origin:u.screenY,value:s,internalValue:s}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var g=l.state,v=g.dragging,h=g.value,V=l.props.onDrag;v&&V&&V(u,h)},l.props.updateRate||S),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(u){var s=l.props,C=s.minValue,g=s.maxValue,v=s.step,h=s.stepPixelSize;l.setState(function(V){var b=Object.assign({},V),B=b.origin-u.screenY;if(V.dragging){var I=Number.isFinite(C)?C%v:0;b.internalValue=(0,a.clamp)(b.internalValue+B*v/h,C-v,g+v),b.value=(0,a.clamp)(b.internalValue-b.internalValue%v+I,C,g),b.origin=u.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},l.handleDragEnd=function(u){var s=l.props,C=s.onChange,g=s.onDrag,v=l.state,h=v.dragging,V=v.value,b=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),C&&C(u,V),g&&g(u,V);else if(l.inputRef){var B=l.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},l}var c=i.prototype;return c.render=function(){function m(){var l=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,h=v.className,V=v.fluid,b=v.animated,B=v.value,I=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,R=v.format,M=v.onChange,D=v.onDrag,j=B;(u||g)&&(j=C);var W=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!u&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R}):R?R(j):j,I?" "+I:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",V&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function U(K){if(s){var $=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),M&&M(K,$),D&&D(K,$)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var $=(0,a.clamp)(parseFloat(K.target.value),w,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),M&&M(K,$),D&&D(K,$);return}if(K.keyCode===27){l.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),i}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(N,k){N.prototype=Object.create(k.prototype),N.prototype.constructor=N,o(N,k)}function o(N,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,p){return y.__proto__=p,y}return S}(),o(N,k)}var f=r.Popper=function(N){t(k,N);function k(){var y;return y=N.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}var S=k.prototype;return S.componentDidMount=function(){function y(){var p=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,d=Object.entries(c);l=0)&&(l[u]=c[u]);return l}var p=r.ProgressBar=function(){function c(m){var l=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,C=m.maxValue,g=C===void 0?1:C,v=m.color,h=m.ranges,V=h===void 0?{}:h,b=m.children,B=m.fractionDigits,L=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=b!==void 0,x=v||(0,a.keyOfMatchingRange)(d,V)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,l,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?b:(0,a.toFixed)(T*100,L)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var i=r.ProgressBarCountdown=function(c){k(m,c);function m(d){var u;return u=c.call(this,d)||this,u.timer=null,u.state={value:Math.max(d.current*100,0)},u}var l=m.prototype;return l.tick=function(){function d(){var u=Math.max(this.state.value+this.props.rate,0);u<=0&&clearInterval(this.timer),this.setState(function(s){return{value:u}})}return d}(),l.componentDidMount=function(){function d(){var u=this;this.timer=setInterval(function(){return u.tick()},this.props.rate)}return d}(),l.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),l.render=function(){function d(){var u=this.props,s=u.start,C=u.current,g=u.end,v=y(u,N),h=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},v)))}return d}(),m}(e.Component);i.defaultProps={rate:1e3},p.Countdown=i},49421:function(I,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),f=n(31068),N=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}function y(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,p(d,u)}function p(d,u){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),p(d,u)}var i=0,c=1e4,m=function(u,s,C,g){var v=s||i,h=C||C===0?C:c;if(!u||!u.length)return String(v);var V=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(V)?String(v):String((0,t.clamp)(V,v,h))},l=r.RestrictedInput=function(d){y(u,d);function u(){var C;return C=d.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(g){var v=C.state.editing;v&&C.setEditing(!1)},C.handleChange=function(g){var v=C.props,h=v.maxValue,V=v.minValue,b=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,V,h,B),b&&b(g,+g.target.value)},C.handleFocus=function(g){var v=C.state.editing;v||C.setEditing(!0)},C.handleInput=function(g){var v=C.state.editing,h=C.props.onInput;v||C.setEditing(!0),h&&h(g,+g.target.value)},C.handleKeyDown=function(g){var v=C.props,h=v.maxValue,V=v.minValue,b=v.onChange,B=v.onEnter,L=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,V,h,L);C.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(g);return}C.setEditing(!1),g.target.value=C.props.value,g.target.blur();return}},C}var s=u.prototype;return s.componentDidMount=function(){function C(){var g,v=this,h=this.props,V=h.maxValue,b=h.minValue,B=h.allowFloats,L=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(L,b,V,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return C}(),s.componentDidUpdate=function(){function C(g,v){var h,V,b=this.props,B=b.maxValue,L=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(V=this.props.value)==null?void 0:V.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,L,B,w))}return C}(),s.setEditing=function(){function C(g){this.setState({editing:g})}return C}(),s.render=function(){function C(){var g=this.props,v=g.onChange,h=g.onEnter,V=g.onInput,b=g.value,B=S(g,N),L=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",L])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),u}(e.Component)},37479:function(I,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843),N=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + */function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,S(c,m)}function S(c,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(d,u){return d.__proto__=u,d}return l}(),S(c,m)}function y(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}var p=r.ProgressBar=function(){function c(m){var l=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,C=m.maxValue,g=C===void 0?1:C,v=m.color,h=m.ranges,V=h===void 0?{}:h,b=m.children,B=m.fractionDigits,I=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=b!==void 0,x=v||(0,a.keyOfMatchingRange)(d,V)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,l,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?b:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var i=r.ProgressBarCountdown=function(c){k(m,c);function m(d){var u;return u=c.call(this,d)||this,u.timer=null,u.state={value:Math.max(d.current*100,0)},u}var l=m.prototype;return l.tick=function(){function d(){var u=Math.max(this.state.value+this.props.rate,0);u<=0&&clearInterval(this.timer),this.setState(function(s){return{value:u}})}return d}(),l.componentDidMount=function(){function d(){var u=this;this.timer=setInterval(function(){return u.tick()},this.props.rate)}return d}(),l.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),l.render=function(){function d(){var u=this.props,s=u.start,C=u.current,g=u.end,v=y(u,N),h=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},v)))}return d}(),m}(e.Component);i.defaultProps={rate:1e3},p.Countdown=i},49421:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),f=n(31068),N=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}function y(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,p(d,u)}function p(d,u){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),p(d,u)}var i=0,c=1e4,m=function(u,s,C,g){var v=s||i,h=C||C===0?C:c;if(!u||!u.length)return String(v);var V=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(V)?String(v):String((0,t.clamp)(V,v,h))},l=r.RestrictedInput=function(d){y(u,d);function u(){var C;return C=d.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(g){var v=C.state.editing;v&&C.setEditing(!1)},C.handleChange=function(g){var v=C.props,h=v.maxValue,V=v.minValue,b=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,V,h,B),b&&b(g,+g.target.value)},C.handleFocus=function(g){var v=C.state.editing;v||C.setEditing(!0)},C.handleInput=function(g){var v=C.state.editing,h=C.props.onInput;v||C.setEditing(!0),h&&h(g,+g.target.value)},C.handleKeyDown=function(g){var v=C.props,h=v.maxValue,V=v.minValue,b=v.onChange,B=v.onEnter,I=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,V,h,I);C.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(g);return}C.setEditing(!1),g.target.value=C.props.value,g.target.blur();return}},C}var s=u.prototype;return s.componentDidMount=function(){function C(){var g,v=this,h=this.props,V=h.maxValue,b=h.minValue,B=h.allowFloats,I=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(I,b,V,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return C}(),s.componentDidUpdate=function(){function C(g,v){var h,V,b=this.props,B=b.maxValue,I=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(V=this.props.value)==null?void 0:V.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,w))}return C}(),s.setEditing=function(){function C(g){this.setState({editing:g})}return C}(),s.render=function(){function C(){var g=this.props,v=g.onChange,h=g.onEnter,V=g.onInput,b=g.value,B=S(g,N),I=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),u}(e.Component)},37479:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843),N=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function k(y,p){if(y==null)return{};var i={},c=Object.keys(y),m,l;for(l=0;l=0)&&(i[m]=y[m]);return i}var S=r.RoundGauge=function(){function y(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var i=p.value,c=p.minValue,m=c===void 0?1:c,l=p.maxValue,d=l===void 0?1:l,u=p.ranges,s=p.alertAfter,C=p.format,g=p.size,v=g===void 0?1:g,h=p.className,V=p.style,b=k(p,N),B=(0,a.scale)(i,m,d),L=(0,a.clamp01)(B),w=u?{}:{primary:[0,1]};u&&Object.keys(u).forEach(function(A){var x=u[A];w[A]=[(0,a.scale)(x[0],m,d),(0,a.scale)(x[1],m,d)]});var T=null;return s=0)&&(c[l]=p[l]);return c}function k(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,S(p,i)}function S(p,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),S(p,i)}/** + */function k(y,p){if(y==null)return{};var i={},c=Object.keys(y),m,l;for(l=0;l=0)&&(i[m]=y[m]);return i}var S=r.RoundGauge=function(){function y(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var i=p.value,c=p.minValue,m=c===void 0?1:c,l=p.maxValue,d=l===void 0?1:l,u=p.ranges,s=p.alertAfter,C=p.format,g=p.size,v=g===void 0?1:g,h=p.className,V=p.style,b=k(p,N),B=(0,a.scale)(i,m,d),I=(0,a.clamp01)(B),w=u?{}:{primary:[0,1]};u&&Object.keys(u).forEach(function(A){var x=u[A];w[A]=[(0,a.scale)(x[0],m,d),(0,a.scale)(x[1],m,d)]});var T=null;return s=0)&&(c[l]=p[l]);return c}function k(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,S(p,i)}function S(p,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,l){return m.__proto__=l,m}return c}(),S(p,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=r.Section=function(p){k(i,p);function i(m){var l;return l=p.call(this,m)||this,l.scrollableRef=void 0,l.scrollable=void 0,l.scrollableRef=(0,e.createRef)(),l.scrollable=m.scrollable,l}var c=i.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var l=this.props,d=l.className,u=l.title,s=l.buttons,C=l.fill,g=l.fitted,v=l.scrollable,h=l.children,V=N(l,f),b=(0,a.canRender)(u)||(0,a.canRender)(s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",C&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(V)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",u,0),(0,e.createVNode)(1,"div","Section__buttons",s,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(V))))}return m}(),i}(e.Component)},83611:function(I,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** +*/var y=r.Section=function(p){k(i,p);function i(m){var l;return l=p.call(this,m)||this,l.scrollableRef=void 0,l.scrollable=void 0,l.scrollableRef=(0,e.createRef)(),l.scrollable=m.scrollable,l}var c=i.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var l=this.props,d=l.className,u=l.title,s=l.buttons,C=l.fill,g=l.fitted,v=l.scrollable,h=l.children,V=N(l,f),b=(0,a.canRender)(u)||(0,a.canRender)(s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",C&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(V)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",u,0),(0,e.createVNode)(1,"div","Section__buttons",s,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(V))))}return m}(),i}(e.Component)},83611:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var y=r.Slider=function(){function p(i){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},i)));var c=i.animated,m=i.format,l=i.maxValue,d=i.minValue,u=i.onChange,s=i.onDrag,C=i.step,g=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,V=i.value,b=i.className,B=i.fillValue,L=i.color,w=i.ranges,T=w===void 0?{}:w,A=i.children,x=i.disabled,E=S(i,k),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:l,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:V,disabled:x},{children:function(){function R(M){var D=M.dragging,j=M.editing,W=M.value,U=M.displayValue,K=M.displayElement,$=M.inputElement,z=M.handleDragStart,Y=B!=null,H=(0,a.scale)(W,d,l),Q=(0,a.scale)(B!=null?B:U,d,l),re=(0,a.scale)(U,d,l),ae=L||(0,a.keyOfMatchingRange)(B!=null?B:W,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ae,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",Y&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(Q)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(Q,re))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),D&&(0,e.createVNode)(1,"div","Slider__popupValue",K,0)],0,{style:{width:(0,a.clamp01)(re)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:K,0),$],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:z})))}return R}()})))}return p}()},78581:function(I,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],f=["className","innerRef"],N=["className","hidden"];/** + */function S(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var y=r.Slider=function(){function p(i){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},i)));var c=i.animated,m=i.format,l=i.maxValue,d=i.minValue,u=i.onChange,s=i.onDrag,C=i.step,g=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,V=i.value,b=i.className,B=i.fillValue,I=i.color,w=i.ranges,T=w===void 0?{}:w,A=i.children,x=i.disabled,E=S(i,k),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:l,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:V,disabled:x},{children:function(){function R(M){var D=M.dragging,j=M.editing,W=M.value,U=M.displayValue,K=M.displayElement,$=M.inputElement,z=M.handleDragStart,Y=B!=null,H=(0,a.scale)(W,d,l),Q=(0,a.scale)(B!=null?B:U,d,l),re=(0,a.scale)(U,d,l),ae=I||(0,a.keyOfMatchingRange)(B!=null?B:W,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ae,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",Y&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(Q)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(Q,re))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),D&&(0,e.createVNode)(1,"div","Slider__popupValue",K,0)],0,{style:{width:(0,a.clamp01)(re)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:K,0),$],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:z})))}return R}()})))}return p}()},78581:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],f=["className","innerRef"],N=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function k(i,c){if(i==null)return{};var m={},l=Object.keys(i),d,u;for(u=0;u=0)&&(m[d]=i[d]);return m}var S=r.Stack=function(){function i(c){var m=c.className,l=c.vertical,d=c.fill,u=k(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",d&&"Stack--fill",l?"Stack--vertical":"Stack--horizontal",m,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:l?"column":"row"},u)))))}return i}(),y=function(c){var m=c.className,l=c.innerRef,d=k(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d)),null,l))};S.Item=y;var p=function(c){var m=c.className,l=c.hidden,d=k(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",l&&"Stack__divider--hidden",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d))))};S.Divider=p},99753:function(I,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","collapsing","children"],f=["className","header"],N=["className","collapsing","header"];/** + */function k(i,c){if(i==null)return{};var m={},l=Object.keys(i),d,u;for(u=0;u=0)&&(m[d]=i[d]);return m}var S=r.Stack=function(){function i(c){var m=c.className,l=c.vertical,d=c.fill,u=k(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",d&&"Stack--fill",l?"Stack--vertical":"Stack--horizontal",m,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:l?"column":"row"},u)))))}return i}(),y=function(c){var m=c.className,l=c.innerRef,d=k(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d)),null,l))};S.Item=y;var p=function(c){var m=c.className,l=c.hidden,d=k(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",l&&"Stack__divider--hidden",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d))))};S.Divider=p},99753:function(L,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","collapsing","children"],f=["className","header"],N=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(i,c){if(i==null)return{};var m={},l=Object.keys(i),d,u;for(u=0;u=0)&&(m[d]=i[d]);return m}var S=r.Table=function(){function i(c){var m=c.className,l=c.collapsing,d=c.children,u=k(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",l&&"Table--collapsing",m,(0,t.computeBoxClassName)(u)]),(0,e.createVNode)(1,"tbody",null,d,0),2,Object.assign({},(0,t.computeBoxProps)(u))))}return i}();S.defaultHooks=a.pureComponentHooks;var y=r.TableRow=function(){function i(c){var m=c.className,l=c.header,d=k(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",l&&"Table__row--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(d))))}return i}();y.defaultHooks=a.pureComponentHooks;var p=r.TableCell=function(){function i(c){var m=c.className,l=c.collapsing,d=c.header,u=k(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",l&&"Table__cell--collapsing",d&&"Table__cell--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(u))))}return i}();p.defaultHooks=a.pureComponentHooks,S.Row=y,S.Cell=p},96517:function(I,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(69433),f=["className","vertical","fill","fluid","children"],N=["className","selected","color","icon","leftSlot","rightSlot","children"];/** + */function k(i,c){if(i==null)return{};var m={},l=Object.keys(i),d,u;for(u=0;u=0)&&(m[d]=i[d]);return m}var S=r.Table=function(){function i(c){var m=c.className,l=c.collapsing,d=c.children,u=k(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",l&&"Table--collapsing",m,(0,t.computeBoxClassName)(u)]),(0,e.createVNode)(1,"tbody",null,d,0),2,Object.assign({},(0,t.computeBoxProps)(u))))}return i}();S.defaultHooks=a.pureComponentHooks;var y=r.TableRow=function(){function i(c){var m=c.className,l=c.header,d=k(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",l&&"Table__row--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(d))))}return i}();y.defaultHooks=a.pureComponentHooks;var p=r.TableCell=function(){function i(c){var m=c.className,l=c.collapsing,d=c.header,u=k(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",l&&"Table__cell--collapsing",d&&"Table__cell--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(u))))}return i}();p.defaultHooks=a.pureComponentHooks,S.Row=y,S.Cell=p},96517:function(L,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(69433),f=["className","vertical","fill","fluid","children"],N=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var S=r.Tabs=function(){function p(i){var c=i.className,m=i.vertical,l=i.fill,d=i.fluid,u=i.children,s=k(i,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",l&&"Tabs--fill",d&&"Tabs--fluid",c,(0,t.computeBoxClassName)(s)]),u,0,Object.assign({},(0,t.computeBoxProps)(s))))}return p}(),y=function(i){var c=i.className,m=i.selected,l=i.color,d=i.icon,u=i.leftSlot,s=i.rightSlot,C=i.children,g=k(i,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+l,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(u)&&(0,e.createVNode)(1,"div","Tab__left",u,0)||!!d&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:d}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__right",s,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=y},12764:function(I,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),f=n(31068),N=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["className","fluid"];function S(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}function y(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(d,u){return d.__proto__=u,d}return l}(),p(c,m)}/** + */function k(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var S=r.Tabs=function(){function p(i){var c=i.className,m=i.vertical,l=i.fill,d=i.fluid,u=i.children,s=k(i,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",l&&"Tabs--fill",d&&"Tabs--fluid",c,(0,t.computeBoxClassName)(s)]),u,0,Object.assign({},(0,t.computeBoxProps)(s))))}return p}(),y=function(i){var c=i.className,m=i.selected,l=i.color,d=i.icon,u=i.leftSlot,s=i.rightSlot,C=i.children,g=k(i,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+l,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(u)&&(0,e.createVNode)(1,"div","Tab__left",u,0)||!!d&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:d}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__right",s,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=y},12764:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),f=n(31068),N=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["className","fluid"];function S(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}function y(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(d,u){return d.__proto__=u,d}return l}(),p(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var i=r.TextArea=function(c){y(m,c);function m(d,u){var s;s=c.call(this,d,u)||this,s.textareaRef=d.innerRef||(0,e.createRef)(),s.fillerRef=(0,e.createRef)(),s.state={editing:!1};var C=d.dontUseTabForIndent,g=C===void 0?!1:C;return s.handleOnInput=function(v){var h=s.state.editing,V=s.props.onInput;h||s.setEditing(!0),V&&V(v,v.target.value)},s.handleOnChange=function(v){var h=s.state.editing,V=s.props.onChange;h&&s.setEditing(!1),V&&V(v,v.target.value)},s.handleKeyPress=function(v){var h=s.state.editing,V=s.props.onKeyPress;h||s.setEditing(!0),V&&V(v,v.target.value)},s.handleKeyDown=function(v){var h=s.state.editing,V=s.props,b=V.onChange,B=V.onInput,L=V.onEnter,w=V.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),b&&b(v,v.target.value),B&&B(v,v.target.value),L&&L(v,v.target.value),s.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){s.props.onEscape&&s.props.onEscape(v),s.setEditing(!1),s.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(s.props.value),v.target.blur());return}if(h||s.setEditing(!0),w&&w(v,v.target.value),!g){var T=v.keyCode||v.which;if(T===f.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var h=s.state.editing;h||s.setEditing(!0)},s.handleBlur=function(v){var h=s.state.editing,V=s.props.onChange;h&&(s.setEditing(!1),V&&V(v,v.target.value))},s}var l=m.prototype;return l.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),l.componentDidUpdate=function(){function d(u,s){var C=u.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&C!==g&&(v.value=(0,o.toInputValue)(g))}return d}(),l.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),l.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),l.render=function(){function d(){var u=this.props,s=u.onChange,C=u.onKeyDown,g=u.onKeyPress,v=u.onInput,h=u.onFocus,V=u.onBlur,b=u.onEnter,B=u.value,L=u.maxLength,w=u.placeholder,T=S(u,N),A=T.className,x=T.fluid,E=S(T,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:L},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(I,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(N){return N.length<2?"0"+N:N}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},30341:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,m){return c.__proto__=m,c}return i}(),f(y,p)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){o(p,y);function p(){return y.apply(this,arguments)||this}var i=p.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var m=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var d=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=l,d.style.opacity="1",m.renderPopperContent()}),l.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var m=this,l=p.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,l,Object.assign({},N,{placement:m.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},N,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,i;return(p=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?p:k}return y}()}},2971:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var f=n(93843);r.Box=f.Box;var N=n(16699);r.Button=N.Button;var k=n(75614);r.ByondUi=k.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var p=n(25762);r.ColorBox=p.ColorBox;var i=n(73712);r.Countdown=i.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var m=n(81878);r.Divider=m.Divider;var l=n(41584);r.DraggableControl=l.DraggableControl;var d=n(99936);r.Dropdown=d.Dropdown;var u=n(92462);r.Flex=u.Flex;var s=n(81753);r.Grid=s.Grid;var C=n(69433);r.Icon=C.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var V=n(88488);r.LabeledList=V.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var L=n(19153);r.NoticeBox=L.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var R=n(83611);r.Slider=R.Slider;var M=n(78581);r.Stack=M.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var W=n(12764);r.TextArea=W.TextArea;var U=n(71218);r.TimeDisplay=U.TimeDisplay;var K=n(30341);r.Tooltip=K.Tooltip},30381:function(I,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],N=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],k=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function i(c,m){var l=String(c).toLowerCase(),d=k.find(function(u){return u.id===l||u.name.toLowerCase()===l});return d&&d.label||m||c}return i}(),y=r.getGasColor=function(){function i(c){var m=String(c).toLowerCase(),l=k.find(function(d){return d.id===m||d.name.toLowerCase()===m});return l&&l.color}return i}(),p=r.timeAgo=function(){function i(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var d=Math.round(l/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(l>60){var u=Math.round(l/60);return u+" minute"+(u===1?"":"s")+" ago"}else{var s=Math.round(l);return s+" second"+(s===1?"":"s")+" ago"}return"just now"}return i}()},28766:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** +*/var i=r.TextArea=function(c){y(m,c);function m(d,u){var s;s=c.call(this,d,u)||this,s.textareaRef=d.innerRef||(0,e.createRef)(),s.fillerRef=(0,e.createRef)(),s.state={editing:!1};var C=d.dontUseTabForIndent,g=C===void 0?!1:C;return s.handleOnInput=function(v){var h=s.state.editing,V=s.props.onInput;h||s.setEditing(!0),V&&V(v,v.target.value)},s.handleOnChange=function(v){var h=s.state.editing,V=s.props.onChange;h&&s.setEditing(!1),V&&V(v,v.target.value)},s.handleKeyPress=function(v){var h=s.state.editing,V=s.props.onKeyPress;h||s.setEditing(!0),V&&V(v,v.target.value)},s.handleKeyDown=function(v){var h=s.state.editing,V=s.props,b=V.onChange,B=V.onInput,I=V.onEnter,w=V.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),b&&b(v,v.target.value),B&&B(v,v.target.value),I&&I(v,v.target.value),s.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){s.props.onEscape&&s.props.onEscape(v),s.setEditing(!1),s.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(s.props.value),v.target.blur());return}if(h||s.setEditing(!0),w&&w(v,v.target.value),!g){var T=v.keyCode||v.which;if(T===f.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var h=s.state.editing;h||s.setEditing(!0)},s.handleBlur=function(v){var h=s.state.editing,V=s.props.onChange;h&&(s.setEditing(!1),V&&V(v,v.target.value))},s}var l=m.prototype;return l.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),l.componentDidUpdate=function(){function d(u,s){var C=u.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&C!==g&&(v.value=(0,o.toInputValue)(g))}return d}(),l.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),l.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),l.render=function(){function d(){var u=this.props,s=u.onChange,C=u.onKeyDown,g=u.onKeyPress,v=u.onInput,h=u.onFocus,V=u.onBlur,b=u.onEnter,B=u.value,I=u.maxLength,w=u.placeholder,T=S(u,N),A=T.className,x=T.fluid,E=S(T,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(L,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(N){return N.length<2?"0"+N:N}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},30341:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,p){y.prototype=Object.create(p.prototype),y.prototype.constructor=y,f(y,p)}function f(y,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,m){return c.__proto__=m,c}return i}(),f(y,p)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){o(p,y);function p(){return y.apply(this,arguments)||this}var i=p.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var m=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var d=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=l,d.style.opacity="1",m.renderPopperContent()}),l.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var m=this,l=p.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,l,Object.assign({},N,{placement:m.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},N,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var p,i;return(p=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?p:k}return y}()}},2971:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var f=n(93843);r.Box=f.Box;var N=n(16699);r.Button=N.Button;var k=n(75614);r.ByondUi=k.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var p=n(25762);r.ColorBox=p.ColorBox;var i=n(73712);r.Countdown=i.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var m=n(81878);r.Divider=m.Divider;var l=n(41584);r.DraggableControl=l.DraggableControl;var d=n(99936);r.Dropdown=d.Dropdown;var u=n(92462);r.Flex=u.Flex;var s=n(81753);r.Grid=s.Grid;var C=n(69433);r.Icon=C.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var V=n(88488);r.LabeledList=V.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var I=n(19153);r.NoticeBox=I.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var R=n(83611);r.Slider=R.Slider;var M=n(78581);r.Stack=M.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var W=n(12764);r.TextArea=W.TextArea;var U=n(71218);r.TimeDisplay=U.TimeDisplay;var K=n(30341);r.Tooltip=K.Tooltip},30381:function(L,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"],N=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],k=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function i(c,m){var l=String(c).toLowerCase(),d=k.find(function(u){return u.id===l||u.name.toLowerCase()===l});return d&&d.label||m||c}return i}(),y=r.getGasColor=function(){function i(c){var m=String(c).toLowerCase(),l=k.find(function(d){return d.id===m||d.name.toLowerCase()===m});return l&&l.color}return i}(),p=r.timeAgo=function(){function i(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var d=Math.round(l/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(l>60){var u=Math.round(l/60);return u+" minute"+(u===1?"":"s")+" ago"}else{var s=Math.round(l);return s+" second"+(s===1?"":"s")+" ago"}return"just now"}return i}()},28766:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(69321),N=function(){return f.keys().map(function(y){return f(y)})},k=r.KitchenSink=function(){function S(y,p){var i=y.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],l=(0,a.useLocalState)(p,"pageIndex",0),d=l[0],u=l[1],s=N(),C=s[d],g=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:s.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function V(){return u(h)}return V}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},20697:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** + */var f=n(69321),N=function(){return f.keys().map(function(y){return f(y)})},k=r.KitchenSink=function(){function S(y,p){var i=y.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],l=(0,a.useLocalState)(p,"pageIndex",0),d=l[0],u=l[1],s=N(),C=s[d],g=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:s.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function V(){return u(h)}return V}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},20697:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},72315:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(90816),a=n(94505);/** + */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},72315:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(90816),a=n(94505);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.useDebug=function(){function o(f){return(0,e.useSelector)(f,a.selectDebug)}return o}()},39241:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(72315);r.useDebug=e.useDebug;var a=n(28766);r.KitchenSink=a.KitchenSink;var t=n(57860);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(42702);r.debugReducer=o.debugReducer},57860:function(I,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(31068),a=n(33053),t=n(39891),o=n(20697);/** + */var t=r.useDebug=function(){function o(f){return(0,e.useSelector)(f,a.selectDebug)}return o}()},39241:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(72315);r.useDebug=e.useDebug;var a=n(28766);r.KitchenSink=a.KitchenSink;var t=n(57860);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(42702);r.debugReducer=o.debugReducer},57860:function(L,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(31068),a=n(33053),t=n(39891),o=n(20697);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=["backend/update","chat/message"],N=r.debugMiddleware=function(){function S(y){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&y.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&y.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.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(p){return function(i){return p(i)}}}return S}(),k=r.relayMiddleware=function(){function S(y){var p=n(87454),i=location.search==="?external";return i?p.subscribe(function(c){var m=c.type,l=c.payload;m==="relay"&&l.windowId===Byond.windowId&&y.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&y.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var l=m.type,d=m.payload,u=m.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(l)&&!u&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},42702:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["backend/update","chat/message"],N=r.debugMiddleware=function(){function S(y){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&y.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&y.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.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(p){return function(i){return p(i)}}}return S}(),k=r.relayMiddleware=function(){function S(y){var p=n(87454),i=location.search==="?external";return i?p.subscribe(function(c){var m=c.type,l=c.payload;m==="relay"&&l.windowId===Byond.windowId&&y.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&y.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var l=m.type,d=m.payload,u=m.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(l)&&!u&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},42702:function(L,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,f=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},94505:function(I,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** + */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,f=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},94505:function(L,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},45360:function(I,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(96417),a=n(41202),t=n(50175);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return W};var j,W={},U=Object.prototype,K=U.hasOwnProperty,$=Object.defineProperty||function(Ve,oe,le){Ve[oe]=le.value},z=typeof Symbol=="function"?Symbol:{},Y=z.iterator||"@@iterator",H=z.asyncIterator||"@@asyncIterator",Q=z.toStringTag||"@@toStringTag";function re(Ve,oe,le){return Object.defineProperty(Ve,oe,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[oe]}try{re({},"")}catch(Ve){re=function(le,he,ue){return le[he]=ue}}function ae(Ve,oe,le,he){var ue=oe&&oe.prototype instanceof ce?oe:ce,Ne=Object.create(ue.prototype),Ae=new Oe(he||[]);return $(Ne,"_invoke",{value:Ce(Ve,le,Ae)}),Ne}function de(Ve,oe,le){try{return{type:"normal",arg:Ve.call(oe,le)}}catch(he){return{type:"throw",arg:he}}}W.wrap=ae;var ve="suspendedStart",ye="suspendedYield",Le="executing",pe="completed",ne={};function ce(){}function q(){}function se(){}var me={};re(me,Y,function(){return this});var te=Object.getPrototypeOf,be=te&&te(te(We([])));be&&be!==U&&K.call(be,Y)&&(me=be);var fe=se.prototype=ce.prototype=Object.create(me);function ge(Ve){["next","throw","return"].forEach(function(oe){re(Ve,oe,function(le){return this._invoke(oe,le)})})}function ke(Ve,oe){function le(ue,Ne,Ae,De){var je=de(Ve[ue],Ve,Ne);if(je.type!=="throw"){var Ke=je.arg,Ue=Ke.value;return Ue&&typeof Ue=="object"&&K.call(Ue,"__await")?oe.resolve(Ue.__await).then(function(_e){le("next",_e,Ae,De)},function(_e){le("throw",_e,Ae,De)}):oe.resolve(Ue).then(function(_e){Ke.value=_e,Ae(Ke)},function(_e){return le("throw",_e,Ae,De)})}De(je.arg)}var he;$(this,"_invoke",{value:function(){function ue(Ne,Ae){function De(){return new oe(function(je,Ke){le(Ne,Ae,je,Ke)})}return he=he?he.then(De,De):De()}return ue}()})}function Ce(Ve,oe,le){var he=ve;return function(ue,Ne){if(he===Le)throw new Error("Generator is already running");if(he===pe){if(ue==="throw")throw Ne;return{value:j,done:!0}}for(le.method=ue,le.arg=Ne;;){var Ae=le.delegate;if(Ae){var De=Se(Ae,le);if(De){if(De===ne)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(he===ve)throw he=pe,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);he=Le;var je=de(Ve,oe,le);if(je.type==="normal"){if(he=le.done?pe:ye,je.arg===ne)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(he=pe,le.method="throw",le.arg=je.arg)}}}function Se(Ve,oe){var le=oe.method,he=Ve.iterator[le];if(he===j)return oe.delegate=null,le==="throw"&&Ve.iterator.return&&(oe.method="return",oe.arg=j,Se(Ve,oe),oe.method==="throw")||le!=="return"&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+le+"' method")),ne;var ue=de(he,Ve.iterator,oe.arg);if(ue.type==="throw")return oe.method="throw",oe.arg=ue.arg,oe.delegate=null,ne;var Ne=ue.arg;return Ne?Ne.done?(oe[Ve.resultName]=Ne.value,oe.next=Ve.nextLoc,oe.method!=="return"&&(oe.method="next",oe.arg=j),oe.delegate=null,ne):Ne:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,ne)}function we(Ve){var oe={tryLoc:Ve[0]};1 in Ve&&(oe.catchLoc=Ve[1]),2 in Ve&&(oe.finallyLoc=Ve[2],oe.afterLoc=Ve[3]),this.tryEntries.push(oe)}function xe(Ve){var oe=Ve.completion||{};oe.type="normal",delete oe.arg,Ve.completion=oe}function Oe(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function We(Ve){if(Ve||Ve===""){var oe=Ve[Y];if(oe)return oe.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,he=function(){function ue(){for(;++le=0;--ue){var Ne=this.tryEntries[ue],Ae=Ne.completion;if(Ne.tryLoc==="root")return he("end");if(Ne.tryLoc<=this.prev){var De=K.call(Ne,"catchLoc"),je=K.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--he){var ue=this.tryEntries[he];if(ue.tryLoc<=this.prev&&K.call(ue,"finallyLoc")&&this.prev=0;--le){var he=this.tryEntries[le];if(he.finallyLoc===oe)return this.complete(he.completion,he.afterLoc),xe(he),ne}}return Ve}(),catch:function(){function Ve(oe){for(var le=this.tryEntries.length-1;le>=0;--le){var he=this.tryEntries[le];if(he.tryLoc===oe){var ue=he.completion;if(ue.type==="throw"){var Ne=ue.arg;xe(he)}return Ne}}throw new Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(oe,le,he){return this.delegate={iterator:We(oe),resultName:le,nextLoc:he},this.method==="next"&&(this.arg=j),ne}return Ve}()},W}function f(j,W,U,K,$,z,Y){try{var H=j[z](Y),Q=H.value}catch(re){U(re);return}H.done?W(Q):Promise.resolve(Q).then(K,$)}function N(j){return function(){var W=this,U=arguments;return new Promise(function(K,$){var z=j.apply(W,U);function Y(Q){f(z,K,$,Y,H,"next",Q)}function H(Q){f(z,K,$,Y,H,"throw",Q)}Y(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},45360:function(L,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(96417),a=n(41202),t=n(50175);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return W};var j,W={},U=Object.prototype,K=U.hasOwnProperty,$=Object.defineProperty||function(Ve,oe,le){Ve[oe]=le.value},z=typeof Symbol=="function"?Symbol:{},Y=z.iterator||"@@iterator",H=z.asyncIterator||"@@asyncIterator",Q=z.toStringTag||"@@toStringTag";function re(Ve,oe,le){return Object.defineProperty(Ve,oe,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[oe]}try{re({},"")}catch(Ve){re=function(le,he,ue){return le[he]=ue}}function ae(Ve,oe,le,he){var ue=oe&&oe.prototype instanceof ce?oe:ce,Ne=Object.create(ue.prototype),Ae=new Oe(he||[]);return $(Ne,"_invoke",{value:Ce(Ve,le,Ae)}),Ne}function de(Ve,oe,le){try{return{type:"normal",arg:Ve.call(oe,le)}}catch(he){return{type:"throw",arg:he}}}W.wrap=ae;var ve="suspendedStart",ye="suspendedYield",Ie="executing",pe="completed",ne={};function ce(){}function q(){}function se(){}var me={};re(me,Y,function(){return this});var te=Object.getPrototypeOf,be=te&&te(te(We([])));be&&be!==U&&K.call(be,Y)&&(me=be);var fe=se.prototype=ce.prototype=Object.create(me);function ge(Ve){["next","throw","return"].forEach(function(oe){re(Ve,oe,function(le){return this._invoke(oe,le)})})}function ke(Ve,oe){function le(ue,Ne,Ae,De){var je=de(Ve[ue],Ve,Ne);if(je.type!=="throw"){var Ke=je.arg,Ue=Ke.value;return Ue&&typeof Ue=="object"&&K.call(Ue,"__await")?oe.resolve(Ue.__await).then(function(_e){le("next",_e,Ae,De)},function(_e){le("throw",_e,Ae,De)}):oe.resolve(Ue).then(function(_e){Ke.value=_e,Ae(Ke)},function(_e){return le("throw",_e,Ae,De)})}De(je.arg)}var he;$(this,"_invoke",{value:function(){function ue(Ne,Ae){function De(){return new oe(function(je,Ke){le(Ne,Ae,je,Ke)})}return he=he?he.then(De,De):De()}return ue}()})}function Ce(Ve,oe,le){var he=ve;return function(ue,Ne){if(he===Ie)throw new Error("Generator is already running");if(he===pe){if(ue==="throw")throw Ne;return{value:j,done:!0}}for(le.method=ue,le.arg=Ne;;){var Ae=le.delegate;if(Ae){var De=Se(Ae,le);if(De){if(De===ne)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(he===ve)throw he=pe,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);he=Ie;var je=de(Ve,oe,le);if(je.type==="normal"){if(he=le.done?pe:ye,je.arg===ne)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(he=pe,le.method="throw",le.arg=je.arg)}}}function Se(Ve,oe){var le=oe.method,he=Ve.iterator[le];if(he===j)return oe.delegate=null,le==="throw"&&Ve.iterator.return&&(oe.method="return",oe.arg=j,Se(Ve,oe),oe.method==="throw")||le!=="return"&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+le+"' method")),ne;var ue=de(he,Ve.iterator,oe.arg);if(ue.type==="throw")return oe.method="throw",oe.arg=ue.arg,oe.delegate=null,ne;var Ne=ue.arg;return Ne?Ne.done?(oe[Ve.resultName]=Ne.value,oe.next=Ve.nextLoc,oe.method!=="return"&&(oe.method="next",oe.arg=j),oe.delegate=null,ne):Ne:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,ne)}function we(Ve){var oe={tryLoc:Ve[0]};1 in Ve&&(oe.catchLoc=Ve[1]),2 in Ve&&(oe.finallyLoc=Ve[2],oe.afterLoc=Ve[3]),this.tryEntries.push(oe)}function xe(Ve){var oe=Ve.completion||{};oe.type="normal",delete oe.arg,Ve.completion=oe}function Oe(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function We(Ve){if(Ve||Ve===""){var oe=Ve[Y];if(oe)return oe.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,he=function(){function ue(){for(;++le=0;--ue){var Ne=this.tryEntries[ue],Ae=Ne.completion;if(Ne.tryLoc==="root")return he("end");if(Ne.tryLoc<=this.prev){var De=K.call(Ne,"catchLoc"),je=K.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--he){var ue=this.tryEntries[he];if(ue.tryLoc<=this.prev&&K.call(ue,"finallyLoc")&&this.prev=0;--le){var he=this.tryEntries[le];if(he.finallyLoc===oe)return this.complete(he.completion,he.afterLoc),xe(he),ne}}return Ve}(),catch:function(){function Ve(oe){for(var le=this.tryEntries.length-1;le>=0;--le){var he=this.tryEntries[le];if(he.tryLoc===oe){var ue=he.completion;if(ue.type==="throw"){var Ne=ue.arg;xe(he)}return Ne}}throw new Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(oe,le,he){return this.delegate={iterator:We(oe),resultName:le,nextLoc:he},this.method==="next"&&(this.arg=j),ne}return Ve}()},W}function f(j,W,U,K,$,z,Y){try{var H=j[z](Y),Q=H.value}catch(re){U(re);return}H.done?W(Q):Promise.resolve(Q).then(K,$)}function N(j){return function(){var W=this,U=arguments;return new Promise(function(K,$){var z=j.apply(W,U);function Y(Q){f(z,K,$,Y,H,"next",Q)}function H(Q){f(z,K,$,Y,H,"throw",Q)}Y(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,i=[0,0],c,m,l,d,u,s=r.setWindowKey=function(){function j(W){S=W}return j}(),C=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),v=r.setWindowPosition=function(){function j(W){var U=(0,a.vecAdd)(W,i);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),h=r.setWindowSize=function(){function j(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return j}(),V=r.getScreenPosition=function(){function j(){return[0-i[0],0-i[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(W,U,K){K===void 0&&(K=50);for(var $=[U],z,Y=0;Yre&&(z[H]=re-U[H],Y=!0)}return[Y,z]},x=r.dragStartHandler=function(){function j(W){k.log("drag start"),y=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}return j}(),E=function j(W){k.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",j),y=!1,L()},P=function(W){y&&(W.preventDefault(),v((0,a.vecAdd)([W.screenX,W.screenY],m)))},R=r.resizeStartHandler=function(){function j(W,U){return function(K){l=[W,U],k.log("resize start",l),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",M),D(K)}}return j}(),M=function j(W){k.log("resize end",u),D(W),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),p=!1,L()},D=function(W){p&&(W.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(l,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),u[0]=Math.max(u[0],150),u[1]=Math.max(u[1],50),h(u))}},33053:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** +*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,p=!1,i=[0,0],c,m,l,d,u,s=r.setWindowKey=function(){function j(W){S=W}return j}(),C=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),v=r.setWindowPosition=function(){function j(W){var U=(0,a.vecAdd)(W,i);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),h=r.setWindowSize=function(){function j(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return j}(),V=r.getScreenPosition=function(){function j(){return[0-i[0],0-i[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(W,U,K){K===void 0&&(K=50);for(var $=[U],z,Y=0;Yre&&(z[H]=re-U[H],Y=!0)}return[Y,z]},x=r.dragStartHandler=function(){function j(W){k.log("drag start"),y=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}return j}(),E=function j(W){k.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",j),y=!1,I()},P=function(W){y&&(W.preventDefault(),v((0,a.vecAdd)([W.screenX,W.screenY],m)))},R=r.resizeStartHandler=function(){function j(W,U){return function(K){l=[W,U],k.log("resize start",l),p=!0,m=[window.screenLeft-K.screenX,window.screenTop-K.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",M),D(K)}}return j}(),M=function j(W){k.log("resize end",u),D(W),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),p=!1,I()},D=function(W){p&&(W.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(l,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),u[0]=Math.max(u[0],150),u[1]=Math.max(u[1],50),h(u))}},33053:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function h(V){V===void 0&&(V={}),o=!!V.ignoreWindowFocus}return h}(),N,k=!0,S=function h(V,b){if(o){k=!0;return}if(N&&(clearTimeout(N),N=null),b){N=setTimeout(function(){return h(V)});return}k!==V&&(k=V,t.emit(V?"window-focus":"window-blur"),t.emit("window-focus-change",V))},y=null,p=r.canStealFocus=function(){function h(V){var b=String(V.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),i=function(V){c(),y=V,y.addEventListener("blur",c)},c=function h(){y&&(y.removeEventListener("blur",h),y=null)},m=null,l=null,d=[],u=r.addScrollableNode=function(){function h(V){d.push(V)}return h}(),s=r.removeScrollableNode=function(){function h(V){var b=d.indexOf(V);b>=0&&d.splice(b,1)}return h}(),C=function(V){if(!(y||!k))for(var b=document.body;V&&V!==b;){if(d.includes(V)){if(V.contains(m))return;m=V,V.focus();return}V=V.parentNode}};window.addEventListener("mousemove",function(h){var V=h.target;V!==l&&(l=V,C(V))}),window.addEventListener("focusin",function(h){if(l=null,m=h.target,S(!0),p(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){l=null,S(!1,!0)}),window.addEventListener("blur",function(h){l=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},v=r.KeyEvent=function(){function h(b,B,L){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!L}var V=h.prototype;return V.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),V.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),V.isDown=function(){function b(){return this.type==="keydown"}return b}(),V.isUp=function(){function b(){return this.type==="keyup"}return b}(),V.toString=function(){function b(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var V=h.keyCode,b=new v(h,"keydown",g[V]);t.emit("keydown",b),t.emit("key",b),g[V]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var V=h.keyCode,b=new v(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[V]=!1}})},16671:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function h(V){V===void 0&&(V={}),o=!!V.ignoreWindowFocus}return h}(),N,k=!0,S=function h(V,b){if(o){k=!0;return}if(N&&(clearTimeout(N),N=null),b){N=setTimeout(function(){return h(V)});return}k!==V&&(k=V,t.emit(V?"window-focus":"window-blur"),t.emit("window-focus-change",V))},y=null,p=r.canStealFocus=function(){function h(V){var b=String(V.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),i=function(V){c(),y=V,y.addEventListener("blur",c)},c=function h(){y&&(y.removeEventListener("blur",h),y=null)},m=null,l=null,d=[],u=r.addScrollableNode=function(){function h(V){d.push(V)}return h}(),s=r.removeScrollableNode=function(){function h(V){var b=d.indexOf(V);b>=0&&d.splice(b,1)}return h}(),C=function(V){if(!(y||!k))for(var b=document.body;V&&V!==b;){if(d.includes(V)){if(V.contains(m))return;m=V,V.focus();return}V=V.parentNode}};window.addEventListener("mousemove",function(h){var V=h.target;V!==l&&(l=V,C(V))}),window.addEventListener("focusin",function(h){if(l=null,m=h.target,S(!0),p(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){l=null,S(!1,!0)}),window.addEventListener("blur",function(h){l=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},v=r.KeyEvent=function(){function h(b,B,I){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!I}var V=h.prototype;return V.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),V.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),V.isDown=function(){function b(){return this.type==="keydown"}return b}(),V.isUp=function(){function b(){return this.type==="keyup"}return b}(),V.toString=function(){function b(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var V=h.keyCode,b=new v(h,"keydown",g[V]);t.emit("keydown",b),t.emit("key",b),g[V]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var V=h.keyCode,b=new v(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[V]=!1}})},16671:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},48300:function(I,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(58331);/** + */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},48300:function(L,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(58331);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(y,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof y!="number"||!Number.isFinite(y))return y;var c=Math.floor(Math.log10(y)),m=Math.floor(Math.max(p*3,c)),l=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],C=y/Math.pow(1e3,d),g=l>p?2+d*3-m:0,v=(0,e.toFixed)(C,g)+" "+s+i;return v.trim()}return S}(),f=r.formatPower=function(){function S(y,p){return p===void 0&&(p=0),o(y,p,"W")}return S}(),N=r.formatMoney=function(){function S(y,p){if(p===void 0&&(p=0),!Number.isFinite(y))return y;var i=(0,e.round)(y,p);p>0&&(i=(0,e.toFixed)(y,p)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var l="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return S}()},39891:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(31068)),a=n(33053),t=n(50175);function o(u){if(typeof WeakMap!="function")return null;var s=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:s})(u)}function f(u,s){if(!s&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var C=o(s);if(C&&C.has(u))return C.get(u);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var V=v?Object.getOwnPropertyDescriptor(u,h):null;V&&(V.get||V.set)?Object.defineProperty(g,h,V):g[h]=u[h]}return g.default=u,C&&C.set(u,g),g}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(y,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof y!="number"||!Number.isFinite(y))return y;var c=Math.floor(Math.log10(y)),m=Math.floor(Math.max(p*3,c)),l=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],C=y/Math.pow(1e3,d),g=l>p?2+d*3-m:0,v=(0,e.toFixed)(C,g)+" "+s+i;return v.trim()}return S}(),f=r.formatPower=function(){function S(y,p){return p===void 0&&(p=0),o(y,p,"W")}return S}(),N=r.formatMoney=function(){function S(y,p){if(p===void 0&&(p=0),!Number.isFinite(y))return y;var i=(0,e.round)(y,p);p>0&&(i=(0,e.toFixed)(y,p)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var l="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return S}()},39891:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(31068)),a=n(33053),t=n(50175);function o(u){if(typeof WeakMap!="function")return null;var s=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:s})(u)}function f(u,s){if(!s&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var C=o(s);if(C&&C.has(u))return C.get(u);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var V=v?Object.getOwnPropertyDescriptor(u,h):null;V&&(V.get||V.set)?Object.defineProperty(g,h,V):g[h]=u[h]}return g.default=u,C&&C.set(u,g),g}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},i=function(s){var C=String(s);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){C==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=p(s.code);if(g){var v=k[g];if(v)return N.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return N.debug(h),Byond.command(h)}if(s.isUp()&&y[g]){y[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var C=S.indexOf(s);C>=0&&S.splice(C,1)}return u}(),l=r.releaseHeldKeys=function(){function u(){for(var s=0,C=Object.keys(y);s=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,l){return(0,e.createComponentVNode)(2,t.Box,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return p("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return N}()},46817:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},20420:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,C=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],V=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return l("breaker")}return b}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){function b(){return l("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return l("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return l("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return l("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return l(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return l("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function b(){return l("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function b(){return l("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return l("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.view_screen,v=C.authenticated_account,h=C.ticks_left_locked_down,V=C.linked_db,b;if(h>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,i);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),N=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.machine_id,v=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function h(){return s("insert_card")}return h}()})})})]})},k=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"fundsAmount",0),b=V[0],B=V[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[1],A=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return h(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return T(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return s("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],V=C.owner_name,b=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},p=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"accountPin",null),b=V[0],B=V[1],L=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},i=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return s("view_screen",{view_screen:0})}return g}()})}},90698:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),N=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function C(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,i):L===2?w=(0,e.createComponentVNode)(2,u):L===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),p=function(g,v){var h=(0,t.useBackend)(v),V=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],L=b[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),V=h[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),R=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,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"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var W=R?1:-1;return D[x].localeCompare(j[x])*W}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return V("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),V=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),L=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!L):(b(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},u=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+L,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return V("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return V("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function P(){return V("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},s=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),L=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,R){return w(R)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:L,starting_funds:A})}return E}()})]})}},26354:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],d=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function u(){return i("disrupt-main")}return u}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return i("disrupt-backup")}return u}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function u(){return i("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return i("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return i("shock-perm")}return u}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function u(){return i("idscan-toggle")}return u}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function u(){return i("emergency-toggle")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function u(){return i("bolt-toggle")}return u}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function u(){return i("light-toggle")}return u}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function u(){return i("safe-toggle")}return u}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function u(){return i("speed-toggle")}return u}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function u(){return i("open-close")}return u}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},26673:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.AirAlarm=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.air,V=v.mode,b=v.atmos_alarm,B=v.locked,L=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return g(L?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.vents;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.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:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.scrubbers;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.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:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.modes,V=v.presets,b=v.emagged,B=v.mode,L=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===L,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},V.name)})]})})}},98565:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.exterior_status,m=i.interior_status,l=i.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function s(){return p("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function s(){return p("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:m==="open"?"red":l?"yellow":null,onClick:function(){function s(){return p("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function s(){return p("cycle_int_door")}return s}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,u]})})]})})}return N}()},76385:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return s("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return s("set_one_access",{access:"all"})}return V}()})],4),accesses:h,selectedList:g,accessMod:function(){function V(b){return s("set",{access:b})}return V}(),grantAll:function(){function V(){return s("grant_all")}return V}(),denyAll:function(){function V(){return s("clear_all")}return V}(),grantDep:function(){function V(b){return s("grant_region",{region:b})}return V}(),denyDep:function(){function V(b){return s("deny_region",{region:b})}return V}()})}},55666:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),N=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.autofocus,g=s.buttons,v=g===void 0?[]:g,h=s.large_buttons,V=s.message,b=V===void 0?"":V,B=s.timeout,L=s.title,w=(0,t.useLocalState)(l,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),P=function(){function R(M){T===0&&M===k?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,N.Window,{title:L,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),P(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return R}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,l){var d=(0,t.useBackend)(l),u=d.data,s=u.buttons,C=s===void 0?[]:s,g=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,b){return g&&C.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b)})})},i=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.large_buttons,g=m.button,v=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return u("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},16504:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.change_race,l=c.species,d=c.specimen,u=c.change_gender,s=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,V=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,W=c.change_hair_gradient,U=c.change_facial_hair,K=c.facial_hair_styles,$=c.facial_hair_style,z=c.change_head_markings,Y=c.head_marking_styles,H=c.head_marking_style,Q=c.change_body_markings,re=c.body_marking_styles,ae=c.body_marking_style,de=c.change_tail_markings,ve=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,ne=c.body_accessory_style,ce=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(g||v||h||V||b||B||L||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return i("race",{race:te.specimen})}return be}()},te.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function te(){return i("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function te(){return i("gender",{gender:"female"})}return te}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function te(){return i("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===R,onClick:function(){function be(){return i("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function be(){return i("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return i("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return i("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return i("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return i("hair_gradient_alpha")}return te}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===$,onClick:function(){function be(){return i("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:Y.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===H,onClick:function(){function be(){return i("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:re.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ae,onClick:function(){function be(){return i("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:ve.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return i("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return i("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return i("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},77280:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.priority||[],m=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li","color-bad",l,0,null,l)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)})})})}return N}()},66274:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=(0,a.useLocalState)(m,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],C=u[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return C(h)}return v}(),children:g.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},90588:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,m=i.pressure,l=i.max_pressure,d=i.filter_type,u=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:m,onDrag:function(){function s(C,g){return p("custom_pressure",{pressure:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function s(){return p("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function C(){return p("set_filter",{filter:s.gas_type})}return C}()},s.label)})})]})})})})}return N}()},87486:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.on,l=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function C(g,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(u,s){return i("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(l+10)/100})}return d}()})]})}},46714:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,m=i.rate,l=i.max_rate,d=i.gas_unit,u=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:l,value:m,onDrag:function(){function s(C,g){return p("custom_rate",{rate:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function s(){return p("max_rate")}return s}()})]})]})})})})}return N}()},66032:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),N=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[d].pressure," kpa"]}):"",Object.keys(l[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(l[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:l[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(l[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),k=n(37843),S=function(i,c,m,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>m)},y=r.Autolathe=function(){function p(i,c){var m=(0,o.useBackend)(c),l=m.act,d=m.data,u=d.total_amount,s=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,V=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],W=(0,k.createSearch)(D,function(z){return z.name}),U="";B>0&&(U=b.map(function(z,Y){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[Y][0],onClick:function(){function H(){return l("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return H}()},z)},Y)}));var K=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||D)&&(d.showhacked||!z.hacked)}),D&&(0,t.filter)(W),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(L),$="Build";return D?$="Results for: '"+D+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(Y){return x(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,H){return j(H)}return z}(),mb:1}),K.map(function(z){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:1})}return Y}(),children:(0,k.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:10})}return Y}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:25})}return Y}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:z.max_multiplier})}return Y}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(Y){return(0,k.toTitleCase)(Y)+": "+z.requirements[Y]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return l("clear_queue")}return z}()})]})]})]})})})}return p}()},13940:function(I,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.implant,m=i.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function l(){return p("eject_case")}return l}()})]})})})}return N}()},55295:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.Biogenerator=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.data,u=l.config,s=d.container,C=d.processing,g=u.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.biomass,C=u.container,g=u.container_curr_reagents,v=u.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:s}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.has_plants,C=u.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.biomass,C=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],h=g[1],V=Object.entries(C).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:sd&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function L(){return i("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function L(){return i("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function L(){return i("decrease")}return L}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function L(w,T){return i("set",{set_level:T})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function L(){return i("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return i("set",{set_level:v})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return i("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(37843),o=n(91819),f=n(2971),N=n(84947),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(B,L){for(var w=[],T=0;T0?B.filter(function(L){return!!L}).reduce(function(L,w){return(0,e.createFragment)([L,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},l=r.BodyScanner=function(){function b(B,L){var w=(0,o.useBackend)(L),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:P})})}return b}(),d=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,u,{occupant:L}),(0,e.createComponentVNode)(2,s,{occupant:L}),(0,e.createComponentVNode)(2,C,{occupant:L}),(0,e.createComponentVNode)(2,v,{organs:L.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:L.intOrgan})]})},u=function(B,L){var w=(0,o.useBackend)(L),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},s=function(B){var L=B.occupant;return L.hasBorer||L.blind||L.colourblind||L.nearsighted||L.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(L[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:i(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:L[w[1]],marginBottom:A100)&&"average"||!!L.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(L.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:L.maxHealth,mt:w>0&&"0.5rem",value:L.totalLoss/L.maxHealth,ranges:p,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)(L.totalLoss)]})}),!!L.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)(L.bruteLoss)]})}),!!L.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)(L.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!L.internalBleeding&&"Internal bleeding",!!L.burnWound&&"Critical tissue burns",!!L.lungRuptured&&"Ruptured lung",!!L.status.broken&&L.status.broken,m(L.germ_level),!!L.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!L.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!L.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!L.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(L.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.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"})]}),B.organs.map(function(L,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!L.dead&&"bad"||L.germ_level>100&&"average"||L.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(L.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:L.maxHealth,value:L.damage/L.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(L.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(L.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([L.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),L.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!L.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=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."]})})})}},73440:function(I,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=n(92462),k=r.BookBinder=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function s(){return c("print_book")}return s}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_author")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(s){return s.description}),onSelected:function(){function s(C){return c("toggle_binder_category",{category_id:u[C]})}return s}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return l.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:s.category_id})}return C}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.locked,l=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:l,onClick:function(){function b(){return i("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function b(){return i("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.noaccess,l=c.painame,d=c.hullplating,u=c.replace,s=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,V=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:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return i("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return i("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return i("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function b(){return i("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return i("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return i("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return i("anchored")}return b}()})]}),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 b(){return i("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},39805:function(I,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.locked,l=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:l,onChange:function(){function E(P,R){return i("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:l,onChange:function(){function E(P,R){return i("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.noaccess,l=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return i("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return i("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return i("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return i("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return i("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 i("ejectpai")}return v}()})})]})})}return k}()},71169:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,p){var i=y.cell,c=(0,o.useBackend)(p),m=c.act,l=i.cell_id,d=i.occupant,u=i.crimes,s=i.brigged_by,C=i.time_left_seconds,g=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var V=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,f,{cell:i},i.ref)})]})},k=r.BrigCells=function(){function S(y,p){var i=(0,o.useBackend)(p),c=i.act,m=i.data,l=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:l})})})})})}return S}()},19070:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var y=function(l,d){var u,s;if(!d)return[];var C=l.findIndex(function(g){return g.name===d.name});return[(u=l[C-1])==null?void 0:u.name,(s=l[C+1])==null?void 0:s.name]},p=function(l,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(l)},i=r.CameraConsole=function(){function m(l,d){var u=(0,N.useBackend)(d),s=u.act,C=u.data,g=u.config,v=C.mapRef,h=C.activeCamera,V=p(C.cameras),b=y(V,h),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,d){var u=(0,N.useBackend)(d),s=u.act,C=u.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],h=g[1],V=C.activeCamera,b=p(C.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},21348:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),N=n(84947),k=r.Canister=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,m=i.data,l=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,C=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,h=m.name,V=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var P=[],R=[],M=[],D=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:s.cooldown_time||!h.can_close,onClick:function(){function V(){return u("make_job_unavailable",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function V(){return u("make_job_available",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function V(){return u("prioritize_job",{job:h.title})}return V}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function h(V){return u("set",{access:V})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(V){return u("grant_region",{region:V})}return h}(),denyDep:function(){function h(V){return u("deny_region",{region:V})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function h(){return u("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),s.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function V(){return u("remote_demote",{remote_demote:h.name})}return V}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),y=function(u,s){var C=(0,o.useLocalState)(s,"contentsModal",null),g=C[0],v=C[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),V=h[0],b=h[1];if(g!==null&&V!==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,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.is_public,V=v.timeleft,b=v.moving,B=v.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",V!==1?L="Shuttle is en route (ETA: "+V+" minutes)":L="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},i=function(u,s){var C,g=(0,o.useBackend)(s),v=g.act,h=g.data,V=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.requests,V=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(s,"category","Emergency"),L=B[0],w=B[1],T=(0,o.useSharedState)(s,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(s,"contentsModal",null),P=E[0],R=E[1],M=(0,o.useLocalState)(s,"contentsModalTitle",null),D=M[0],j=M[1],W=(0,k.createSearch)(A,function(H){return H.name}),U=(0,o.useLocalState)(s,"selectedAccount"),K=U[0],$=U[1],z=(0,a.flow)([(0,t.filter)(function(H){return H.cat===V.filter(function(Q){return Q.name===L})[0].category||A}),A&&(0,t.filter)(W),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(b),Y="Crate Catalogue";return A?Y="Results for '"+A+"':":L&&(Y="Browsing "+L),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:Y,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(H){return H.name}),selected:L,onSelected:function(){function H(Q){return w(Q)}return H}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(Q,re){return x(re)}return H}(),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:z.map(function(H){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[H.name," (",H.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:!K,onClick:function(){function Q(){return g("order",{crate:H.ref,multiple:!1,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||H.singleton,onClick:function(){function Q(){return g("order",{crate:H.ref,multiple:!0,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){R(H.contents),j(H.name)}return Q}()})]})]},H.name)})})})]})})},m=function(u,s){var C=u.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},l=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.requests,V=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function L(){return g("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return g("deny",{ordernum:B.ordernum})}return L}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(I,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],l=c[1],d=i.cl_data,u=i.last_cl,s={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return l(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},56975:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),N=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),y=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.amount,g=s.energy,v=s.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},V)})})})]})})})},p=function(m,l){for(var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.chemicals,g=C===void 0?[]:C,v=[],h=0;h<(g.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:V.id})}return B}()},b)}),v.map(function(V,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},i=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,V=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),N=n(84947),k=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return l("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function V(){return l("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function V(b,B){return l("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(b){return(0,a.toFixed)(b)+" K"}return V}()})||"\u2014"})]})})})},y=function(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:g})})})}},35918:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),N=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var P={},R=Object.keys(x),M,D;for(D=0;D=0)&&(P[M]=x[M]);return P}function i(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(R,M){return R.__proto__=M,R}return P}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),l=[1,5,10],d=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function W(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return W}()})]})})})})},u=r.ChemMaster=function(){function x(E,P){var R=(0,a.useBackend)(P),M=R.data,D=M.condi,j=M.beaker,W=M.beaker_reagents,U=W===void 0?[]:W,K=M.buffer_reagents,$=K===void 0?[]:K,z=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s,{beaker:j,beakerReagents:U,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,C,{mode:z,bufferReagents:$}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.beaker,j=E.beakerReagents,W=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:W?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function U(K,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:W,buttons:function(){function U(K,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.patient_limb_data,V=v.limb_list,b=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,L){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:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[B][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 ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&N),checked:!(b[B][2]&N),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(b[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.patient_organ_data,V=v.organ_list,b=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,L){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:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][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:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},58378:function(I,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CloningPod=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,m=i.biomass_storage_capacity,l=i.sanguine_reagent,d=i.osseous_reagent,u=i.organs,s=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(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:d+" 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:d,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!s&&(0,e.createComponentVNode)(2,t.Box,{children:[!u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!u&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.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 g(){return p("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!s&&(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 N}()},14283:function(I,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function u(s,C){return p("setvalue",{idx:d.idx+1,value:C})}return u}()})]},d.name)})},l)})})})})})}return N}()},98577:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return d}(),k=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.authenticated,V=v.noauthbutton,b=v.esc_section,B=v.esc_callable,L=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return h?h===1?P="Command":h===2?P="Captain":h===3?P="CentComm Officer":h===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:V,content:h?"Log Out ("+P+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return g("callshuttle")}return R}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return g("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin,V=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,L=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.msg_cooldown,V=v.emagged,b=v.cc_cooldown,B=v.security_level_color,L=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var P=V?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(P+=" ("+b+"s)",R+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return g("announce")}return M}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!T||b>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!T||b>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function M(){return g("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return g("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.stat_display,V=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.authhead,V=v.current_message_title,b=v.current_message,B=v.messages,L=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=u.levels,V=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!V||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!V||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:L.id})}return w}()},L.name)})},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin,V=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],P=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(W,U){return L(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(W,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:M,onSelected:function(){function j(W){return D(W)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return g("test_sound",{sound:M})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return P(!E)}return j}()})})]})]})})}},70611:function(I,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,m=i.compost,l=i.biomass_capacity,d=i.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],C=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue: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.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,h){return C(h)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*s,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:s})}return g}()})})})]})})})}return N}()},73744:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),N=n(84947);function k(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(V,b){return V.__proto__=b,V}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function g(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,L;B.unauthorized?L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?L=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return g}(),c=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,L=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},v,{children:L.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return b("activate",{uid:M.uid,difficulty:W+1})}return U}()},W)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,L=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:L-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(g){k(v,g);function v(V){var b;return b=g.call(this,V)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function V(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return V}(),h.componentDidMount=function(){function V(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return V}(),v}(e.Component),C=function(v,h){var V=(0,t.useLocalState)(h,"viewingPhoto",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.slowFactor,m=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return p("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return p("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},91413:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),N=n(99753),k=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function l(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],V=v[1],b=function(){function B(L){switch(L){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return l}(),c=function(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,V=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),C=s.data,g=(0,o.useLocalState)(u,"zoom",1),v=g[0],h=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function V(b){return h(b)}return V}(),children:C.crewmembers.filter(function(V){return V.sensor_type===3}).map(function(V){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:V.x,y:V.y,zoom:v,icon:"circle",tooltip:V.name+" ("+V.assignment+")",color:p(V,C.critThreshold)},V.ref)})})})}},55104:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,h=d.cellTemperatureStatus,V=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return l("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return l("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return l(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return l(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"On":"Off"})})]})})})],4)},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,C=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=r.CryopodConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.frozen_items,u=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return m("one_item",{item:s.uid})}return C}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(P,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return L("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},R)})}),E]})},c=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(R){return R.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(R,M){return L("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return L("pulseUIRadiation")}return P}()})]})},m=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},l=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return L("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return L("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return L("pulseRadiation")}return x}()})]})},d=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,s)})]})},u=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function R(){return L("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return L("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return L("bufferOption",{option:"saveDisk",id:T})}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(V,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return L("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(V,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,P=V.action,R=T.split(""),M=0,D=[],j=function(){for(var K=W/E+1,$=[],z=function(){var Q=Y+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Q,content:R[W+Y],mb:"0",onClick:function(){function re(){return L(P,{block:K,subblock:Q})}return re}()}))},Y=0;Ys.spawnpoints?"red":"green",children:[s.total," total, versus ",s.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return u("dispatch_ert",{silent:v})}return V}()})})]})})})},p=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return u("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=(0,a.useLocalState)(l,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(V,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:g})}return h}()})]})})}},77877:function(I,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data,m=c.power,l=c.code,d=c.frequency,u=c.minFrequency,s=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function C(g,v){return i("code",{code:v})}return C}()})})]})})})})}return k}()},52640:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(90955),k=n(72026),S=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return i}(),y=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.evo_points,C=u.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.evo_points,C=u.ability_tabs,g=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",C[0]),V=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var W=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(W),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(D)},P=function(D){if(w(D),D==="")return x(V.abilities);x(E(C.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(D),x(D.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(D,j){P(j)}return M}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&V===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),g.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>s||g.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),N=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},V=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),L&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return g}(),m=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=B.materials,w=B.capacity,T=Object.values(L).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},l=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],P=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:L,options:w,onSelected:function(){function D(j){return b("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return b("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,W){return P(W)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,C,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",L,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:L.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E})}return P}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[L]||0,P=w||E;if(!(P<=0&&!(L==="metal"||L==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:P.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,L=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,C=m.occupant_status,g=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return f.get(C)}return B}(),b=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,N=1013,k=function(p){var i="good",c=80,m=95,l=110,d=120;return pl?i="average":p>d&&(i="bad"),i},S=r.ExternalAirlockController=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.chamber_pressure,u=l.exterior_status,s=l.interior_status,C=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:k(d),value:d,minValue:f,maxValue:N,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return m("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return N}()},80031:function(I,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=y.config,m=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return N}()},39552:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=S.image,l=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:d})},N=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.availableStyles,l=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return i("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return i("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return i("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:l===C,onSelect:function(){function g(){return i("select_style",{style:C})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[g],isSelected:g===d,onSelect:function(){function v(){return i("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return k}()},5090:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=function(l){return l?"("+l.join(", ")+")":"ERROR"},k=function(l,d){if(!(!l||!d)){if(l[2]!==d[2])return null;var u=Math.atan2(d[1]-l[1],d[0]-l[0]),s=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(l,d){var u=(0,t.useBackend)(d),s=u.data,C=s.emped,g=s.active,v=s.area,h=s.position,V=s.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return m}(),y=function(l,d){var u=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:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var u=(0,t.useBackend)(d),s=u.act,C=u.data,g=C.active,v=C.tag,h=C.same_z,V=(0,t.useLocalState)(d,"newTag",v),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return s("toggle")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},i=function(l,d){var u=l.title,s=l.area,C=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(l,d){var u=(0,t.useBackend)(d),s=u.data,C=s.position,g=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,k(C,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},h)})})})))}},1055:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),N=r.GeneModder=function(){function l(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return C("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.has_seed,h=g.seed,V=g.has_disk,b=g.disk,B,L;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?L=b.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(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:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:V.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:V.id})}return b}()})})]},V)})},"Core Genes")},i=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:v})},m=function(d,u){var s=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,V=v.data,b=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function N(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},86268:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.security,m=i.medical,l=i.diagnostic,d=i.radioactivity,u=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=S.label,m=S.type,l=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?g:s,{hud_type:l})}return v}()})})]})}},8977:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return N}()},70309:function(I,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.charging_state,m=i.charge_count,l=i.breaker,d=i.ext_power,u=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),s=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function C(){return p("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},64769:function(I,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return i("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return i("access",{access:l})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(l){return i("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return i("deny_region",{region:l})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},12219:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],N=null,k=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.amount,s=d.energy,C=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[s," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===v,content:v,onClick:function(){function V(){return l("amount",{amount:v})}return V}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(i,c){for(var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,C=d.current_reagent,g=[],v=0;v<(s.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(h,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return l("dispense",{reagent:h.id})}return b}()},V)}),g.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},53917:function(I,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.HealthSensor=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,m=i.data,l=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,C=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),l=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],C=u[1],g=c.decks,v=c.ai_override,h=c.emagged,V=function(){function b(B){i("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,N),(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:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===l,onClick:function(){function B(){return V(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return i("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return i("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),N=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Instrument=function(){function i(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),k=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.help;if(s)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},S=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.lines,C=u.playing,g=u.repeat,v=u.maxRepeats,h=u.tempo,V=u.minTempo,b=u.maxTempo,B=u.tickLag,L=u.volume,w=u.minVolume,T=u.maxVolume,A=u.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:s.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:L,stepPixelSize:6,onDrag:function(){function x(E,P){return d("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.allowedInstrumentNames,C=u.instrumentLoaded,g=u.instrument,v=u.canNoteShift,h=u.noteShift,V=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:b,value:h,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.playing,C=u.lines,g=u.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function V(){return d("modifyline",{line:h+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function V(){return d("deleteline",{line:h+1})}return V}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},64261:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("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 p("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 p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("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 p("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 p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:m})]})})}return N}()},34898:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.KitchenMachine=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,m=i.config,l=c.ingredients,d=c.operating,u=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:d,name:u}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.isAdmin,u=l.isSlaved,s=l.isMalf,C=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.has_zeroth_laws,u=l.zeroth_laws,s=l.has_ion_laws,C=l.ion_laws,g=l.ion_law_nr,v=l.has_inherent_laws,h=l.inherent_laws,V=l.has_supplied_laws,b=l.supplied_laws,B=l.channels,L=l.channel,w=l.isMalf,T=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,P=l.supplied_law,R=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:i}),!!s&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:i}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(p,i){var c=(0,a.useBackend)(p.ctx),m=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryComputer=function(){function g(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return b("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:L.total_ratings?L.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},i=function(v,h){var V=(0,a.useBackend)(h),b=V.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var V=(0,a.useLocalState)(h,"tabIndex",0),b=V[0];switch(b){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},l=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,L=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=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 s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.ckey,C=u.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",s,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},68e3:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),N=n(31068),k=n(84947),S=r.ListInputModal=function(){function i(c,m){var l=(0,f.useBackend)(m),d=l.act,u=l.data,s=u.items,C=s===void 0?[]:s,g=u.message,v=g===void 0?"":g,h=u.init_value,V=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",C.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],R=E[1],M=function(){function Y(H){var Q=$.length-1;if(H===N.KEY_DOWN)if(L===null||L===Q){var re;w(0),(re=document.getElementById("0"))==null||re.scrollIntoView()}else{var ae;w(L+1),(ae=document.getElementById((L+1).toString()))==null||ae.scrollIntoView()}else if(H===N.KEY_UP)if(L===null||L===0){var de;w(Q),(de=document.getElementById(Q.toString()))==null||de.scrollIntoView()}else{var ve;w(L-1),(ve=document.getElementById((L-1).toString()))==null||ve.scrollIntoView()}}return Y}(),D=function(){function Y(H){H!==L&&w(H)}return Y}(),j=function(){function Y(){x(!1),x(!0)}return Y}(),W=function(){function Y(H){var Q=String.fromCharCode(H),re=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(re){var ae,de=C.indexOf(re);w(de),(ae=document.getElementById(de.toString()))==null||ae.scrollIntoView()}}return Y}(),U=function(){function Y(H){var Q;H!==P&&(R(H),w(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return Y}(),K=function(){function Y(){x(!A),R("")}return Y}(),$=C.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(P.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var Y;return(Y=document.getElementById(L.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function Y(H){var Q=window.event?H.which:H.keyCode;(Q===N.KEY_DOWN||Q===N.KEY_UP)&&(H.preventDefault(),M(Q)),Q===N.KEY_ENTER&&(H.preventDefault(),d("submit",{entry:$[L]})),!A&&Q>=N.KEY_A&&Q<=N.KEY_Z&&(H.preventDefault(),W(Q)),Q===N.KEY_ESCAPE&&(H.preventDefault(),d("cancel"))}return Y}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function Y(){return K()}return Y}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:$,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:U,searchQuery:P,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[L]})})]})})})]})}return i}(),y=function(c,m){var l=(0,f.useBackend)(m),d=l.act,u=c.filteredItems,s=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(h,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function b(){return s(V)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;g&&L>=N.KEY_A&&L<=N.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:V===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},V)})})},p=function(c,m){var l=(0,f.useBackend)(m),d=l.act,u=c.filteredItems,s=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[g]})}return v}(),onInput:function(){function v(h,V){return s(V)}return v}(),placeholder:"Search...",value:C})}},75965:function(I,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return P("configure",{key:T,value:D,ref:x})}return R}()})},N=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return P("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return P("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,P=(0,a.useBackend)(w),R=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,P=L.values,R=L.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,P=L.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},i=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,P=L.userburn,R=L.usertoxin,M=L.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,P=L.statusmaxhealth,R=L.statusbrute,M=L.statusburn,D=L.statustoxin,j=L.statusoxy,W=L.statustemp,U=L.statusnutrition,K=L.statusfingerprints,$=L.statusdna,z=L.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?W:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?$:"???"})]})}),!!T&&!!z&&(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"})})]}),z.map(function(Y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[Y.stage,"/",Y.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.cure})]},Y.name)})]})})],0)},m={rad_counter:p,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},u=function(L,w){var T=L.configuration_data,A=L.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,W=x.complexity_max,U=x.wearer_name,K=x.wearer_job,$=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:$}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",W,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",K]})]})})},g=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,W=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:W&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:W}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,R=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function W(){return D(null)}return W}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("select",{ref:j.ref})}return W}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return D(j.ref)}return W}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("pin",{ref:j.ref})}return W}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},86322:function(I,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(22677),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.autolink,u=l.code,s=l.frequency,C=l.linkedMagnets,g=l.magnetConfiguration,v=l.path,h=l.pathPosition,V=l.probing,b=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function L(){return m("probe_magnets")}return L}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,N.modalOpen)(i,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),C.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:T})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return y}()},54374:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.recharge_port,m=c&&c.mech,l=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return p("reconnect")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!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 N}()},14823:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,m=i.data,l=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:l.length&&l.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),N=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,f.modalOpen)(T,"edit",{field:A.edit,value:A.value})},m=function(T,A){var x=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:x.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:x.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:x.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:x.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[x.severity],children:x.severity})]})})})},l=r.MedicalRecords=function(){function w(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.loginState,R=E.screen;if(!P.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var M;return R===2?M=(0,e.createComponentVNode)(2,d):R===3?M=(0,e.createComponentVNode)(2,u):R===4?M=(0,e.createComponentVNode)(2,s):R===5?M=(0,e.createComponentVNode)(2,h):R===6&&(M=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,L),M]})})]})}return w}(),d=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.records,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],W=(0,t.useLocalState)(A,"sortId","name"),U=W[0],K=W[1],$=(0,t.useLocalState)(A,"sortOrder",!0),z=$[0],Y=$[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 H(){return E("screen",{screen:3})}return H}()})}),(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 H(Q,re){return j(re)}return H}()})})]})}),(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,b,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,b,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,b,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,b,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,b,{id:"m_stat",children:"Mental Status"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.id+"|"+H.rank+"|"+H.p_stat+"|"+H.m_stat})).sort(function(H,Q){var re=z?1:-1;return H[U].localeCompare(Q[U])*re}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[H.p_stat],onClick:function(){function Q(){return E("view_record",{view_record:H.ref})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.m_stat})]},H.id)})]})})})],4)},u=function(T,A){var x=(0,t.useBackend)(A),E=x.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function P(){return E("del_all_med_records")}return P}()})})]})})},s=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical,M=P.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:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return E("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!R||!R.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 D(){return E("new_med_record")}return D}()}),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:!!R.empty,content:"Delete Medical Record",onClick:function(){function D(){return E("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.general;return!P||!P.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:P.fields.map(function(R,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(A,R)}return D}()})]},M)})})}),!!P.has_photos&&P.photos.map(function(R,M){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:R,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},g=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical;return!R||!R.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:R.fields.map(function(M,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,M)}return j}()})]},D)})})})})},v=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.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 M(){return(0,f.modalOpen)(A,"add_comment")}return M}()}),children:R.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):R.comments.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_comment",{del_comment:D+1})}return j}()})]},D)})})})},h=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.virus,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],W=(0,t.useLocalState)(A,"sortId2","name"),U=W[0],K=W[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),z=$[0],Y=$[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 H(Q,re){return j(re)}return H}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.max_stages+"|"+H.severity})).sort(function(H,Q){var re=z?1:-1;return H[U].localeCompare(Q[U])*re}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+H.severity,onClick:function(){function Q(){return E("vir",{vir:H.D})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[H.severity],children:H.severity})]},H.id)})]})})})})],4)},V=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medbots;return R.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"})]}),R.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.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:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},b=function(T,A){var x=(0,t.useLocalState)(A,"sortId","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder",!0),M=R[0],D=R[1],j=T.id,W=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var x=(0,t.useLocalState)(A,"sortId2","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder2",!0),M=R[0],D=R[1],j=T.id,W=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.screen,M=P.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:R===2,onClick:function(){function D(){E("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:R===5,onClick:function(){function D(){E("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:R===6,onClick:function(){function D(){return E("screen",{screen:6})}return D}(),children:"Medibot Tracking"}),R===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:R===3,children:"Record Maintenance"}),R===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:R===4,children:["Record: ",M.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=p.product,u=p.productImage,s=p.productCategory,C=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,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},N=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],u=m.products,s=m.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[C[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:C[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.user_cash,u=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,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return y}(),S=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],u=l[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return u(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return u(2)}return C}(),children:"Decorations"})]})}},53551:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=["title","items"];function k(l,d){if(l==null)return{};var u={},s=Object.keys(l),C,g;for(g=0;g=0)&&(u[C]=l[C]);return u}var S={Alphabetical:function(){function l(d,u){return d-u}return l}(),Availability:function(){function l(d,u){return-(d.affordable-u.affordable)}return l}(),Price:function(){function l(d,u){return d.price-u.price}return l}()},y=r.MiningVendor=function(){function l(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,h=g.id,V=g.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],P=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(V).map(function(j,W){var U=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),C=s[0],g=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],V=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=d.title,h=d.items,V=k(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=L[x]);return T}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"}},d=r.Newscaster=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,W=E.channels,U=E.channel_idx,K=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),z=$[0],Y=$[1],H=(0,t.useLocalState)(T,"viewingPhoto",""),Q=H[0],re=H[1],ae=(0,t.useLocalState)(T,"censorMode",!1),de=ae[0],ve=ae[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,C));var Le=W.reduce(function(pe,ne){return pe+ne.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:P&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.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",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return Y(!z)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&W[K-1]===pe,onClick:function(){function ne(){return x("channel",{uid:pe.uid})}return ne}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return ve(!de)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,W=j===void 0?!1:j,U=w.onClick,K=w.title,$=w.children,z=i(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:U},z,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),$]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,W=E.stories,U=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"censorMode",!1),H=Y[0],Q=Y[1],re=P===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:re?re.icon:"newspaper",mr:"0.5rem"}),re?re.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(ae){return!$.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,de){return(0,e.createComponentVNode)(2,g,{story:ae},de)}):(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."]})}),!!re&&(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)([H&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!re.admin&&!R,selected:re.censored,icon:re.censored?"comment-slash":"comment",content:re.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:re.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:re.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:re.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:re.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:re.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:re.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"}),W.reduce(function(ae,de){return ae+de.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,R=E.wanted,M=Object.entries(P).reduce(function(D,j){var W=j[0],U=j[1];return D+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,g,{story:R,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(D){return Object.assign({},l[D],{id:D,jobs:P[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),W=j[0],U=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),$=K[0],z=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&$&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return x("censor_story",{uid:P.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(Y,H){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},H)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return U([].concat(W,[P.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=i(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return R(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||D||"Unknown"),W=j[0],U=j[1],K=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),H=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"isPublic",R?!!(P!=null&&P.public):!1),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function q(se,me){return U(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:H,onInput:function(){function q(se,me){return Q(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Le(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:W,name:$.substr(0,49),description:H.substr(0,128),icon:ae,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,W=w.args.scanned_user,U=R.slice().sort(function(q,se){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===W||!!q.public)}),K=(0,t.useLocalState)(T,"author",W||"Unknown"),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),H=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"title",""),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"body",""),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:$,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:H,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return Q(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ae,onInput:function(){function q(se,me){return de(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(se,me){return Le(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||H.trim().length===0||ae.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:$,channel:H,title:ae.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),W=j[0],U=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),H=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ae=re[0],de=re[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function ve(ye,Le){return U(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function ve(ye,Le){return z(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:H,maxLength:"512",rows:"4",onInput:function(){function ve(ye,Le){return Q(Le)}return ve}()})}),(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 ve(){return x(P?"eject_photo":"attach_photo")}return ve}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ve(){return de(!ae)}return ve}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function ve(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return ve}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ve(){(0,k.modalAnswer)(T,w.id,"",{author:W,name:$.substr(0,127),description:H.substr(0,511),admin_locked:ae?1:0})}return ve}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",V),(0,k.modalRegisterBodyOverride)("manage_channel",V),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return N}()},45523:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),N=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(i,c){var m=(0,f.useBackend)(c),l=m.act,d=m.data,u=d.init_value,s=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,h=d.title,V=(0,f.useLocalState)(c,"input",u),b=V[0],B=V[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:b}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(i,c){var m=(0,f.useBackend)(c),l=m.act,d=m.data,u=d.min_value,s=d.max_value,C=d.init_value,g=d.round_value,v=i.input,h=i.onClick,V=i.onChange,b=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function L(){return h(u)}return L}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:u,maxValue:s,onChange:function(){function L(w,T){return V(T)}return L}(),onEnter:function(){function L(w,T){return l("submit",{entry:T})}return L}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function L(){return h(s)}return L}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function L(){return h(C)}return L}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},48314:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.hasOccupant,h=g.choice,V;return h?V=(0,e.createComponentVNode)(2,m):V=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return l}(),i=function(d,u){var s=(0,t.useBackend)(u),C=s.data,g=C.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.verbose,h=g.health,V=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,L=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return C(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return C(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function N(u,s){var C=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(C)return(C=C.call(u)).next.bind(C);if(Array.isArray(u)||(C=k(u))||s&&u&&typeof u.length=="number"){C&&(u=C);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(u,s){if(u){if(typeof u=="string")return S(u,s);var C=Object.prototype.toString.call(u).slice(8,-1);if(C==="Object"&&u.constructor&&(C=u.constructor.name),C==="Map"||C==="Set")return Array.from(u);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var C=0,g=new Array(s);CC},c=function(s,C){var g=s.name,v=C.name;if(!g||!v)return 0;var h=g.match(y),V=v.match(y);if(h&&V&&g.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(V[1],10);return b-B}return i(g,v)},m=function(s,C){var g=s.searchText,v=s.source,h=s.title,V=s.color,b=s.sorted,B=v.filter(p(g));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,l,{thing:L,color:V},L.name)})})},l=function(s,C){var g=(0,t.useBackend)(C),v=g.act,h=s.color,V=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:V.ref})}return b}(),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"}),")"]})]})},d=r.Orbit=function(){function u(s,C){for(var g=(0,t.useBackend)(C),v=g.act,h=g.data,V=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],M=P[1],D={},j=N(b),W;!(W=j()).done;){var U=W.value;D[U.antag]===void 0&&(D[U.antag]=[]),D[U.antag].push(U)}var K=Object.entries(D);K.sort(function(z,Y){return i(z[0],Y[0])});var $=function(){function z(Y){for(var H=0,Q=[K.map(function(de){var ve=de[0],ye=de[1];return ye}),B,V,A,T,E,x];H0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(z){var Y=z[0],H=z[1];return(0,e.createComponentVNode)(2,o.Section,{title:Y+" - ("+H.length+")",level:2,children:H.filter(p(R)).sort(c).map(function(Q){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:Q},Q.name)})},Y)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,N.createLogger)("OreRedemption"),y=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(C,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.id,B=V.points,L=V.disk,w=Object.assign({},(k(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.sheets,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alloys,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},l=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.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",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.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(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(V.value?"sheet":"alloy",{id:V.id,amount:L})}return b}()})})]})})},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.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(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(V.value?"sheet":"alloy",{id:V.id,amount:L})}return b}()})})]})})}},55686:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(33115),k=function(p){var i;try{i=N("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=i[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.app_template,u=l.app_icon,s=l.app_title,C=k(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return y}()},58717:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(75168),k=function(c){var m;try{m=N("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var l=m[c];return l||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.app,C=u.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(s.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.idInserted,C=u.idLink,g=u.stationTime,v=u.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:s?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!s.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78062:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),N=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.active,l=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,V=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/b,P=T*w,R=Math.round(g/C),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return i("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(W,U){return i("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||h||!A,onClick:function(){function j(){return i("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.assembled,m=i.power,l=i.strength,d=i.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return p("scan")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||l===0,onClick:function(){function u(){return p("remove_strength")}return u}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return N}()},67572:function(I,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,N)})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return m("insert_pda")}return l}()})]})})})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=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,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.current_appearance,u=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,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,C=m.prev_cat,g=m.next_cat,v=m.subcategory,h=m.prev_subcat,V=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:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!l&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!l&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!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 d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:l.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:l.uid})}return d}()})]})},l.name)})})}},47051:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function N(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(i,c){var m=i.tempKey,l=N(i,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,C=u.act,g=s.currentTemp,v=d.label,h=d.icon,V=m===g,b=function(){C("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:b},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(i,c){for(var m=(0,a.useBackend)(c),l=m.data,d=l.emagged,u=l.currentTemp,s=k[u]||k.normal,C=s.label,g=s.color,v=[],h=0,V=Object.entries(k);h50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(C){var g,v,h=C.status;switch(h){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};u.defaultHooks=f.pureComponentHooks},15164:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),N=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function V(){return l("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function V(){return l("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.goal===null,content:"Edit",onClick:function(){function V(){return(0,f.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:s.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(V){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: ",V.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:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,f.modalOpen)(c,"warn",{uid:V.uid})}return b}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){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: ",V.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:V.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volume0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function b(){return s("setScreen",{setScreen:1})}return b}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.department,v=[],h;switch(l.purpose){case"ASSISTANCE":v=C.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=C.supply_dept,h="Request supplies from another department";break;case"INFO":v=C.info_dept,h="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(V){return V!==g}).map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:V,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:V,priority:"2"})}return b}()})]},V)})})})})},S=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g;switch(l.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},y=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g,v;switch(l.type){case"MESSAGES":g=C.message_log,v="Message Log";break;case"SHIPPING":g=C.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),children:g.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(V,b){return(0,e.createVNode)(1,"div",null,V,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.recipient,v=C.message,h=C.msgVerified,V=C.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return s("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:V})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function b(){return s("department",{department:g})}return b}()})})})],4)},i=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.message,v=C.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(v&&g),onClick:function(){function h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.shipDest,v=C.msgVerified,h=C.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&v),onClick:function(){function V(){return s("printLabel")}return V}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===V?"Selected":"Select",selected:g===V,onClick:function(){function b(){return s("shipSelect",{shipSelect:V})}return b}()})},V)})})})})],4)}},51939:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===N.LATHE||u===N.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),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]})})})}return y}()},50239:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var m=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N="design",k="tech",S=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,i)]})]}):null},y=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_data;if(!h)return null;var V=h.name,b=h.lathe_types,B=h.materials,L=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var b=h===k?"eject_tech":"eject_design";v(b)}return V}()}):null},c=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_data,h=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case N:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_type,V=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:L}):v("copy_design",{id:L})}return w}()})},L)})})})})},l=r.DataDiskMenu=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_item,c=y.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.category,m=p.matching_designs,l=p.menu,d=l===4,u=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(s){var C=s.id,g=s.name,v=s.can_build,h=s.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function V(){return i(u,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return i(u,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return i(u,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},47349:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";p(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var l=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var C=c?"disposeP":"disposeI";p(C,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.menu,m=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function u(){i("setCategory",{category:d})}return u}()})},d)})})]})}return N}()},87115:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,l=c.amount,d=c.name,u=function(){function v(h){var V=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(V,{id:m,amount:h})}return v}(),s=Math.floor(l/2e3),C=l<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",g,")"]}),(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 u(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return u("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return u(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return u(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,i=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},45805:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),N=n(51939),k=r.LatheMenu=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,m=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return m===4&&!l?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.disk_type,m=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,u=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var C=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return k}()},29933:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(N,k){var S=N.icon,y=N.children,p=N.disabled,i=N.content,c=(0,a.useBackend)(k),m=c.data,l=c.act,d=m.menu,u=m.submenu,s=d,C=u;return N.menu!==null&&N.menu!==void 0&&(s=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:S,disabled:p,onClick:function(){function g(){l("nav",{menu:s,submenu:C})}return g}(),children:y})}return f}()},59959:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return N}()},28078:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var N=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,i=function(){function m(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return m}(),c=i(o.menu,y)&&i(o.submenu,p);return c?N():null}return t}()},59991:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=p.act,m=i.sync,l=i.admin,d=i.linked_destroy,u=i.linked_lathe,s=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return k}()},63752:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var N=n(73492);r.LatheMainMenu=N.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var i=n(25242);r.MainMenu=i.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var l=n(28078);r.RndRoute=l.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=function(y,p){var i=y/p;return i<=.2?"good":i<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(l,d){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:N(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(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"})]})})]})},d)})})})}return S}()},48356:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.can_hack,l=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:s,can_hack:m})]})})}return k}(),N=function(S,y){var p=S.cyborgs,i=S.can_hack,c=(0,a.useBackend)(y),m=c.act,l=c.data,d="Detonate";return l.detonate_cooldown>0&&(d+=" ("+l.detonate_cooldown+"s)"),p.length?p.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!u.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.dial,u=l.open,s=l.locked,C=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,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.dial,u=l.open,s=l.locked,C=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function V(){return m(h?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return m("retrieve",{index:s+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(p,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.satellites,m=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,u=i.meteor_shield_coverage_max,s=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},46504:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(99753),k=n(31068),S=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,p)})})})})}return c}(),y=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.locked,g=s.no_passcode,v=s.emagged,h=s.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,l)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:L})},L)})},B[0])})})]})},i=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return u("keypad",{digit:C})}return g}()})}},54529:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(h,V){(0,N.modalOpen)(h,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(h,V){var b=(0,t.useBackend)(V),B=b.act,L=b.data,w=L.loginState,T=L.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,l):T===2&&(A=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,V){var b=(0,t.useBackend)(V),B=b.act,L=b.data,w=L.currentPage,T=L.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},l=function(h,V){var b=(0,t.useBackend)(V),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),P=E[0],R=E[1],M=(0,t.useLocalState)(V,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(W){return W.name+"|"+W.id+"|"+W.rank+"|"+W.fingerprint+"|"+W.status})).sort(function(W,U){var K=D?1:-1;return W[P].localeCompare(U[P])*K}).map(function(W){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[W.status],onClick:function(){function U(){return B("view",{uid_gen:W.uid_gen,uid_sec:W.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",W.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.status})]},W.id)})]})})})],4)},d=function(h,V){var b=(0,t.useLocalState)(V,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(L(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,V){var b=(0,t.useBackend)(V),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,R){return x(R)}return E}()})})]})},s=function(h,V){var b=(0,t.useBackend)(V),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return i(V,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(h,V){var b=(0,t.useBackend)(V),B=b.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return i(V,w)}return A}()})]},T)})})}),!!L.has_photos&&L.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,V){var b=(0,t.useBackend)(V),B=b.act,L=b.data,w=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.stored_seeds,l=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:l,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return i("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,N):"No Seeds"})})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(l,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),l.name,l.variant?" ("+l.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",l.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return i("vend",{seedid:l.id,seedvariant:l.variant})}return u}()})]})]},d)})]})}},58578:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return N}()},11154:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],l=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function u(){return l(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return l(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return l(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.templates_tabs,u=l.existing_shuttle,s=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!u&&s[u.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.existing_shuttle,u=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=b?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,u);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return s}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(C,g){var v=(0,t.useBackend)(g),h=v.data,V=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[b[1]]/100,ranges:S,children:(0,a.round)(V[b[1]],0)},B)},B)})})})},l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=V.isBeakerLoaded,L=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w/L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.chemicals,L=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(P,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>L||b.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:P})}return M}()},R)})]})})},A)})})},u=function(C,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42439:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return N}()},280:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.secure,m=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function u(){return p("drying")}return u}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function s(){return p("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(C,g){return p("vend",{index:u.vend,amount:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return N}()},47606:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),N=1e3,k=r.Smes=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,C=m.inputting,g=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,V=m.outputPowernet,b=m.outputAttempt,B=m.outputting,L=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=l>=100&&"good"||C&&"average"||"bad",x=B&&"good"||u>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value: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:s?"sync-alt":"times",selected:s,onClick:function(){function E(){return c("tryinput")}return E}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:h/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("input",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":u>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:L===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("output",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=0,m=1,l=2,d=i.generated,u=i.generated_ratio,s=i.tracking_state,C=i.tracking_rate,g=i.connected_panels,v=i.connected_tracker,h=i.cdir,V=i.direction,b=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),s===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(L,w){return p("cdir",{cdir:w})}return B}()}),s===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:s===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===l,disabled:!v,onClick:function(){function B(){return p("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},27478:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("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 N}()},15565:function(I,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),N=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("hemomancer")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("umbrae")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("gargantua")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("dantalion")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return k}(),N=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return k}()},64323:function(I,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),N=n(84947),k=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(k||{}),S=function(c,m){var l=(0,o.useBackend)(m),d=l.act,u=l.data,s=u.future_station_traits,C=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=C[0],v=C[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),V=Object.keys(h);return V.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return d("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var l=(0,o.useBackend)(m),d=l.act,u=l.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:s.ref})}return C}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function i(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=l[0],u=l[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:d===k.ViewStationTraits,onClick:function(){function C(){return u(k.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function C(){return u(k.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return i}()},57633:function(I,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,S)]})})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.helmet,u=l.suit,s=l.magboots,C=l.mask,g=l.storage,v=l.open,h=l.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function V(){return m("cook")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function V(){return m("toggle_lock")}return V}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:C,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{object:g,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=p.object,u=p.label,s=p.missingText,C=p.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function g(){return m(C)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.open,u=l.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(I,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),N=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function l(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data;return g.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return l}(),i=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.supermatters,h=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return C("refresh")}return V}()}),children:(0,e.createComponentVNode)(2,N.Table,{children:h.map(function(V){return(0,e.createComponentVNode)(2,N.Table.Row,{children:[(0,e.createComponentVNode)(2,N.Table.Cell,{children:V.supermatter_id+". "+V.area_name}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,N.Button,{content:"Details",onClick:function(){function b(){return C("view",{view:V.supermatter_id})}return b}()})})]},V.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.active,h=g.SM_integrity,V=g.SM_power,b=g.SM_ambienttemp,B=g.SM_ambientpressure,L=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(L.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(b),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return p(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return N}()},61225:function(I,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return i("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},97552:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.records,l=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||s,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),l.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),N=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.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(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function u(){return i("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return k}()},33291:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return p("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(l,d){return p("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return N}()},75480:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.o_tanks,m=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("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 p("plasma")}return l}()})})]})})})}return N}()},62291:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function p(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return p}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.active,s=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,V=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function L(){return l("toggle_active")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function L(){return l("nttc_toggle_jobs")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function L(){return l("nttc_toggle_job_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function L(){return l("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return l("nttc_toggle_command_bold")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function L(){return l("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return l("nttc_setting_language")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function L(){return l("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return l("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return l("export")}return L}()})]})],4)},S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.link_password,s=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"lock",onClick:function(){function C(){return l("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function s(){return l("add_filter")}return s}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return l("remove_filter",{user:s})}return C}()})})]},s)})]})})}},82905:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.linked,d=m.active,u=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children: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,N):(0,e.createComponentVNode)(2,k)]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.linked_core_id,d=m.linked_core_addr,u=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return c("unlink")}return s}()})})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,l=1,d=2,u=i.calibrated,s=i.calibrating,C=i.powerstation,g=i.regime,v=i.teleporterhub,h=i.target,V=i.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===l?"good":null,onClick:function(){function b(){return p("setregime",{regime:l})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!V,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(u||s),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},40759:function(I,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.TempGun=function(){function p(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,u=d.target_temperature,s=d.temperature,C=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,V){return l("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return p}(),k=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},S=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},y=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},32369:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),N=n(2971),k=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,l){var d=(0,o.useBackend)(l),u=d.act,s=d.data,C=s.max_length,g=s.message,v=g===void 0?"":g,h=s.multiline,V=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(l,"input",V||""),w=L[0],T=L[1],A=function(){function P(R){if(R!==w){var M=h?S(R):y(R);T(M)}}return P}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function P(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return P}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),i=function(m,l){var d=(0,o.useBackend)(l),u=d.act,s=d.data,C=s.max_length,g=s.multiline,v=m.input,h=m.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){V&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:v})}},82296:function(I,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return i("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return i("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return i("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(l,d){return i("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},68488:function(I,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.tank_one,m=i.tank_two,l=i.attached_device,d=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return p("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function u(){return p("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function u(){return p("remove_device")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function u(){return p("tankone")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function u(){return p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},26868:function(I,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),N=r.TurbineComputer=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.compressor,u=l.compressor_broken,s=l.turbine,C=l.turbine_broken,g=l.online,v=!!(d&&!u&&s&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,C=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||d?"bad":"good",children:d?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(I,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),N=n(2971),k=n(84947),S=n(22677),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function C(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(v,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function P(){return V("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:y(w)})]})})]})}return C}(),i=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],P=x[1],R=function(K,$){$===void 0&&($="");var z=(0,o.createSearch)($,function(Y){var H=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+H});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),$&&(0,a.filter)(z),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},M=function(K){if(P(K),K==="")return A(L[0].items);A(R(L.map(function($){return $.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],W=D[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return W(!j)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(K,$){M($)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:L.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function K(){A(U.items),P("")}return K}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.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:w})},T)})})})})},l=function(g,v){var h=g.i,V=g.showDecription,b=V===void 0?1:V,B=g.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=g.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=g.i,L=b.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(D,j){j===void 0&&(j="");var W=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(W),(0,a.sortBy)(function(U){return U.name})])(D)},R=P(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(I,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=S.product,l=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,V=!u||m.price===0,b="ERROR!",B="";V?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!v||l===0||!V&&m.price>C&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color: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:B,content:b,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:m.inum})}return w}()})})]})},N=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.user,l=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,C=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,V=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"check":"volume-mute",selected:L,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(u,s){return p("volume",{channel:m.num,volume:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return N}()},26564:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.remaining,m=i.question,l=i.choices,d=i.user_vote,u=i.counts,s=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(s?" ("+(u[C]||0)+")":""),onClick:function(){function g(){return p("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return N}()},496:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.wires||[],m=i.status||[],l=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return N}()},28919:function(I,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},14635:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=N(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(p,i){if(p){if(typeof p=="string")return k(p,i);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,i)}}function k(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,m=new Array(i);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function W(){return B(j.ref)}return W}()},j.desc)})]})]})})}return p}()},29136:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,p,i,c){return Si?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:f(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function N(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,i=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return N}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(I,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.locked,c=p.noaccess,m=p.maintpanel,l=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,C=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function p(i,c,m){var l=(0,a.useBackend)(i),d=l.act,u=l.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return p}(),N=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),k=r.modalAnswer=function(){function p(i,c,m,l){var d=(0,a.useBackend)(i),u=d.act,s=d.data;if(s.modal){var C=Object.assign(s.modal.args||{},l||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(C)})}}return p}(),S=r.modalClose=function(){function p(i,c){var m=(0,a.useBackend)(i),l=m.act;l("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(i,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var d=l.modal,u=d.id,s=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,V,b="auto";if(o[u])h=o[u](l.modal,c);else if(C==="input"){var B=l.modal.value;g=function(){function w(T){return k(c,u,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var L=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(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 w(){return k(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,V]})}}return p}()},692:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),N=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.rank),bold:y(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(m,l){var d=(0,a.useBackend)(l),u=d.act,s;if(m.data)s=m.data;else{var C=(0,a.useBackend)(l),g=C.data;s=g}var v=s,h=v.manifest,V=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},98658:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(N,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,i=p.large_buttons,c=p.swapped_buttons,m=N.input,l=N.message,d=N.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("submit",{entry:m})}return C}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=N.siliconUser,c=i===void 0?p.siliconUser:i,m=N.locked,l=m===void 0?p.locked:m,d=N.normallyLocked,u=d===void 0?p.normallyLocked:d,s=N.onLockStatusChange,C=s===void 0?function(){return y("lock")}:s,g=N.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(N){var k=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState,c=p.isAI,m=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(N){var k=N.operating,S=N.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=k.data,c=i.code,m=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,C){return p("freq",{freq:C})}return u}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function u(s,C){return p("code",{code:C})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return p("signal")}return u}()})]})}return N}()},79969:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),N=n(2971),k=r.SimpleRecords=function(){function p(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,S,{data:i.data})})}return p}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=i.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],C=u[1],g=function(V,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.Name})])(d)},v=g(d,s);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(V,b){return C(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function V(){return l("Records",{target:h.uid})}return V}()})},h)})]})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=i.data.records,u=d.general,s=d.medical,C=d.security,g;switch(i.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(N,k){var S,y=(0,a.useBackend)(k),p=y.act,i=y.data,c=i.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return p("cleartemp")}return l}()})})]})})))}}return f}()},98638:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.holder,m=i.dead,l=i.health,d=i.brute,u=i.oxy,s=i.tox,C=i.burn,g=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.master,m=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.cable,m=i.machine,l=i.inprogress,d=i.progress,u=i.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var C;return m&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),C]})}return f}()},94648:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.available_software,m=i.installed_software,l=i.installed_toggles,d=i.available_ram,u=i.emotions,s=i.current_emotion,C=i.speech_verbs,g=i.current_speech_verb,v=i.available_chassises,h=i.current_chassis,V=[];return m.map(function(b){return V[b.key]=b.name}),l.map(function(b){return V[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!V[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!V[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.app_data,m=c.minFrequency,l=c.maxFrequency,d=c.frequency,u=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:d/10,format:function(){function s(C){return(0,t.toFixed)(C,1)}return s}(),onChange:function(){function s(C,g){return p("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return N}()},76020:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.janitor,c=i.user_loc,m=i.mops,l=i.buckets,d=i.cleanbots,u=i.carts,s=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return f}()},57725:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=y.data,c=i.owner,m=i.ownjob,l=i.idInserted,d=i.categories,u=i.pai,s=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=i.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return N}()},29978:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,N,{data:l}):(0,e.createComponentVNode)(2,k,{data:l})}return y}(),N=r.ActiveConversation=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=p.data,d=l.convo_name,u=l.convo_job,s=l.messages,C=l.active_convo,g=(0,t.useLocalState)(i,"clipboardMode",!1),v=g[0],h=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return m("Clear",{option:"Convo"})}return b}()})})})}),V]})}return y}(),k=r.MessengerList=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=p.data,d=l.convopdas,u=l.pdas,s=l.charges,C=l.silent,g=l.toff,v=l.ringtone_list,h=l.ringtone,V=(0,t.useLocalState)(i,"searchTerm",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[s," charges left."]})})}),!d.length&&!u.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:l,searchTerm:b})]})}return y}(),S=function(p,i){var c=(0,t.useBackend)(i),m=c.act,l=p.data,d=p.pdas,u=p.title,s=p.msgAct,C=p.searchTerm,g=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function V(){return m(s,{target:h.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:V.uid,target:h.uid})}return b}()},V.uid)})})]},h.uid)})})}},54291:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.connected,m=i.wild_captures,l=i.no_collection,d=i.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return p("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return p("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!l&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("Next")}return u}()})]})}),children:l?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},31112:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.mulebot,l=m.bots;return l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return i("control",{bot:d.uid})}return u}()})},d.Name)})},N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.mulebot,l=m.botstatus,d=m.active,u=l.mode,s=l.loca,C=l.load,g=l.powr,v=l.dest,h=l.home,V=l.retn,b=l.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function L(){return i("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function L(){return i("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return i("set_pickup_type",{autopick:b?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function L(){return i("set_auto_return",{autoret:V?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return i("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return i("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return i("home")}return L}()})]})]})]})}},2817:function(I,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.logged_in,g=s.owner_name,v=s.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,i)}return c}(),N=function(m,l){var d=(0,t.useBackend)(l),u=d.data,s=(0,t.useLocalState)(l,"tabIndex",1),C=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,l){var d=(0,t.useLocalState)(l,"tabIndex",1),u=d[0],s=(0,t.useBackend)(l),C=s.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,l){var d,u=(0,t.useBackend)(l),s=u.act,C=u.data,g=C.requests,v=C.available_accounts,h=C.money,V=(0,t.useLocalState)(l,"selectedAccount"),b=V[0],B=V[1],L=(0,t.useLocalState)(l,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(l,"searchText",""),x=A[0],E=A[1],P=[];return v.map(function(R){return P[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===b})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(P[M])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(M,D){return T(D)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&s.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},73786:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],N=["className","scrollable","children"];/** + */var N=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},i=function(s){var C=String(s);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){C==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=p(s.code);if(g){var v=k[g];if(v)return N.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return N.debug(h),Byond.command(h)}if(s.isUp()&&y[g]){y[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var C=S.indexOf(s);C>=0&&S.splice(C,1)}return u}(),l=r.releaseHeldKeys=function(){function u(){for(var s=0,C=Object.keys(y);s=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,l){return(0,e.createComponentVNode)(2,t.Box,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return p("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return N}()},46817:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},20420:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,C=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],V=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return l("breaker")}return b}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){function b(){return l("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function I(){return l("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function I(){return l("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function I(){return l("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return l(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return l("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function b(){return l("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function b(){return l("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return l("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.view_screen,v=C.authenticated_account,h=C.ticks_left_locked_down,V=C.linked_db,b;if(h>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,i);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),N=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.machine_id,v=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function h(){return s("insert_card")}return h}()})})})]})},k=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"fundsAmount",0),b=V[0],B=V[1],I=(0,a.useLocalState)(d,"purpose",0),w=I[0],T=I[1],A=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return h(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return T(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return s("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],V=C.owner_name,b=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},p=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"accountPin",null),b=V[0],B=V[1],I=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},i=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return s("view_screen",{view_screen:0})}return g}()})}},90698:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),N=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function C(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,i):I===2?w=(0,e.createComponentVNode)(2,u):I===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),p=function(g,v){var h=(0,t.useBackend)(v),V=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],I=b[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),V=h[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),R=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,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"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var W=R?1:-1;return D[x].localeCompare(j[x])*W}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return V("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),V=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(b(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},u=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return V("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return V("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function P(){return V("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},s=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,R){return w(R)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},26354:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=f[c.power.main]||f[0],l=f[c.power.backup]||f[0],d=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function u(){return i("disrupt-main")}return u}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return i("disrupt-backup")}return u}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function u(){return i("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return i("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return i("shock-perm")}return u}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function u(){return i("idscan-toggle")}return u}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function u(){return i("emergency-toggle")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function u(){return i("bolt-toggle")}return u}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function u(){return i("light-toggle")}return u}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function u(){return i("safe-toggle")}return u}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function u(){return i("speed-toggle")}return u}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function u(){return i("open-close")}return u}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},26673:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.AirAlarm=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.air,V=v.mode,b=v.atmos_alarm,B=v.locked,I=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.vents;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.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:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.scrubbers;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.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:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.modes,V=v.presets,b=v.emagged,B=v.mode,I=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},V.name)})]})})}},98565:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.exterior_status,m=i.interior_status,l=i.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function s(){return p("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function s(){return p("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:m==="open"?"red":l?"yellow":null,onClick:function(){function s(){return p("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function s(){return p("cycle_int_door")}return s}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,u]})})]})})}return N}()},76385:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return s("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return s("set_one_access",{access:"all"})}return V}()})],4),accesses:h,selectedList:g,accessMod:function(){function V(b){return s("set",{access:b})}return V}(),grantAll:function(){function V(){return s("grant_all")}return V}(),denyAll:function(){function V(){return s("clear_all")}return V}(),grantDep:function(){function V(b){return s("grant_region",{region:b})}return V}(),denyDep:function(){function V(b){return s("deny_region",{region:b})}return V}()})}},55666:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),N=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.autofocus,g=s.buttons,v=g===void 0?[]:g,h=s.large_buttons,V=s.message,b=V===void 0?"":V,B=s.timeout,I=s.title,w=(0,t.useLocalState)(l,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),P=function(){function R(M){T===0&&M===k?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),P(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return R}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,l){var d=(0,t.useBackend)(l),u=d.data,s=u.buttons,C=s===void 0?[]:s,g=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,b){return g&&C.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b)})})},i=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.large_buttons,g=m.button,v=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return u("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},16504:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.change_race,l=c.species,d=c.specimen,u=c.change_gender,s=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,V=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,W=c.change_hair_gradient,U=c.change_facial_hair,K=c.facial_hair_styles,$=c.facial_hair_style,z=c.change_head_markings,Y=c.head_marking_styles,H=c.head_marking_style,Q=c.change_body_markings,re=c.body_marking_styles,ae=c.body_marking_style,de=c.change_tail_markings,ve=c.tail_marking_styles,ye=c.tail_marking_style,Ie=c.change_body_accessory,pe=c.body_accessory_styles,ne=c.body_accessory_style,ce=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(g||v||h||V||b||B||I||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return i("race",{race:te.specimen})}return be}()},te.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function te(){return i("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function te(){return i("gender",{gender:"female"})}return te}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function te(){return i("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===R,onClick:function(){function be(){return i("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function be(){return i("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return i("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return i("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return i("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return i("hair_gradient_alpha")}return te}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===$,onClick:function(){function be(){return i("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:Y.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===H,onClick:function(){function be(){return i("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:re.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ae,onClick:function(){function be(){return i("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:ve.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return i("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Ie&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return i("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return i("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},77280:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.priority||[],m=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li","color-bad",l,0,null,l)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)})})})}return N}()},66274:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=(0,a.useLocalState)(m,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],C=u[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return C(h)}return v}(),children:g.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},90588:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,m=i.pressure,l=i.max_pressure,d=i.filter_type,u=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:m,onDrag:function(){function s(C,g){return p("custom_pressure",{pressure:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function s(){return p("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function C(){return p("set_filter",{filter:s.gas_type})}return C}()},s.label)})})]})})})})}return N}()},87486:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.on,l=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function C(g,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(u,s){return i("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(l+10)/100})}return d}()})]})}},46714:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,m=i.rate,l=i.max_rate,d=i.gas_unit,u=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:l,value:m,onDrag:function(){function s(C,g){return p("custom_rate",{rate:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function s(){return p("max_rate")}return s}()})]})]})})})})}return N}()},66032:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),N=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[d].pressure," kpa"]}):"",Object.keys(l[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(l[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:l[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(l[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),k=n(37843),S=function(i,c,m,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>m)},y=r.Autolathe=function(){function p(i,c){var m=(0,o.useBackend)(c),l=m.act,d=m.data,u=d.total_amount,s=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,V=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,I=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],W=(0,k.createSearch)(D,function(z){return z.name}),U="";B>0&&(U=b.map(function(z,Y){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[Y][0],onClick:function(){function H(){return l("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return H}()},z)},Y)}));var K=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||D)&&(d.showhacked||!z.hacked)}),D&&(0,t.filter)(W),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(I),$="Build";return D?$="Results for: '"+D+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(Y){return x(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,H){return j(H)}return z}(),mb:1}),K.map(function(z){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:1})}return Y}(),children:(0,k.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:10})}return Y}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:25})}return Y}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function Y(){return l("make",{make:z.uid,multiplier:z.max_multiplier})}return Y}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(Y){return(0,k.toTitleCase)(Y)+": "+z.requirements[Y]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return l("clear_queue")}return z}()})]})]})]})})})}return p}()},13940:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.implant,m=i.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function l(){return p("eject_case")}return l}()})]})})})}return N}()},55295:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.Biogenerator=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.data,u=l.config,s=d.container,C=d.processing,g=u.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.biomass,C=u.container,g=u.container_curr_reagents,v=u.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:s}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.has_plants,C=u.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.biomass,C=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],h=g[1],V=Object.entries(C).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:sd&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function I(){return i("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function I(){return i("set",{set_level:d})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function I(){return i("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return i("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return i("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return i("set",{set_level:v})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=u,onClick:function(){function w(){return i("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},31876:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(37843),o=n(91819),f=n(2971),N=n(84947),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},l=r.BodyScanner=function(){function b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:P})})}return b}(),d=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,u,{occupant:I}),(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,C,{occupant:I}),(0,e.createComponentVNode)(2,v,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},u=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},s=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:i(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.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"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=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."]})})})}},73440:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=n(92462),k=r.BookBinder=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function s(){return c("print_book")}return s}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_author")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(s){return s.description}),onSelected:function(){function s(C){return c("toggle_binder_category",{category_id:u[C]})}return s}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return l.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:s.category_id})}return C}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.locked,l=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:l,onClick:function(){function b(){return i("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function b(){return i("ejectpai")}return b}()})})]})})}return k}()},36078:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.noaccess,l=c.painame,d=c.hullplating,u=c.replace,s=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,V=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:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return i("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return i("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return i("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function b(){return i("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return i("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return i("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return i("anchored")}return b}()})]}),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 b(){return i("ejectpai")}return b}()})})]})})}return k}()},89121:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},39805:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.locked,l=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(P,R){return i("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:l,onChange:function(){function E(P,R){return i("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return k}()},35519:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.noaccess,l=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return i("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return i("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return i("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return i("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return i("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 i("ejectpai")}return v}()})})]})})}return k}()},71169:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,p){var i=y.cell,c=(0,o.useBackend)(p),m=c.act,l=i.cell_id,d=i.occupant,u=i.crimes,s=i.brigged_by,C=i.time_left_seconds,g=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var V=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,f,{cell:i},i.ref)})]})},k=r.BrigCells=function(){function S(y,p){var i=(0,o.useBackend)(p),c=i.act,m=i.data,l=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:l})})})})})}return S}()},19070:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var y=function(l,d){var u,s;if(!d)return[];var C=l.findIndex(function(g){return g.name===d.name});return[(u=l[C-1])==null?void 0:u.name,(s=l[C+1])==null?void 0:s.name]},p=function(l,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(l)},i=r.CameraConsole=function(){function m(l,d){var u=(0,N.useBackend)(d),s=u.act,C=u.data,g=u.config,v=C.mapRef,h=C.activeCamera,V=p(C.cameras),b=y(V,h),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return s("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,d){var u=(0,N.useBackend)(d),s=u.act,C=u.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],h=g[1],V=C.activeCamera,b=p(C.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return s("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},21348:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),N=n(84947),k=r.Canister=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,m=i.data,l=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,C=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,h=m.name,V=m.canLabel,b=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var P=[],R=[],M=[],D=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:s.cooldown_time||!h.can_close,onClick:function(){function V(){return u("make_job_unavailable",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function V(){return u("make_job_available",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function V(){return u("prioritize_job",{job:h.title})}return V}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function h(V){return u("set",{access:V})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(V){return u("grant_region",{region:V})}return h}(),denyDep:function(){function h(V){return u("deny_region",{region:V})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function h(){return u("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),s.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function V(){return u("remote_demote",{remote_demote:h.name})}return V}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),y=function(u,s){var C=(0,o.useLocalState)(s,"contentsModal",null),g=C[0],v=C[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),V=h[0],b=h[1];if(g!==null&&V!==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,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.is_public,V=v.timeleft,b=v.moving,B=v.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},i=function(u,s){var C,g=(0,o.useBackend)(s),v=g.act,h=g.data,V=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],I=b[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.requests,V=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(s,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(s,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(s,"contentsModal",null),P=E[0],R=E[1],M=(0,o.useLocalState)(s,"contentsModalTitle",null),D=M[0],j=M[1],W=(0,k.createSearch)(A,function(H){return H.name}),U=(0,o.useLocalState)(s,"selectedAccount"),K=U[0],$=U[1],z=(0,a.flow)([(0,t.filter)(function(H){return H.cat===V.filter(function(Q){return Q.name===I})[0].category||A}),A&&(0,t.filter)(W),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(b),Y="Crate Catalogue";return A?Y="Results for '"+A+"':":I&&(Y="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:Y,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(H){return H.name}),selected:I,onSelected:function(){function H(Q){return w(Q)}return H}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(Q,re){return x(re)}return H}(),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:z.map(function(H){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[H.name," (",H.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:!K,onClick:function(){function Q(){return g("order",{crate:H.ref,multiple:!1,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||H.singleton,onClick:function(){function Q(){return g("order",{crate:H.ref,multiple:!0,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){R(H.contents),j(H.name)}return Q}()})]})]},H.name)})})})]})})},m=function(u,s){var C=u.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},l=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,h=v.requests,V=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],l=c[1],d=i.cl_data,u=i.last_cl,s={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return l(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},56975:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),N=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),y=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.amount,g=s.energy,v=s.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},V)})})})]})})})},p=function(m,l){for(var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.chemicals,g=C===void 0?[]:C,v=[],h=0;h<(g.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:V.id})}return B}()},b)}),v.map(function(V,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},i=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,V=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return u("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return u("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},48734:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),N=n(84947),k=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return l("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function V(){return l("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function V(b,B){return l("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(b){return(0,a.toFixed)(b)+" K"}return V}()})||"\u2014"})]})})})},y=function(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:g})})})}},35918:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),N=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var P={},R=Object.keys(x),M,D;for(D=0;D=0)&&(P[M]=x[M]);return P}function i(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(R,M){return R.__proto__=M,R}return P}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),l=[1,5,10],d=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function W(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return W}()})]})})})})},u=r.ChemMaster=function(){function x(E,P){var R=(0,a.useBackend)(P),M=R.data,D=M.condi,j=M.beaker,W=M.beaker_reagents,U=W===void 0?[]:W,K=M.buffer_reagents,$=K===void 0?[]:K,z=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s,{beaker:j,beakerReagents:U,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,C,{mode:z,bufferReagents:$}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.beaker,j=E.beakerReagents,W=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:W?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function U(K,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:W,buttons:function(){function U(K,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.patient_limb_data,V=v.limb_list,b=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[B][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 ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&N),checked:!(b[B][2]&N),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(b[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.patient_organ_data,V=v.organ_list,b=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][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:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},58378:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CloningPod=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,m=i.biomass_storage_capacity,l=i.sanguine_reagent,d=i.osseous_reagent,u=i.organs,s=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(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:d+" 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:d,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!s&&(0,e.createComponentVNode)(2,t.Box,{children:[!u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!u&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.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 g(){return p("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!s&&(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 N}()},14283:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function u(s,C){return p("setvalue",{idx:d.idx+1,value:C})}return u}()})]},d.name)})},l)})})})})})}return N}()},98577:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return d}(),k=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.authenticated,V=v.noauthbutton,b=v.esc_section,B=v.esc_callable,I=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return h?h===1?P="Command":h===2?P="Captain":h===3?P="CentComm Officer":h===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:V,content:h?"Log Out ("+P+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return g("callshuttle")}return R}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return g("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin,V=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,I=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.msg_cooldown,V=v.emagged,b=v.cc_cooldown,B=v.security_level_color,I=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var P=V?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(P+=" ("+b+"s)",R+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return g("announce")}return M}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!T||b>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!T||b>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function M(){return g("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return g("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.stat_display,V=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.authhead,V=v.current_message_title,b=v.current_message,B=v.messages,I=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=u.levels,V=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,h=v.is_admin,V=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],P=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(W,U){return I(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(W,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:M,onSelected:function(){function j(W){return D(W)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return g("test_sound",{sound:M})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return P(!E)}return j}()})})]})]})})}},70611:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,m=i.compost,l=i.biomass_capacity,d=i.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],C=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue: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.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,h){return C(h)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*s,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:s})}return g}()})})})]})})})}return N}()},73744:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),N=n(84947);function k(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(V,b){return V.__proto__=b,V}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function g(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},v,{children:I.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return b("activate",{uid:M.uid,difficulty:W+1})}return U}()},W)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,I=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},u=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(g){k(v,g);function v(V){var b;return b=g.call(this,V)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function V(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return V}(),h.componentDidMount=function(){function V(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return V}(),v}(e.Component),C=function(v,h){var V=(0,t.useLocalState)(h,"viewingPhoto",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},57392:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.slowFactor,m=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return p("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return p("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},91413:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),N=n(99753),k=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function l(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],V=v[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return l}(),c=function(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,V=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),C=s.data,g=(0,o.useLocalState)(u,"zoom",1),v=g[0],h=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function V(b){return h(b)}return V}(),children:C.crewmembers.filter(function(V){return V.sensor_type===3}).map(function(V){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:V.x,y:V.y,zoom:v,icon:"circle",tooltip:V.name+" ("+V.assignment+")",color:p(V,C.critThreshold)},V.ref)})})})}},55104:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,h=d.cellTemperatureStatus,V=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,I=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return l("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return l("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return l(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,C=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=r.CryopodConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.frozen_items,u=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return m("one_item",{item:s.uid})}return C}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(P,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},R)})}),E]})},c=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(R){return R.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(R,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},d=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,s)})]})},u=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function R(){return I("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return I("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return I("bufferOption",{option:"saveDisk",id:T})}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return I("injectRejuvenators",{amount:E})}return R}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(V,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,P=V.action,R=T.split(""),M=0,D=[],j=function(){for(var K=W/E+1,$=[],z=function(){var Q=Y+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Q,content:R[W+Y],mb:"0",onClick:function(){function re(){return I(P,{block:K,subblock:Q})}return re}()}))},Y=0;Ys.spawnpoints?"red":"green",children:[s.total," total, versus ",s.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return u("dispatch_ert",{silent:v})}return V}()})})]})})})},p=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return u("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(m,l){var d=(0,a.useBackend)(l),u=d.act,s=d.data,C=(0,a.useLocalState)(l,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(V,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:g})}return h}()})]})})}},77877:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data,m=c.power,l=c.code,d=c.frequency,u=c.minFrequency,s=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function C(g,v){return i("code",{code:v})}return C}()})})]})})})})}return k}()},52640:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(90955),k=n(72026),S=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return i}(),y=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.evo_points,C=u.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.evo_points,C=u.ability_tabs,g=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",C[0]),V=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var W=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(W),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(D)},P=function(D){if(w(D),D==="")return x(V.abilities);x(E(C.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(D),x(D.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(D,j){P(j)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),g.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>s||g.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),N=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},V=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return g}(),m=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},l=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],P=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function D(j){return b("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return b("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,W){return P(W)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,C,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.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:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E})}return P}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[I]||0,P=w||E;if(!(P<=0&&!(I==="metal"||I==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:P.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,C=m.occupant_status,g=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return f.get(C)}return B}(),b=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,N=1013,k=function(p){var i="good",c=80,m=95,l=110,d=120;return pl?i="average":p>d&&(i="bad"),i},S=r.ExternalAirlockController=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.chamber_pressure,u=l.exterior_status,s=l.interior_status,C=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:k(d),value:d,minValue:f,maxValue:N,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return m("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return N}()},80031:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=y.config,m=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return N}()},39552:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=S.image,l=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:d})},N=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.availableStyles,l=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return i("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return i("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return i("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:l===C,onSelect:function(){function g(){return i("select_style",{style:C})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[g],isSelected:g===d,onSelect:function(){function v(){return i("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return k}()},5090:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=function(l){return l?"("+l.join(", ")+")":"ERROR"},k=function(l,d){if(!(!l||!d)){if(l[2]!==d[2])return null;var u=Math.atan2(d[1]-l[1],d[0]-l[0]),s=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(l,d){var u=(0,t.useBackend)(d),s=u.data,C=s.emped,g=s.active,v=s.area,h=s.position,V=s.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return m}(),y=function(l,d){var u=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:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var u=(0,t.useBackend)(d),s=u.act,C=u.data,g=C.active,v=C.tag,h=C.same_z,V=(0,t.useLocalState)(d,"newTag",v),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return s("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function I(){return s("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return s("tag",{newtag:b})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return s("same_z")}return I}()})})]})})},i=function(l,d){var u=l.title,s=l.area,C=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(l,d){var u=(0,t.useBackend)(d),s=u.data,C=s.position,g=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,k(C,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},h)})})})))}},1055:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),N=r.GeneModder=function(){function l(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return C("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.has_seed,h=g.seed,V=g.has_disk,b=g.disk,B,I;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(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:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:V.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:V.id})}return b}()})})]},V)})},"Core Genes")},i=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:v})},m=function(d,u){var s=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,V=v.data,b=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function N(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},86268:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.security,m=i.medical,l=i.diagnostic,d=i.radioactivity,u=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=S.label,m=S.type,l=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?g:s,{hud_type:l})}return v}()})})]})}},8977:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return N}()},70309:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.charging_state,m=i.charge_count,l=i.breaker,d=i.ext_power,u=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),s=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function C(){return p("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},64769:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return i("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return i("access",{access:l})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(l){return i("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return i("deny_region",{region:l})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},12219:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],N=null,k=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.amount,s=d.energy,C=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[s," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===v,content:v,onClick:function(){function V(){return l("amount",{amount:v})}return V}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(i,c){for(var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,C=d.current_reagent,g=[],v=0;v<(s.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(h,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return l("dispense",{reagent:h.id})}return b}()},V)}),g.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},53917:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.HealthSensor=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,m=i.data,l=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,C=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),l=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],C=u[1],g=c.decks,v=c.ai_override,h=c.emagged,V=function(){function b(B){i("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,N),(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:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===l,onClick:function(){function B(){return V(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return i("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return i("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),N=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Instrument=function(){function i(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),k=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.help;if(s)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},S=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.lines,C=u.playing,g=u.repeat,v=u.maxRepeats,h=u.tempo,V=u.minTempo,b=u.maxTempo,B=u.tickLag,I=u.volume,w=u.minVolume,T=u.maxVolume,A=u.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:s.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return d("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.allowedInstrumentNames,C=u.instrumentLoaded,g=u.instrument,v=u.canNoteShift,h=u.noteShift,V=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,I=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:b,value:h,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},p=function(c,m){var l=(0,t.useBackend)(m),d=l.act,u=l.data,s=u.playing,C=u.lines,g=u.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function V(){return d("modifyline",{line:h+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function V(){return d("deleteline",{line:h+1})}return V}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},64261:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("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 p("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 p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("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 p("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 p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:m})]})})}return N}()},34898:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.KitchenMachine=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,m=i.config,l=c.ingredients,d=c.operating,u=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:d,name:u}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.isAdmin,u=l.isSlaved,s=l.isMalf,C=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.has_zeroth_laws,u=l.zeroth_laws,s=l.has_ion_laws,C=l.ion_laws,g=l.ion_law_nr,v=l.has_inherent_laws,h=l.inherent_laws,V=l.has_supplied_laws,b=l.supplied_laws,B=l.channels,I=l.channel,w=l.isMalf,T=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,P=l.supplied_law,R=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:i}),!!s&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:i}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(p,i){var c=(0,a.useBackend)(p.ctx),m=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryComputer=function(){function g(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return b("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},y=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},i=function(v,h){var V=(0,a.useBackend)(h),b=V.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var V=(0,a.useLocalState)(h,"tabIndex",0),b=V[0];switch(b){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},l=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},s=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=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 s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.ckey,C=u.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",s,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},68e3:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),N=n(31068),k=n(84947),S=r.ListInputModal=function(){function i(c,m){var l=(0,f.useBackend)(m),d=l.act,u=l.data,s=u.items,C=s===void 0?[]:s,g=u.message,v=g===void 0?"":g,h=u.init_value,V=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",C.indexOf(h)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],R=E[1],M=function(){function Y(H){var Q=$.length-1;if(H===N.KEY_DOWN)if(I===null||I===Q){var re;w(0),(re=document.getElementById("0"))==null||re.scrollIntoView()}else{var ae;w(I+1),(ae=document.getElementById((I+1).toString()))==null||ae.scrollIntoView()}else if(H===N.KEY_UP)if(I===null||I===0){var de;w(Q),(de=document.getElementById(Q.toString()))==null||de.scrollIntoView()}else{var ve;w(I-1),(ve=document.getElementById((I-1).toString()))==null||ve.scrollIntoView()}}return Y}(),D=function(){function Y(H){H!==I&&w(H)}return Y}(),j=function(){function Y(){x(!1),x(!0)}return Y}(),W=function(){function Y(H){var Q=String.fromCharCode(H),re=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(re){var ae,de=C.indexOf(re);w(de),(ae=document.getElementById(de.toString()))==null||ae.scrollIntoView()}}return Y}(),U=function(){function Y(H){var Q;H!==P&&(R(H),w(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return Y}(),K=function(){function Y(){x(!A),R("")}return Y}(),$=C.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(P.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var Y;return(Y=document.getElementById(I.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function Y(H){var Q=window.event?H.which:H.keyCode;(Q===N.KEY_DOWN||Q===N.KEY_UP)&&(H.preventDefault(),M(Q)),Q===N.KEY_ENTER&&(H.preventDefault(),d("submit",{entry:$[I]})),!A&&Q>=N.KEY_A&&Q<=N.KEY_Z&&(H.preventDefault(),W(Q)),Q===N.KEY_ESCAPE&&(H.preventDefault(),d("cancel"))}return Y}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function Y(){return K()}return Y}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:$,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:U,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[I]})})]})})})]})}return i}(),y=function(c,m){var l=(0,f.useBackend)(m),d=l.act,u=c.filteredItems,s=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(h,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function b(){return s(V)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;g&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:V===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},V)})})},p=function(c,m){var l=(0,f.useBackend)(m),d=l.act,u=c.filteredItems,s=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[g]})}return v}(),onInput:function(){function v(h,V){return s(V)}return v}(),placeholder:"Search...",value:C})}},75965:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return P("configure",{key:T,value:D,ref:x})}return R}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return P("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return P("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(w),R=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,R=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},i=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,R=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,R=I.statusbrute,M=I.statusburn,D=I.statustoxin,j=I.statusoxy,W=I.statustemp,U=I.statusnutrition,K=I.statusfingerprints,$=I.statusdna,z=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?W:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?$:"???"})]})}),!!T&&!!z&&(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"})})]}),z.map(function(Y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[Y.stage,"/",Y.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.cure})]},Y.name)})]})})],0)},m={rad_counter:p,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},u=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,W=x.complexity_max,U=x.wearer_name,K=x.wearer_job,$=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:$}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",W,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",K]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,W=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:W&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:W}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",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(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,R=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function W(){return D(null)}return W}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("select",{ref:j.ref})}return W}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return D(j.ref)}return W}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("pin",{ref:j.ref})}return W}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},86322:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(22677),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.autolink,u=l.code,s=l.frequency,C=l.linkedMagnets,g=l.magnetConfiguration,v=l.path,h=l.pathPosition,V=l.probing,b=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(i,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),C.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:T})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return y}()},54374:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.recharge_port,m=c&&c.mech,l=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return p("reconnect")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!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 N}()},14823:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,m=i.data,l=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:l.length&&l.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),N=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,f.modalOpen)(T,"edit",{field:A.edit,value:A.value})},m=function(T,A){var x=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:x.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:x.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:x.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:x.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[x.severity],children:x.severity})]})})})},l=r.MedicalRecords=function(){function w(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.loginState,R=E.screen;if(!P.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var M;return R===2?M=(0,e.createComponentVNode)(2,d):R===3?M=(0,e.createComponentVNode)(2,u):R===4?M=(0,e.createComponentVNode)(2,s):R===5?M=(0,e.createComponentVNode)(2,h):R===6&&(M=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,I),M]})})]})}return w}(),d=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.records,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],W=(0,t.useLocalState)(A,"sortId","name"),U=W[0],K=W[1],$=(0,t.useLocalState)(A,"sortOrder",!0),z=$[0],Y=$[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 H(){return E("screen",{screen:3})}return H}()})}),(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 H(Q,re){return j(re)}return H}()})})]})}),(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,b,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,b,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,b,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,b,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,b,{id:"m_stat",children:"Mental Status"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.id+"|"+H.rank+"|"+H.p_stat+"|"+H.m_stat})).sort(function(H,Q){var re=z?1:-1;return H[U].localeCompare(Q[U])*re}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[H.p_stat],onClick:function(){function Q(){return E("view_record",{view_record:H.ref})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.m_stat})]},H.id)})]})})})],4)},u=function(T,A){var x=(0,t.useBackend)(A),E=x.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function P(){return E("del_all_med_records")}return P}()})})]})})},s=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical,M=P.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:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return E("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!R||!R.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 D(){return E("new_med_record")}return D}()}),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:!!R.empty,content:"Delete Medical Record",onClick:function(){function D(){return E("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.general;return!P||!P.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:P.fields.map(function(R,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(A,R)}return D}()})]},M)})})}),!!P.has_photos&&P.photos.map(function(R,M){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:R,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},g=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical;return!R||!R.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:R.fields.map(function(M,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,M)}return j}()})]},D)})})})})},v=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.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 M(){return(0,f.modalOpen)(A,"add_comment")}return M}()}),children:R.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):R.comments.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_comment",{del_comment:D+1})}return j}()})]},D)})})})},h=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.virus,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],W=(0,t.useLocalState)(A,"sortId2","name"),U=W[0],K=W[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),z=$[0],Y=$[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 H(Q,re){return j(re)}return H}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.max_stages+"|"+H.severity})).sort(function(H,Q){var re=z?1:-1;return H[U].localeCompare(Q[U])*re}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+H.severity,onClick:function(){function Q(){return E("vir",{vir:H.D})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[H.severity],children:H.severity})]},H.id)})]})})})})],4)},V=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medbots;return R.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"})]}),R.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.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:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},b=function(T,A){var x=(0,t.useLocalState)(A,"sortId","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder",!0),M=R[0],D=R[1],j=T.id,W=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var x=(0,t.useLocalState)(A,"sortId2","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder2",!0),M=R[0],D=R[1],j=T.id,W=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.screen,M=P.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:R===2,onClick:function(){function D(){E("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:R===5,onClick:function(){function D(){E("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:R===6,onClick:function(){function D(){return E("screen",{screen:6})}return D}(),children:"Medibot Tracking"}),R===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:R===3,children:"Record Maintenance"}),R===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:R===4,children:["Record: ",M.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=p.product,u=p.productImage,s=p.productCategory,C=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,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},N=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],u=m.products,s=m.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[C[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:C[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.user_cash,u=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,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return y}(),S=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],u=l[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return u(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return u(2)}return C}(),children:"Decorations"})]})}},53551:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=["title","items"];function k(l,d){if(l==null)return{};var u={},s=Object.keys(l),C,g;for(g=0;g=0)&&(u[C]=l[C]);return u}var S={Alphabetical:function(){function l(d,u){return d-u}return l}(),Availability:function(){function l(d,u){return-(d.affordable-u.affordable)}return l}(),Price:function(){function l(d,u){return d.price-u.price}return l}()},y=r.MiningVendor=function(){function l(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,h=g.id,V=g.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],P=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(V).map(function(j,W){var U=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),C=s[0],g=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],V=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=d.title,h=d.items,V=k(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=I[x]);return T}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"}},d=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,W=E.channels,U=E.channel_idx,K=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),z=$[0],Y=$[1],H=(0,t.useLocalState)(T,"viewingPhoto",""),Q=H[0],re=H[1],ae=(0,t.useLocalState)(T,"censorMode",!1),de=ae[0],ve=ae[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,C));var Ie=W.reduce(function(pe,ne){return pe+ne.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:P&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.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",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return Y(!z)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Ie>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Ie>=10?"9+":Ie})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&W[K-1]===pe,onClick:function(){function ne(){return x("channel",{uid:pe.uid})}return ne}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return ve(!de)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,W=j===void 0?!1:j,U=w.onClick,K=w.title,$=w.children,z=i(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:U},z,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),$]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,W=E.stories,U=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"censorMode",!1),H=Y[0],Q=Y[1],re=P===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:re?re.icon:"newspaper",mr:"0.5rem"}),re?re.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(ae){return!$.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,de){return(0,e.createComponentVNode)(2,g,{story:ae},de)}):(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."]})}),!!re&&(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)([H&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!re.admin&&!R,selected:re.censored,icon:re.censored?"comment-slash":"comment",content:re.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:re.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:re.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:re.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:re.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:re.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:re.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"}),W.reduce(function(ae,de){return ae+de.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,R=E.wanted,M=Object.entries(P).reduce(function(D,j){var W=j[0],U=j[1];return D+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,g,{story:R,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(D){return Object.assign({},l[D],{id:D,jobs:P[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),W=j[0],U=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),$=K[0],z=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&$&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return x("censor_story",{uid:P.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(Y,H){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},H)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return U([].concat(W,[P.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=i(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return R(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||D||"Unknown"),W=j[0],U=j[1],K=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),H=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"isPublic",R?!!(P!=null&&P.public):!1),ye=ve[0],Ie=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function q(se,me){return U(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:H,onInput:function(){function q(se,me){return Q(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Ie(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:W,name:$.substr(0,49),description:H.substr(0,128),icon:ae,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,W=w.args.scanned_user,U=R.slice().sort(function(q,se){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===W||!!q.public)}),K=(0,t.useLocalState)(T,"author",W||"Unknown"),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),H=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"title",""),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"body",""),ye=ve[0],Ie=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:$,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:H,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return Q(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ae,onInput:function(){function q(se,me){return de(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(se,me){return Ie(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||H.trim().length===0||ae.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:$,channel:H,title:ae.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),W=j[0],U=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),$=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),H=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ae=re[0],de=re[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function ve(ye,Ie){return U(Ie)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function ve(ye,Ie){return z(Ie)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:H,maxLength:"512",rows:"4",onInput:function(){function ve(ye,Ie){return Q(Ie)}return ve}()})}),(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 ve(){return x(P?"eject_photo":"attach_photo")}return ve}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ve(){return de(!ae)}return ve}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function ve(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return ve}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ve(){(0,k.modalAnswer)(T,w.id,"",{author:W,name:$.substr(0,127),description:H.substr(0,511),admin_locked:ae?1:0})}return ve}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",V),(0,k.modalRegisterBodyOverride)("manage_channel",V),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return N}()},45523:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),N=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(i,c){var m=(0,f.useBackend)(c),l=m.act,d=m.data,u=d.init_value,s=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,h=d.title,V=(0,f.useLocalState)(c,"input",u),b=V[0],B=V[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:b}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(i,c){var m=(0,f.useBackend)(c),l=m.act,d=m.data,u=d.min_value,s=d.max_value,C=d.init_value,g=d.round_value,v=i.input,h=i.onClick,V=i.onChange,b=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function I(){return h(u)}return I}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:u,maxValue:s,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return l("submit",{entry:T})}return I}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function I(){return h(s)}return I}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function I(){return h(C)}return I}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},48314:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.hasOccupant,h=g.choice,V;return h?V=(0,e.createComponentVNode)(2,m):V=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return l}(),i=function(d,u){var s=(0,t.useBackend)(u),C=s.data,g=C.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.verbose,h=g.health,V=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return C(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return C(I?"critOff":"critOn")}return w}()})})]})}},87511:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function N(u,s){var C=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(C)return(C=C.call(u)).next.bind(C);if(Array.isArray(u)||(C=k(u))||s&&u&&typeof u.length=="number"){C&&(u=C);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(u,s){if(u){if(typeof u=="string")return S(u,s);var C=Object.prototype.toString.call(u).slice(8,-1);if(C==="Object"&&u.constructor&&(C=u.constructor.name),C==="Map"||C==="Set")return Array.from(u);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var C=0,g=new Array(s);CC},c=function(s,C){var g=s.name,v=C.name;if(!g||!v)return 0;var h=g.match(y),V=v.match(y);if(h&&V&&g.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(V[1],10);return b-B}return i(g,v)},m=function(s,C){var g=s.searchText,v=s.source,h=s.title,V=s.color,b=s.sorted,B=v.filter(p(g));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(I){return(0,e.createComponentVNode)(2,l,{thing:I,color:V},I.name)})})},l=function(s,C){var g=(0,t.useBackend)(C),v=g.act,h=s.color,V=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:V.ref})}return b}(),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"}),")"]})]})},d=r.Orbit=function(){function u(s,C){for(var g=(0,t.useBackend)(C),v=g.act,h=g.data,V=h.alive,b=h.antagonists,B=h.highlights,I=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],M=P[1],D={},j=N(b),W;!(W=j()).done;){var U=W.value;D[U.antag]===void 0&&(D[U.antag]=[]),D[U.antag].push(U)}var K=Object.entries(D);K.sort(function(z,Y){return i(z[0],Y[0])});var $=function(){function z(Y){for(var H=0,Q=[K.map(function(de){var ve=de[0],ye=de[1];return ye}),B,V,A,T,E,x];H0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(z){var Y=z[0],H=z[1];return(0,e.createComponentVNode)(2,o.Section,{title:Y+" - ("+H.length+")",level:2,children:H.filter(p(R)).sort(c).map(function(Q){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:Q},Q.name)})},Y)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:I,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,N.createLogger)("OreRedemption"),y=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(C,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.id,B=V.points,I=V.disk,w=Object.assign({},(k(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.sheets,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,d,{ore:I},I.id)})]})))})},m=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alloys,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},l=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.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",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.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(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.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(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})}},55686:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(33115),k=function(p){var i;try{i=N("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=i[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.app_template,u=l.app_icon,s=l.app_title,C=k(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return y}()},58717:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(75168),k=function(c){var m;try{m=N("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var l=m[c];return l||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.app,C=u.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(s.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.idInserted,C=u.idLink,g=u.stationTime,v=u.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:s?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var l=(0,a.useBackend)(m),d=l.act,u=l.data,s=u.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!s.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78062:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),N=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.active,l=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,V=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/b,P=T*w,R=Math.round(g/C),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return i("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(W,U){return i("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||h||!A,onClick:function(){function j(){return i("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.assembled,m=i.power,l=i.strength,d=i.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return p("scan")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||l===0,onClick:function(){function u(){return p("remove_strength")}return u}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return N}()},67572:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,N)})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return m("insert_pda")}return l}()})]})})})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=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,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.current_appearance,u=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,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,C=m.prev_cat,g=m.next_cat,v=m.subcategory,h=m.prev_subcat,V=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:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!l&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!l&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!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 d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:l.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:l.uid})}return d}()})]})},l.name)})})}},47051:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function N(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(i,c){var m=i.tempKey,l=N(i,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,C=u.act,g=s.currentTemp,v=d.label,h=d.icon,V=m===g,b=function(){C("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:b},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(i,c){for(var m=(0,a.useBackend)(c),l=m.data,d=l.emagged,u=l.currentTemp,s=k[u]||k.normal,C=s.label,g=s.color,v=[],h=0,V=Object.entries(k);h50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(C){var g,v,h=C.status;switch(h){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};u.defaultHooks=f.pureComponentHooks},15164:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),N=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function V(){return l("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function V(){return l("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.goal===null,content:"Edit",onClick:function(){function V(){return(0,f.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:s.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(V){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: ",V.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:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,f.modalOpen)(c,"warn",{uid:V.uid})}return b}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){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: ",V.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:V.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volumem;return(0,e.createComponentVNode)(2,o.Stack,{className:"PrizeCounter__Item",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{lineHeight:"0",align:"center",children:(0,e.createVNode)(1,"div",(0,a.classes)(["prize_counter64x64",v.imageID]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,mt:1,children:v.name}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{mb:1,children:v.desc})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:(0,a.classes)(["PrizeCounter__BuyButton",h&&"PrizeCounter__BuyButton--disabled"]),icon:"ticket",content:v.cost,tooltip:h?"Not enough tickets.":null,tooltipPosition:"top-end",onClick:function(){function V(){return!h&&i("purchase",{purchase:v.itemID})}return V}()})})]},v.name)})})})})})})}return k}()},82443:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=n(14635),k=r.RCD=function(){function l(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),S=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.matter,v=C.max_matter,h=v*.7,V=v*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[V,h],bad:[-1/0,V]},value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+v+" units"})})})})},y=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=d.mode_type,h=g.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:h===v?1:0,onClick:function(){function V(){return C("mode",{mode:v})}return V}()})})},i=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.door_name,h=g.electrochromic,V=g.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function b(){return(0,f.modalOpen)(u,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:V===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return C("electrochromic")}return b}()})})]})})})},c=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.tab,h=g.locked,V=g.one_access,b=g.selected_accesses,B=g.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function I(){return C("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function I(){return C("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):v===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return C("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,N.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return C("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:V,content:"One",onClick:function(){function I(){return C("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V,width:4,content:"All",onClick:function(){function I(){return C("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return C("set",{access:w})}return I}(),grantAll:function(){function I(){return C("grant_all")}return I}(),denyAll:function(){function I(){return C("clear_all")}return I}(),grantDep:function(){function I(w){return C("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return C("deny_region",{region:w})}return I}()})})],4)},m=function(d,u){for(var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.door_types_ui_list,h=g.door_type,V=d.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function b(){return s("setScreen",{setScreen:1})}return b}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.department,v=[],h;switch(l.purpose){case"ASSISTANCE":v=C.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=C.supply_dept,h="Request supplies from another department";break;case"INFO":v=C.info_dept,h="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(V){return V!==g}).map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:V,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:V,priority:"2"})}return b}()})]},V)})})})})},S=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g;switch(l.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},y=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g,v;switch(l.type){case"MESSAGES":g=C.message_log,v="Message Log";break;case"SHIPPING":g=C.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),children:g.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(V,b){return(0,e.createVNode)(1,"div",null,V,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.recipient,v=C.message,h=C.msgVerified,V=C.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return s("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:V})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function b(){return s("department",{department:g})}return b}()})})})],4)},i=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.message,v=C.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(v&&g),onClick:function(){function h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(l,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.shipDest,v=C.msgVerified,h=C.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&v),onClick:function(){function V(){return s("printLabel")}return V}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===V?"Selected":"Select",selected:g===V,onClick:function(){function b(){return s("shipSelect",{shipSelect:V})}return b}()})},V)})})})})],4)}},51939:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===N.LATHE||u===N.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),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]})})})}return y}()},50239:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var m=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N="design",k="tech",S=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,i)]})]}):null},y=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_data;if(!h)return null;var V=h.name,b=h.lathe_types,B=h.materials,I=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var b=h===k?"eject_tech":"eject_design";v(b)}return V}()}):null},c=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_data,h=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case N:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,h=g.disk_type,V=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:I}):v("copy_design",{id:I})}return w}()})},I)})})})})},l=r.DataDiskMenu=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_item,c=y.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.category,m=p.matching_designs,l=p.menu,d=l===4,u=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(s){var C=s.id,g=s.name,v=s.can_build,h=s.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function V(){return i(u,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return i(u,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return i(u,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},47349:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";p(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var l=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var C=c?"disposeP":"disposeI";p(C,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.menu,m=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function u(){i("setCategory",{category:d})}return u}()})},d)})})]})}return N}()},87115:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,l=c.amount,d=c.name,u=function(){function v(h){var V=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(V,{id:m,amount:h})}return v}(),s=Math.floor(l/2e3),C=l<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",g,")"]}),(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 u(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return u("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return u(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return u(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,i=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},45805:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),N=n(51939),k=r.LatheMenu=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,m=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return m===4&&!l?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.disk_type,m=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,u=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var C=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return k}()},29933:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(N,k){var S=N.icon,y=N.children,p=N.disabled,i=N.content,c=(0,a.useBackend)(k),m=c.data,l=c.act,d=m.menu,u=m.submenu,s=d,C=u;return N.menu!==null&&N.menu!==void 0&&(s=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:S,disabled:p,onClick:function(){function g(){l("nav",{menu:s,submenu:C})}return g}(),children:y})}return f}()},59959:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return N}()},28078:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var N=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,i=function(){function m(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return m}(),c=i(o.menu,y)&&i(o.submenu,p);return c?N():null}return t}()},59991:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=p.act,m=i.sync,l=i.admin,d=i.linked_destroy,u=i.linked_lathe,s=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return k}()},63752:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var N=n(73492);r.LatheMainMenu=N.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var i=n(25242);r.MainMenu=i.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var l=n(28078);r.RndRoute=l.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=function(y,p){var i=y/p;return i<=.2?"good":i<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(l,d){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:N(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(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"})]})})]})},d)})})})}return S}()},48356:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.can_hack,l=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:s,can_hack:m})]})})}return k}(),N=function(S,y){var p=S.cyborgs,i=S.can_hack,c=(0,a.useBackend)(y),m=c.act,l=c.data,d="Detonate";return l.detonate_cooldown>0&&(d+=" ("+l.detonate_cooldown+"s)"),p.length?p.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!u.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.dial,u=l.open,s=l.locked,C=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,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.dial,u=l.open,s=l.locked,C=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function V(){return m(h?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return m("retrieve",{index:s+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(p,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.satellites,m=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,u=i.meteor_shield_coverage_max,s=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},46504:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(99753),k=n(31068),S=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,p)})})})})}return c}(),y=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.locked,g=s.no_passcode,v=s.emagged,h=s.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return y(I,l)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:I})},I)})},B[0])})})]})},i=function(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return u("keypad",{digit:C})}return g}()})}},54529:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(h,V){(0,N.modalOpen)(h,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,l):T===2&&(A=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},l=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),P=E[0],R=E[1],M=(0,t.useLocalState)(V,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(W){return W.name+"|"+W.id+"|"+W.rank+"|"+W.fingerprint+"|"+W.status})).sort(function(W,U){var K=D?1:-1;return W[P].localeCompare(U[P])*K}).map(function(W){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[W.status],onClick:function(){function U(){return B("view",{uid_gen:W.uid_gen,uid_sec:W.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",W.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.status})]},W.id)})]})})})],4)},d=function(h,V){var b=(0,t.useLocalState)(V,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(I(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,R){return x(R)}return E}()})})]})},s=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return i(V,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(h,V){var b=(0,t.useBackend)(V),B=b.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return i(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.stored_seeds,l=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:l,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return i("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,N):"No Seeds"})})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(l,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),l.name,l.variant?" ("+l.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",l.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return i("vend",{seedid:l.id,seedvariant:l.variant})}return u}()})]})]},d)})]})}},58578:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return N}()},11154:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],l=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function u(){return l(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return l(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return l(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.templates_tabs,u=l.existing_shuttle,s=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!u&&s[u.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.existing_shuttle,u=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=b?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,u);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return s}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(C,g){var v=(0,t.useBackend)(g),h=v.data,V=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[b[1]]/100,ranges:S,children:(0,a.round)(V[b[1]],0)},B)},B)})})})},l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(P,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>I||b.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:P})}return M}()},R)})]})})},A)})})},u=function(C,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42439:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return N}()},280:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.secure,m=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function u(){return p("drying")}return u}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function s(){return p("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(C,g){return p("vend",{index:u.vend,amount:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return N}()},47606:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),N=1e3,k=r.Smes=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,C=m.inputting,g=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,V=m.outputPowernet,b=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=l>=100&&"good"||C&&"average"||"bad",x=B&&"good"||u>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value: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:s?"sync-alt":"times",selected:s,onClick:function(){function E(){return c("tryinput")}return E}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:h/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("input",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":u>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("output",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=0,m=1,l=2,d=i.generated,u=i.generated_ratio,s=i.tracking_state,C=i.tracking_rate,g=i.connected_panels,v=i.connected_tracker,h=i.cdir,V=i.direction,b=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),s===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),s===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:s===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===l,disabled:!v,onClick:function(){function B(){return p("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},27478:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("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 N}()},15565:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),N=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("hemomancer")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("umbrae")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("gargantua")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return l("dantalion")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return k}(),N=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return k}()},64323:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),N=n(84947),k=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(k||{}),S=function(c,m){var l=(0,o.useBackend)(m),d=l.act,u=l.data,s=u.future_station_traits,C=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=C[0],v=C[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),V=Object.keys(h);return V.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],I=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}d("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return d("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var l=(0,o.useBackend)(m),d=l.act,u=l.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:s.ref})}return C}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function i(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=l[0],u=l[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:d===k.ViewStationTraits,onClick:function(){function C(){return u(k.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function C(){return u(k.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return i}()},57633:function(L,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,S)]})})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.helmet,u=l.suit,s=l.magboots,C=l.mask,g=l.storage,v=l.open,h=l.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function V(){return m("cook")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function V(){return m("toggle_lock")}return V}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:C,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{object:g,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=p.object,u=p.label,s=p.missingText,C=p.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function g(){return m(C)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.open,u=l.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(L,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),N=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function l(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data;return g.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return l}(),i=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.supermatters,h=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return C("refresh")}return V}()}),children:(0,e.createComponentVNode)(2,N.Table,{children:h.map(function(V){return(0,e.createComponentVNode)(2,N.Table.Row,{children:[(0,e.createComponentVNode)(2,N.Table.Cell,{children:V.supermatter_id+". "+V.area_name}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,N.Button,{content:"Details",onClick:function(){function b(){return C("view",{view:V.supermatter_id})}return b}()})})]},V.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.active,h=g.SM_integrity,V=g.SM_power,b=g.SM_ambienttemp,B=g.SM_ambientpressure,I=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(b),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return p(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return N}()},61225:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return i("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},97552:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.records,l=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||s,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),l.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),N=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.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(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function u(){return i("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return k}()},33291:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return p("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(l,d){return p("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return N}()},75480:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.o_tanks,m=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("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 p("plasma")}return l}()})})]})})})}return N}()},62291:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function p(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),C=s[0],g=s[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return p}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.active,s=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,V=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.link_password,s=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"lock",onClick:function(){function C(){return l("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,u=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function s(){return l("add_filter")}return s}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return l("remove_filter",{user:s})}return C}()})})]},s)})]})})}},82905:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.linked,d=m.active,u=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children: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,N):(0,e.createComponentVNode)(2,k)]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.linked_core_id,d=m.linked_core_addr,u=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return c("unlink")}return s}()})})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,m=i.data,l=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,l=1,d=2,u=i.calibrated,s=i.calibrating,C=i.powerstation,g=i.regime,v=i.teleporterhub,h=i.target,V=i.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===l?"good":null,onClick:function(){function b(){return p("setregime",{regime:l})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!V,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(u||s),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},40759:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.TempGun=function(){function p(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,u=d.target_temperature,s=d.temperature,C=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,V){return l("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return p}(),k=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},S=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},y=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},32369:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),N=n(2971),k=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,l){var d=(0,o.useBackend)(l),u=d.act,s=d.data,C=s.max_length,g=s.message,v=g===void 0?"":g,h=s.multiline,V=s.placeholder,b=s.timeout,B=s.title,I=(0,o.useLocalState)(l,"input",V||""),w=I[0],T=I[1],A=function(){function P(R){if(R!==w){var M=h?S(R):y(R);T(M)}}return P}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function P(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return P}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),i=function(m,l){var d=(0,o.useBackend)(l),u=d.act,s=d.data,C=s.max_length,g=s.multiline,v=m.input,h=m.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){V&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,I){return h(I)}return b}(),placeholder:"Type something...",value:v})}},82296:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return i("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return i("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return i("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(l,d){return i("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},68488:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.tank_one,m=i.tank_two,l=i.attached_device,d=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return p("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function u(){return p("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function u(){return p("remove_device")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function u(){return p("tankone")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function u(){return p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},26868:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),N=r.TurbineComputer=function(){function y(p,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.compressor,u=l.compressor_broken,s=l.turbine,C=l.turbine_broken,g=l.online,v=!!(d&&!u&&s&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,C=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||d?"bad":"good",children:d?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(p,i){var c=(0,a.useBackend)(i),m=c.data,l=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),N=n(2971),k=n(84947),S=n(22677),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function C(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=(0,f.useLocalState)(v,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function P(){return V("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:y(w)})]})})]})}return C}(),i=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.crystals,I=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],P=x[1],R=function(K,$){$===void 0&&($="");var z=(0,o.createSearch)($,function(Y){var H=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+H});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),$&&(0,a.filter)(z),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},M=function(K){if(P(K),K==="")return A(I[0].items);A(R(I.map(function($){return $.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],W=D[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return W(!j)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(K,$){M($)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function K(){A(U.items),P("")}return K}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.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:w})},T)})})})})},l=function(g,v){var h=g.i,V=g.showDecription,b=V===void 0?1:V,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},u=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(g,v){var h=(0,f.useBackend)(v),V=h.act,b=h.data,B=b.exploitable,I=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(D,j){j===void 0&&(j="");var W=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(W),(0,a.sortBy)(function(U){return U.name})])(D)},R=P(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=S.product,l=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,V=!u||m.price===0,b="ERROR!",B="";V?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var I=!v||l===0||!V&&m.price>C&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color: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:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:m.inum})}return w}()})})]})},N=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.user,l=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,C=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,V=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(u,s){return p("volume",{channel:m.num,volume:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return N}()},26564:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.remaining,m=i.question,l=i.choices,d=i.user_vote,u=i.counts,s=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(s?" ("+(u[C]||0)+")":""),onClick:function(){function g(){return p("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return N}()},496:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.wires||[],m=i.status||[],l=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return N}()},28919:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},14635:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=N(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(p,i){if(p){if(typeof p=="string")return k(p,i);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,i)}}function k(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,m=new Array(i);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function W(){return B(j.ref)}return W}()},j.desc)})]})]})})}return p}()},29136:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,p,i,c){return Si?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:f(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return k}()},83326:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function N(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,i=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return N}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.locked,c=p.noaccess,m=p.maintpanel,l=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,C=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function p(i,c,m){var l=(0,a.useBackend)(i),d=l.act,u=l.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return p}(),N=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),k=r.modalAnswer=function(){function p(i,c,m,l){var d=(0,a.useBackend)(i),u=d.act,s=d.data;if(s.modal){var C=Object.assign(s.modal.args||{},l||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(C)})}}return p}(),S=r.modalClose=function(){function p(i,c){var m=(0,a.useBackend)(i),l=m.act;l("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(i,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var d=l.modal,u=d.id,s=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,V,b="auto";if(o[u])h=o[u](l.modal,c);else if(C==="input"){var B=l.modal.value;g=function(){function w(T){return k(c,u,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(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 w(){return k(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,V]})}}return p}()},692:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),N=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.rank),bold:y(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(m,l){var d=(0,a.useBackend)(l),u=d.act,s;if(m.data)s=m.data;else{var C=(0,a.useBackend)(l),g=C.data;s=g}var v=s,h=v.manifest,V=h.heads,b=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},98658:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(N,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,i=p.large_buttons,c=p.swapped_buttons,m=N.input,l=N.message,d=N.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("submit",{entry:m})}return C}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=N.siliconUser,c=i===void 0?p.siliconUser:i,m=N.locked,l=m===void 0?p.locked:m,d=N.normallyLocked,u=d===void 0?p.normallyLocked:d,s=N.onLockStatusChange,C=s===void 0?function(){return y("lock")}:s,g=N.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return f}()},2146:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(N){var k=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState,c=p.isAI,m=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(N){var k=N.operating,S=N.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=k.data,c=i.code,m=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,C){return p("freq",{freq:C})}return u}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function u(s,C){return p("code",{code:C})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return p("signal")}return u}()})]})}return N}()},79969:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),N=n(2971),k=r.SimpleRecords=function(){function p(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,S,{data:i.data})})}return p}(),S=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=i.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],C=u[1],g=function(V,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(d)},v=g(d,s);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(V,b){return C(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function V(){return l("Records",{target:h.uid})}return V}()})},h)})]})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=i.data.records,u=d.general,s=d.medical,C=d.security,g;switch(i.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(N,k){var S,y=(0,a.useBackend)(k),p=y.act,i=y.data,c=i.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return p("cleartemp")}return l}()})})]})})))}}return f}()},98638:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.holder,m=i.dead,l=i.health,d=i.brute,u=i.oxy,s=i.tox,C=i.burn,g=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.master,m=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.cable,m=i.machine,l=i.inprogress,d=i.progress,u=i.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var C;return m&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),C]})}return f}()},94648:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.available_software,m=i.installed_software,l=i.installed_toggles,d=i.available_ram,u=i.emotions,s=i.current_emotion,C=i.speech_verbs,g=i.current_speech_verb,v=i.available_chassises,h=i.current_chassis,V=[];return m.map(function(b){return V[b.key]=b.name}),l.map(function(b){return V[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!V[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!V[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.app_data,m=c.minFrequency,l=c.maxFrequency,d=c.frequency,u=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:d/10,format:function(){function s(C){return(0,t.toFixed)(C,1)}return s}(),onChange:function(){function s(C,g){return p("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return N}()},76020:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.janitor,c=i.user_loc,m=i.mops,l=i.buckets,d=i.cleanbots,u=i.carts,s=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return f}()},57725:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=y.data,c=i.owner,m=i.ownjob,l=i.idInserted,d=i.categories,u=i.pai,s=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=i.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return N}()},29978:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,N,{data:l}):(0,e.createComponentVNode)(2,k,{data:l})}return y}(),N=r.ActiveConversation=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=p.data,d=l.convo_name,u=l.convo_job,s=l.messages,C=l.active_convo,g=(0,t.useLocalState)(i,"clipboardMode",!1),v=g[0],h=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return m("Clear",{option:"Convo"})}return b}()})})})}),V]})}return y}(),k=r.MessengerList=function(){function y(p,i){var c=(0,t.useBackend)(i),m=c.act,l=p.data,d=l.convopdas,u=l.pdas,s=l.charges,C=l.silent,g=l.toff,v=l.ringtone_list,h=l.ringtone,V=(0,t.useLocalState)(i,"searchTerm",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[s," charges left."]})})}),!d.length&&!u.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:l,searchTerm:b})]})}return y}(),S=function(p,i){var c=(0,t.useBackend)(i),m=c.act,l=p.data,d=p.pdas,u=p.title,s=p.msgAct,C=p.searchTerm,g=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function V(){return m(s,{target:h.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:V.uid,target:h.uid})}return b}()},V.uid)})})]},h.uid)})})}},54291:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.connected,m=i.wild_captures,l=i.no_collection,d=i.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return p("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return p("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!l&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("Next")}return u}()})]})}),children:l?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},31112:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.mulebot,l=m.bots;return l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return i("control",{bot:d.uid})}return u}()})},d.Name)})},N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,m=c.mulebot,l=m.botstatus,d=m.active,u=l.mode,s=l.loca,C=l.load,g=l.powr,v=l.dest,h=l.home,V=l.retn,b=l.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function I(){return i("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function I(){return i("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return i("set_pickup_type",{autopick:b?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return i("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return i("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return i("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return i("home")}return I}()})]})]})]})}},2817:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,l){var d=(0,t.useBackend)(l),u=d.act,s=d.data,C=s.logged_in,g=s.owner_name,v=s.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,i)}return c}(),N=function(m,l){var d=(0,t.useBackend)(l),u=d.data,s=(0,t.useLocalState)(l,"tabIndex",1),C=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,l){var d=(0,t.useLocalState)(l,"tabIndex",1),u=d[0],s=(0,t.useBackend)(l),C=s.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,l){var d,u=(0,t.useBackend)(l),s=u.act,C=u.data,g=C.requests,v=C.available_accounts,h=C.money,V=(0,t.useLocalState)(l,"selectedAccount"),b=V[0],B=V[1],I=(0,t.useLocalState)(l,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(l,"searchText",""),x=A[0],E=A[1],P=[];return v.map(function(R){return P[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===b})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(P[M])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(M,D){return T(D)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&s.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},73786:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],N=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var S=r.Layout=function(){function p(i){var c=i.className,m=i.theme,l=m===void 0?"nanotrasen":m,d=i.children,u=k(i,f);return(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(u))),d,0,Object.assign({},(0,t.computeBoxProps)(u)))),2)}return p}(),y=function(i){var c=i.className,m=i.scrollable,l=i.children,d=k(i,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),l,0,Object.assign({},(0,t.computeBoxProps)(d))))};y.defaultHooks={onComponentDidMount:function(){function p(i){return(0,o.addScrollableNode)(i)}return p}(),onComponentWillUnmount:function(){function p(i){return(0,o.removeScrollableNode)(i)}return p}()},S.Content=y},55067:function(I,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(39241),N=n(73786),k=["theme","children","className"],S=["className","fitted","children"];/** + */function k(p,i){if(p==null)return{};var c={},m=Object.keys(p),l,d;for(d=0;d=0)&&(c[l]=p[l]);return c}var S=r.Layout=function(){function p(i){var c=i.className,m=i.theme,l=m===void 0?"nanotrasen":m,d=i.children,u=k(i,f);return(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(u))),d,0,Object.assign({},(0,t.computeBoxProps)(u)))),2)}return p}(),y=function(i){var c=i.className,m=i.scrollable,l=i.children,d=k(i,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),l,0,Object.assign({},(0,t.computeBoxProps)(d))))};y.defaultHooks={onComponentDidMount:function(){function p(i){return(0,o.addScrollableNode)(i)}return p}(),onComponentWillUnmount:function(){function p(i){return(0,o.removeScrollableNode)(i)}return p}()},S.Content=y},55067:function(L,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(39241),N=n(73786),k=["theme","children","className"],S=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}var p=r.Pane=function(){function c(m,l){var d=m.theme,u=m.children,s=m.className,C=y(m,k),g=(0,t.useBackend)(l),v=g.suspended,h=(0,f.useDebug)(l),V=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:V&&"debug-layout",children:!v&&u})})))}return c}(),i=function(m){var l=m.className,d=m.fitted,u=m.children,s=y(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},s,{children:d&&u||(0,e.createVNode)(1,"div","Window__contentPadding",u,0)})))};p.Content=i},82118:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),f=n(91819),N=n(2971),k=n(30381),S=n(39241),y=n(20697),p=n(45360),i=n(50175),c=n(73786),m=["className","fitted","children"];function l(b,B){if(b==null)return{};var L={},w=Object.keys(b),T,A;for(A=0;A=0)&&(L[T]=b[T]);return L}function d(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,u(b,B)}function u(b,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(w,T){return w.__proto__=T,w}return L}(),u(b,B)}/** + */function y(c,m){if(c==null)return{};var l={},d=Object.keys(c),u,s;for(s=0;s=0)&&(l[u]=c[u]);return l}var p=r.Pane=function(){function c(m,l){var d=m.theme,u=m.children,s=m.className,C=y(m,k),g=(0,t.useBackend)(l),v=g.suspended,h=(0,f.useDebug)(l),V=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:V&&"debug-layout",children:!v&&u})})))}return c}(),i=function(m){var l=m.className,d=m.fitted,u=m.children,s=y(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},s,{children:d&&u||(0,e.createVNode)(1,"div","Window__contentPadding",u,0)})))};p.Content=i},82118:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),f=n(91819),N=n(2971),k=n(30381),S=n(39241),y=n(20697),p=n(45360),i=n(50175),c=n(73786),m=["className","fitted","children"];function l(b,B){if(b==null)return{};var I={},w=Object.keys(b),T,A;for(A=0;A=0)&&(I[T]=b[T]);return I}function d(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,u(b,B)}function u(b,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),u(b,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var s=(0,i.createLogger)("Window"),C=[400,600],g=r.Window=function(b){d(B,b);function B(){return b.apply(this,arguments)||this}var L=B.prototype;return L.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(s.log("mounting"),this.updateGeometry())}return w}(),L.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),L.updateGeometry=function(){function w(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:C},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),L.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,P=A.children,R=(0,f.useBackend)(this.context),M=R.config,D=R.suspended,j=(0,S.useDebug)(this.context),W=j.debugLayout,U=(0,t.useDispatch)(this.context),K=(T=M.window)==null?void 0:T.fancy,$=M.user&&(M.user.observer?M.status2?m-2:0),d=2;d=o){var u=[c].concat(l).map(function(s){return typeof s=="string"?s:s instanceof Error?s.stack||String(s):JSON.stringify(s)}).filter(function(s){return s}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:u})}},S=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var m=arguments.length,l=new Array(m),d=0;d2?m-2:0),d=2;d=o){var u=[c].concat(l).map(function(s){return typeof s=="string"?s:s instanceof Error?s.stack||String(s):JSON.stringify(s)}).filter(function(s){return s}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:u})}},S=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var m=arguments.length,l=new Array(m),d=0;d0;){var h=g.shift(),V=h(C);try{v=N(V)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return k("notFound",C);var b=v[C];return b||k("missingExport",C)}return i}()},79143:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),f=n(91819),N=n(39241),k=n(50175);function S(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,y(d,u)}function y(d,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),y(d,u)}/** + */var N=n(8156),k=function(c,m){return function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},y=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},p=r.getRoutedComponent=function(){function i(c){var m=c.getState(),l=(0,a.selectBackend)(m),d=l.suspended,u=l.config;if(d)return S;if(u.refreshing)return y;if(0)var s;for(var C=u==null?void 0:u.interface,g=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],v;!v&&g.length>0;){var h=g.shift(),V=h(C);try{v=N(V)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return k("notFound",C);var b=v[C];return b||k("missingExport",C)}return i}()},79143:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),f=n(91819),N=n(39241),k=n(50175);function S(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,y(d,u)}function y(d,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),y(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,k.createLogger)("store"),i=r.configureStore=function(){function d(u){var s,C;u===void 0&&(u={});var g=u,v=g.sideEffects,h=v===void 0?!0:v,V=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:f.backendReducer}),u.reducer]),b=h?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((C=u.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),L=(0,a.createStore)(V,B);return window.__store__=L,window.__augmentStack__=m(L),L}return d}(),c=function(u){return function(s){return function(C){var g=C.type,v=C.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",C),s(C)}}},m=function(u){return function(s,C){var g,v;C?typeof C=="object"&&!C.stack&&(C.stack=s):(C=new Error(s.split("\n")[0]),C.stack=s),p.log("FatalError:",C);var h=u.getState(),V=h==null||(g=h.backend)==null?void 0:g.config,b=s;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:V==null||(v=V.client)==null?void 0:v.ckey,interface:V==null?void 0:V.interface,window:V==null?void 0:V.window}),b}},l=r.StoreProvider=function(d){S(u,d);function u(){return d.apply(this,arguments)||this}var s=u.prototype;return s.getChildContext=function(){function C(){var g=this.props.store;return{store:g}}return C}(),s.render=function(){function C(){return this.props.children}return C}(),u}(t.Component)},90969:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** +*/var p=(0,k.createLogger)("store"),i=r.configureStore=function(){function d(u){var s,C;u===void 0&&(u={});var g=u,v=g.sideEffects,h=v===void 0?!0:v,V=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:f.backendReducer}),u.reducer]),b=h?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((C=u.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),I=(0,a.createStore)(V,B);return window.__store__=I,window.__augmentStack__=m(I),I}return d}(),c=function(u){return function(s){return function(C){var g=C.type,v=C.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",C),s(C)}}},m=function(u){return function(s,C){var g,v;C?typeof C=="object"&&!C.stack&&(C.stack=s):(C=new Error(s.split("\n")[0]),C.stack=s),p.log("FatalError:",C);var h=u.getState(),V=h==null||(g=h.backend)==null?void 0:g.config,b=s;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:V==null||(v=V.client)==null?void 0:v.ckey,interface:V==null?void 0:V.interface,window:V==null?void 0:V.window}),b}},l=r.StoreProvider=function(d){S(u,d);function u(){return d.apply(this,arguments)||this}var s=u.prototype;return s.getChildContext=function(){function C(){var g=this.props.store;return{store:g}}return C}(),s.render=function(){function C(){return this.props.children}return C}(),u}(t.Component)},90969:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(N,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},22030:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** + */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(N,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},22030:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"BlockQuote",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},35286:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + */var o=r.meta={title:"BlockQuote",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},35286:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(N,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},38465:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(N,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},38465:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Button",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],f=["good","average","bad","black","white"],N=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[f.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},16748:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(50175);/** + */var t=r.meta={title:"Button",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],f=["good","average","bad","black","white"],N=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[f.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},16748:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(50175);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"ByondUi",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},N=function(S,y){var p=(0,a.useLocalState)(y,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],c=p[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 setImmediate(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(d){o.logger.log(d)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(l){return c(l.target.value)}return m}(),children:i})})],4)}},76475:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** + */var f=r.meta={title:"ByondUi",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},N=function(S,y){var p=(0,a.useLocalState)(y,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],c=p[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 setImmediate(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(d){o.logger.log(d)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(l){return c(l.target.value)}return m}(),children:i})})],4)}},76475:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Collapsible",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},28994:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Collapsible",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},28994:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),p=y[0],i=y[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],l=c[1],d=(0,a.useLocalState)(S,"fs_fill",!0),u=d[0],s=d[1],C=(0,a.useLocalState)(S,"fs_title",!0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return s(!u)}return h}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return v(!g)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),p=y[0],i=y[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],l=c[1],d=(0,a.useLocalState)(S,"fs_fill",!0),u=d[0],s=d[1],C=(0,a.useLocalState)(S,"fs_title",!0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return s(!u)}return h}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return v(!g)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"number",0),p=y[0],i=y[1],c=(0,a.useLocalState)(S,"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 d(u,s){return l(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function d(u,s){return l(s)}return d}()})}),(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:p,minValue:-100,maxValue:100,onChange:function(){function d(u,s){return i(s)}return d}()})}),(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:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()})}),(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:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()})]}),(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:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(u,s){return i(s)}return d}(),children:function(){function d(u){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:u.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:u.displayValue*4}),u.inputElement]})}return d}()})})})]})})}},97028:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),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)}},85266:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Input",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"number",0),p=y[0],i=y[1],c=(0,a.useLocalState)(S,"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 d(u,s){return l(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function d(u,s){return l(s)}return d}()})}),(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:p,minValue:-100,maxValue:100,onChange:function(){function d(u,s){return i(s)}return d}()})}),(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:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()})}),(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:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return i(s)}return d}()})]}),(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:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(u,s){return i(s)}return d}(),children:function(){function d(u){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:u.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:u.displayValue*4}),u.inputElement]})}return d}()})})})]})})}},97028:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),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)}},85266:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"progress",.5),p=y[0],i=y[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:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(p+.1)}return c}()})]})]})}},36216:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + */var o=r.meta={title:"ProgressBar",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"progress",.5),p=y[0],i=y[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:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(p+.1)}return c}()})]})]})}},36216:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},N=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},22338:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(96417),t=n(2971),o=n(48300);/** + */var t=r.meta={title:"Stack",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},N=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},22338:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(96417),t=n(2971),o=n(48300);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"Storage",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},N=function(S,y){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),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."})}},88446:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var f=r.meta={title:"Storage",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},N=function(S,y){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),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."})}},88446:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,y){var p=(0,a.useLocalState)(y,"tabIndex",0),i=p[0],c=p[1],m=(0,a.useLocalState)(y,"tabProps",{}),l=m[0],d=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function u(){return d(Object.assign({},l,{vertical:!l.vertical}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function u(){return d(Object.assign({},l,{leftSlot:!l.leftSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function u(){return d(Object.assign({},l,{rightSlot:!l.rightSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function u(){return d(Object.assign({},l,{icon:!l.icon}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function u(){return d(Object.assign({},l,{fluid:!l.fluid}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function u(){return d(Object.assign({},l,{leftAligned:!l.leftAligned}))}return u}()})]}),(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(u,s){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(s)}return C}(),children:u},s)})})})],4)}},2938:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Tabs",render:function(){function k(){return(0,e.createComponentVNode)(2,N)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,y){var p=(0,a.useLocalState)(y,"tabIndex",0),i=p[0],c=p[1],m=(0,a.useLocalState)(y,"tabProps",{}),l=m[0],d=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function u(){return d(Object.assign({},l,{vertical:!l.vertical}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function u(){return d(Object.assign({},l,{leftSlot:!l.leftSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function u(){return d(Object.assign({},l,{rightSlot:!l.rightSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function u(){return d(Object.assign({},l,{icon:!l.icon}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function u(){return d(Object.assign({},l,{fluid:!l.fluid}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function u(){return d(Object.assign({},l,{leftAligned:!l.leftAligned}))}return u}()})]}),(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(u,s){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(s)}return C}(),children:u},s)})})})],4)}},2938:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"kitchenSinkTheme"),p=y[0],i=y[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:p,onInput:function(){function c(m,l){return i(l)}return c}()})})})})}},54212:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(60028),t=n(2971);/** + */var o=r.meta={title:"Themes",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(k,S){var y=(0,a.useLocalState)(S,"kitchenSinkTheme"),p=y[0],i=y[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:p,onInput:function(){function c(m,l){return i(l)}return c}()})})})})}},54212:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(60028),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tooltip",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(){var k=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:k.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},51753:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(28823),a=n(2971);/** + */var o=r.meta={title:"Tooltip",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(){var k=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:k.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},51753:function(L,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(I,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=33115},75168:function(I,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=75168},8156:function(I,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./CloningPod":58378,"./CloningPod.js":58378,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=8156},69321:function(I,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=69321},79474:function(I,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(I,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(I,r,n){"use strict";var e=n(62600),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(I,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),I.exports=function(N){f[o][N]=!0}},47158:function(I,r,n){"use strict";var e=n(13300).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(I,r,n){"use strict";var e=n(54341),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(I,r,n){"use strict";var e=n(66379),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(I,r,n){"use strict";var e=n(13586);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(I,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),N=n(3302),k=n(48615),S=n(36787),y=n(21650),p=n(60855),i=n(57301),c=n(54341),m=n(56379),l=n(91420),d=n(95558),u=n(76246),s=n(4471),C=s.enforce,g=s.get,v=t.Int8Array,h=v&&v.prototype,V=t.Uint8ClampedArray,b=V&&V.prototype,B=v&&m(v),L=h&&m(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!l&&k(t.opera)!=="Opera",R=!1,M,D,j,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},K=function(){function ae(de){if(!f(de))return!1;var ve=k(de);return ve==="DataView"||N(W,ve)||N(U,ve)}return ae}(),$=function ae(de){var ve=m(de);if(f(ve)){var ye=g(ve);return ye&&N(ye,E)?ye[E]:ae(ve)}},z=function(de){if(!f(de))return!1;var ve=k(de);return N(W,ve)||N(U,ve)},Y=function(de){if(z(de))return de;throw new T("Target is not a typed array")},H=function(de){if(o(de)&&(!l||c(B,de)))return de;throw new T(S(de)+" is not a typed array constructor")},Q=function(de,ve,ye,Le){if(a){if(ye)for(var pe in W){var ne=t[pe];if(ne&&N(ne.prototype,de))try{delete ne.prototype[de]}catch(ce){try{ne.prototype[de]=ve}catch(q){}}}(!L[de]||ye)&&p(L,de,ye?ve:P&&h[de]||ve,Le)}},re=function(de,ve,ye){var Le,pe;if(a){if(l){if(ye){for(Le in W)if(pe=t[Le],pe&&N(pe,de))try{delete pe[de]}catch(ne){}}if(!B[de]||ye)try{return p(B,de,ye?ve:P&&B[de]||ve)}catch(ne){}else return}for(Le in W)pe=t[Le],pe&&(!pe[de]||ye)&&p(pe,de,ve)}};for(M in W)D=t[M],j=D&&D.prototype,j?C(j)[E]=D:P=!1;for(M in U)D=t[M],j=D&&D.prototype,j&&(C(j)[E]=D);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new T("Incorrect invocation")}return ae}(),P))for(M in W)t[M]&&l(t[M],B);if((!P||!L||L===w)&&(L=B.prototype,P))for(M in W)t[M]&&l(t[M].prototype,L);if(P&&m(b)!==L&&l(b,L),a&&!N(L,A)){R=!0,i(L,A,{configurable:!0,get:function(){function ae(){return f(this)?this[x]:void 0}return ae}()});for(M in W)t[M]&&y(t[M],x,M)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&x,aTypedArray:Y,aTypedArrayConstructor:H,exportTypedArrayMethod:Q,exportTypedArrayStaticMethod:re,getTypedArrayConstructor:$,isView:K,isTypedArray:z,TypedArray:B,TypedArrayPrototype:L}},31284:function(I,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),N=n(21650),k=n(57301),S=n(26148),y=n(13586),p=n(14434),i=n(84501),c=n(74369),m=n(28968),l=n(48705),d=n(48350),u=n(56379),s=n(91420),C=n(39948),g=n(31170),v=n(43405),h=n(83826),V=n(15676),b=n(4471),B=f.PROPER,L=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=b.getterFor(w),R=b.getterFor(T),M=b.set,D=e[w],j=D,W=j&&j[A],U=e[T],K=U&&U[A],$=Object.prototype,z=e.Array,Y=e.RangeError,H=a(C),Q=a([].reverse),re=d.pack,ae=d.unpack,de=function(ge){return[ge&255]},ve=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Le=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return re(l(ge),23,4)},ne=function(ge){return re(ge,52,8)},ce=function(ge,ke,Ce){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return Ce(this)[ke]}return Se}()})},q=function(ge,ke,Ce,Se){var we=R(ge),xe=m(Ce),Oe=!!Se;if(xe+ke>we.byteLength)throw new Y(E);var We=we.bytes,Ve=xe+we.byteOffset,oe=g(We,Ve,Ve+ke);return Oe?oe:Q(oe)},se=function(ge,ke,Ce,Se,we,xe){var Oe=R(ge),We=m(Ce),Ve=Se(+we),oe=!!xe;if(We+ke>Oe.byteLength)throw new Y(E);for(var le=Oe.bytes,he=We+Oe.byteOffset,ue=0;uewe)throw new Y("Wrong offset");if(Ce=Ce===void 0?we-xe:c(Ce),xe+Ce>we)throw new Y(x);M(this,{type:T,buffer:ge,byteLength:Ce,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=Ce,this.byteOffset=xe)}return fe}(),K=U[A],t&&(ce(j,"byteLength",P),ce(U,"buffer",R),ce(U,"byteLength",R),ce(U,"byteOffset",R)),S(K,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Le(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return ae(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return ae(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setUint8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setInt16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){se(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){se(this,8,ge,ne,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&D.name!==w;!y(function(){D(1)})||!y(function(){new D(-1)})||y(function(){return new D,new D(1.5),new D(NaN),D.length!==1||me&&!L})?(j=function(){function fe(ge){return p(this,W),v(new D(m(ge)),this,j)}return fe}(),j[A]=W,W.constructor=j,h(j,D)):me&&L&&N(D,"name",w),s&&u(K)!==$&&s(K,$);var te=new U(new j(2)),be=a(K.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(K,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(j,w),V(U,T),I.exports={ArrayBuffer:j,DataView:U}},28332:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;I.exports=[].copyWithin||function(){function N(k,S){var y=e(this),p=t(y),i=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?p:a(m,p))-c,p-i),d=1;for(c0;)c in y?y[i]=y[c]:o(y,i),i+=d,c+=d;return y}return N}()},39948:function(I,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);I.exports=function(){function o(f){for(var N=e(this),k=t(N),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,i=p===void 0?k:a(p,k);i>y;)N[y++]=f;return N}return o}()},16856:function(I,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");I.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(I,r,n){"use strict";var e=n(83207);I.exports=function(a,t,o){for(var f=0,N=arguments.length>2?o:e(t),k=new a(N);N>f;)k[f]=t[f++];return k}},45056:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),N=n(49632),k=n(83207),S=n(80750),y=n(45731),p=n(52984),i=Array;I.exports=function(){function c(m){var l=t(m),d=N(this),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0;C&&(s=e(s,u>2?arguments[2]:void 0));var g=p(l),v=0,h,V,b,B,L,w;if(g&&!(this===i&&f(g)))for(B=y(l,g),L=B.next,V=d?new this:[];!(b=a(L,B)).done;v++)w=C?o(B,s,[b.value,v],!0):b.value,S(V,v,w);else for(h=k(l),V=d?new this(h):i(h);h>v;v++)w=C?s(l[v],v):l[v],S(V,v,w);return V.length=v,V}return c}()},33483:function(I,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(N){return function(k,S,y){var p=e(k),i=t(p),c=a(y,i),m;if(N&&S!==S){for(;i>c;)if(m=p[c++],m!==m)return!0}else for(;i>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},18539:function(I,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),N=n(51582),k=a([].push),S=function(p){var i=p===1,c=p===2,m=p===3,l=p===4,d=p===6,u=p===7,s=p===5||d;return function(C,g,v,h){for(var V=o(C),b=t(V),B=f(b),L=e(g,v),w=0,T=h||N,A=i?T(C,B):c||u?T(C,0):void 0,x,E;B>w;w++)if((s||w in b)&&(x=b[w],E=L(x,w,V),p))if(i)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:m||l?l:A}};I.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(I,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),N=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;I.exports=p?function(){function i(c){if(S)return e(k,this,arguments)||0;var m=a(this),l=o(m),d=l-1;for(arguments.length>1&&(d=N(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return i}():k},34924:function(I,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");I.exports=function(f){return t>=51||!e(function(){var N=[],k=N.constructor={};return k[o]=function(){return{foo:1}},N[f](Boolean).foo!==1})}},56127:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(I,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,N=function(S){return function(y,p,i,c){var m=a(y),l=t(m),d=o(m);e(p);var u=S?d-1:0,s=S?-1:1;if(i<2)for(;;){if(u in l){c=l[u],u+=s;break}if(u+=s,S?u<0:d<=u)throw new f("Reduce of empty array with no initial value")}for(;S?u>=0:d>u;u+=s)u in l&&(c=p(c,l[u],u,m));return c}};I.exports={left:N(!1),right:N(!0)}},10779:function(I,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();I.exports=f?function(N,k){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=k}:function(N,k){return N.length=k}},31170:function(I,r,n){"use strict";var e=n(72908);I.exports=e([].slice)},91183:function(I,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,N){var k=f.length;if(k<8)for(var S=1,y,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var i=a(k/2),c=o(e(f,0,i),N),m=o(e(f,i),N),l=c.length,d=m.length,u=0,s=0;u1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!L(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=L(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),i&&a(V,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return u}(),setStrong:function(){function u(s,C,g){var v=C+" Iterator",h=d(C),V=d(v);S(s,C,function(b,B){l(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=V(this),B=b.kind,L=b.last;L&&L.removed;)L=L.previous;return!b.target||!(b.last=L=L?L.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},g?"entries":"values",!g,!0),p(C)}return u}()}},19250:function(I,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),N=n(62695),k=n(66379),S=n(20453),y=n(18539),p=n(3302),i=n(4471),c=i.set,m=i.getterFor,l=y.find,d=y.findIndex,u=e([].splice),s=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,b){return l(V.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(V){var b=v(this,V);if(b)return b[1]}return h}(),has:function(){function h(V){return!!v(this,V)}return h}(),set:function(){function h(V,b){var B=v(this,V);B?B[1]=b:this.entries.push([V,b])}return h}(),delete:function(){function h(V){var b=d(this.entries,function(B){return B[0]===V});return~b&&u(this.entries,b,1),!!~b}return h}()},I.exports={getConstructor:function(){function h(V,b,B,L){var w=V(function(E,P){o(E,T),c(E,{type:b,id:s++,frozen:void 0}),N(P)||S(P,E[L],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(P,R,M){var D=A(P),j=t(f(R),!0);return j===!0?C(D).set(R,M):j[D.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?C(R).delete(P):M&&p(M,R.id)&&delete M[R.id]}return E}(),has:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?C(R).has(P):M&&p(M,R.id)}return E}()}),a(T,B?{get:function(){function E(P){var R=A(this);if(k(P)){var M=t(P);return M===!0?C(R).get(P):M?M[R.id]:void 0}}return E}(),set:function(){function E(P,R){return x(this,P,R)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return h}()}},10609:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),N=n(66526),k=n(20453),S=n(14434),y=n(53664),p=n(62695),i=n(66379),c=n(13586),m=n(1608),l=n(15676),d=n(43405);I.exports=function(u,s,C){var g=u.indexOf("Map")!==-1,v=u.indexOf("Weak")!==-1,h=g?"set":"add",V=a[u],b=V&&V.prototype,B=V,L={},w=function(D){var j=t(b[D]);f(b,D,D==="add"?function(){function W(U){return j(this,U===0?0:U),this}return W}():D==="delete"?function(W){return v&&!i(W)?!1:j(this,W===0?0:W)}:D==="get"?function(){function W(U){return v&&!i(U)?void 0:j(this,U===0?0:U)}return W}():D==="has"?function(){function W(U){return v&&!i(U)?!1:j(this,U===0?0:U)}return W}():function(){function W(U,K){return j(this,U===0?0:U,K),this}return W}())},T=o(u,!y(V)||!(v||b.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(s,u,g,h),N.enable();else if(o(u,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new V(M)}),R=!v&&c(function(){for(var M=new V,D=5;D--;)M[h](D,D);return!M.has(-0)});P||(B=s(function(M,D){S(M,b);var j=d(new V,M,B);return p(D)||k(D,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(h),v&&b.clear&&delete b.clear}return L[u]=B,e({global:!0,constructor:!0,forced:B!==V},L),l(B,u),v||C.setStrong(B,u,g),B}},83826:function(I,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);I.exports=function(f,N,k){for(var S=a(N),y=o.f,p=t.f,i=0;i"+p+""}},32214:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},21650:function(I,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);I.exports=e?function(o,f,N){return a.f(o,f,t(1,N))}:function(o,f,N){return o[f]=N,o}},73970:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(I,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);I.exports=function(o,f,N){var k=e(f);k in o?a.f(o,k,t(0,N)):o[k]=N}},20228:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,N=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),i=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),l=e(k.getUTCMinutes),d=e(k.getUTCMonth),u=e(k.getUTCSeconds);I.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function s(){if(!f(y(this)))throw new o("Invalid time value");var C=this,g=i(C),v=m(C),h=g<0?"-":g>9999?"+":"";return h+t(N(g),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(l(C),2,0)+":"+t(u(C),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(I,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},57301:function(I,r,n){"use strict";var e=n(40773),a=n(8165);I.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},60855:function(I,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);I.exports=function(f,N,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:N;if(e(k)&&t(k,p,S),S.global)y?f[N]=k:o(N,k);else{try{S.unsafe?f[N]&&(y=!0):delete f[N]}catch(i){}y?f[N]=k:a.f(f,N,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(I,r,n){"use strict";var e=n(60855);I.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(I,r,n){"use strict";var e=n(26856),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(I,r,n){"use strict";var e=n(36787),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(I,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(f){return o?t.createElement(f):{}}},54579:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(I,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},52460:function(I,r,n){"use strict";var e=n(53437),a=n(86727);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(I,r,n){"use strict";var e=n(74247);I.exports=/MSIE|Trident/.test(e)},79034:function(I,r,n){"use strict";var e=n(74247);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(I,r,n){"use strict";var e=n(74247);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(I,r,n){"use strict";var e=n(26856),a=n(8649);I.exports=a(e.process)==="process"},71979:function(I,r,n){"use strict";var e=n(74247);I.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(I,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,N=f&&f.v8,k,S;N&&(k=N.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),I.exports=S},27204:function(I,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},38139:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(I,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),N=n(83826),k=n(23620);I.exports=function(S,y){var p=S.target,i=S.global,c=S.stat,m,l,d,u,s,C;if(i?l=e:c?l=e[p]||f(p,{}):l=(e[p]||{}).prototype,l)for(d in y){if(s=y[d],S.dontCallGetSet?(C=a(l,d),u=C&&C.value):u=l[d],m=k(i?d:p+(c?".":"#")+d,S.forced),!m&&u!==void 0){if(typeof s==typeof u)continue;N(s,u)}(S.sham||u&&u.sham)&&t(s,"sham",!0),o(l,d,s,S)}}},13586:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(I,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),N=n(21650),k=f("species"),S=RegExp.prototype;I.exports=function(y,p,i,c){var m=f(y),l=!o(function(){var C={};return C[m]=function(){return 7},""[y](C)!==7}),d=l&&!o(function(){var C=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return C=!0,null},g[m](""),!C});if(!l||!d||i){var u=e(/./[m]),s=p(m,""[y],function(C,g,v,h,V){var b=e(C),B=g.exec;return B===t||B===S.exec?l&&!V?{done:!0,value:u(g,v,h)}:{done:!0,value:b(v,g,h)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&N(S[m],"sham",!0)}},73132:function(I,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function N(k,S,y,p,i,c,m,l){for(var d=i,u=0,s=m?o(m,l):!1,C,g;u0&&e(C)?(g=a(C),d=N(k,S,C,g,d,c-1)-1):(t(d+1),k[d]=C),d++),u++;return d};I.exports=f},58199:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(I,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(I,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);I.exports=function(f,N){return a(f),N===void 0?f:t?o(f,N):function(){return f.apply(N,arguments)}}},86678:function(I,r,n){"use strict";var e=n(13586);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(I,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),N=n(86678),k=Function,S=e([].concat),y=e([].join),p={},i=function(m,l,d){if(!o(p,l)){for(var u=[],s=0;s]*>)/g,S=/\$([$&'`]|\d{1,2})/g;I.exports=function(y,p,i,c,m,l){var d=i+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=k),f(l,s,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return N(p,0,i);case"'":return N(p,d);case"<":v=m[N(g,1,-1)];break;default:var h=+g;if(h===0)return C;if(h>u){var V=t(h/10);return V===0?C:V<=u?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[h-1]}return v===void 0?"":v})}},26856:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},3302:function(I,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(f,N){return t(a(f),N)}return o}()},51653:function(I){"use strict";I.exports={}},66481:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(I,r,n){"use strict";var e=n(22070);I.exports=e("document","documentElement")},16109:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var i=r(p),c=p*8-y-1,m=(1<>1,d=y===23?e(2,-24)-e(2,-77):0,u=S<0||S===0&&1/S<0?1:0,s=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=m):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+l>=1?S+=d/v:S+=d*e(2,1-l),S*v>=2&&(C++,v/=2),C+l>=m?(g=0,C=m):C+l>=1?(g=(S*v-1)*e(2,y),C+=l):(g=S*e(2,l-1)*e(2,y),C=0));y>=8;)i[s++]=g&255,g/=256,y-=8;for(C=C<0;)i[s++]=C&255,C/=256,c-=8;return i[--s]|=u*128,i},N=function(S,y){var p=S.length,i=p*8-y-1,c=(1<>1,l=i-7,d=p-1,u=S[d--],s=u&127,C;for(u>>=7;l>0;)s=s*256+S[d--],l-=8;for(C=s&(1<<-l)-1,s>>=-l,l+=y;l>0;)C=C*256+S[d--],l-=8;if(s===0)s=1-m;else{if(s===c)return C?NaN:u?-1/0:1/0;C+=e(2,y),s-=m}return(u?-1:1)*C*e(2,s-y)};I.exports={pack:f,unpack:N}},80689:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?f(N,""):o(N)}:o},43405:function(I,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);I.exports=function(o,f,N){var k,S;return t&&e(k=f.constructor)&&k!==N&&a(S=k.prototype)&&S!==N.prototype&&t(o,S),o}},92004:function(I,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),I.exports=t.inspectSource},66526:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),N=n(8165).f,k=n(60097),S=n(31024),y=n(58221),p=n(76246),i=n(58199),c=!1,m=p("meta"),l=0,d=function(V){N(V,m,{value:{objectID:"O"+l++,weakData:{}}})},u=function(V,b){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!f(V,m)){if(!y(V))return"F";if(!b)return"E";d(V)}return V[m].objectID},s=function(V,b){if(!f(V,m)){if(!y(V))return!0;if(!b)return!1;d(V)}return V[m].weakData},C=function(V){return i&&c&&y(V)&&!f(V,m)&&d(V),V},g=function(){v.enable=function(){},c=!0;var V=k.f,b=a([].splice),B={};B[m]=1,V(B).length&&(k.f=function(L){for(var w=V(L),T=0,A=w.length;TL;L++)if(T=P(l[L]),T&&k(m,T))return T;return new c(!1)}b=S(l,B)}for(A=g?l.next:b.next;!(x=a(A,b)).done;){try{T=P(x.value)}catch(R){p(b,"throw",R)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},65169:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);I.exports=function(o,f,N){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw N;return N}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw N;if(S)throw k;return a(k),N}},41903:function(I,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),N=function(){return this};I.exports=function(k,S,y,p){var i=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,i,!1,!0),f[i]=N,k}},21436:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),N=n(41903),k=n(56379),S=n(91420),y=n(15676),p=n(21650),i=n(60855),c=n(95558),m=n(47730),l=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=l.IteratorPrototype,C=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",V="entries",b=function(){return this};I.exports=function(B,L,w,T,A,x,E){N(w,L,T);var P=function(H){if(H===A&&W)return W;if(!C&&H&&H in D)return D[H];switch(H){case v:return function(){function Q(){return new w(this,H)}return Q}();case h:return function(){function Q(){return new w(this,H)}return Q}();case V:return function(){function Q(){return new w(this,H)}return Q}()}return function(){return new w(this)}},R=L+" Iterator",M=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],W=!C&&j||P(A),U=L==="Array"&&D.entries||j,K,$,z;if(U&&(K=k(U.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==s&&(S?S(K,s):f(K[g])||i(K,g,b)),y(K,R,!0,!0),t&&(m[R]=b))),d&&A===h&&j&&j.name!==h&&(!t&&u?p(D,"name",h):(M=!0,W=function(){function Y(){return a(j,this)}return Y}())),A)if($={values:P(h),keys:x?W:P(v),entries:P(V)},E)for(z in $)(C||M||!(z in D))&&i(D,z,$[z]);else e({target:L,proto:!0,forced:C||M},$);return(!t||E)&&D[g]!==W&&i(D,g,W,{name:A}),m[L]=W,$}},83665:function(I,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),N=n(60855),k=n(95558),S=n(90139),y=k("iterator"),p=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[y].call(d)!==d});l?i={}:S&&(i=o(i)),a(i[y])||N(i,y,function(){return this}),I.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},47730:function(I){"use strict";I.exports={}},83207:function(I,r,n){"use strict";var e=n(74369);I.exports=function(a){return e(a.length)}},40773:function(I,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),N=n(15340).CONFIGURABLE,k=n(92004),S=n(4471),y=S.enforce,p=S.get,i=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),d=e([].join),u=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),s=String(String).split("String"),C=I.exports=function(g,v,h){m(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),u&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var V=y(g);return o(V,"source")||(V.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},80563:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},27509:function(I,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};I.exports=function(N,k,S,y){var p=+N,i=a(p),c=e(p);if(iS||l!==l?c*(1/0):c*l}},48705:function(I,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function f(N){return e(N,a,t,o)}return f}()},74347:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},30585:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(I,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),N=n(25184),k=n(79034),S=n(71979),y=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),d,u,s,C,g;if(!l){var v=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(L){throw v.head&&d(),L}b&&b.enter()};!N&&!y&&!S&&p&&i?(u=!0,s=i.createTextNode(""),new p(h).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!k&&m&&m.resolve?(C=m.resolve(void 0),C.constructor=m,g=t(C.then,C),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(b){v.head||d(),v.add(b)}}I.exports=l},14187:function(I,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var N,k;this.promise=new f(function(S,y){if(N!==void 0||k!==void 0)throw new a("Bad Promise constructor");N=S,k=y}),this.resolve=e(N),this.reject=e(k)};I.exports.f=function(o){return new t(o)}},75816:function(I,r,n){"use strict";var e=n(28774),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(I,r,n){"use strict";var e=n(26856),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,i=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});I.exports=i?function(){function c(m){var l=f(o(m)),d=S(l);return d===0&&k(l,0)==="-"?-0:d}return c}():S},41148:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=k(N+"08")!==8||k(N+"0x16")!==22||y&&!a(function(){k(Object(y))});I.exports=c?function(){function m(l,d){var u=f(o(l));return k(u,d>>>0||(i(p,u)?16:10))}return m}():k},23554:function(I,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),N=n(61791),k=n(10409),S=n(63549),y=n(80689),p=Object.assign,i=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function s(){i(this,"b",{value:3,enumerable:!1})}return s}()}),{b:2})).b!==1)return!0;var m={},l={},d=Symbol("assign detection"),u="abcdefghijklmnopqrst";return m[d]=7,u.split("").forEach(function(s){l[s]=s}),p({},m)[d]!==7||f(p({},l)).join("")!==u})?function(){function m(l,d){for(var u=S(l),s=arguments.length,C=1,g=N.f,v=k.f;s>C;)for(var h=y(arguments[C++]),V=g?c(f(h),g(h)):f(h),b=V.length,B=0,L;b>B;)L=V[B++],(!e||t(v,h,L))&&(u[L]=h[L]);return u}return m}():p},15439:function(I,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),N=n(55642),k=n(97223),S=">",y="<",p="prototype",i="script",c=k("IE_PROTO"),m=function(){},l=function(v){return y+i+S+v+y+"/"+i+S},d=function(v){v.write(l("")),v.close();var h=v.parentWindow.Object;return v=null,h},u=function(){var v=N("iframe"),h="java"+i+":",V;return v.style.display="none",f.appendChild(v),v.src=String(h),V=v.contentWindow.document,V.open(),V.write(l("document.F=Object")),V.close(),V.F},s,C=function(){try{s=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,I.exports=Object.create||function(){function g(v,h){var V;return v!==null?(m[p]=e(v),V=new m,m[p]=null,V[c]=v):V=C(),h===void 0?V:a.f(V,h)}return g}()},55119:function(I,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),N=n(99869);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),i=N(y),c=i.length,m=0,l;c>m;)t.f(S,l=i[m++],p[l]);return S}return k}()},8165:function(I,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),N=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(m,l,d){if(o(m),l=f(l),o(d),typeof m=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var u=S(m,l);u&&u[i]&&(m[l]=d.value,d={configurable:p in d?d[p]:u[p],enumerable:y in d?d[y]:u[y],writable:!1})}return k(m,l,d)}return c}():k:function(){function c(m,l,d){if(o(m),l=f(l),o(d),a)try{return k(m,l,d)}catch(u){}if("get"in d||"set"in d)throw new N("Accessors not supported");return"value"in d&&(m[l]=d.value),m}return c}()},19765:function(I,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),N=n(72445),k=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(i,c){if(i=f(i),c=N(c),S)try{return y(i,c)}catch(m){}if(k(i,c))return o(!a(t.f,i,c),i[c])}return p}()},31024:function(I,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(y){return o(f)}};I.exports.f=function(){function k(S){return f&&e(S)==="Window"?N(S):t(a(S))}return k}()},60097:function(I,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},61791:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(I,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),N=o("IE_PROTO"),k=Object,S=k.prototype;I.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,N))return p[N];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof k?S:null}},58221:function(I,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,N=e(function(){f(1)});I.exports=N||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},54341:function(I,r,n){"use strict";var e=n(72908);I.exports=e({}.isPrototypeOf)},49871:function(I,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),N=e([].push);I.exports=function(k,S){var y=t(k),p=0,i=[],c;for(c in y)!a(f,c)&&a(y,c)&&N(i,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(i,c)||N(i,c));return i}},99869:function(I,r,n){"use strict";var e=n(49871),a=n(38139);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},6205:function(I,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);I.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(I,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},N;try{N=e(Object.prototype,"__proto__","set"),N(f,[]),o=f instanceof Array}catch(k){}return function(){function k(S,y){return a(S),t(y),o?N(S,y):S.__proto__=y,S}return k}()}():void 0)},64266:function(I,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),N=n(54292),k=n(10409).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),i=function(m){return function(l){for(var d=N(l),u=f(d),s=p&&o(d)===null,C=u.length,g=0,v=[],h;C>g;)h=u[g++],(!e||(s?h in d:S(d,h)))&&y(v,m?[h,d[h]]:d[h]);return v}};I.exports={entries:i(!0),values:i(!1)}},6625:function(I,r,n){"use strict";var e=n(41936),a=n(48615);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(I,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;I.exports=function(f,N){var k,S;if(N==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||N!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(I,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),N=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?N(y,p(S)):y}return k}()},55601:function(I,r,n){"use strict";var e=n(26856);I.exports=e},73034:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(I,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),N=n(95558),k=n(52460),S=n(53437),y=n(90139),p=n(43541),i=a&&a.prototype,c=N("species"),m=!1,l=t(e.PromiseRejectionEvent),d=o("Promise",function(){var u=f(a),s=u!==String(a);if(!s&&p===66||y&&!(i.catch&&i.finally))return!0;if(!p||p<51||!/native code/.test(u)){var C=new a(function(h){h(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,m=C.then(function(){})instanceof g,!m)return!0}return!s&&(k||S)&&!l});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:l,SUBCLASSING:m}},3e3:function(I,r,n){"use strict";var e=n(26856);I.exports=e.Promise},61988:function(I,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);I.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var N=t.f(o),k=N.resolve;return k(f),N.promise}},18182:function(I,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(I,r,n){"use strict";var e=n(8165).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(N){t[o]=N}return f}()})}},8274:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},59833:function(I,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),N=TypeError;I.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new N("RegExp#exec called on incompatible receiver")}},59049:function(I,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),N=n(7624),k=n(15439),S=n(4471).get,y=n(18095),p=n(17329),i=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),d=a("".indexOf),u=a("".replace),s=a("".slice),C=function(){var V=/a/,b=/b*/g;return e(c,V,"a"),e(c,b,"a"),V.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||g||y||p;h&&(m=function(){function V(b){var B=this,L=S(B),w=t(b),T=L.raw,A,x,E,P,R,M,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=L.groups,W=g&&B.sticky,U=e(o,B),K=B.source,$=0,z=w;if(W&&(U=u(U,"y",""),d(U,"g")===-1&&(U+="g"),z=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",z=" "+z,$++),x=new RegExp("^(?:"+K+")",U)),v&&(x=new RegExp("^"+K+"$(?!\\s)",U)),C&&(E=B.lastIndex),P=e(c,W?x:B,z),W?P?(P.input=s(P.input,$),P[0]=s(P[0],$),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:C&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(i,P[0],x,function(){for(R=1;Rb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},305:function(I,r,n){"use strict";var e=n(62695),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),N=n(31170),k=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,i){var c=i?2:1;return y?function(m,l){var d=k(arguments.length,1)>c,u=t(m)?m:S(m),s=d?N(arguments,c):[],C=d?function(){a(u,this,s)}:u;return i?p(C,l):p(C)}:p}},92468:function(I,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");I.exports=function(N){var k=e(N);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(I,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");I.exports=function(f,N,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:N})}},97223:function(I,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(I,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});I.exports=o},7624:function(I,r,n){"use strict";var e=n(90139),a=n(70192);(I.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(I,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");I.exports=function(N,k){var S=e(N).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},81626:function(I,r,n){"use strict";var e=n(13586);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(I,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),N=e("".charCodeAt),k=e("".slice),S=function(p){return function(i,c){var m=t(o(i)),l=a(c),d=m.length,u,s;return l<0||l>=d?p?"":void 0:(u=N(m,l),u<55296||u>56319||l+1===d||(s=N(m,l+1))<56320||s>57343?p?f(m,l):u:p?k(m,l,l+2):(u-55296<<10)+(s-56320)+65536)}};I.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(I,r,n){"use strict";var e=n(74247);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(I,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),N=e(o),k=e("".slice),S=Math.ceil,y=function(i){return function(c,m,l){var d=t(f(c)),u=a(m),s=d.length,C=l===void 0?" ":t(l),g,v;return u<=s||C===""?d:(g=u-s,v=N(C,S(g/C.length)),v.length>g&&(v=k(v,0,g)),i?d+v:v+d)}};I.exports={start:y(!1),end:y(!0)}},75463:function(I,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;I.exports=function(){function f(N){var k=a(t(this)),S="",y=e(N);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},45745:function(I,r,n){"use strict";var e=n(47913).end,a=n(15677);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";I.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(I,r,n){"use strict";var e=n(47913).start,a=n(15677);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(I,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),N=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(i){var c=t(a(i));return p&1&&(c=f(c,N,"")),p&2&&(c=f(c,k,"$1")),c}};I.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(I,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(I,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);I.exports=function(){var f=a("Symbol"),N=f&&f.prototype,k=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(y){return e(k,this)},{arity:1})}},16010:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),N=n(13586),k=n(21474),S=n(31170),y=n(55642),p=n(92827),i=n(25184),c=n(86727),m=e.setImmediate,l=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,C=e.MessageChannel,g=e.String,v=0,h={},V="onreadystatechange",b,B,L,w;N(function(){b=e.location});var T=function(R){if(f(h,R)){var M=h[R];delete h[R],M()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),b.protocol+"//"+b.host)};(!m||!l)&&(m=function(){function P(R){p(arguments.length,1);var M=o(R)?R:s(R),D=S(arguments,1);return h[++v]=function(){a(M,void 0,D)},B(v),v}return P}(),l=function(){function P(R){delete h[R]}return P}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:C&&!i?(L=new C,w=L.port2,L.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in y("script")?B=function(R){k.appendChild(y("script"))[V]=function(){k.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),I.exports={set:m,clear:l}},7950:function(I,r,n){"use strict";var e=n(72908);I.exports=e(1 .valueOf)},39531:function(I,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;I.exports=function(o,f){var N=e(o);return N<0?a(N+f,0):t(N,f)}},73873:function(I,r,n){"use strict";var e=n(9560),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(I,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var f=e(o),N=a(f);if(f!==N)throw new t("Wrong length or index");return N}},54292:function(I,r,n){"use strict";var e=n(80689),a=n(305);I.exports=function(t){return e(a(t))}},84501:function(I,r,n){"use strict";var e=n(54037);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(I,r,n){"use strict";var e=n(84501),a=Math.min;I.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(I,r,n){"use strict";var e=n(305),a=Object;I.exports=function(t){return a(e(t))}},45476:function(I,r,n){"use strict";var e=n(70685),a=RangeError;I.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(I,r,n){"use strict";var e=n(84501),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(I,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),N=n(95558),k=TypeError,S=N("toPrimitive");I.exports=function(y,p){if(!a(y)||t(y))return y;var i=o(y,S),c;if(i){if(p===void 0&&(p="default"),c=e(i,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},72445:function(I,r,n){"use strict";var e=n(9560),a=n(43474);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(I,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},8758:function(I,r,n){"use strict";var e=n(48615),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),N=n(30432),k=n(31284),S=n(14434),y=n(73970),p=n(21650),i=n(76117),c=n(74369),m=n(28968),l=n(45476),d=n(52834),u=n(72445),s=n(3302),C=n(48615),g=n(66379),v=n(43474),h=n(15439),V=n(54341),b=n(91420),B=n(60097).f,L=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),R=n(4471),M=n(43405),D=R.get,j=R.set,W=R.enforce,U=x.f,K=E.f,$=a.RangeError,z=k.ArrayBuffer,Y=z.prototype,H=k.DataView,Q=N.NATIVE_ARRAY_BUFFER_VIEWS,re=N.TYPED_ARRAY_TAG,ae=N.TypedArray,de=N.TypedArrayPrototype,ve=N.isTypedArray,ye="BYTES_PER_ELEMENT",Le="Wrong length",pe=function(te,be){A(te,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},ne=function(te){var be;return V(Y,te)||(be=C(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return ve(te)&&!v(be)&&be in te&&i(+be)&&be>=0},q=function(){function me(te,be){return be=u(be),ce(te,be)?y(2,te[be]):K(te,be)}return me}(),se=function(){function me(te,be,fe){return be=u(be),ce(te,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(te[be]=fe.value,te):U(te,be,fe)}return me}();o?(Q||(E.f=q,x.f=se,pe(de,"buffer"),pe(de,"byteOffset"),pe(de,"byteLength"),pe(de,"length")),e({target:"Object",stat:!0,forced:!Q},{getOwnPropertyDescriptor:q,defineProperty:se}),I.exports=function(me,te,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,Ce="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(ue,Ne){var Ae=D(ue);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(ue,Ne,Ae){var De=D(ue);De.view[Ce](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},oe=function(ue,Ne){U(ue,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};Q?f&&(we=te(function(he,ue,Ne,Ae){return S(he,xe),M(function(){return g(ue)?ne(ue)?Ae!==void 0?new Se(ue,l(Ne,fe),Ae):Ne!==void 0?new Se(ue,l(Ne,fe)):new Se(ue):ve(ue)?P(we,ue):t(L,we,ue):new Se(m(ue))}(),he,we)}),b&&b(we,ae),w(B(Se),function(he){he in we||p(we,he,Se[he])}),we.prototype=xe):(we=te(function(he,ue,Ne,Ae){S(he,xe);var De=0,je=0,Ke,Ue,_e;if(!g(ue))_e=m(ue),Ue=_e*fe,Ke=new z(Ue);else if(ne(ue)){Ke=ue,je=l(Ne,fe);var Ge=ue.byteLength;if(Ae===void 0){if(Ge%fe)throw new $(Le);if(Ue=Ge-je,Ue<0)throw new $(Le)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new $(Le);_e=Ue/fe}else return ve(ue)?P(we,ue):t(L,we,ue);for(j(he,{buffer:Ke,byteOffset:je,byteLength:Ue,length:_e,view:new H(Ke)});De<_e;)oe(he,De++)}),b&&b(we,ae),xe=we.prototype=h(de)),xe.constructor!==we&&p(xe,"constructor",we),W(xe).TypedArrayConstructor=we,re&&p(xe,re,ge);var le=we!==Se;Oe[ge]=we,e({global:!0,constructor:!0,forced:le,sham:!Q},Oe),ye in we||p(we,ye,fe),ye in xe||p(xe,ye,fe),T(ge)}):I.exports=function(){}},45410:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(1608),o=n(30432).NATIVE_ARRAY_BUFFER_VIEWS,f=e.ArrayBuffer,N=e.Int8Array;I.exports=!o||!a(function(){N(1)})||!a(function(){new N(-1)})||!t(function(k){new N,new N(null),new N(1.5),new N(k)},!0)||a(function(){return new N(new f(2),1,void 0).length!==1})},85710:function(I,r,n){"use strict";var e=n(21465),a=n(9230);I.exports=function(t,o){return e(a(t),o)}},12778:function(I,r,n){"use strict";var e=n(8942),a=n(20276),t=n(48218),o=n(63549),f=n(83207),N=n(45731),k=n(52984),S=n(48594),y=n(76567),p=n(30432).aTypedArrayConstructor,i=n(73873);I.exports=function(){function c(m){var l=t(this),d=o(m),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0,g=k(d),v,h,V,b,B,L,w,T;if(g&&!S(g))for(w=N(d,g),T=w.next,d=[];!(L=a(T,w)).done;)d.push(L.value);for(C&&u>2&&(s=e(s,arguments[2])),h=f(d),V=new(p(l))(h),b=y(V),v=0;h>v;v++)B=C?s(d[v],v):d[v],V[v]=b?i(B):+B;return V}return c}()},9230:function(I,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(f){return t(a(f,o(f)))}},76246:function(I,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(I,r,n){"use strict";var e=n(61855);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(I,r,n){"use strict";var e=n(16361),a=n(13586);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(C){if(!o(C))return!1;var g=C[m];return g!==void 0?!!g:t(C)},u=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(C){var g=f(this),v=y(g,0),h=0,V,b,B,L,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return f}()})},7216:function(I,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(I,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(I,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},26632:function(I,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},14064:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),N=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),i;return t(S),i=N(y,0),i.length=a(i,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),i}return k}()})},55222:function(I,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),N=n(51582);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),i=N(y,0);return i.length=a(i,y,y,p,0,S===void 0?1:f(S)),i}return k}()})},68616:function(I,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(I,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(I,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},92654:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),N=!!f&&1/f([1],1,-0)<0,k=N||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return N?f(this,y,p)||0:t(this,y,p)}return S}()})},58423:function(I,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(I,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,N=n(21436),k=n(32214),S=n(90139),y=n(16361),p="Array Iterator",i=o.set,c=o.getterFor(p);I.exports=N(Array,"Array",function(l,d){i(this,{type:p,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,u=l.index++;if(!d||u>=d.length)return l.target=void 0,k(void 0,!0);switch(l.kind){case"keys":return k(u,!1);case"values":return k(d[u],!1)}return k([u,d[u]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},37808:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),N=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return N(o(this),p===void 0?",":p)}return y}()})},2509:function(I,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(I,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,N=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:N},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},56913:function(I,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,k=N||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(I,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,k=N||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},24077:function(I,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),N=n(83207),k=n(54292),S=n(80750),y=n(95558),p=n(34924),i=n(31170),c=p("slice"),m=y("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,C){var g=k(this),v=N(g),h=f(s,v),V=f(C===void 0?v:C,v),b,B,L;if(a(g)&&(b=g.constructor,t(b)&&(b===l||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===l||b===void 0))return i(g,h,V);for(B=new(b===void 0?l:b)(d(V-h,0)),L=0;h1?arguments[1]:void 0)}return f}()})},43430:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),N=n(81245),k=n(8758),S=n(13586),y=n(91183),p=n(56127),i=n(31574),c=n(88836),m=n(43541),l=n(27204),d=[],u=a(d.sort),s=a(d.push),C=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=p("sort"),h=!S(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var B="",L,w,T,A;for(L=65;L<76;L++){switch(w=String.fromCharCode(L),L){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(L){L!==void 0&&t(L);var w=o(this);if(h)return L===void 0?u(w):u(w,L);var T=[],A=f(w),x,E;for(E=0;Eg-b+V;L--)p(C,L-1)}else if(V>b)for(L=g-b;L>v;L--)w=L+b-1,T=L+V-1,w in C?C[T]=C[w]:p(C,T);for(L=0;L9490626562425156e-8?o(p)+N:a(p-1+f(p-1)*f(p+1))}return S}()})},68872:function(I,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:f})},93105:function(I,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(N){var k=+N;return k===0?k:t((1+k)/(1-k))/2}return f}()})},1795:function(I,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(N){var k=+N;return a(k)*o(t(k),.3333333333333333)}return f}()})},11121:function(I,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(N){var k=N>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},18730:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},11624:function(I,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(I,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(I,r,n){"use strict";var e=n(3116),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function N(k,S){for(var y=0,p=0,i=arguments.length,c=0,m,l;p0?(l=m/c,y+=l*l):y+=m;return c===1/0?1/0:c*o(y)}return N}()})},75213:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(N,k){var S=65535,y=+N,p=+k,i=S&y,c=S&p;return 0|i*c+((S&y>>>16)*c+i*(S&p>>>16)<<16>>>0)}return f}()})},4347:function(I,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(I,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(I,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},54468:function(I,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,N=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(N/2)}return S}()})},95499:function(I,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var N=+f,k=a(N),S=a(-N);return k===1/0?1:S===1/0?-1:(k-S)/(t(N)+t(-N))}return o}()})},50929:function(I,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(I,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),N=n(72908),k=n(23620),S=n(3302),y=n(43405),p=n(54341),i=n(43474),c=n(9560),m=n(13586),l=n(60097).f,d=n(19765).f,u=n(8165).f,s=n(7950),C=n(47913).trim,g="Number",v=o[g],h=f[g],V=v.prototype,b=o.TypeError,B=N("".slice),L=N("".charCodeAt),w=function(M){var D=c(M,"number");return typeof D=="bigint"?D:T(D)},T=function(M){var D=c(M,"number"),j,W,U,K,$,z,Y,H;if(i(D))throw new b("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=C(D),j=L(D,0),j===43||j===45){if(W=L(D,2),W===88||W===120)return NaN}else if(j===48){switch(L(D,1)){case 66:case 98:U=2,K=49;break;case 79:case 111:U=8,K=55;break;default:return+D}for($=B(D,2),z=$.length,Y=0;YK)return NaN;return parseInt($,U)}}return+D},A=k(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return p(V,M)&&m(function(){s(M)})},E=function(){function R(M){var D=arguments.length<1?0:v(w(M));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,D){for(var j=t?l(D):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0,U;j.length>W;W++)S(D,U=j[W])&&!S(M,U)&&u(M,U,d(D,U))};a&&h&&P(f[g],h),(A||a)&&P(f[g],v)},48211:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(I,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(I,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(I,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},82678:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(I,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),N=n(13586),k=RangeError,S=String,y=Math.floor,p=a(f),i=a("".slice),c=a(1 .toFixed),m=function g(v,h,V){return h===0?V:h%2===1?g(v,h-1,V*v):g(v*v,h/2,V)},l=function(v){for(var h=0,V=v;V>=4096;)h+=12,V/=4096;for(;V>=2;)h+=1,V/=2;return h},d=function(v,h,V){for(var b=-1,B=V;++b<6;)B+=h*v[b],v[b]=B%1e7,B=y(B/1e7)},u=function(v,h){for(var V=6,b=0;--V>=0;)b+=v[V],v[V]=y(b/h),b=b%h*1e7},s=function(v){for(var h=6,V="";--h>=0;)if(V!==""||h===0||v[h]!==0){var b=S(v[h]);V=V===""?b:V+p("0",7-b.length)+b}return V},C=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var h=o(this),V=t(v),b=[0,0,0,0,0,0],B="",L="0",w,T,A,x;if(V<0||V>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=l(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=V;A>=7;)d(b,1e7,0),A-=7;for(d(b,m(10,A,1),0),A=w-1;A>=23;)u(b,8388608),A-=23;u(b,1<0?(x=L.length,L=B+(x<=V?"0."+p("0",V-x)+L:i(L,0,x-V)+"."+i(L,x-V))):L=B+L,L}return g}()})},83403:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),N=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},4229:function(I,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){N.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},53822:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){N.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},14955:function(I,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(I,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,N=Object.freeze,k=t(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return N&&o(y)?N(f(y)):y}return S}()})},81941:function(I,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var N={};return a(f,function(k,S){t(N,k,S)},{AS_ENTRIES:!0}),N}return o}()})},37245:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),N=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},8373:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),N=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,i=t(y),c={},m=0,l,d;i.length>m;)d=p(y,l=i[m++]),d!==void 0&&N(c,l,d);return c}return k}()})},81212:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(I,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},26054:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},49611:function(I,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isFrozen,k=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},55750:function(I,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isSealed,k=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},57745:function(I,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(I,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function N(k){return t(a(k))}return N}()})},63429:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),i=f(y),c;do if(c=k(p,i))return c.get;while(p=N(p))}return S}()})},9558:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),i=f(y),c;do if(c=k(p,i))return c.set;while(p=N(p))}return S}()})},2420:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.preventExtensions,k=f(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},19015:function(I,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.seal,k=f(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},34137:function(I,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(I,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(I,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(I,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(I,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,i=o.f(p),c=i.resolve,m=i.reject,l=f(function(){var d=t(p.resolve),u=[],s=0,C=1;N(y,function(g){var v=s++,h=!1;C++,a(d,p,g).then(function(V){h||(h=!0,u[v]=V,--C||c(u))},m)}),--C||c(u)});return l.error&&m(l.value),i.promise}return S}()})},72188:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),N=n(53664),k=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&N(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},13779:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),N=n(60855),k=n(91420),S=n(15676),y=n(92468),p=n(79474),i=n(53664),c=n(66379),m=n(14434),l=n(83604),d=n(87073).set,u=n(60816),s=n(66481),C=n(73034),g=n(8274),v=n(4471),h=n(3e3),V=n(14657),b=n(14187),B="Promise",L=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,P=h,R=E,M=o.TypeError,D=o.document,j=o.process,W=b.f,U=W,K=!!(D&&D.createEvent&&o.dispatchEvent),$="unhandledrejection",z="rejectionhandled",Y=0,H=1,Q=2,re=1,ae=2,de,ve,ye,Le,pe=function(Ce){var Se;return c(Ce)&&i(Se=Ce.then)?Se:!1},ne=function(Ce,Se){var we=Se.value,xe=Se.state===H,Oe=xe?Ce.ok:Ce.fail,We=Ce.resolve,Ve=Ce.reject,oe=Ce.domain,le,he,ue;try{Oe?(xe||(Se.rejection===ae&&te(Se),Se.rejection=re),Oe===!0?le=we:(oe&&oe.enter(),le=Oe(we),oe&&(oe.exit(),ue=!0)),le===Ce.promise?Ve(new M("Promise-chain cycle")):(he=pe(le))?f(he,le,We,Ve):We(le)):Ve(we)}catch(Ne){oe&&!ue&&oe.exit(),Ve(Ne)}},ce=function(Ce,Se){Ce.notified||(Ce.notified=!0,u(function(){for(var we=Ce.reactions,xe;xe=we.get();)ne(xe,Ce);Ce.notified=!1,Se&&!Ce.rejection&&se(Ce)}))},q=function(Ce,Se,we){var xe,Oe;K?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(Ce,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+Ce])?Oe(xe):Ce===$&&s("Unhandled promise rejection",we)},se=function(Ce){f(d,o,function(){var Se=Ce.facade,we=Ce.value,xe=me(Ce),Oe;if(xe&&(Oe=C(function(){t?j.emit("unhandledRejection",we,Se):q($,Se,we)}),Ce.rejection=t||me(Ce)?ae:re,Oe.error))throw Oe.value})},me=function(Ce){return Ce.rejection!==re&&!Ce.parent},te=function(Ce){f(d,o,function(){var Se=Ce.facade;t?j.emit("rejectionHandled",Se):q(z,Se,Ce.value)})},be=function(Ce,Se,we){return function(xe){Ce(Se,xe,we)}},fe=function(Ce,Se,we){Ce.done||(Ce.done=!0,we&&(Ce=we),Ce.value=Se,Ce.state=Q,ce(Ce,!0))},ge=function ke(Ce,Se,we){if(!Ce.done){Ce.done=!0,we&&(Ce=we);try{if(Ce.facade===Se)throw new M("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Oe={done:!1};try{f(xe,Se,be(ke,Oe,Ce),be(fe,Oe,Ce))}catch(We){fe(Oe,We,Ce)}}):(Ce.value=Se,Ce.state=H,ce(Ce,!1))}catch(Oe){fe({done:!1},Oe,Ce)}}};if(L&&(P=function(){function ke(Ce){m(this,R),p(Ce),f(de,this);var Se=A(this);try{Ce(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=P.prototype,de=function(){function ke(Ce){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:Y,value:void 0})}return ke}(),de.prototype=N(R,"then",function(){function ke(Ce,Se){var we=A(this),xe=W(l(this,P));return we.parent=!0,xe.ok=i(Ce)?Ce:!0,xe.fail=i(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===Y?we.reactions.add(xe):u(function(){ne(xe,we)}),xe.promise}return ke}()),ve=function(){var Ce=new de,Se=A(Ce);this.promise=Ce,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=W=function(Ce){return Ce===P||Ce===ye?new ve(Ce):U(Ce)},!a&&i(h)&&E!==Object.prototype)){Le=E.then,T||N(E,"then",function(){function ke(Ce,Se){var we=this;return new P(function(xe,Oe){f(Le,we,xe,Oe)}).then(Ce,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:P}),S(P,B,!1,!0),y(B)},79063:function(I,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),N=n(53664),k=n(83604),S=n(61988),y=n(60855),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(l){var d=k(this,f("Promise")),u=N(l);return this.then(u?function(s){return S(d,l()).then(function(){return s})}:l,u?function(s){return S(d,l()).then(function(){throw s})}:l)}return m}()}),!a&&N(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},75795:function(I,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,i=o.f(p),c=i.reject,m=f(function(){var l=t(p.resolve);N(y,function(d){a(l,p,d).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return S}()})},75955:function(I,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var N=a.f(this),k=N.reject;return k(f),N.promise}return o}()})},39996:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,N=n(61988),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return N(S&&this===k?o:this,p)}return y}()})},1210:function(I,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),N=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},91370:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),N=n(45418),k=n(66379),S=n(15439),y=n(13586),p=a("Reflect","construct"),i=Object.prototype,c=[].push,m=y(function(){function u(){}return!(p(function(){},[],u)instanceof u)}),l=!y(function(){p(function(){})}),d=m||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,C){f(s),N(C);var g=arguments.length<3?s:f(arguments[2]);if(l&&!m)return p(s,C,g);if(s===g){switch(C.length){case 0:return new s;case 1:return new s(C[0]);case 2:return new s(C[0],C[1]);case 3:return new s(C[0],C[1],C[2]);case 4:return new s(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,s,v))}var h=g.prototype,V=S(k(h)?h:i),b=t(s,V,C);return k(b)?b:V}return u}()})},17327:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),N=n(13586),k=N(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,i){t(y);var c=o(p);t(i);try{return f.f(y,c,i),!0}catch(m){return!1}}return S}()})},2679:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,N){var k=t(a(f),N);return k&&!k.configurable?!1:delete f[N]}return o}()})},27262:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(N,k){return o.f(t(N),k)}return f}()})},47278:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(N){return t(a(N))}return f}()})},60733:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),N=n(19765),k=n(56379);function S(y,p){var i=arguments.length<3?y:arguments[2],c,m;if(o(y)===i)return y[p];if(c=N.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=k(y)))return S(m,p,i)}e({target:"Reflect",stat:!0},{get:S})},22547:function(I,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},64650:function(I,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(N){t(N);try{var k=a("Object","preventExtensions");return k&&k(N),!0}catch(S){return!1}}return f}()})},65558:function(I,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(N,k){a(N),t(k);try{return o(N,k),!0}catch(S){return!1}}return f}()})},97836:function(I,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),N=n(13586),k=n(8165),S=n(19765),y=n(56379),p=n(73970);function i(m,l,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),l),C,g,v;if(!s){if(o(g=y(m)))return i(g,l,d,u);s=p(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(C=S.f(u,l)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,k.f(u,l,C)}else k.f(u,l,p(0,d))}else{if(v=s.set,v===void 0)return!1;a(v,u,d)}return!0}var c=N(function(){var m=function(){},l=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},83932:function(I,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),N=n(21650),k=n(15439),S=n(60097).f,y=n(54341),p=n(28774),i=n(8758),c=n(13980),m=n(96472),l=n(69713),d=n(60855),u=n(13586),s=n(3302),C=n(4471).enforce,g=n(92468),v=n(95558),h=n(18095),V=n(17329),b=v("match"),B=a.RegExp,L=B.prototype,w=a.SyntaxError,T=t(L.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,j=new B(M)!==M,W=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,K=e&&(!j||W||h||V||u(function(){return D[b]=!1,B(M)!==M||B(D)===D||String(B(M,"i"))!=="/a/i"})),$=function(ae){for(var de=ae.length,ve=0,ye="",Le=!1,pe;ve<=de;ve++){if(pe=A(ae,ve),pe==="\\"){ye+=pe+A(ae,++ve);continue}!Le&&pe==="."?ye+="[\\s\\S]":(pe==="["?Le=!0:pe==="]"&&(Le=!1),ye+=pe)}return ye},z=function(ae){for(var de=ae.length,ve=0,ye="",Le=[],pe=k(null),ne=!1,ce=!1,q=0,se="",me;ve<=de;ve++){if(me=A(ae,ve),me==="\\")me+=A(ae,++ve);else if(me==="]")ne=!1;else if(!ne)switch(!0){case me==="[":ne=!0;break;case me==="(":T(R,P(ae,ve+1))&&(ve+=2,ce=!0),ye+=me,q++;continue;case(me===">"&&ce):if(se===""||s(pe,se))throw new w("Invalid capture group name");pe[se]=!0,Le[Le.length]=[se,q],ce=!1,se="";continue}ce?se+=me:ye+=me}return[ye,Le]};if(o("RegExp",K)){for(var Y=function(){function re(ae,de){var ve=y(L,this),ye=p(ae),Le=de===void 0,pe=[],ne=ae,ce,q,se,me,te,be;if(!ve&&ye&&Le&&ae.constructor===Y)return ae;if((ye||y(L,ae))&&(ae=ae.source,Le&&(de=c(ne))),ae=ae===void 0?"":i(ae),de=de===void 0?"":i(de),ne=ae,h&&"dotAll"in M&&(q=!!de&&E(de,"s")>-1,q&&(de=x(de,/s/g,""))),ce=de,W&&"sticky"in M&&(se=!!de&&E(de,"y")>-1,se&&U&&(de=x(de,/y/g,""))),V&&(me=z(ae),ae=me[0],pe=me[1]),te=f(B(ae,de),ve?this:L,Y),(q||se||pe.length)&&(be=C(te),q&&(be.dotAll=!0,be.raw=Y($(ae),ce)),se&&(be.sticky=!0),pe.length&&(be.groups=pe)),ae!==ne)try{N(te,"source",ne===""?"(?:)":ne)}catch(fe){}return te}return re}(),H=S(B),Q=0;H.length>Q;)l(Y,B,H[Q++]);L.constructor=Y,Y.prototype=L,d(a,"RegExp",Y,{constructor:!0})}g("RegExp")},72941:function(I,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(I,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),N=e.RegExp,k=N.prototype,S=a&&f(function(){var y=!0;try{N(".","d")}catch(s){y=!1}var p={},i="",c=y?"dgimsy":"gimsy",m=function(C,g){Object.defineProperty(p,C,{get:function(){function v(){return i+=g,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(l.hasIndices="d");for(var d in l)m(d,l[d]);var u=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return u!==c||i!==c});S&&t(k,"flags",{configurable:!0,get:o})},2394:function(I,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),N=n(13980),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&y.name!==k;(p||i)&&a(S,k,function(){function c(){var m=t(this),l=o(m.source),d=o(N(m));return"/"+l+"/"+d}return c}(),{unsafe:!0})},98480:function(I,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(I,r,n){"use strict";n(98480)},25492:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},13684:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(I,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(I,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),N=n(75816),k=n(305),S=n(46339),y=n(90139),p=a("".slice),i=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(d){var u=f(k(this));N(d);var s=arguments.length>1?arguments[1]:void 0,C=u.length,g=s===void 0?C:i(o(s),C),v=f(d);return p(u,g-v.length,g)===v}return l}()})},30733:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},70277:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},33683:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,N=String.fromCodePoint,k=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var i=[],c=arguments.length,m=0,l;c>m;){if(l=+arguments[m++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return k(i,"")}return y}()})},16792:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),N=n(46339),k=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(I,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),N="String Iterator",k=t.set,S=t.getterFor(N);o(String,"String",function(y){k(this,{type:N,string:a(y),index:0})},function(){function y(){var p=S(this),i=p.string,c=p.index,m;return c>=i.length?f(void 0,!0):(m=e(i,c),p.index+=m.length,f(m,!1))}return y}())},13763:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},76015:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),N=n(8758),k=n(305),S=n(76540),y=n(47158),p=n(59833);a("match",function(i,c,m){return[function(){function l(d){var u=k(this),s=o(d)?void 0:S(d,i);return s?e(s,d,u):new RegExp(d)[i](N(u))}return l}(),function(l){var d=t(this),u=N(l),s=m(c,d,u);if(s.done)return s.value;if(!d.global)return p(d,u);var C=d.unicode;d.lastIndex=0;for(var g=[],v=0,h;(h=p(d,u))!==null;){var V=N(h[0]);g[v]=V,V===""&&(d.lastIndex=y(u,f(d.lastIndex),C)),v++}return v===0?null:g}]})},57318:function(I,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},33177:function(I,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},1429:function(I,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),N=n(83207),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var i=t(o(p).raw),c=N(i);if(!c)return"";for(var m=arguments.length,l=[],d=0;;){if(k(l,f(i[d++])),d===c)return S(l,"");d")!=="7"});o("replace",function(x,E,P){var R=T?"$":"$0";return[function(){function M(D,j){var W=c(this),U=S(D)?void 0:l(D,C);return U?a(U,D,W,j):a(E,i(W),D,j)}return M}(),function(M,D){var j=N(this),W=i(M);if(typeof D=="string"&&b(D,R)===-1&&b(D,"$<")===-1){var U=P(E,j,W,D);if(U.done)return U.value}var K=k(D);K||(D=i(D));var $=j.global,z;$&&(z=j.unicode,j.lastIndex=0);for(var Y=[],H;H=u(j,W),!(H===null||(V(Y,H),!$));){var Q=i(H[0]);Q===""&&(j.lastIndex=m(W,p(j.lastIndex),z))}for(var re="",ae=0,de=0;de=ae&&(re+=B(W,ae,ye)+pe,ae=ye+ve.length)}return re+B(W,ae)}]},!A||!w||T)},60981:function(I,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),N=n(91935),k=n(8758),S=n(76540),y=n(59833);a("search",function(p,i,c){return[function(){function m(l){var d=f(this),u=o(l)?void 0:S(l,p);return u?e(u,l,d):new RegExp(l)[p](k(d))}return m}(),function(m){var l=t(this),d=k(m),u=c(i,l,d);if(u.done)return u.value;var s=l.lastIndex;N(s,0)||(l.lastIndex=0);var C=y(l,d);return N(l.lastIndex,s)||(l.lastIndex=s),C===null?-1:C.index}]})},56001:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(I,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),N=n(62695),k=n(28774),S=n(305),y=n(83604),p=n(47158),i=n(74369),c=n(8758),m=n(76540),l=n(31170),d=n(59833),u=n(59049),s=n(96472),C=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,h=Math.min,V=[].push,b=t(/./.exec),B=t(V),L=t("".slice),w=!C(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(R,M){var D=c(S(this)),j=M===void 0?v:M>>>0;if(j===0)return[];if(R===void 0)return[D];if(!k(R))return a(A,D,R,j);for(var W=[],U=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),K=0,$=new RegExp(R.source,U+"g"),z,Y,H;(z=a(u,$,D))&&(Y=$.lastIndex,!(Y>K&&(B(W,L(D,K,z.index)),z.length>1&&z.index=j)));)$.lastIndex===z.index&&$.lastIndex++;return K===D.length?(H||!b($,""))&&B(W,""):B(W,L(D,K)),W.length>j?l(W,0,j):W}:"0".split(void 0,0).length?E=function(R,M){return R===void 0&&M===0?[]:a(A,this,R,M)}:E=A,[function(){function P(R,M){var D=S(this),j=N(R)?void 0:m(R,T);return j?a(j,R,D,M):a(E,c(D),R,M)}return P}(),function(P,R){var M=f(this),D=c(P),j=x(E,M,D,R,E!==A);if(j.done)return j.value;var W=y(M,RegExp),U=M.unicode,K=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),$=new W(g?"^(?:"+M.source+")":M,K),z=R===void 0?v:R>>>0;if(z===0)return[];if(D.length===0)return d($,D)===null?[D]:[];for(var Y=0,H=0,Q=[];H1?arguments[1]:void 0,u.length)),C=f(d);return p(u,s,s+C.length)===C}return l}()})},58713:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(I,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(I,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(I,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(I,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(I,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(I,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(I,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),N=n(16361),k=n(61855),S=n(13586),y=n(3302),p=n(54341),i=n(45418),c=n(54292),m=n(72445),l=n(8758),d=n(73970),u=n(15439),s=n(99869),C=n(60097),g=n(31024),v=n(61791),h=n(19765),V=n(8165),b=n(55119),B=n(10409),L=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),R=n(15355),M=n(20614),D=n(28952),j=n(15676),W=n(4471),U=n(18539).forEach,K=A("hidden"),$="Symbol",z="prototype",Y=W.set,H=W.getterFor($),Q=Object[z],re=a.Symbol,ae=re&&re[z],de=a.RangeError,ve=a.TypeError,ye=a.QObject,Le=h.f,pe=V.f,ne=g.f,ce=B.f,q=o([].push),se=T("symbols"),me=T("op-symbols"),te=T("wks"),be=!ye||!ye[z]||!ye[z].findChild,fe=function(le,he,ue){var Ne=Le(Q,he);Ne&&delete Q[he],pe(le,he,ue),Ne&&le!==Q&&pe(Q,he,Ne)},ge=N&&S(function(){return u(pe({},"a",{get:function(){function oe(){return pe(this,"a",{value:7}).a}return oe}()})).a!==7})?fe:pe,ke=function(le,he){var ue=se[le]=u(ae);return Y(ue,{type:$,tag:le,description:he}),N||(ue.description=he),ue},Ce=function(){function oe(le,he,ue){le===Q&&Ce(me,he,ue),i(le);var Ne=m(he);return i(ue),y(se,Ne)?(ue.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),ue=u(ue,{enumerable:d(0,!1)})):(y(le,K)||pe(le,K,d(1,u(null))),le[K][Ne]=!0),ge(le,Ne,ue)):pe(le,Ne,ue)}return oe}(),Se=function(){function oe(le,he){i(le);var ue=c(he),Ne=s(ue).concat(Ve(ue));return U(Ne,function(Ae){(!N||t(xe,ue,Ae))&&Ce(le,Ae,ue[Ae])}),le}return oe}(),we=function(){function oe(le,he){return he===void 0?u(le):Se(u(le),he)}return oe}(),xe=function(){function oe(le){var he=m(le),ue=t(ce,this,he);return this===Q&&y(se,he)&&!y(me,he)?!1:ue||!y(this,he)||!y(se,he)||y(this,K)&&this[K][he]?ue:!0}return oe}(),Oe=function(){function oe(le,he){var ue=c(le),Ne=m(he);if(!(ue===Q&&y(se,Ne)&&!y(me,Ne))){var Ae=Le(ue,Ne);return Ae&&y(se,Ne)&&!(y(ue,K)&&ue[K][Ne])&&(Ae.enumerable=!0),Ae}}return oe}(),We=function(){function oe(le){var he=ne(c(le)),ue=[];return U(he,function(Ne){!y(se,Ne)&&!y(x,Ne)&&q(ue,Ne)}),ue}return oe}(),Ve=function(le){var he=le===Q,ue=ne(he?me:c(le)),Ne=[];return U(ue,function(Ae){y(se,Ae)&&(!he||y(Q,Ae))&&q(Ne,se[Ae])}),Ne};k||(re=function(){function oe(){if(p(ae,this))throw new ve("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),he=E(le),ue=function(){function Ne(Ae){var De=this===void 0?a:this;De===Q&&t(Ne,me,Ae),y(De,K)&&y(De[K],he)&&(De[K][he]=!1);var je=d(1,Ae);try{ge(De,he,je)}catch(Ke){if(!(Ke instanceof de))throw Ke;fe(De,he,je)}}return Ne}();return N&&be&&ge(Q,he,{configurable:!0,set:ue}),ke(he,le)}return oe}(),ae=re[z],L(ae,"toString",function(){function oe(){return H(this).tag}return oe}()),L(re,"withoutSetter",function(oe){return ke(E(oe),oe)}),B.f=xe,V.f=Ce,b.f=Se,h.f=Oe,C.f=g.f=We,v.f=Ve,R.f=function(oe){return ke(P(oe),oe)},N&&(w(ae,"description",{configurable:!0,get:function(){function oe(){return H(this).description}return oe}()}),f||L(Q,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:re}),U(s(te),function(oe){M(oe)}),e({target:$,stat:!0,forced:!k},{useSetter:function(){function oe(){be=!0}return oe}(),useSimple:function(){function oe(){be=!1}return oe}()}),e({target:"Object",stat:!0,forced:!k,sham:!N},{create:we,defineProperty:Ce,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:We}),D(),j(re,$),x[K]=!0},64777:function(I,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),N=n(53664),k=n(54341),S=n(8758),y=n(57301),p=n(83826),i=t.Symbol,c=i&&i.prototype;if(a&&N(i)&&(!("description"in c)||i().description!==void 0)){var m={},l=function(){function h(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new i(V):V===void 0?i():i(V);return V===""&&(m[b]=!0),b}return h}();p(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",u=o(c.valueOf),s=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var V=u(this);if(f(m,V))return"";var b=s(V),B=d?v(b,7,-1):g(b,C,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},99694:function(I,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),N=n(16010),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function y(p){var i=o(p);if(t(k,i))return k[i];var c=a("Symbol")(i);return k[i]=c,S[c]=i,c}return y}()})},56564:function(I,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(I,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(I,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(I,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(I,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),N=n(16010),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},22905:function(I,r,n){"use strict";var e=n(20614);e("match")},96311:function(I,r,n){"use strict";var e=n(20614);e("replace")},61292:function(I,r,n){"use strict";var e=n(20614);e("search")},75419:function(I,r,n){"use strict";var e=n(20614);e("species")},67638:function(I,r,n){"use strict";var e=n(20614);e("split")},7601:function(I,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(I,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(I,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(I,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},58549:function(I,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(I,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),N=n(72908),k=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=N("".slice),i=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var l=arguments.length;S(this);var d=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},65446:function(I,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function N(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},62243:function(I,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(I,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(I,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97363:function(I,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},35249:function(I,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(I,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(I,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(I,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(I,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},65331:function(I,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},99755:function(I,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},87975:function(I,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),N=n(95558),k=N("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),i=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=S&&S.prototype,d=!a(function(){l[k].call([1])}),u=!!l&&l.values&&l[k]===l.values&&l.values.name==="values",s=function(){function C(){return y(c(this))}return C}();m("entries",function(){function C(){return i(c(this))}return C}(),d),m("keys",function(){function C(){return p(c(this))}return C}(),d),m("values",s,d||!u,{name:"values"}),m(k,s,d||!u,{name:"values"})},20812:function(I,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function N(k){return f(t(this),k)}return N}())},5640:function(I,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function N(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return N}())},47736:function(I,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function N(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return N}())},81944:function(I,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var N=0,k=arguments.length,S=new(t(this))(k);k>N;)S[N]=arguments[N++];return S}return f}(),a)},72214:function(I,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(N){var k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return f}())},68685:function(I,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(N){var k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return f}())},48774:function(I,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var N=this,k=a(N).length,S=o(k/2),y=0,p;y1?arguments[1]:void 0,1),g=N(s);if(l)return a(i,this,g,C);var v=this.length,h=o(g),V=0;if(h+C>v)throw new S("Wrong length");for(;Vm;)d[m]=i[m++];return d}return S}(),k)},10702:function(I,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(I,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),N=n(30432),k=n(31574),S=n(88836),y=n(43541),p=n(27204),i=N.aTypedArray,c=N.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),d=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),u=!!l&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var C=new m(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,g[v]=v-2*h+3;for(l(C,function(V,b){return(V/4|0)-(b/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),s=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(g){return g!==void 0&&o(g),u?l(this,g):f(i(this),s(g))}return C}(),!u||d)},64408:function(I,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function k(S,y){var p=f(this),i=p.length,c=t(S,i),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?i:t(y,i))-c))}return k}())},22306:function(I,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),N=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!N&&o(function(){y.call(new N(1))}),i=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),i)},90334:function(I,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,N=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=N.toString!==k;e("toString",k,y)},70088:function(I,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},7284:function(I,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},25855:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97372:function(I,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()},!0)},84937:function(I,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),N=n(10609),k=n(19250),S=n(66379),y=n(4471).enforce,p=n(13586),i=n(73844),c=Object,m=Array.isArray,l=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},V=N("WeakMap",h,k),b=V.prototype,B=t(b.set),L=function(){return e&&p(function(){var E=s([]);return B(new V,E,1),!d(E)})};if(i)if(g){v=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!l(E)){var P=y(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!l(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!l(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!l(E)){var R=y(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,P):R.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else L()&&o(b,{set:function(){function x(E,P){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=C)),B(this,E,P),R&&R(E),this}return x}()})},69880:function(I,r,n){"use strict";n(84937)},74764:function(I,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(I,r,n){"use strict";n(74764)},82818:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(I,r,n){"use strict";n(82818),n(21813)},367:function(I,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function f(N){o(arguments.length,1),a(t(N))}return f}()})},21813:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},50943:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(I,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(I,r,n){"use strict";n(50943),n(91851)},87454:function(I){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(L,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=33115},75168:function(L,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=75168},8156:function(L,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./CloningPod":58378,"./CloningPod.js":58378,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./PrizeCounter":96493,"./PrizeCounter.tsx":96493,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=8156},69321:function(L,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=69321},79474:function(L,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(L,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(L,r,n){"use strict";var e=n(62600),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(L,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),L.exports=function(N){f[o][N]=!0}},47158:function(L,r,n){"use strict";var e=n(13300).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(L,r,n){"use strict";var e=n(54341),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(L,r,n){"use strict";var e=n(66379),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(L,r,n){"use strict";var e=n(13586);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(L,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),N=n(3302),k=n(48615),S=n(36787),y=n(21650),p=n(60855),i=n(57301),c=n(54341),m=n(56379),l=n(91420),d=n(95558),u=n(76246),s=n(4471),C=s.enforce,g=s.get,v=t.Int8Array,h=v&&v.prototype,V=t.Uint8ClampedArray,b=V&&V.prototype,B=v&&m(v),I=h&&m(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!l&&k(t.opera)!=="Opera",R=!1,M,D,j,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},K=function(){function ae(de){if(!f(de))return!1;var ve=k(de);return ve==="DataView"||N(W,ve)||N(U,ve)}return ae}(),$=function ae(de){var ve=m(de);if(f(ve)){var ye=g(ve);return ye&&N(ye,E)?ye[E]:ae(ve)}},z=function(de){if(!f(de))return!1;var ve=k(de);return N(W,ve)||N(U,ve)},Y=function(de){if(z(de))return de;throw new T("Target is not a typed array")},H=function(de){if(o(de)&&(!l||c(B,de)))return de;throw new T(S(de)+" is not a typed array constructor")},Q=function(de,ve,ye,Ie){if(a){if(ye)for(var pe in W){var ne=t[pe];if(ne&&N(ne.prototype,de))try{delete ne.prototype[de]}catch(ce){try{ne.prototype[de]=ve}catch(q){}}}(!I[de]||ye)&&p(I,de,ye?ve:P&&h[de]||ve,Ie)}},re=function(de,ve,ye){var Ie,pe;if(a){if(l){if(ye){for(Ie in W)if(pe=t[Ie],pe&&N(pe,de))try{delete pe[de]}catch(ne){}}if(!B[de]||ye)try{return p(B,de,ye?ve:P&&B[de]||ve)}catch(ne){}else return}for(Ie in W)pe=t[Ie],pe&&(!pe[de]||ye)&&p(pe,de,ve)}};for(M in W)D=t[M],j=D&&D.prototype,j?C(j)[E]=D:P=!1;for(M in U)D=t[M],j=D&&D.prototype,j&&(C(j)[E]=D);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new T("Incorrect invocation")}return ae}(),P))for(M in W)t[M]&&l(t[M],B);if((!P||!I||I===w)&&(I=B.prototype,P))for(M in W)t[M]&&l(t[M].prototype,I);if(P&&m(b)!==I&&l(b,I),a&&!N(I,A)){R=!0,i(I,A,{configurable:!0,get:function(){function ae(){return f(this)?this[x]:void 0}return ae}()});for(M in W)t[M]&&y(t[M],x,M)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&x,aTypedArray:Y,aTypedArrayConstructor:H,exportTypedArrayMethod:Q,exportTypedArrayStaticMethod:re,getTypedArrayConstructor:$,isView:K,isTypedArray:z,TypedArray:B,TypedArrayPrototype:I}},31284:function(L,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),N=n(21650),k=n(57301),S=n(26148),y=n(13586),p=n(14434),i=n(84501),c=n(74369),m=n(28968),l=n(48705),d=n(48350),u=n(56379),s=n(91420),C=n(39948),g=n(31170),v=n(43405),h=n(83826),V=n(15676),b=n(4471),B=f.PROPER,I=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=b.getterFor(w),R=b.getterFor(T),M=b.set,D=e[w],j=D,W=j&&j[A],U=e[T],K=U&&U[A],$=Object.prototype,z=e.Array,Y=e.RangeError,H=a(C),Q=a([].reverse),re=d.pack,ae=d.unpack,de=function(ge){return[ge&255]},ve=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Ie=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return re(l(ge),23,4)},ne=function(ge){return re(ge,52,8)},ce=function(ge,ke,Ce){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return Ce(this)[ke]}return Se}()})},q=function(ge,ke,Ce,Se){var we=R(ge),xe=m(Ce),Oe=!!Se;if(xe+ke>we.byteLength)throw new Y(E);var We=we.bytes,Ve=xe+we.byteOffset,oe=g(We,Ve,Ve+ke);return Oe?oe:Q(oe)},se=function(ge,ke,Ce,Se,we,xe){var Oe=R(ge),We=m(Ce),Ve=Se(+we),oe=!!xe;if(We+ke>Oe.byteLength)throw new Y(E);for(var le=Oe.bytes,he=We+Oe.byteOffset,ue=0;uewe)throw new Y("Wrong offset");if(Ce=Ce===void 0?we-xe:c(Ce),xe+Ce>we)throw new Y(x);M(this,{type:T,buffer:ge,byteLength:Ce,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=Ce,this.byteOffset=xe)}return fe}(),K=U[A],t&&(ce(j,"byteLength",P),ce(U,"buffer",R),ce(U,"byteLength",R),ce(U,"byteOffset",R)),S(K,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return ae(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return ae(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setUint8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setInt16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){se(this,2,ge,ve,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){se(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){se(this,8,ge,ne,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&D.name!==w;!y(function(){D(1)})||!y(function(){new D(-1)})||y(function(){return new D,new D(1.5),new D(NaN),D.length!==1||me&&!I})?(j=function(){function fe(ge){return p(this,W),v(new D(m(ge)),this,j)}return fe}(),j[A]=W,W.constructor=j,h(j,D)):me&&I&&N(D,"name",w),s&&u(K)!==$&&s(K,$);var te=new U(new j(2)),be=a(K.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(K,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(j,w),V(U,T),L.exports={ArrayBuffer:j,DataView:U}},28332:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;L.exports=[].copyWithin||function(){function N(k,S){var y=e(this),p=t(y),i=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,l=f((m===void 0?p:a(m,p))-c,p-i),d=1;for(c0;)c in y?y[i]=y[c]:o(y,i),i+=d,c+=d;return y}return N}()},39948:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);L.exports=function(){function o(f){for(var N=e(this),k=t(N),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,i=p===void 0?k:a(p,k);i>y;)N[y++]=f;return N}return o}()},16856:function(L,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(L,r,n){"use strict";var e=n(83207);L.exports=function(a,t,o){for(var f=0,N=arguments.length>2?o:e(t),k=new a(N);N>f;)k[f]=t[f++];return k}},45056:function(L,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),N=n(49632),k=n(83207),S=n(80750),y=n(45731),p=n(52984),i=Array;L.exports=function(){function c(m){var l=t(m),d=N(this),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0;C&&(s=e(s,u>2?arguments[2]:void 0));var g=p(l),v=0,h,V,b,B,I,w;if(g&&!(this===i&&f(g)))for(B=y(l,g),I=B.next,V=d?new this:[];!(b=a(I,B)).done;v++)w=C?o(B,s,[b.value,v],!0):b.value,S(V,v,w);else for(h=k(l),V=d?new this(h):i(h);h>v;v++)w=C?s(l[v],v):l[v],S(V,v,w);return V.length=v,V}return c}()},33483:function(L,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(N){return function(k,S,y){var p=e(k),i=t(p),c=a(y,i),m;if(N&&S!==S){for(;i>c;)if(m=p[c++],m!==m)return!0}else for(;i>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},18539:function(L,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),N=n(51582),k=a([].push),S=function(p){var i=p===1,c=p===2,m=p===3,l=p===4,d=p===6,u=p===7,s=p===5||d;return function(C,g,v,h){for(var V=o(C),b=t(V),B=f(b),I=e(g,v),w=0,T=h||N,A=i?T(C,B):c||u?T(C,0):void 0,x,E;B>w;w++)if((s||w in b)&&(x=b[w],E=I(x,w,V),p))if(i)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:m||l?l:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(L,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),N=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),p=S||!y;L.exports=p?function(){function i(c){if(S)return e(k,this,arguments)||0;var m=a(this),l=o(m),d=l-1;for(arguments.length>1&&(d=N(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return i}():k},34924:function(L,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");L.exports=function(f){return t>=51||!e(function(){var N=[],k=N.constructor={};return k[o]=function(){return{foo:1}},N[f](Boolean).foo!==1})}},56127:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(L,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,N=function(S){return function(y,p,i,c){var m=a(y),l=t(m),d=o(m);e(p);var u=S?d-1:0,s=S?-1:1;if(i<2)for(;;){if(u in l){c=l[u],u+=s;break}if(u+=s,S?u<0:d<=u)throw new f("Reduce of empty array with no initial value")}for(;S?u>=0:d>u;u+=s)u in l&&(c=p(c,l[u],u,m));return c}};L.exports={left:N(!1),right:N(!0)}},10779:function(L,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=f?function(N,k){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=k}:function(N,k){return N.length=k}},31170:function(L,r,n){"use strict";var e=n(72908);L.exports=e([].slice)},91183:function(L,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,N){var k=f.length;if(k<8)for(var S=1,y,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=y)}else for(var i=a(k/2),c=o(e(f,0,i),N),m=o(e(f,i),N),l=c.length,d=m.length,u=0,s=0;u1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),i&&a(V,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return u}(),setStrong:function(){function u(s,C,g){var v=C+" Iterator",h=d(C),V=d(v);S(s,C,function(b,B){l(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=V(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(C)}return u}()}},19250:function(L,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),N=n(62695),k=n(66379),S=n(20453),y=n(18539),p=n(3302),i=n(4471),c=i.set,m=i.getterFor,l=y.find,d=y.findIndex,u=e([].splice),s=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,b){return l(V.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(V){var b=v(this,V);if(b)return b[1]}return h}(),has:function(){function h(V){return!!v(this,V)}return h}(),set:function(){function h(V,b){var B=v(this,V);B?B[1]=b:this.entries.push([V,b])}return h}(),delete:function(){function h(V){var b=d(this.entries,function(B){return B[0]===V});return~b&&u(this.entries,b,1),!!~b}return h}()},L.exports={getConstructor:function(){function h(V,b,B,I){var w=V(function(E,P){o(E,T),c(E,{type:b,id:s++,frozen:void 0}),N(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(b),x=function(){function E(P,R,M){var D=A(P),j=t(f(R),!0);return j===!0?C(D).set(R,M):j[D.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?C(R).delete(P):M&&p(M,R.id)&&delete M[R.id]}return E}(),has:function(){function E(P){var R=A(this);if(!k(P))return!1;var M=t(P);return M===!0?C(R).has(P):M&&p(M,R.id)}return E}()}),a(T,B?{get:function(){function E(P){var R=A(this);if(k(P)){var M=t(P);return M===!0?C(R).get(P):M?M[R.id]:void 0}}return E}(),set:function(){function E(P,R){return x(this,P,R)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return h}()}},10609:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),N=n(66526),k=n(20453),S=n(14434),y=n(53664),p=n(62695),i=n(66379),c=n(13586),m=n(1608),l=n(15676),d=n(43405);L.exports=function(u,s,C){var g=u.indexOf("Map")!==-1,v=u.indexOf("Weak")!==-1,h=g?"set":"add",V=a[u],b=V&&V.prototype,B=V,I={},w=function(D){var j=t(b[D]);f(b,D,D==="add"?function(){function W(U){return j(this,U===0?0:U),this}return W}():D==="delete"?function(W){return v&&!i(W)?!1:j(this,W===0?0:W)}:D==="get"?function(){function W(U){return v&&!i(U)?void 0:j(this,U===0?0:U)}return W}():D==="has"?function(){function W(U){return v&&!i(U)?!1:j(this,U===0?0:U)}return W}():function(){function W(U,K){return j(this,U===0?0:U,K),this}return W}())},T=o(u,!y(V)||!(v||b.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(s,u,g,h),N.enable();else if(o(u,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new V(M)}),R=!v&&c(function(){for(var M=new V,D=5;D--;)M[h](D,D);return!M.has(-0)});P||(B=s(function(M,D){S(M,b);var j=d(new V,M,B);return p(D)||k(D,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=b,b.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(h),v&&b.clear&&delete b.clear}return I[u]=B,e({global:!0,constructor:!0,forced:B!==V},I),l(B,u),v||C.setStrong(B,u,g),B}},83826:function(L,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);L.exports=function(f,N,k){for(var S=a(N),y=o.f,p=t.f,i=0;i"+p+""}},32214:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},21650:function(L,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);L.exports=e?function(o,f,N){return a.f(o,f,t(1,N))}:function(o,f,N){return o[f]=N,o}},73970:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(L,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);L.exports=function(o,f,N){var k=e(f);k in o?a.f(o,k,t(0,N)):o[k]=N}},20228:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,N=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),i=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),l=e(k.getUTCMinutes),d=e(k.getUTCMonth),u=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function s(){if(!f(y(this)))throw new o("Invalid time value");var C=this,g=i(C),v=m(C),h=g<0?"-":g>9999?"+":"";return h+t(N(g),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(l(C),2,0)+":"+t(u(C),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(L,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},57301:function(L,r,n){"use strict";var e=n(40773),a=n(8165);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},60855:function(L,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);L.exports=function(f,N,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:N;if(e(k)&&t(k,p,S),S.global)y?f[N]=k:o(N,k);else{try{S.unsafe?f[N]&&(y=!0):delete f[N]}catch(i){}y?f[N]=k:a.f(f,N,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(L,r,n){"use strict";var e=n(60855);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(L,r,n){"use strict";var e=n(26856),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(L,r,n){"use strict";var e=n(36787),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(L,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},54579:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(L,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},52460:function(L,r,n){"use strict";var e=n(53437),a=n(86727);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(L,r,n){"use strict";var e=n(74247);L.exports=/MSIE|Trident/.test(e)},79034:function(L,r,n){"use strict";var e=n(74247);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(L,r,n){"use strict";var e=n(74247);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(L,r,n){"use strict";var e=n(26856),a=n(8649);L.exports=a(e.process)==="process"},71979:function(L,r,n){"use strict";var e=n(74247);L.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(L,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,N=f&&f.v8,k,S;N&&(k=N.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},27204:function(L,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},38139:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(L,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),N=n(83826),k=n(23620);L.exports=function(S,y){var p=S.target,i=S.global,c=S.stat,m,l,d,u,s,C;if(i?l=e:c?l=e[p]||f(p,{}):l=(e[p]||{}).prototype,l)for(d in y){if(s=y[d],S.dontCallGetSet?(C=a(l,d),u=C&&C.value):u=l[d],m=k(i?d:p+(c?".":"#")+d,S.forced),!m&&u!==void 0){if(typeof s==typeof u)continue;N(s,u)}(S.sham||u&&u.sham)&&t(s,"sham",!0),o(l,d,s,S)}}},13586:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(L,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),N=n(21650),k=f("species"),S=RegExp.prototype;L.exports=function(y,p,i,c){var m=f(y),l=!o(function(){var C={};return C[m]=function(){return 7},""[y](C)!==7}),d=l&&!o(function(){var C=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return C=!0,null},g[m](""),!C});if(!l||!d||i){var u=e(/./[m]),s=p(m,""[y],function(C,g,v,h,V){var b=e(C),B=g.exec;return B===t||B===S.exec?l&&!V?{done:!0,value:u(g,v,h)}:{done:!0,value:b(v,g,h)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&N(S[m],"sham",!0)}},73132:function(L,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function N(k,S,y,p,i,c,m,l){for(var d=i,u=0,s=m?o(m,l):!1,C,g;u0&&e(C)?(g=a(C),d=N(k,S,C,g,d,c-1)-1):(t(d+1),k[d]=C),d++),u++;return d};L.exports=f},58199:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(L,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(L,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);L.exports=function(f,N){return a(f),N===void 0?f:t?o(f,N):function(){return f.apply(N,arguments)}}},86678:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(L,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),N=n(86678),k=Function,S=e([].concat),y=e([].join),p={},i=function(m,l,d){if(!o(p,l)){for(var u=[],s=0;s]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(y,p,i,c,m,l){var d=i+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=k),f(l,s,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return N(p,0,i);case"'":return N(p,d);case"<":v=m[N(g,1,-1)];break;default:var h=+g;if(h===0)return C;if(h>u){var V=t(h/10);return V===0?C:V<=u?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[h-1]}return v===void 0?"":v})}},26856:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},3302:function(L,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,N){return t(a(f),N)}return o}()},51653:function(L){"use strict";L.exports={}},66481:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(L,r,n){"use strict";var e=n(22070);L.exports=e("document","documentElement")},16109:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,p){var i=r(p),c=p*8-y-1,m=(1<>1,d=y===23?e(2,-24)-e(2,-77):0,u=S<0||S===0&&1/S<0?1:0,s=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=m):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+l>=1?S+=d/v:S+=d*e(2,1-l),S*v>=2&&(C++,v/=2),C+l>=m?(g=0,C=m):C+l>=1?(g=(S*v-1)*e(2,y),C+=l):(g=S*e(2,l-1)*e(2,y),C=0));y>=8;)i[s++]=g&255,g/=256,y-=8;for(C=C<0;)i[s++]=C&255,C/=256,c-=8;return i[--s]|=u*128,i},N=function(S,y){var p=S.length,i=p*8-y-1,c=(1<>1,l=i-7,d=p-1,u=S[d--],s=u&127,C;for(u>>=7;l>0;)s=s*256+S[d--],l-=8;for(C=s&(1<<-l)-1,s>>=-l,l+=y;l>0;)C=C*256+S[d--],l-=8;if(s===0)s=1-m;else{if(s===c)return C?NaN:u?-1/0:1/0;C+=e(2,y),s-=m}return(u?-1:1)*C*e(2,s-y)};L.exports={pack:f,unpack:N}},80689:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?f(N,""):o(N)}:o},43405:function(L,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);L.exports=function(o,f,N){var k,S;return t&&e(k=f.constructor)&&k!==N&&a(S=k.prototype)&&S!==N.prototype&&t(o,S),o}},92004:function(L,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},66526:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),N=n(8165).f,k=n(60097),S=n(31024),y=n(58221),p=n(76246),i=n(58199),c=!1,m=p("meta"),l=0,d=function(V){N(V,m,{value:{objectID:"O"+l++,weakData:{}}})},u=function(V,b){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!f(V,m)){if(!y(V))return"F";if(!b)return"E";d(V)}return V[m].objectID},s=function(V,b){if(!f(V,m)){if(!y(V))return!0;if(!b)return!1;d(V)}return V[m].weakData},C=function(V){return i&&c&&y(V)&&!f(V,m)&&d(V),V},g=function(){v.enable=function(){},c=!0;var V=k.f,b=a([].splice),B={};B[m]=1,V(B).length&&(k.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=P(l[I]),T&&k(m,T))return T;return new c(!1)}b=S(l,B)}for(A=g?l.next:b.next;!(x=a(A,b)).done;){try{T=P(x.value)}catch(R){p(b,"throw",R)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},65169:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);L.exports=function(o,f,N){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw N;return N}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw N;if(S)throw k;return a(k),N}},41903:function(L,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),N=function(){return this};L.exports=function(k,S,y,p){var i=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,i,!1,!0),f[i]=N,k}},21436:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),N=n(41903),k=n(56379),S=n(91420),y=n(15676),p=n(21650),i=n(60855),c=n(95558),m=n(47730),l=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=l.IteratorPrototype,C=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",V="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var P=function(H){if(H===A&&W)return W;if(!C&&H&&H in D)return D[H];switch(H){case v:return function(){function Q(){return new w(this,H)}return Q}();case h:return function(){function Q(){return new w(this,H)}return Q}();case V:return function(){function Q(){return new w(this,H)}return Q}()}return function(){return new w(this)}},R=I+" Iterator",M=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],W=!C&&j||P(A),U=I==="Array"&&D.entries||j,K,$,z;if(U&&(K=k(U.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==s&&(S?S(K,s):f(K[g])||i(K,g,b)),y(K,R,!0,!0),t&&(m[R]=b))),d&&A===h&&j&&j.name!==h&&(!t&&u?p(D,"name",h):(M=!0,W=function(){function Y(){return a(j,this)}return Y}())),A)if($={values:P(h),keys:x?W:P(v),entries:P(V)},E)for(z in $)(C||M||!(z in D))&&i(D,z,$[z]);else e({target:I,proto:!0,forced:C||M},$);return(!t||E)&&D[g]!==W&&i(D,g,W,{name:A}),m[I]=W,$}},83665:function(L,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),N=n(60855),k=n(95558),S=n(90139),y=k("iterator"),p=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[y].call(d)!==d});l?i={}:S&&(i=o(i)),a(i[y])||N(i,y,function(){return this}),L.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},47730:function(L){"use strict";L.exports={}},83207:function(L,r,n){"use strict";var e=n(74369);L.exports=function(a){return e(a.length)}},40773:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),N=n(15340).CONFIGURABLE,k=n(92004),S=n(4471),y=S.enforce,p=S.get,i=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),d=e([].join),u=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),s=String(String).split("String"),C=L.exports=function(g,v,h){m(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),u&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var V=y(g);return o(V,"source")||(V.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},80563:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},27509:function(L,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};L.exports=function(N,k,S,y){var p=+N,i=a(p),c=e(p);if(iS||l!==l?c*(1/0):c*l}},48705:function(L,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(N){return e(N,a,t,o)}return f}()},74347:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},30585:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(L,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),N=n(25184),k=n(79034),S=n(71979),y=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),d,u,s,C,g;if(!l){var v=new f,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(I){throw v.head&&d(),I}b&&b.enter()};!N&&!y&&!S&&p&&i?(u=!0,s=i.createTextNode(""),new p(h).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!k&&m&&m.resolve?(C=m.resolve(void 0),C.constructor=m,g=t(C.then,C),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(b){v.head||d(),v.add(b)}}L.exports=l},14187:function(L,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var N,k;this.promise=new f(function(S,y){if(N!==void 0||k!==void 0)throw new a("Bad Promise constructor");N=S,k=y}),this.resolve=e(N),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},75816:function(L,r,n){"use strict";var e=n(28774),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(L,r,n){"use strict";var e=n(26856),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,i=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=i?function(){function c(m){var l=f(o(m)),d=S(l);return d===0&&k(l,0)==="-"?-0:d}return c}():S},41148:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=k(N+"08")!==8||k(N+"0x16")!==22||y&&!a(function(){k(Object(y))});L.exports=c?function(){function m(l,d){var u=f(o(l));return k(u,d>>>0||(i(p,u)?16:10))}return m}():k},23554:function(L,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),N=n(61791),k=n(10409),S=n(63549),y=n(80689),p=Object.assign,i=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function s(){i(this,"b",{value:3,enumerable:!1})}return s}()}),{b:2})).b!==1)return!0;var m={},l={},d=Symbol("assign detection"),u="abcdefghijklmnopqrst";return m[d]=7,u.split("").forEach(function(s){l[s]=s}),p({},m)[d]!==7||f(p({},l)).join("")!==u})?function(){function m(l,d){for(var u=S(l),s=arguments.length,C=1,g=N.f,v=k.f;s>C;)for(var h=y(arguments[C++]),V=g?c(f(h),g(h)):f(h),b=V.length,B=0,I;b>B;)I=V[B++],(!e||t(v,h,I))&&(u[I]=h[I]);return u}return m}():p},15439:function(L,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),N=n(55642),k=n(97223),S=">",y="<",p="prototype",i="script",c=k("IE_PROTO"),m=function(){},l=function(v){return y+i+S+v+y+"/"+i+S},d=function(v){v.write(l("")),v.close();var h=v.parentWindow.Object;return v=null,h},u=function(){var v=N("iframe"),h="java"+i+":",V;return v.style.display="none",f.appendChild(v),v.src=String(h),V=v.contentWindow.document,V.open(),V.write(l("document.F=Object")),V.close(),V.F},s,C=function(){try{s=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function g(v,h){var V;return v!==null?(m[p]=e(v),V=new m,m[p]=null,V[c]=v):V=C(),h===void 0?V:a.f(V,h)}return g}()},55119:function(L,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),N=n(99869);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=f(y),i=N(y),c=i.length,m=0,l;c>m;)t.f(S,l=i[m++],p[l]);return S}return k}()},8165:function(L,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),N=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(m,l,d){if(o(m),l=f(l),o(d),typeof m=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var u=S(m,l);u&&u[i]&&(m[l]=d.value,d={configurable:p in d?d[p]:u[p],enumerable:y in d?d[y]:u[y],writable:!1})}return k(m,l,d)}return c}():k:function(){function c(m,l,d){if(o(m),l=f(l),o(d),a)try{return k(m,l,d)}catch(u){}if("get"in d||"set"in d)throw new N("Accessors not supported");return"value"in d&&(m[l]=d.value),m}return c}()},19765:function(L,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),N=n(72445),k=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(i,c){if(i=f(i),c=N(c),S)try{return y(i,c)}catch(m){}if(k(i,c))return o(!a(t.f,i,c),i[c])}return p}()},31024:function(L,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(y){return o(f)}};L.exports.f=function(){function k(S){return f&&e(S)==="Window"?N(S):t(a(S))}return k}()},60097:function(L,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},61791:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(L,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),N=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=f?k.getPrototypeOf:function(y){var p=t(y);if(e(p,N))return p[N];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof k?S:null}},58221:function(L,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,N=e(function(){f(1)});L.exports=N||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},54341:function(L,r,n){"use strict";var e=n(72908);L.exports=e({}.isPrototypeOf)},49871:function(L,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),N=e([].push);L.exports=function(k,S){var y=t(k),p=0,i=[],c;for(c in y)!a(f,c)&&a(y,c)&&N(i,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(i,c)||N(i,c));return i}},99869:function(L,r,n){"use strict";var e=n(49871),a=n(38139);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},6205:function(L,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(L,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},N;try{N=e(Object.prototype,"__proto__","set"),N(f,[]),o=f instanceof Array}catch(k){}return function(){function k(S,y){return a(S),t(y),o?N(S,y):S.__proto__=y,S}return k}()}():void 0)},64266:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),N=n(54292),k=n(10409).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),i=function(m){return function(l){for(var d=N(l),u=f(d),s=p&&o(d)===null,C=u.length,g=0,v=[],h;C>g;)h=u[g++],(!e||(s?h in d:S(d,h)))&&y(v,m?[h,d[h]]:d[h]);return v}};L.exports={entries:i(!0),values:i(!1)}},6625:function(L,r,n){"use strict";var e=n(41936),a=n(48615);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(L,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;L.exports=function(f,N){var k,S;if(N==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||N!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(L,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),p=o.f;return p?N(y,p(S)):y}return k}()},55601:function(L,r,n){"use strict";var e=n(26856);L.exports=e},73034:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(L,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),N=n(95558),k=n(52460),S=n(53437),y=n(90139),p=n(43541),i=a&&a.prototype,c=N("species"),m=!1,l=t(e.PromiseRejectionEvent),d=o("Promise",function(){var u=f(a),s=u!==String(a);if(!s&&p===66||y&&!(i.catch&&i.finally))return!0;if(!p||p<51||!/native code/.test(u)){var C=new a(function(h){h(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,m=C.then(function(){})instanceof g,!m)return!0}return!s&&(k||S)&&!l});L.exports={CONSTRUCTOR:d,REJECTION_EVENT:l,SUBCLASSING:m}},3e3:function(L,r,n){"use strict";var e=n(26856);L.exports=e.Promise},61988:function(L,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var N=t.f(o),k=N.resolve;return k(f),N.promise}},18182:function(L,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(L,r,n){"use strict";var e=n(8165).f;L.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(N){t[o]=N}return f}()})}},8274:function(L){"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}()},L.exports=r},59833:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),N=TypeError;L.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new N("RegExp#exec called on incompatible receiver")}},59049:function(L,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),N=n(7624),k=n(15439),S=n(4471).get,y=n(18095),p=n(17329),i=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),d=a("".indexOf),u=a("".replace),s=a("".slice),C=function(){var V=/a/,b=/b*/g;return e(c,V,"a"),e(c,b,"a"),V.lastIndex!==0||b.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||g||y||p;h&&(m=function(){function V(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,P,R,M,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,W=g&&B.sticky,U=e(o,B),K=B.source,$=0,z=w;if(W&&(U=u(U,"y",""),d(U,"g")===-1&&(U+="g"),z=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",z=" "+z,$++),x=new RegExp("^(?:"+K+")",U)),v&&(x=new RegExp("^"+K+"$(?!\\s)",U)),C&&(E=B.lastIndex),P=e(c,W?x:B,z),W?P?(P.input=s(P.input,$),P[0]=s(P[0],$),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:C&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(i,P[0],x,function(){for(R=1;Rb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},305:function(L,r,n){"use strict";var e=n(62695),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),N=n(31170),k=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,i){var c=i?2:1;return y?function(m,l){var d=k(arguments.length,1)>c,u=t(m)?m:S(m),s=d?N(arguments,c):[],C=d?function(){a(u,this,s)}:u;return i?p(C,l):p(C)}:p}},92468:function(L,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");L.exports=function(N){var k=e(N);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(L,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");L.exports=function(f,N,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:N})}},97223:function(L,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(L,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});L.exports=o},7624:function(L,r,n){"use strict";var e=n(90139),a=n(70192);(L.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(L,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");L.exports=function(N,k){var S=e(N).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},81626:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(L,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),N=e("".charCodeAt),k=e("".slice),S=function(p){return function(i,c){var m=t(o(i)),l=a(c),d=m.length,u,s;return l<0||l>=d?p?"":void 0:(u=N(m,l),u<55296||u>56319||l+1===d||(s=N(m,l+1))<56320||s>57343?p?f(m,l):u:p?k(m,l,l+2):(u-55296<<10)+(s-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(L,r,n){"use strict";var e=n(74247);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(L,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),N=e(o),k=e("".slice),S=Math.ceil,y=function(i){return function(c,m,l){var d=t(f(c)),u=a(m),s=d.length,C=l===void 0?" ":t(l),g,v;return u<=s||C===""?d:(g=u-s,v=N(C,S(g/C.length)),v.length>g&&(v=k(v,0,g)),i?d+v:v+d)}};L.exports={start:y(!1),end:y(!0)}},75463:function(L,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;L.exports=function(){function f(N){var k=a(t(this)),S="",y=e(N);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},45745:function(L,r,n){"use strict";var e=n(47913).end,a=n(15677);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(L,r,n){"use strict";var e=n(47913).start,a=n(15677);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(L,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),N=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(i){var c=t(a(i));return p&1&&(c=f(c,N,"")),p&2&&(c=f(c,k,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(L,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(L,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);L.exports=function(){var f=a("Symbol"),N=f&&f.prototype,k=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(y){return e(k,this)},{arity:1})}},16010:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),N=n(13586),k=n(21474),S=n(31170),y=n(55642),p=n(92827),i=n(25184),c=n(86727),m=e.setImmediate,l=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,C=e.MessageChannel,g=e.String,v=0,h={},V="onreadystatechange",b,B,I,w;N(function(){b=e.location});var T=function(R){if(f(h,R)){var M=h[R];delete h[R],M()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),b.protocol+"//"+b.host)};(!m||!l)&&(m=function(){function P(R){p(arguments.length,1);var M=o(R)?R:s(R),D=S(arguments,1);return h[++v]=function(){a(M,void 0,D)},B(v),v}return P}(),l=function(){function P(R){delete h[R]}return P}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:C&&!i?(I=new C,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in y("script")?B=function(R){k.appendChild(y("script"))[V]=function(){k.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),L.exports={set:m,clear:l}},7950:function(L,r,n){"use strict";var e=n(72908);L.exports=e(1 .valueOf)},39531:function(L,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;L.exports=function(o,f){var N=e(o);return N<0?a(N+f,0):t(N,f)}},73873:function(L,r,n){"use strict";var e=n(9560),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(L,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),N=a(f);if(f!==N)throw new t("Wrong length or index");return N}},54292:function(L,r,n){"use strict";var e=n(80689),a=n(305);L.exports=function(t){return e(a(t))}},84501:function(L,r,n){"use strict";var e=n(54037);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(L,r,n){"use strict";var e=n(84501),a=Math.min;L.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(L,r,n){"use strict";var e=n(305),a=Object;L.exports=function(t){return a(e(t))}},45476:function(L,r,n){"use strict";var e=n(70685),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(L,r,n){"use strict";var e=n(84501),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(L,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),N=n(95558),k=TypeError,S=N("toPrimitive");L.exports=function(y,p){if(!a(y)||t(y))return y;var i=o(y,S),c;if(i){if(p===void 0&&(p="default"),c=e(i,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(y,p)}},72445:function(L,r,n){"use strict";var e=n(9560),a=n(43474);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(L,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},8758:function(L,r,n){"use strict";var e=n(48615),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),N=n(30432),k=n(31284),S=n(14434),y=n(73970),p=n(21650),i=n(76117),c=n(74369),m=n(28968),l=n(45476),d=n(52834),u=n(72445),s=n(3302),C=n(48615),g=n(66379),v=n(43474),h=n(15439),V=n(54341),b=n(91420),B=n(60097).f,I=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),R=n(4471),M=n(43405),D=R.get,j=R.set,W=R.enforce,U=x.f,K=E.f,$=a.RangeError,z=k.ArrayBuffer,Y=z.prototype,H=k.DataView,Q=N.NATIVE_ARRAY_BUFFER_VIEWS,re=N.TYPED_ARRAY_TAG,ae=N.TypedArray,de=N.TypedArrayPrototype,ve=N.isTypedArray,ye="BYTES_PER_ELEMENT",Ie="Wrong length",pe=function(te,be){A(te,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},ne=function(te){var be;return V(Y,te)||(be=C(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return ve(te)&&!v(be)&&be in te&&i(+be)&&be>=0},q=function(){function me(te,be){return be=u(be),ce(te,be)?y(2,te[be]):K(te,be)}return me}(),se=function(){function me(te,be,fe){return be=u(be),ce(te,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(te[be]=fe.value,te):U(te,be,fe)}return me}();o?(Q||(E.f=q,x.f=se,pe(de,"buffer"),pe(de,"byteOffset"),pe(de,"byteLength"),pe(de,"length")),e({target:"Object",stat:!0,forced:!Q},{getOwnPropertyDescriptor:q,defineProperty:se}),L.exports=function(me,te,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,Ce="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(ue,Ne){var Ae=D(ue);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(ue,Ne,Ae){var De=D(ue);De.view[Ce](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},oe=function(ue,Ne){U(ue,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};Q?f&&(we=te(function(he,ue,Ne,Ae){return S(he,xe),M(function(){return g(ue)?ne(ue)?Ae!==void 0?new Se(ue,l(Ne,fe),Ae):Ne!==void 0?new Se(ue,l(Ne,fe)):new Se(ue):ve(ue)?P(we,ue):t(I,we,ue):new Se(m(ue))}(),he,we)}),b&&b(we,ae),w(B(Se),function(he){he in we||p(we,he,Se[he])}),we.prototype=xe):(we=te(function(he,ue,Ne,Ae){S(he,xe);var De=0,je=0,Ke,Ue,_e;if(!g(ue))_e=m(ue),Ue=_e*fe,Ke=new z(Ue);else if(ne(ue)){Ke=ue,je=l(Ne,fe);var Ge=ue.byteLength;if(Ae===void 0){if(Ge%fe)throw new $(Ie);if(Ue=Ge-je,Ue<0)throw new $(Ie)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new $(Ie);_e=Ue/fe}else return ve(ue)?P(we,ue):t(I,we,ue);for(j(he,{buffer:Ke,byteOffset:je,byteLength:Ue,length:_e,view:new H(Ke)});De<_e;)oe(he,De++)}),b&&b(we,ae),xe=we.prototype=h(de)),xe.constructor!==we&&p(xe,"constructor",we),W(xe).TypedArrayConstructor=we,re&&p(xe,re,ge);var le=we!==Se;Oe[ge]=we,e({global:!0,constructor:!0,forced:le,sham:!Q},Oe),ye in we||p(we,ye,fe),ye in xe||p(xe,ye,fe),T(ge)}):L.exports=function(){}},45410:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(1608),o=n(30432).NATIVE_ARRAY_BUFFER_VIEWS,f=e.ArrayBuffer,N=e.Int8Array;L.exports=!o||!a(function(){N(1)})||!a(function(){new N(-1)})||!t(function(k){new N,new N(null),new N(1.5),new N(k)},!0)||a(function(){return new N(new f(2),1,void 0).length!==1})},85710:function(L,r,n){"use strict";var e=n(21465),a=n(9230);L.exports=function(t,o){return e(a(t),o)}},12778:function(L,r,n){"use strict";var e=n(8942),a=n(20276),t=n(48218),o=n(63549),f=n(83207),N=n(45731),k=n(52984),S=n(48594),y=n(76567),p=n(30432).aTypedArrayConstructor,i=n(73873);L.exports=function(){function c(m){var l=t(this),d=o(m),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0,g=k(d),v,h,V,b,B,I,w,T;if(g&&!S(g))for(w=N(d,g),T=w.next,d=[];!(I=a(T,w)).done;)d.push(I.value);for(C&&u>2&&(s=e(s,arguments[2])),h=f(d),V=new(p(l))(h),b=y(V),v=0;h>v;v++)B=C?s(d[v],v):d[v],V[v]=b?i(B):+B;return V}return c}()},9230:function(L,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},76246:function(L,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(L,r,n){"use strict";var e=n(16361),a=n(13586);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(C){if(!o(C))return!1;var g=C[m];return g!==void 0?!!g:t(C)},u=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(C){var g=f(this),v=y(g,0),h=0,V,b,B,I,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return f}()})},7216:function(L,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(L,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(L,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},26632:function(L,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},14064:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),N=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=f(y),i;return t(S),i=N(y,0),i.length=a(i,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),i}return k}()})},55222:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),N=n(51582);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),i=N(y,0);return i.length=a(i,y,y,p,0,S===void 0?1:f(S)),i}return k}()})},68616:function(L,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(L,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(L,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},92654:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),N=!!f&&1/f([1],1,-0)<0,k=N||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return N?f(this,y,p)||0:t(this,y,p)}return S}()})},58423:function(L,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(L,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,N=n(21436),k=n(32214),S=n(90139),y=n(16361),p="Array Iterator",i=o.set,c=o.getterFor(p);L.exports=N(Array,"Array",function(l,d){i(this,{type:p,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,u=l.index++;if(!d||u>=d.length)return l.target=void 0,k(void 0,!0);switch(l.kind){case"keys":return k(u,!1);case"values":return k(d[u],!1)}return k([u,d[u]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(l){}},37808:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),N=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return N(o(this),p===void 0?",":p)}return y}()})},2509:function(L,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(L,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,N=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:N},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:f)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},56913:function(L,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,k=N||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(L,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,k=N||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},24077:function(L,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),N=n(83207),k=n(54292),S=n(80750),y=n(95558),p=n(34924),i=n(31170),c=p("slice"),m=y("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,C){var g=k(this),v=N(g),h=f(s,v),V=f(C===void 0?v:C,v),b,B,I;if(a(g)&&(b=g.constructor,t(b)&&(b===l||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===l||b===void 0))return i(g,h,V);for(B=new(b===void 0?l:b)(d(V-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},43430:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),N=n(81245),k=n(8758),S=n(13586),y=n(91183),p=n(56127),i=n(31574),c=n(88836),m=n(43541),l=n(27204),d=[],u=a(d.sort),s=a(d.push),C=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=p("sort"),h=!S(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?u(w):u(w,I);var T=[],A=f(w),x,E;for(E=0;Eg-b+V;I--)p(C,I-1)}else if(V>b)for(I=g-b;I>v;I--)w=I+b-1,T=I+V-1,w in C?C[T]=C[w]:p(C,T);for(I=0;I9490626562425156e-8?o(p)+N:a(p-1+f(p-1)*f(p+1))}return S}()})},68872:function(L,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:f})},93105:function(L,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(N){var k=+N;return k===0?k:t((1+k)/(1-k))/2}return f}()})},1795:function(L,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(N){var k=+N;return a(k)*o(t(k),.3333333333333333)}return f}()})},11121:function(L,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(N){var k=N>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},18730:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},11624:function(L,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(L,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(L,r,n){"use strict";var e=n(3116),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function N(k,S){for(var y=0,p=0,i=arguments.length,c=0,m,l;p0?(l=m/c,y+=l*l):y+=m;return c===1/0?1/0:c*o(y)}return N}()})},75213:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(N,k){var S=65535,y=+N,p=+k,i=S&y,c=S&p;return 0|i*c+((S&y>>>16)*c+i*(S&p>>>16)<<16>>>0)}return f}()})},4347:function(L,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(L,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(L,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},54468:function(L,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,N=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(N/2)}return S}()})},95499:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var N=+f,k=a(N),S=a(-N);return k===1/0?1:S===1/0?-1:(k-S)/(t(N)+t(-N))}return o}()})},50929:function(L,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(L,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),N=n(72908),k=n(23620),S=n(3302),y=n(43405),p=n(54341),i=n(43474),c=n(9560),m=n(13586),l=n(60097).f,d=n(19765).f,u=n(8165).f,s=n(7950),C=n(47913).trim,g="Number",v=o[g],h=f[g],V=v.prototype,b=o.TypeError,B=N("".slice),I=N("".charCodeAt),w=function(M){var D=c(M,"number");return typeof D=="bigint"?D:T(D)},T=function(M){var D=c(M,"number"),j,W,U,K,$,z,Y,H;if(i(D))throw new b("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=C(D),j=I(D,0),j===43||j===45){if(W=I(D,2),W===88||W===120)return NaN}else if(j===48){switch(I(D,1)){case 66:case 98:U=2,K=49;break;case 79:case 111:U=8,K=55;break;default:return+D}for($=B(D,2),z=$.length,Y=0;YK)return NaN;return parseInt($,U)}}return+D},A=k(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return p(V,M)&&m(function(){s(M)})},E=function(){function R(M){var D=arguments.length<1?0:v(w(M));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,D){for(var j=t?l(D):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0,U;j.length>W;W++)S(D,U=j[W])&&!S(M,U)&&u(M,U,d(D,U))};a&&h&&P(f[g],h),(A||a)&&P(f[g],v)},48211:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(L,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(L,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(L,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},82678:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),N=n(13586),k=RangeError,S=String,y=Math.floor,p=a(f),i=a("".slice),c=a(1 .toFixed),m=function g(v,h,V){return h===0?V:h%2===1?g(v,h-1,V*v):g(v*v,h/2,V)},l=function(v){for(var h=0,V=v;V>=4096;)h+=12,V/=4096;for(;V>=2;)h+=1,V/=2;return h},d=function(v,h,V){for(var b=-1,B=V;++b<6;)B+=h*v[b],v[b]=B%1e7,B=y(B/1e7)},u=function(v,h){for(var V=6,b=0;--V>=0;)b+=v[V],v[V]=y(b/h),b=b%h*1e7},s=function(v){for(var h=6,V="";--h>=0;)if(V!==""||h===0||v[h]!==0){var b=S(v[h]);V=V===""?b:V+p("0",7-b.length)+b}return V},C=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var h=o(this),V=t(v),b=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(V<0||V>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=l(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=V;A>=7;)d(b,1e7,0),A-=7;for(d(b,m(10,A,1),0),A=w-1;A>=23;)u(b,8388608),A-=23;u(b,1<0?(x=I.length,I=B+(x<=V?"0."+p("0",V-x)+I:i(I,0,x-V)+"."+i(I,x-V))):I=B+I,I}return g}()})},83403:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),N=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},4229:function(L,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){N.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},53822:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){N.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},14955:function(L,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(L,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,N=Object.freeze,k=t(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return N&&o(y)?N(f(y)):y}return S}()})},81941:function(L,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var N={};return a(f,function(k,S){t(N,k,S)},{AS_ENTRIES:!0}),N}return o}()})},37245:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),N=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},8373:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),N=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=f.f,i=t(y),c={},m=0,l,d;i.length>m;)d=p(y,l=i[m++]),d!==void 0&&N(c,l,d);return c}return k}()})},81212:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(L,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},26054:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},49611:function(L,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isFrozen,k=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},55750:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isSealed,k=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},57745:function(L,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(L,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function N(k){return t(a(k))}return N}()})},63429:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),i=f(y),c;do if(c=k(p,i))return c.get;while(p=N(p))}return S}()})},9558:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),k=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),i=f(y),c;do if(c=k(p,i))return c.set;while(p=N(p))}return S}()})},2420:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.preventExtensions,k=f(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},19015:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.seal,k=f(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},34137:function(L,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(L,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(L,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,i=o.f(p),c=i.resolve,m=i.reject,l=f(function(){var d=t(p.resolve),u=[],s=0,C=1;N(y,function(g){var v=s++,h=!1;C++,a(d,p,g).then(function(V){h||(h=!0,u[v]=V,--C||c(u))},m)}),--C||c(u)});return l.error&&m(l.value),i.promise}return S}()})},72188:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),N=n(53664),k=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&N(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},13779:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),N=n(60855),k=n(91420),S=n(15676),y=n(92468),p=n(79474),i=n(53664),c=n(66379),m=n(14434),l=n(83604),d=n(87073).set,u=n(60816),s=n(66481),C=n(73034),g=n(8274),v=n(4471),h=n(3e3),V=n(14657),b=n(14187),B="Promise",I=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,P=h,R=E,M=o.TypeError,D=o.document,j=o.process,W=b.f,U=W,K=!!(D&&D.createEvent&&o.dispatchEvent),$="unhandledrejection",z="rejectionhandled",Y=0,H=1,Q=2,re=1,ae=2,de,ve,ye,Ie,pe=function(Ce){var Se;return c(Ce)&&i(Se=Ce.then)?Se:!1},ne=function(Ce,Se){var we=Se.value,xe=Se.state===H,Oe=xe?Ce.ok:Ce.fail,We=Ce.resolve,Ve=Ce.reject,oe=Ce.domain,le,he,ue;try{Oe?(xe||(Se.rejection===ae&&te(Se),Se.rejection=re),Oe===!0?le=we:(oe&&oe.enter(),le=Oe(we),oe&&(oe.exit(),ue=!0)),le===Ce.promise?Ve(new M("Promise-chain cycle")):(he=pe(le))?f(he,le,We,Ve):We(le)):Ve(we)}catch(Ne){oe&&!ue&&oe.exit(),Ve(Ne)}},ce=function(Ce,Se){Ce.notified||(Ce.notified=!0,u(function(){for(var we=Ce.reactions,xe;xe=we.get();)ne(xe,Ce);Ce.notified=!1,Se&&!Ce.rejection&&se(Ce)}))},q=function(Ce,Se,we){var xe,Oe;K?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(Ce,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+Ce])?Oe(xe):Ce===$&&s("Unhandled promise rejection",we)},se=function(Ce){f(d,o,function(){var Se=Ce.facade,we=Ce.value,xe=me(Ce),Oe;if(xe&&(Oe=C(function(){t?j.emit("unhandledRejection",we,Se):q($,Se,we)}),Ce.rejection=t||me(Ce)?ae:re,Oe.error))throw Oe.value})},me=function(Ce){return Ce.rejection!==re&&!Ce.parent},te=function(Ce){f(d,o,function(){var Se=Ce.facade;t?j.emit("rejectionHandled",Se):q(z,Se,Ce.value)})},be=function(Ce,Se,we){return function(xe){Ce(Se,xe,we)}},fe=function(Ce,Se,we){Ce.done||(Ce.done=!0,we&&(Ce=we),Ce.value=Se,Ce.state=Q,ce(Ce,!0))},ge=function ke(Ce,Se,we){if(!Ce.done){Ce.done=!0,we&&(Ce=we);try{if(Ce.facade===Se)throw new M("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Oe={done:!1};try{f(xe,Se,be(ke,Oe,Ce),be(fe,Oe,Ce))}catch(We){fe(Oe,We,Ce)}}):(Ce.value=Se,Ce.state=H,ce(Ce,!1))}catch(Oe){fe({done:!1},Oe,Ce)}}};if(I&&(P=function(){function ke(Ce){m(this,R),p(Ce),f(de,this);var Se=A(this);try{Ce(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=P.prototype,de=function(){function ke(Ce){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:Y,value:void 0})}return ke}(),de.prototype=N(R,"then",function(){function ke(Ce,Se){var we=A(this),xe=W(l(this,P));return we.parent=!0,xe.ok=i(Ce)?Ce:!0,xe.fail=i(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===Y?we.reactions.add(xe):u(function(){ne(xe,we)}),xe.promise}return ke}()),ve=function(){var Ce=new de,Se=A(Ce);this.promise=Ce,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=W=function(Ce){return Ce===P||Ce===ye?new ve(Ce):U(Ce)},!a&&i(h)&&E!==Object.prototype)){Ie=E.then,T||N(E,"then",function(){function ke(Ce,Se){var we=this;return new P(function(xe,Oe){f(Ie,we,xe,Oe)}).then(Ce,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),y(B)},79063:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),N=n(53664),k=n(83604),S=n(61988),y=n(60855),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(l){var d=k(this,f("Promise")),u=N(l);return this.then(u?function(s){return S(d,l()).then(function(){return s})}:l,u?function(s){return S(d,l()).then(function(){throw s})}:l)}return m}()}),!a&&N(t)){var c=f("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},75795:function(L,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),k=n(18182);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,i=o.f(p),c=i.reject,m=f(function(){var l=t(p.resolve);N(y,function(d){a(l,p,d).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return S}()})},75955:function(L,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var N=a.f(this),k=N.reject;return k(f),N.promise}return o}()})},39996:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,N=n(61988),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(p){return N(S&&this===k?o:this,p)}return y}()})},1210:function(L,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),N=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},91370:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),N=n(45418),k=n(66379),S=n(15439),y=n(13586),p=a("Reflect","construct"),i=Object.prototype,c=[].push,m=y(function(){function u(){}return!(p(function(){},[],u)instanceof u)}),l=!y(function(){p(function(){})}),d=m||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,C){f(s),N(C);var g=arguments.length<3?s:f(arguments[2]);if(l&&!m)return p(s,C,g);if(s===g){switch(C.length){case 0:return new s;case 1:return new s(C[0]);case 2:return new s(C[0],C[1]);case 3:return new s(C[0],C[1],C[2]);case 4:return new s(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,s,v))}var h=g.prototype,V=S(k(h)?h:i),b=t(s,V,C);return k(b)?b:V}return u}()})},17327:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),N=n(13586),k=N(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,i){t(y);var c=o(p);t(i);try{return f.f(y,c,i),!0}catch(m){return!1}}return S}()})},2679:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,N){var k=t(a(f),N);return k&&!k.configurable?!1:delete f[N]}return o}()})},27262:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(N,k){return o.f(t(N),k)}return f}()})},47278:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(N){return t(a(N))}return f}()})},60733:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),N=n(19765),k=n(56379);function S(y,p){var i=arguments.length<3?y:arguments[2],c,m;if(o(y)===i)return y[p];if(c=N.f(y,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=k(y)))return S(m,p,i)}e({target:"Reflect",stat:!0},{get:S})},22547:function(L,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},64650:function(L,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(N){t(N);try{var k=a("Object","preventExtensions");return k&&k(N),!0}catch(S){return!1}}return f}()})},65558:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(N,k){a(N),t(k);try{return o(N,k),!0}catch(S){return!1}}return f}()})},97836:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),N=n(13586),k=n(8165),S=n(19765),y=n(56379),p=n(73970);function i(m,l,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),l),C,g,v;if(!s){if(o(g=y(m)))return i(g,l,d,u);s=p(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(C=S.f(u,l)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,k.f(u,l,C)}else k.f(u,l,p(0,d))}else{if(v=s.set,v===void 0)return!1;a(v,u,d)}return!0}var c=N(function(){var m=function(){},l=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},83932:function(L,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),N=n(21650),k=n(15439),S=n(60097).f,y=n(54341),p=n(28774),i=n(8758),c=n(13980),m=n(96472),l=n(69713),d=n(60855),u=n(13586),s=n(3302),C=n(4471).enforce,g=n(92468),v=n(95558),h=n(18095),V=n(17329),b=v("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,j=new B(M)!==M,W=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,K=e&&(!j||W||h||V||u(function(){return D[b]=!1,B(M)!==M||B(D)===D||String(B(M,"i"))!=="/a/i"})),$=function(ae){for(var de=ae.length,ve=0,ye="",Ie=!1,pe;ve<=de;ve++){if(pe=A(ae,ve),pe==="\\"){ye+=pe+A(ae,++ve);continue}!Ie&&pe==="."?ye+="[\\s\\S]":(pe==="["?Ie=!0:pe==="]"&&(Ie=!1),ye+=pe)}return ye},z=function(ae){for(var de=ae.length,ve=0,ye="",Ie=[],pe=k(null),ne=!1,ce=!1,q=0,se="",me;ve<=de;ve++){if(me=A(ae,ve),me==="\\")me+=A(ae,++ve);else if(me==="]")ne=!1;else if(!ne)switch(!0){case me==="[":ne=!0;break;case me==="(":T(R,P(ae,ve+1))&&(ve+=2,ce=!0),ye+=me,q++;continue;case(me===">"&&ce):if(se===""||s(pe,se))throw new w("Invalid capture group name");pe[se]=!0,Ie[Ie.length]=[se,q],ce=!1,se="";continue}ce?se+=me:ye+=me}return[ye,Ie]};if(o("RegExp",K)){for(var Y=function(){function re(ae,de){var ve=y(I,this),ye=p(ae),Ie=de===void 0,pe=[],ne=ae,ce,q,se,me,te,be;if(!ve&&ye&&Ie&&ae.constructor===Y)return ae;if((ye||y(I,ae))&&(ae=ae.source,Ie&&(de=c(ne))),ae=ae===void 0?"":i(ae),de=de===void 0?"":i(de),ne=ae,h&&"dotAll"in M&&(q=!!de&&E(de,"s")>-1,q&&(de=x(de,/s/g,""))),ce=de,W&&"sticky"in M&&(se=!!de&&E(de,"y")>-1,se&&U&&(de=x(de,/y/g,""))),V&&(me=z(ae),ae=me[0],pe=me[1]),te=f(B(ae,de),ve?this:I,Y),(q||se||pe.length)&&(be=C(te),q&&(be.dotAll=!0,be.raw=Y($(ae),ce)),se&&(be.sticky=!0),pe.length&&(be.groups=pe)),ae!==ne)try{N(te,"source",ne===""?"(?:)":ne)}catch(fe){}return te}return re}(),H=S(B),Q=0;H.length>Q;)l(Y,B,H[Q++]);I.constructor=Y,Y.prototype=I,d(a,"RegExp",Y,{constructor:!0})}g("RegExp")},72941:function(L,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),N=e.RegExp,k=N.prototype,S=a&&f(function(){var y=!0;try{N(".","d")}catch(s){y=!1}var p={},i="",c=y?"dgimsy":"gimsy",m=function(C,g){Object.defineProperty(p,C,{get:function(){function v(){return i+=g,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(l.hasIndices="d");for(var d in l)m(d,l[d]);var u=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return u!==c||i!==c});S&&t(k,"flags",{configurable:!0,get:o})},2394:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),N=n(13980),k="toString",S=RegExp.prototype,y=S[k],p=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&y.name!==k;(p||i)&&a(S,k,function(){function c(){var m=t(this),l=o(m.source),d=o(N(m));return"/"+l+"/"+d}return c}(),{unsafe:!0})},98480:function(L,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(L,r,n){"use strict";n(98480)},25492:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},13684:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(L,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),N=n(75816),k=n(305),S=n(46339),y=n(90139),p=a("".slice),i=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(d){var u=f(k(this));N(d);var s=arguments.length>1?arguments[1]:void 0,C=u.length,g=s===void 0?C:i(o(s),C),v=f(d);return p(u,g-v.length,g)===v}return l}()})},30733:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},70277:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},33683:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,N=String.fromCodePoint,k=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var i=[],c=arguments.length,m=0,l;c>m;){if(l=+arguments[m++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[m]=l<65536?f(l):f(((l-=65536)>>10)+55296,l%1024+56320)}return k(i,"")}return y}()})},16792:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),N=n(46339),k=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(L,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),N="String Iterator",k=t.set,S=t.getterFor(N);o(String,"String",function(y){k(this,{type:N,string:a(y),index:0})},function(){function y(){var p=S(this),i=p.string,c=p.index,m;return c>=i.length?f(void 0,!0):(m=e(i,c),p.index+=m.length,f(m,!1))}return y}())},13763:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},76015:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),N=n(8758),k=n(305),S=n(76540),y=n(47158),p=n(59833);a("match",function(i,c,m){return[function(){function l(d){var u=k(this),s=o(d)?void 0:S(d,i);return s?e(s,d,u):new RegExp(d)[i](N(u))}return l}(),function(l){var d=t(this),u=N(l),s=m(c,d,u);if(s.done)return s.value;if(!d.global)return p(d,u);var C=d.unicode;d.lastIndex=0;for(var g=[],v=0,h;(h=p(d,u))!==null;){var V=N(h[0]);g[v]=V,V===""&&(d.lastIndex=y(u,f(d.lastIndex),C)),v++}return v===0?null:g}]})},57318:function(L,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},33177:function(L,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},1429:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),N=n(83207),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var i=t(o(p).raw),c=N(i);if(!c)return"";for(var m=arguments.length,l=[],d=0;;){if(k(l,f(i[d++])),d===c)return S(l,"");d")!=="7"});o("replace",function(x,E,P){var R=T?"$":"$0";return[function(){function M(D,j){var W=c(this),U=S(D)?void 0:l(D,C);return U?a(U,D,W,j):a(E,i(W),D,j)}return M}(),function(M,D){var j=N(this),W=i(M);if(typeof D=="string"&&b(D,R)===-1&&b(D,"$<")===-1){var U=P(E,j,W,D);if(U.done)return U.value}var K=k(D);K||(D=i(D));var $=j.global,z;$&&(z=j.unicode,j.lastIndex=0);for(var Y=[],H;H=u(j,W),!(H===null||(V(Y,H),!$));){var Q=i(H[0]);Q===""&&(j.lastIndex=m(W,p(j.lastIndex),z))}for(var re="",ae=0,de=0;de=ae&&(re+=B(W,ae,ye)+pe,ae=ye+ve.length)}return re+B(W,ae)}]},!A||!w||T)},60981:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),N=n(91935),k=n(8758),S=n(76540),y=n(59833);a("search",function(p,i,c){return[function(){function m(l){var d=f(this),u=o(l)?void 0:S(l,p);return u?e(u,l,d):new RegExp(l)[p](k(d))}return m}(),function(m){var l=t(this),d=k(m),u=c(i,l,d);if(u.done)return u.value;var s=l.lastIndex;N(s,0)||(l.lastIndex=0);var C=y(l,d);return N(l.lastIndex,s)||(l.lastIndex=s),C===null?-1:C.index}]})},56001:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(L,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),N=n(62695),k=n(28774),S=n(305),y=n(83604),p=n(47158),i=n(74369),c=n(8758),m=n(76540),l=n(31170),d=n(59833),u=n(59049),s=n(96472),C=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,h=Math.min,V=[].push,b=t(/./.exec),B=t(V),I=t("".slice),w=!C(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(R,M){var D=c(S(this)),j=M===void 0?v:M>>>0;if(j===0)return[];if(R===void 0)return[D];if(!k(R))return a(A,D,R,j);for(var W=[],U=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),K=0,$=new RegExp(R.source,U+"g"),z,Y,H;(z=a(u,$,D))&&(Y=$.lastIndex,!(Y>K&&(B(W,I(D,K,z.index)),z.length>1&&z.index=j)));)$.lastIndex===z.index&&$.lastIndex++;return K===D.length?(H||!b($,""))&&B(W,""):B(W,I(D,K)),W.length>j?l(W,0,j):W}:"0".split(void 0,0).length?E=function(R,M){return R===void 0&&M===0?[]:a(A,this,R,M)}:E=A,[function(){function P(R,M){var D=S(this),j=N(R)?void 0:m(R,T);return j?a(j,R,D,M):a(E,c(D),R,M)}return P}(),function(P,R){var M=f(this),D=c(P),j=x(E,M,D,R,E!==A);if(j.done)return j.value;var W=y(M,RegExp),U=M.unicode,K=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),$=new W(g?"^(?:"+M.source+")":M,K),z=R===void 0?v:R>>>0;if(z===0)return[];if(D.length===0)return d($,D)===null?[D]:[];for(var Y=0,H=0,Q=[];H1?arguments[1]:void 0,u.length)),C=f(d);return p(u,s,s+C.length)===C}return l}()})},58713:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(L,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(L,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(L,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(L,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(L,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(L,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),N=n(16361),k=n(61855),S=n(13586),y=n(3302),p=n(54341),i=n(45418),c=n(54292),m=n(72445),l=n(8758),d=n(73970),u=n(15439),s=n(99869),C=n(60097),g=n(31024),v=n(61791),h=n(19765),V=n(8165),b=n(55119),B=n(10409),I=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),R=n(15355),M=n(20614),D=n(28952),j=n(15676),W=n(4471),U=n(18539).forEach,K=A("hidden"),$="Symbol",z="prototype",Y=W.set,H=W.getterFor($),Q=Object[z],re=a.Symbol,ae=re&&re[z],de=a.RangeError,ve=a.TypeError,ye=a.QObject,Ie=h.f,pe=V.f,ne=g.f,ce=B.f,q=o([].push),se=T("symbols"),me=T("op-symbols"),te=T("wks"),be=!ye||!ye[z]||!ye[z].findChild,fe=function(le,he,ue){var Ne=Ie(Q,he);Ne&&delete Q[he],pe(le,he,ue),Ne&&le!==Q&&pe(Q,he,Ne)},ge=N&&S(function(){return u(pe({},"a",{get:function(){function oe(){return pe(this,"a",{value:7}).a}return oe}()})).a!==7})?fe:pe,ke=function(le,he){var ue=se[le]=u(ae);return Y(ue,{type:$,tag:le,description:he}),N||(ue.description=he),ue},Ce=function(){function oe(le,he,ue){le===Q&&Ce(me,he,ue),i(le);var Ne=m(he);return i(ue),y(se,Ne)?(ue.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),ue=u(ue,{enumerable:d(0,!1)})):(y(le,K)||pe(le,K,d(1,u(null))),le[K][Ne]=!0),ge(le,Ne,ue)):pe(le,Ne,ue)}return oe}(),Se=function(){function oe(le,he){i(le);var ue=c(he),Ne=s(ue).concat(Ve(ue));return U(Ne,function(Ae){(!N||t(xe,ue,Ae))&&Ce(le,Ae,ue[Ae])}),le}return oe}(),we=function(){function oe(le,he){return he===void 0?u(le):Se(u(le),he)}return oe}(),xe=function(){function oe(le){var he=m(le),ue=t(ce,this,he);return this===Q&&y(se,he)&&!y(me,he)?!1:ue||!y(this,he)||!y(se,he)||y(this,K)&&this[K][he]?ue:!0}return oe}(),Oe=function(){function oe(le,he){var ue=c(le),Ne=m(he);if(!(ue===Q&&y(se,Ne)&&!y(me,Ne))){var Ae=Ie(ue,Ne);return Ae&&y(se,Ne)&&!(y(ue,K)&&ue[K][Ne])&&(Ae.enumerable=!0),Ae}}return oe}(),We=function(){function oe(le){var he=ne(c(le)),ue=[];return U(he,function(Ne){!y(se,Ne)&&!y(x,Ne)&&q(ue,Ne)}),ue}return oe}(),Ve=function(le){var he=le===Q,ue=ne(he?me:c(le)),Ne=[];return U(ue,function(Ae){y(se,Ae)&&(!he||y(Q,Ae))&&q(Ne,se[Ae])}),Ne};k||(re=function(){function oe(){if(p(ae,this))throw new ve("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),he=E(le),ue=function(){function Ne(Ae){var De=this===void 0?a:this;De===Q&&t(Ne,me,Ae),y(De,K)&&y(De[K],he)&&(De[K][he]=!1);var je=d(1,Ae);try{ge(De,he,je)}catch(Ke){if(!(Ke instanceof de))throw Ke;fe(De,he,je)}}return Ne}();return N&&be&&ge(Q,he,{configurable:!0,set:ue}),ke(he,le)}return oe}(),ae=re[z],I(ae,"toString",function(){function oe(){return H(this).tag}return oe}()),I(re,"withoutSetter",function(oe){return ke(E(oe),oe)}),B.f=xe,V.f=Ce,b.f=Se,h.f=Oe,C.f=g.f=We,v.f=Ve,R.f=function(oe){return ke(P(oe),oe)},N&&(w(ae,"description",{configurable:!0,get:function(){function oe(){return H(this).description}return oe}()}),f||I(Q,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:re}),U(s(te),function(oe){M(oe)}),e({target:$,stat:!0,forced:!k},{useSetter:function(){function oe(){be=!0}return oe}(),useSimple:function(){function oe(){be=!1}return oe}()}),e({target:"Object",stat:!0,forced:!k,sham:!N},{create:we,defineProperty:Ce,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:We}),D(),j(re,$),x[K]=!0},64777:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),N=n(53664),k=n(54341),S=n(8758),y=n(57301),p=n(83826),i=t.Symbol,c=i&&i.prototype;if(a&&N(i)&&(!("description"in c)||i().description!==void 0)){var m={},l=function(){function h(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new i(V):V===void 0?i():i(V);return V===""&&(m[b]=!0),b}return h}();p(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",u=o(c.valueOf),s=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var V=u(this);if(f(m,V))return"";var b=s(V),B=d?v(b,7,-1):g(b,C,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},99694:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),N=n(16010),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function y(p){var i=o(p);if(t(k,i))return k[i];var c=a("Symbol")(i);return k[i]=c,S[c]=i,c}return y}()})},56564:function(L,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(L,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(L,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(L,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(L,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),N=n(16010),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},22905:function(L,r,n){"use strict";var e=n(20614);e("match")},96311:function(L,r,n){"use strict";var e=n(20614);e("replace")},61292:function(L,r,n){"use strict";var e=n(20614);e("search")},75419:function(L,r,n){"use strict";var e=n(20614);e("species")},67638:function(L,r,n){"use strict";var e=n(20614);e("split")},7601:function(L,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(L,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(L,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(L,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},58549:function(L,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(L,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),N=n(72908),k=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=N("".slice),i=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var l=arguments.length;S(this);var d=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},65446:function(L,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function N(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},62243:function(L,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(L,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(L,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97363:function(L,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},35249:function(L,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(L,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(L,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(L,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(L,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},65331:function(L,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},99755:function(L,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},87975:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),N=n(95558),k=N("iterator"),S=e.Uint8Array,y=t(f.values),p=t(f.keys),i=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=S&&S.prototype,d=!a(function(){l[k].call([1])}),u=!!l&&l.values&&l[k]===l.values&&l.values.name==="values",s=function(){function C(){return y(c(this))}return C}();m("entries",function(){function C(){return i(c(this))}return C}(),d),m("keys",function(){function C(){return p(c(this))}return C}(),d),m("values",s,d||!u,{name:"values"}),m(k,s,d||!u,{name:"values"})},20812:function(L,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function N(k){return f(t(this),k)}return N}())},5640:function(L,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function N(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return N}())},47736:function(L,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function N(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return N}())},81944:function(L,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var N=0,k=arguments.length,S=new(t(this))(k);k>N;)S[N]=arguments[N++];return S}return f}(),a)},72214:function(L,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(N){var k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return f}())},68685:function(L,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(N){var k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return f}())},48774:function(L,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var N=this,k=a(N).length,S=o(k/2),y=0,p;y1?arguments[1]:void 0,1),g=N(s);if(l)return a(i,this,g,C);var v=this.length,h=o(g),V=0;if(h+C>v)throw new S("Wrong length");for(;Vm;)d[m]=i[m++];return d}return S}(),k)},10702:function(L,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(L,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),N=n(30432),k=n(31574),S=n(88836),y=n(43541),p=n(27204),i=N.aTypedArray,c=N.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),d=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),u=!!l&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var C=new m(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,g[v]=v-2*h+3;for(l(C,function(V,b){return(V/4|0)-(b/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),s=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(g){return g!==void 0&&o(g),u?l(this,g):f(i(this),s(g))}return C}(),!u||d)},64408:function(L,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function k(S,y){var p=f(this),i=p.length,c=t(S,i),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?i:t(y,i))-c))}return k}())},22306:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),N=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!N&&o(function(){y.call(new N(1))}),i=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?f(k(this)):k(this),f(arguments))}return c}(),i)},90334:function(L,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,N=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=N.toString!==k;e("toString",k,y)},70088:function(L,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},7284:function(L,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},25855:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97372:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()},!0)},84937:function(L,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),N=n(10609),k=n(19250),S=n(66379),y=n(4471).enforce,p=n(13586),i=n(73844),c=Object,m=Array.isArray,l=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},V=N("WeakMap",h,k),b=V.prototype,B=t(b.set),I=function(){return e&&p(function(){var E=s([]);return B(new V,E,1),!d(E)})};if(i)if(g){v=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!l(E)){var P=y(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!l(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!l(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!l(E)){var R=y(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,P):R.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else I()&&o(b,{set:function(){function x(E,P){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=C)),B(this,E,P),R&&R(E),this}return x}()})},69880:function(L,r,n){"use strict";n(84937)},74764:function(L,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(L,r,n){"use strict";n(74764)},82818:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(L,r,n){"use strict";n(82818),n(21813)},367:function(L,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function f(N){o(arguments.length,1),a(t(N))}return f}()})},21813:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},50943:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(L,r,n){"use strict";n(50943),n(91851)},87454:function(L){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var y;window.onunload=function(){return r&&r.close()}},t=function(y){return e.push(y)},o=function(y){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,u){if(typeof u=="object"){if(u===null)return u;if(p.includes(u))return"[circular ref]";p.push(u);var s=u instanceof Error||u.code&&u.message&&u.message.includes("Error");return s?{__error__:!0,string:String(u),stack:u.stack}:Array.isArray(u)?u.map(i):u}return i(u)},m=JSON.stringify(y,c);return p=null,m},f=function(y){if(0)var p,i,c},N=function(y,p){if(0)var i,c,m},k=function(){};I.exports={subscribe:t,sendMessage:f,sendLogEntry:N,setupHotReloading:k}}},bt={};function X(I){var r=bt[I];if(r!==void 0)return r.exports;var n=bt[I]={exports:{}};return $t[I](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){X.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Ln={};(function(){"use strict";X(32321),X(64777),X(65884),X(56564),X(68981),X(27699),X(22905),X(96311),X(61292),X(75419),X(67638),X(7601),X(89010),X(5401),X(75836),X(33901),X(85803),X(7216),X(50584),X(26632),X(25972),X(55222),X(14064),X(68616),X(45168),X(26088),X(92654),X(58423),X(26017),X(37808),X(2509),X(2124),X(38196),X(7731),X(56913),X(48704),X(24077),X(60230),X(43430),X(53407),X(69220),X(72978),X(55784),X(41365),X(58874),X(85806),X(3521),X(94961),X(91777),X(49615),X(70700),X(31032),X(83329),X(15700),X(85783),X(51430),X(10944),X(36418),X(68872),X(93105),X(1795),X(11121),X(18730),X(11624),X(89004),X(72680),X(75213),X(4347),X(86433),X(21401),X(54468),X(36183),X(95499),X(50929),X(91447),X(84314),X(48211),X(52237),X(306),X(22509),X(84660),X(82678),X(76585),X(21733),X(21210),X(10272),X(83403),X(4229),X(53388),X(53121),X(53822),X(2514),X(2218),X(14955),X(79220),X(81941),X(37245),X(8373),X(81212),X(26054),X(57745),X(49611),X(98344),X(55750),X(7340),X(63429),X(9558),X(2420),X(19015),X(34137),X(24705),X(55318),X(49456),X(12217),X(75795),X(79063),X(1210),X(91370),X(17327),X(2679),X(60733),X(27262),X(47278),X(22547),X(92992),X(64650),X(71255),X(97836),X(65558),X(83932),X(72941),X(57918),X(2394),X(37517),X(65699),X(11360),X(33683),X(16792),X(8),X(76015),X(57318),X(33177),X(1429),X(56515),X(30343),X(60981),X(96578),X(59592),X(54511),X(84368),X(76980),X(25492),X(13684),X(79646),X(98511),X(30733),X(58683),X(70277),X(36865),X(13763),X(56001),X(58713),X(41960),X(31772),X(43059),X(97363),X(99755),X(33278),X(65331),X(25855),X(97372),X(70088),X(7284),X(76464),X(58549),X(42774),X(65446),X(21066),X(62243),X(35249),X(68739),X(5723),X(40353),X(87975),X(20812),X(5640),X(47736),X(81944),X(68685),X(72214),X(48774),X(2915),X(17165),X(10702),X(76622),X(64408),X(22306),X(90334),X(69880),X(37167),X(25109),X(367),X(8459),X(16970),X(11386)})(),function(){"use strict";var I=X(28823);X(47468),X(52355),X(66309),X(74395),X(86879),X(66782),X(35116),X(47968),X(67041),X(59719),X(14045),X(81912),X(53152),X(72694);var r=X(60031),n=X(87454),e=X(39891),a=X(85955),t=X(64960),o=X(79143),f=X(33053),N;/** + */var r,n=[],e=[],a=function(){if(0)var y;window.onunload=function(){return r&&r.close()}},t=function(y){return e.push(y)},o=function(y){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,u){if(typeof u=="object"){if(u===null)return u;if(p.includes(u))return"[circular ref]";p.push(u);var s=u instanceof Error||u.code&&u.message&&u.message.includes("Error");return s?{__error__:!0,string:String(u),stack:u.stack}:Array.isArray(u)?u.map(i):u}return i(u)},m=JSON.stringify(y,c);return p=null,m},f=function(y){if(0)var p,i,c},N=function(y,p){if(0)var i,c,m},k=function(){};L.exports={subscribe:t,sendMessage:f,sendLogEntry:N,setupHotReloading:k}}},bt={};function X(L){var r=bt[L];if(r!==void 0)return r.exports;var n=bt[L]={exports:{}};return $t[L](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(L){if(typeof window=="object")return window}}()})(),function(){X.o=function(L,r){return Object.prototype.hasOwnProperty.call(L,r)}}();var In={};(function(){"use strict";X(32321),X(64777),X(65884),X(56564),X(68981),X(27699),X(22905),X(96311),X(61292),X(75419),X(67638),X(7601),X(89010),X(5401),X(75836),X(33901),X(85803),X(7216),X(50584),X(26632),X(25972),X(55222),X(14064),X(68616),X(45168),X(26088),X(92654),X(58423),X(26017),X(37808),X(2509),X(2124),X(38196),X(7731),X(56913),X(48704),X(24077),X(60230),X(43430),X(53407),X(69220),X(72978),X(55784),X(41365),X(58874),X(85806),X(3521),X(94961),X(91777),X(49615),X(70700),X(31032),X(83329),X(15700),X(85783),X(51430),X(10944),X(36418),X(68872),X(93105),X(1795),X(11121),X(18730),X(11624),X(89004),X(72680),X(75213),X(4347),X(86433),X(21401),X(54468),X(36183),X(95499),X(50929),X(91447),X(84314),X(48211),X(52237),X(306),X(22509),X(84660),X(82678),X(76585),X(21733),X(21210),X(10272),X(83403),X(4229),X(53388),X(53121),X(53822),X(2514),X(2218),X(14955),X(79220),X(81941),X(37245),X(8373),X(81212),X(26054),X(57745),X(49611),X(98344),X(55750),X(7340),X(63429),X(9558),X(2420),X(19015),X(34137),X(24705),X(55318),X(49456),X(12217),X(75795),X(79063),X(1210),X(91370),X(17327),X(2679),X(60733),X(27262),X(47278),X(22547),X(92992),X(64650),X(71255),X(97836),X(65558),X(83932),X(72941),X(57918),X(2394),X(37517),X(65699),X(11360),X(33683),X(16792),X(8),X(76015),X(57318),X(33177),X(1429),X(56515),X(30343),X(60981),X(96578),X(59592),X(54511),X(84368),X(76980),X(25492),X(13684),X(79646),X(98511),X(30733),X(58683),X(70277),X(36865),X(13763),X(56001),X(58713),X(41960),X(31772),X(43059),X(97363),X(99755),X(33278),X(65331),X(25855),X(97372),X(70088),X(7284),X(76464),X(58549),X(42774),X(65446),X(21066),X(62243),X(35249),X(68739),X(5723),X(40353),X(87975),X(20812),X(5640),X(47736),X(81944),X(68685),X(72214),X(48774),X(2915),X(17165),X(10702),X(76622),X(64408),X(22306),X(90334),X(69880),X(37167),X(25109),X(367),X(8459),X(16970),X(11386)})(),function(){"use strict";var L=X(28823);X(47468),X(52355),X(66309),X(74395),X(86879),X(66782),X(35116),X(47968),X(67041),X(59719),X(14045),X(81912),X(53152),X(72694);var r=X(60031),n=X(87454),e=X(39891),a=X(85955),t=X(64960),o=X(79143),f=X(33053),N;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(N=window.performance)==null||(N=N.timing)==null?void 0:N.navigationStart),r.perf.mark("init");var k=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var p=X(76521),i=p.getRoutedComponent,c=i(k);return(0,I.createComponentVNode)(2,o.StoreProvider,{store:k,children:(0,I.createComponentVNode)(2,c)})}),y=function p(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),k.subscribe(S),Byond.subscribe(function(i,c){return k.dispatch({type:i,payload:c})})};y()}()})();})(); + */r.perf.mark("inception",(N=window.performance)==null||(N=N.timing)==null?void 0:N.navigationStart),r.perf.mark("init");var k=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var p=X(76521),i=p.getRoutedComponent,c=i(k);return(0,L.createComponentVNode)(2,o.StoreProvider,{store:k,children:(0,L.createComponentVNode)(2,c)})}),y=function p(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),k.subscribe(S),Byond.subscribe(function(i,c){return k.dispatch({type:i,payload:c})})};y()}()})();})();