From bd1d79aebfa7bc174932262c1e2857f6da506463 Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Sun, 11 Aug 2024 12:22:54 -0700 Subject: [PATCH] Add recipe macro recording to reagent dispenser (#16173) * Add recipe macro recording to reagent dispenser * Switch to a Record type --- .../machinery/dispenser/dispenser2.dm | 108 ++++++++++-- .../ChemDispenser/ChemDispenserBeaker.tsx | 25 ++- .../ChemDispenser/ChemDispenserChemicals.tsx | 31 +++- .../ChemDispenser/ChemDispenserRecipes.tsx | 92 ++++++++++ .../ChemDispenser/ChemDispenserSettings.tsx | 2 +- .../tgui/interfaces/ChemDispenser/index.tsx | 35 +++- .../tgui/interfaces/ChemDispenser/types.ts | 7 + tgui/public/tgui.bundle.js | 162 +++++++++--------- 8 files changed, 356 insertions(+), 106 deletions(-) create mode 100644 tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserRecipes.tsx diff --git a/code/modules/reagents/machinery/dispenser/dispenser2.dm b/code/modules/reagents/machinery/dispenser/dispenser2.dm index de86ae00937..aeafc256a1c 100644 --- a/code/modules/reagents/machinery/dispenser/dispenser2.dm +++ b/code/modules/reagents/machinery/dispenser/dispenser2.dm @@ -21,6 +21,11 @@ anchored = TRUE unacidable = TRUE + /// Records the reagents dispensed by the user if this list is not null + var/list/recording_recipe + /// Saves all the recipes recorded by the machine + var/list/saved_recipes = list() + /obj/machinery/chemical_dispenser/Initialize() . = ..() if(spawn_cartridges) @@ -167,25 +172,38 @@ var/obj/item/weapon/reagent_containers/chem_disp_cartridge/C = cartridges[label] chemicals.Add(list(list("name" = label, "id" = label, "volume" = C.reagents.total_volume))) // list in a list because Byond merges the first list... data["chemicals"] = chemicals + + data["recipes"] = saved_recipes + data["recordingRecipe"] = recording_recipe return data -/obj/machinery/chemical_dispenser/tgui_act(action, params) - if(..()) - return TRUE +/obj/machinery/chemical_dispenser/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state) + . = ..() + if(.) + return + if(stat & BROKEN) + return FALSE + + add_fingerprint(ui.user) - . = TRUE switch(action) if("amount") amount = clamp(round(text2num(params["amount"]), 1), 0, 120) // round to nearest 1 and clamp 0 - 120 + . = TRUE + if("dispense") var/label = params["reagent"] - if(cartridges[label] && container && container.is_open_container()) + if(recording_recipe) + recording_recipe += list(list("id" = label, "amount" = amount)) + else if(cartridges[label] && container && container.is_open_container()) var/obj/item/weapon/reagent_containers/chem_disp_cartridge/C = cartridges[label] playsound(src, 'sound/machines/reagent_dispense.ogg', 25, 1) C.reagents.trans_to(container, amount) + . = TRUE + if("remove") var/amount = text2num(params["amount"]) - if(!container || !amount) + if(!container || !amount || recording_recipe) return var/datum/reagents/R = container.reagents var/id = params["reagent"] @@ -193,18 +211,82 @@ R.remove_reagent(id, amount) else if(amount == -1) // Isolate R.isolate_reagent(id) + . = TRUE + if("ejectBeaker") if(container) container.forceMove(get_turf(src)) - - if(Adjacent(usr)) // So the AI doesn't get a beaker somehow. - usr.put_in_hands(container) - + if(Adjacent(ui.user)) // So the AI doesn't get a beaker somehow. + ui.user.put_in_hands(container) container = null - else - return FALSE + . = TRUE + + if("record_recipe") + recording_recipe = list() + . = TRUE + + if("cancel_recording") + recording_recipe = null + . = TRUE + + if("clear_recipes") + if(tgui_alert(ui.user, "Clear all recipes?", "Clear?", list("No", "Yes")) == "Yes") + saved_recipes = list() + . = TRUE + + if("save_recording") + var/name = tgui_input_text(ui.user, "What do you want to name this recipe?", "Recipe Name?", "Recipe Name", MAX_NAME_LEN) + if(tgui_status(ui.user, state) != STATUS_INTERACTIVE) + return + if(saved_recipes[name] && tgui_alert(ui.user, "\"[name]\" already exists, do you want to overwrite it?",, list("No", "Yes")) != "Yes") + return + if(name && recording_recipe) + for(var/list/L in recording_recipe) + var/label = L["id"] + // Verify this dispenser can dispense every chemical + if(!cartridges[label]) + visible_message(span_warning("[src] buzzes."), span_warning("You hear a faint buzz.")) + to_chat(ui.user, span_warning("[src] cannot find [label]!")) + playsound(src, 'sound/machines/buzz-two.ogg', 50, TRUE) + return + saved_recipes[name] = recording_recipe + recording_recipe = null + . = TRUE + + if("dispense_recipe") + var/list/chemicals_to_dispense = saved_recipes[params["recipe"]] + if(!LAZYLEN(chemicals_to_dispense)) + return + + if(!recording_recipe) + if(!container) + to_chat(ui.user, span_warning("There is no beaker in [src].")) + return + + for(var/list/L in chemicals_to_dispense) + var/label = L["id"] + var/dispense_amount = L["amount"] + + var/obj/item/weapon/reagent_containers/chem_disp_cartridge/C = cartridges[label] + if(!C) + visible_message(span_warning("[src] buzzes."), span_warning("You hear a faint buzz.")) + to_chat(ui.user, span_warning("[src] cannot find [label]!")) + playsound(src, 'sound/machines/buzz-two.ogg', 50, TRUE) + break + + // Allows copying recipes + playsound(src, 'sound/machines/reagent_dispense.ogg', 25, 1) + var/amount_actually_dispensed = C.reagents.trans_to(container, dispense_amount) + if(dispense_amount != amount_actually_dispensed) + visible_message(span_warning("[src] buzzes."), span_warning("You hear a faint buzz.")) + to_chat(ui.user, span_warning("[src] was only able to dispense [amount_actually_dispensed]u out of [dispense_amount]u requested of [label]!")) + playsound(src, 'sound/machines/buzz-two.ogg', 50, TRUE) + break + else + recording_recipe += chemicals_to_dispense + + . = TRUE - add_fingerprint(usr) /obj/machinery/chemical_dispenser/attack_ghost(mob/user) if(stat & BROKEN) diff --git a/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserBeaker.tsx b/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserBeaker.tsx index ba770e11fe9..f58e6b67421 100644 --- a/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserBeaker.tsx +++ b/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserBeaker.tsx @@ -11,12 +11,24 @@ export const ChemDispenserBeaker = (props) => { beakerCurrentVolume, beakerMaxVolume, beakerContents = [], + recipes, + recordingRecipe, } = data; + + const recording = !!recordingRecipe; + const recordedContents = + recording && + recordingRecipe.map((r) => ({ + id: r.id, + name: r.id.replace(/_/, ' '), + volume: r.amount, + })); + return (
{!!isBeakerLoaded && ( @@ -35,12 +47,13 @@ export const ChemDispenserBeaker = (props) => { } > ( <> ))} + )} + {recording && ( + + )} + {recording && ( + + )} + {!recording && ( + act('clear_recipes')} + > + Clear All + + )} + + } + > + {recording && ( + <> + + Recording In Progress... + + + Press dispenser buttons in the order you wish for them to be + repeated, then click{' '} + + Save + + . + + + Alternatively, if you mess up the recipe and want to discard this + recording, click{' '} + + Discard + + . + + + )} + {recipeData.length + ? recipeData.map((recipe) => ( + + )) + : 'No Recipes.'} +
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserSettings.tsx b/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserSettings.tsx index 2a55775822c..59018c8e840 100644 --- a/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserSettings.tsx +++ b/tgui/packages/tgui/interfaces/ChemDispenser/ChemDispenserSettings.tsx @@ -7,7 +7,7 @@ export const ChemDispenserSettings = (props) => { const { act, data } = useBackend(); const { amount } = data; return ( -
+
{dispenseAmounts.map((a, i) => ( diff --git a/tgui/packages/tgui/interfaces/ChemDispenser/index.tsx b/tgui/packages/tgui/interfaces/ChemDispenser/index.tsx index 9e47296c17f..04c9a228430 100644 --- a/tgui/packages/tgui/interfaces/ChemDispenser/index.tsx +++ b/tgui/packages/tgui/interfaces/ChemDispenser/index.tsx @@ -1,15 +1,40 @@ +import { useBackend } from '../../backend'; +import { Stack } from '../../components'; import { Window } from '../../layouts'; import { ChemDispenserBeaker } from './ChemDispenserBeaker'; import { ChemDispenserChemicals } from './ChemDispenserChemicals'; +import { ChemDispenserRecipes } from './ChemDispenserRecipes'; import { ChemDispenserSettings } from './ChemDispenserSettings'; +import { Data } from './types'; export const ChemDispenser = (props) => { + const { data } = useBackend(); + return ( - - - - - + + + + + + + + + + + + + + + + + + + + + + + + ); diff --git a/tgui/packages/tgui/interfaces/ChemDispenser/types.ts b/tgui/packages/tgui/interfaces/ChemDispenser/types.ts index f558816663e..62910f83b37 100644 --- a/tgui/packages/tgui/interfaces/ChemDispenser/types.ts +++ b/tgui/packages/tgui/interfaces/ChemDispenser/types.ts @@ -1,5 +1,10 @@ import { BooleanLike } from 'common/react'; +export type Recipe = { + id: string; + amount: number; +}; + export type Data = { amount: number; isBeakerLoaded: BooleanLike; @@ -8,6 +13,8 @@ export type Data = { beakerCurrentVolume: number | null; beakerMaxVolume: number | null; chemicals: reagent[]; + recipes: Record; + recordingRecipe: Recipe[]; }; type reagent = { name: string; id: string; volume: number }; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 76388f3dfa4..b90b9d9d9a4 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,4 +1,4 @@ -(function(){(function(){var Uu={75614:function(y,h,n){"use strict";/** +(function(){(function(){var Uu={75614:function(O,h,n){"use strict";/** * @license React * react-dom.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function e(d,p){return p!=null&&typeof Symbol!="undefined"&&p[Symbol.hasInstance]?!!p[Symbol.hasInstance](d):d instanceof p}function i(d){"@swc/helpers - typeof";return d&&typeof Symbol!="undefined"&&d.constructor===Symbol?"symbol":typeof d}var t=n(61358),r=n(20686);function s(d){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+d,C=1;Cp}return!1}function O(d,p,C,_,A,N,F){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=_,this.attributeNamespace=A,this.mustUseProperty=C,this.propertyName=d,this.type=p,this.sanitizeURL=N,this.removeEmptyString=F}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){M[d]=new O(d,0,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var p=d[0];M[p]=new O(p,1,!1,d[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){M[d]=new O(d,2,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){M[d]=new O(d,2,!1,d,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(d){M[d]=new O(d,3,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){M[d]=new O(d,3,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){M[d]=new O(d,4,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){M[d]=new O(d,6,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){M[d]=new O(d,5,!1,d.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function D(d){return d[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(d){var p=d.replace(P,D);M[p]=new O(p,1,!1,d,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(d){var p=d.replace(P,D);M[p]=new O(p,1,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var p=d.replace(P,D);M[p]=new O(p,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){M[d]=new O(d,1,!1,d.toLowerCase(),null,!1,!1)}),M.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){M[d]=new O(d,1,!1,d.toLowerCase(),null,!0,!0)});function S(d,p,C,_){var A=M.hasOwnProperty(p)?M[p]:null;(A!==null?A.type!==0:_||!(2re||A[F]!==N[re]){var ue="\n"+A[F].replace(" at new "," at ");return d.displayName&&ue.includes("")&&(ue=ue.replace("",d.displayName)),ue}while(1<=F&&0<=re);break}}}finally{fe=!1,Error.prepareStackTrace=C}return(d=d?d.displayName||d.name:"")?le(d):""}function _e(d){switch(d.tag){case 5:return le(d.type);case 16:return le("Lazy");case 13:return le("Suspense");case 19:return le("SuspenseList");case 0:case 2:case 15:return d=he(d.type,!1),d;case 11:return d=he(d.type.render,!1),d;case 1:return d=he(d.type,!0),d;default:return""}}function xe(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case W:return"Fragment";case U:return"Portal";case k:return"Profiler";case z:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case Y:return(d.displayName||"Context")+".Consumer";case $:return(d._context.displayName||"Context")+".Provider";case G:var p=d.render;return d=d.displayName,d||(d=p.displayName||p.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case q:return p=d.displayName||null,p!==null?p:xe(d.type)||"Memo";case Z:p=d._payload,d=d._init;try{return xe(d(p))}catch(C){}}return null}function je(d){var p=d.type;switch(d.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=p.render,d=d.displayName||d.name||"",p.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(p);case 8:return p===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Re(d){switch(typeof d=="undefined"?"undefined":i(d)){case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function qe(d){var p=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Fe(d){var p=qe(d)?"checked":"value",C=Object.getOwnPropertyDescriptor(d.constructor.prototype,p),_=""+d[p];if(!d.hasOwnProperty(p)&&typeof C!="undefined"&&typeof C.get=="function"&&typeof C.set=="function"){var A=C.get,N=C.set;return Object.defineProperty(d,p,{configurable:!0,get:function(){return A.call(this)},set:function(re){_=""+re,N.call(this,re)}}),Object.defineProperty(d,p,{enumerable:C.enumerable}),{getValue:function(){return _},setValue:function(re){_=""+re},stopTracking:function(){d._valueTracker=null,delete d[p]}}}}function Pe(d){d._valueTracker||(d._valueTracker=Fe(d))}function He(d){if(!d)return!1;var p=d._valueTracker;if(!p)return!0;var C=p.getValue(),_="";return d&&(_=qe(d)?d.checked?"true":"false":d.value),d=_,d!==C?(p.setValue(d),!0):!1}function gn(d){if(d=d||(typeof document!="undefined"?document:void 0),typeof d=="undefined")return null;try{return d.activeElement||d.body}catch(p){return d.body}}function mn(d,p){var C=p.checked;return J({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C!=null?C:d._wrapperState.initialChecked})}function cn(d,p){var C=p.defaultValue==null?"":p.defaultValue,_=p.checked!=null?p.checked:p.defaultChecked;C=Re(p.value!=null?p.value:C),d._wrapperState={initialChecked:_,initialValue:C,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function En(d,p){p=p.checked,p!=null&&S(d,"checked",p,!1)}function hn(d,p){En(d,p);var C=Re(p.value),_=p.type;if(C!=null)_==="number"?(C===0&&d.value===""||d.value!=C)&&(d.value=""+C):d.value!==""+C&&(d.value=""+C);else if(_==="submit"||_==="reset"){d.removeAttribute("value");return}p.hasOwnProperty("value")?Se(d,p.type,C):p.hasOwnProperty("defaultValue")&&Se(d,p.type,Re(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(d.defaultChecked=!!p.defaultChecked)}function sn(d,p,C){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var _=p.type;if(!(_!=="submit"&&_!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+d._wrapperState.initialValue,C||p===d.value||(d.value=p),d.defaultValue=p}C=d.name,C!==""&&(d.name=""),d.defaultChecked=!!d._wrapperState.initialChecked,C!==""&&(d.name=C)}function Se(d,p,C){(p!=="number"||gn(d.ownerDocument)!==d)&&(C==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+C&&(d.defaultValue=""+C))}var Ue=Array.isArray;function ye(d,p,C,_){if(d=d.options,p){p={};for(var A=0;A"+p.valueOf().toString()+"",p=_n.firstChild;d.firstChild;)d.removeChild(d.firstChild);for(;p.firstChild;)d.appendChild(p.firstChild)}});function ln(d,p){if(p){var C=d.firstChild;if(C&&C===d.lastChild&&C.nodeType===3){C.nodeValue=p;return}}d.textContent=p}var ze={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ve=["Webkit","ms","Moz","O"];Object.keys(ze).forEach(function(d){Ve.forEach(function(p){p=p+d.charAt(0).toUpperCase()+d.substring(1),ze[p]=ze[d]})});function vn(d,p,C){return p==null||typeof p=="boolean"||p===""?"":C||typeof p!="number"||p===0||ze.hasOwnProperty(d)&&ze[d]?(""+p).trim():p+"px"}function In(d,p){d=d.style;for(var C in p)if(p.hasOwnProperty(C)){var _=C.indexOf("--")===0,A=vn(C,p[C],_);C==="float"&&(C="cssFloat"),_?d.setProperty(C,A):d[C]=A}}var Tt=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function it(d,p){if(p){if(Tt[d]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(s(137,d));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(s(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(s(61))}if(p.style!=null&&typeof p.style!="object")throw Error(s(62))}}function Ct(d,p){if(d.indexOf("-")===-1)return typeof p.is=="string";switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var et=null;function xt(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var wt=null,Zt=null,dr=null;function Jo(d){if(d=Wo(d)){if(typeof wt!="function")throw Error(s(280));var p=d.stateNode;p&&(p=Ei(p),wt(d.stateNode,d.type,p))}}function qo(d){Zt?dr?dr.push(d):dr=[d]:Zt=d}function ei(){if(Zt){var d=Zt,p=dr;if(dr=Zt=null,Jo(d),p)for(d=0;d>>=0,d===0?32:31-(Wa(d)/wa|0)|0}var mr=64,ii=4194304;function Eo(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function ai(d,p){var C=d.pendingLanes;if(C===0)return 0;var _=0,A=d.suspendedLanes,N=d.pingedLanes,F=C&268435455;if(F!==0){var re=F&~A;re!==0?_=Eo(re):(N&=F,N!==0&&(_=Eo(N)))}else F=C&~A,F!==0?_=Eo(F):N!==0&&(_=Eo(N));if(_===0)return 0;if(p!==0&&p!==_&&!(p&A)&&(A=_&-_,N=p&-p,A>=N||A===16&&(N&4194240)!==0))return p;if(_&4&&(_|=C&16),p=d.entangledLanes,p!==0)for(d=d.entanglements,p&=_;0C;C++)p.push(d);return p}function Co(d,p,C){d.pendingLanes|=p,p!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,p=31-Rt(p),d[p]=C}function nl(d,p){var C=d.pendingLanes&~p;d.pendingLanes=p,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=p,d.mutableReadLanes&=p,d.entangledLanes&=p,p=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0=So),ns=" ",vl=!1;function ta(d,p){switch(d){case"keyup":return na.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ra(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Yr=!1;function xl(d,p){switch(d){case"compositionend":return ra(p);case"keypress":return p.which!==32?null:(vl=!0,ns);case"textInput":return d=p.data,d===ns&&vl?null:d;default:return null}}function mi(d,p){if(Yr)return d==="compositionend"||!Hr&&ta(d,p)?(d=Ya(),di=Jt=Mt=null,Yr=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:C,offset:p-d};d=_}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=la(C)}}function ls(d,p){return d&&p?d===p?!0:d&&d.nodeType===3?!1:p&&p.nodeType===3?ls(d,p.parentNode):"contains"in d?d.contains(p):d.compareDocumentPosition?!!(d.compareDocumentPosition(p)&16):!1:!1}function cs(){for(var d=window,p=gn();e(p,d.HTMLIFrameElement);){try{var C=typeof p.contentWindow.location.href=="string"}catch(_){C=!1}if(C)d=p.contentWindow;else break;p=gn(d.document)}return p}function Qr(d){var p=d&&d.nodeName&&d.nodeName.toLowerCase();return p&&(p==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||p==="textarea"||d.contentEditable==="true")}function pl(d){var p=cs(),C=d.focusedElem,_=d.selectionRange;if(p!==C&&C&&C.ownerDocument&&ls(C.ownerDocument.documentElement,C)){if(_!==null&&Qr(C)){if(p=_.start,d=_.end,d===void 0&&(d=p),"selectionStart"in C)C.selectionStart=p,C.selectionEnd=Math.min(d,C.value.length);else if(d=(p=C.ownerDocument||document)&&p.defaultView||window,d.getSelection){d=d.getSelection();var A=C.textContent.length,N=Math.min(_.start,A);_=_.end===void 0?N:Math.min(_.end,A),!d.extend&&N>_&&(A=_,_=N,N=A),A=ss(C,N);var F=ss(C,_);A&&F&&(d.rangeCount!==1||d.anchorNode!==A.node||d.anchorOffset!==A.offset||d.focusNode!==F.node||d.focusOffset!==F.offset)&&(p=p.createRange(),p.setStart(A.node,A.offset),d.removeAllRanges(),N>_?(d.addRange(p),d.extend(F.node,F.offset)):(p.setEnd(F.node,F.offset),d.addRange(p)))}}for(p=[],d=C;d=d.parentNode;)d.nodeType===1&&p.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C=document.documentMode,Lt=null,Ro=null,Ar=null,ca=!1;function us(d,p,C){var _=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;ca||Lt==null||Lt!==gn(_)||(_=Lt,"selectionStart"in _&&Qr(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Ar&&er(Ar,_)||(Ar=_,_=gi(Ro,"onSelect"),0<_.length&&(p=new $i("onSelect","select",null,p,C),d.push({event:p,listeners:_}),p.target=Lt)))}function ua(d,p){var C={};return C[d.toLowerCase()]=p.toLowerCase(),C["Webkit"+d]="webkit"+p,C["Moz"+d]="moz"+p,C}var Rr={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionend:ua("Transition","TransitionEnd")},ds={},El={};c&&(El=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function Zr(d){if(ds[d])return ds[d];if(!Rr[d])return d;var p=Rr[d],C;for(C in p)if(p.hasOwnProperty(C)&&C in El)return ds[d]=p[C];return d}var Cl=Zr("animationend"),yl=Zr("animationiteration"),Ol=Zr("animationstart"),Ml=Zr("transitionend"),xi=new Map,fs="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ut(d,p){xi.set(d,p),u(p,[d])}for(var da=0;daLr||(d.current=Ea[Lr],Ea[Lr]=null,Lr--)}function Sn(d,p){Lr++,Ea[Lr]=d.current,d.current=p}var Gt={},Zn=Vt(Gt),at=Vt(!1),Ur=Gt;function no(d,p){var C=d.type.contextTypes;if(!C)return Gt;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===p)return _.__reactInternalMemoizedMaskedChildContext;var A={},N;for(N in C)A[N]=p[N];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=p,d.__reactInternalMemoizedMaskedChildContext=A),A}function ht(d){return d=d.childContextTypes,d!=null}function Ci(){An(at),An(Zn)}function Ca(d,p,C){if(Zn.current!==Gt)throw Error(s(168));Sn(Zn,p),Sn(at,C)}function wo(d,p,C){var _=d.stateNode;if(p=p.childContextTypes,typeof _.getChildContext!="function")return C;_=_.getChildContext();for(var A in _)if(!(A in p))throw Error(s(108,je(d)||"Unknown",A));return J({},C,_)}function yi(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Gt,Ur=Zn.current,Sn(Zn,d),Sn(at,at.current),!0}function to(d,p,C){var _=d.stateNode;if(!_)throw Error(s(169));C?(d=wo(d,p,Ur),_.__reactInternalMemoizedMergedChildContext=d,An(at),An(Zn),Sn(Zn,d)):An(at),Sn(at,C)}var rr=null,ya=!1,Oi=!1;function Mi(d){rr===null?rr=[d]:rr.push(d)}function Dl(d){ya=!0,Mi(d)}function yr(){if(!Oi&&rr!==null){Oi=!0;var d=0,p=Dn;try{var C=rr;for(Dn=1;d>=F,A-=F,or=1<<32-Rt(p)+A|C<xn?(ot=fn,fn=null):ot=fn.sibling;var Pn=De(me,fn,ge[xn],Ne);if(Pn===null){fn===null&&(fn=ot);break}d&&fn&&Pn.alternate===null&&p(me,fn),de=N(Pn,de,xn),dn===null?rn=Pn:dn.sibling=Pn,dn=Pn,fn=ot}if(xn===ge.length)return C(me,fn),Nn&&Ir(me,xn),rn;if(fn===null){for(;xnxn?(ot=fn,fn=null):ot=fn.sibling;var mo=De(me,fn,Pn.value,Ne);if(mo===null){fn===null&&(fn=ot);break}d&&fn&&mo.alternate===null&&p(me,fn),de=N(mo,de,xn),dn===null?rn=mo:dn.sibling=mo,dn=mo,fn=ot}if(Pn.done)return C(me,fn),Nn&&Ir(me,xn),rn;if(fn===null){for(;!Pn.done;xn++,Pn=ge.next())Pn=be(me,Pn.value,Ne),Pn!==null&&(de=N(Pn,de,xn),dn===null?rn=Pn:dn.sibling=Pn,dn=Pn);return Nn&&Ir(me,xn),rn}for(fn=_(me,fn);!Pn.done;xn++,Pn=ge.next())Pn=Ge(fn,me,xn,Pn.value,Ne),Pn!==null&&(d&&Pn.alternate!==null&&fn.delete(Pn.key===null?xn:Pn.key),de=N(Pn,de,xn),dn===null?rn=Pn:dn.sibling=Pn,dn=Pn);return d&&fn.forEach(function(vd){return p(me,vd)}),Nn&&Ir(me,xn),rn}function Vn(me,de,ge,Ne){if(typeof ge=="object"&&ge!==null&&ge.type===W&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case T:e:{for(var rn=ge.key,dn=de;dn!==null;){if(dn.key===rn){if(rn=ge.type,rn===W){if(dn.tag===7){C(me,dn.sibling),de=A(dn,ge.props.children),de.return=me,me=de;break e}}else if(dn.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===Z&&ie(rn)===dn.type){C(me,dn.sibling),de=A(dn,ge.props),de.ref=w(me,dn,ge),de.return=me,me=de;break e}C(me,dn);break}else p(me,dn);dn=dn.sibling}ge.type===W?(de=Zo(ge.props.children,me.mode,Ne,ge.key),de.return=me,me=de):(Ne=Ws(ge.type,ge.key,ge.props,null,me.mode,Ne),Ne.ref=w(me,de,ge),Ne.return=me,me=Ne)}return F(me);case U:e:{for(dn=ge.key;de!==null;){if(de.key===dn)if(de.tag===4&&de.stateNode.containerInfo===ge.containerInfo&&de.stateNode.implementation===ge.implementation){C(me,de.sibling),de=A(de,ge.children||[]),de.return=me,me=de;break e}else{C(me,de);break}else p(me,de);de=de.sibling}de=lc(ge,me.mode,Ne),de.return=me,me=de}return F(me);case Z:return dn=ge._init,Vn(me,de,dn(ge._payload),Ne)}if(Ue(ge))return Je(me,de,ge,Ne);if(V(ge))return nn(me,de,ge,Ne);Q(me,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,de!==null&&de.tag===6?(C(me,de.sibling),de=A(de,ge),de.return=me,me=de):(C(me,de),de=sc(ge,me.mode,Ne),de.return=me,me=de),F(me)):C(me,de)}return Vn}var te=se(!0),ae=se(!1),pe=Vt(null),Ce=null,ve=null,Me=null;function Ae(){Me=ve=Ce=null}function Ke(d){var p=pe.current;An(pe),d._currentValue=p}function Le(d,p,C){for(;d!==null;){var _=d.alternate;if((d.childLanes&p)!==p?(d.childLanes|=p,_!==null&&(_.childLanes|=p)):_!==null&&(_.childLanes&p)!==p&&(_.childLanes|=p),d===C)break;d=d.return}}function we(d,p){Ce=d,Me=ve=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&p&&(Dt=!0),d.firstContext=null)}function Xe(d){var p=d._currentValue;if(Me!==d)if(d={context:d,memoizedValue:p,next:null},ve===null){if(Ce===null)throw Error(s(308));ve=d,Ce.dependencies={lanes:0,firstContext:d}}else ve=ve.next=d;return p}var Ie=null;function $e(d){Ie===null?Ie=[d]:Ie.push(d)}function en(d,p,C,_){var A=p.interleaved;return A===null?(C.next=C,$e(p)):(C.next=A.next,A.next=C),p.interleaved=C,un(d,_)}function un(d,p){d.lanes|=p;var C=d.alternate;for(C!==null&&(C.lanes|=p),C=d,d=d.return;d!==null;)d.childLanes|=p,C=d.alternate,C!==null&&(C.childLanes|=p),C=d,d=d.return;return C.tag===3?C.stateNode:null}var tn=!1;function jn(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Be(d,p){d=d.updateQueue,p.updateQueue===d&&(p.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects})}function on(d,p){return{eventTime:d,lane:p,tag:0,payload:null,callback:null,next:null}}function an(d,p,C){var _=d.updateQueue;if(_===null)return null;if(_=_.shared,Mn&2){var A=_.pending;return A===null?p.next=p:(p.next=A.next,A.next=p),_.pending=p,un(d,C)}return A=_.interleaved,A===null?(p.next=p,$e(_)):(p.next=A.next,A.next=p),_.interleaved=p,un(d,C)}function Cn(d,p,C){if(p=p.updateQueue,p!==null&&(p=p.shared,(C&4194240)!==0)){var _=p.lanes;_&=d.pendingLanes,C|=_,p.lanes=C,Ui(d,C)}}function wn(d,p){var C=d.updateQueue,_=d.alternate;if(_!==null&&(_=_.updateQueue,C===_)){var A=null,N=null;if(C=C.firstBaseUpdate,C!==null){do{var F={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};N===null?A=N=F:N=N.next=F,C=C.next}while(C!==null);N===null?A=N=p:N=N.next=p}else A=N=p;C={baseState:_.baseState,firstBaseUpdate:A,lastBaseUpdate:N,shared:_.shared,effects:_.effects},d.updateQueue=C;return}d=C.lastBaseUpdate,d===null?C.firstBaseUpdate=p:d.next=p,C.lastBaseUpdate=p}function nt(d,p,C,_){var A=d.updateQueue;tn=!1;var N=A.firstBaseUpdate,F=A.lastBaseUpdate,re=A.shared.pending;if(re!==null){A.shared.pending=null;var ue=re,Ee=ue.next;ue.next=null,F===null?N=Ee:F.next=Ee,F=ue;var Oe=d.alternate;Oe!==null&&(Oe=Oe.updateQueue,re=Oe.lastBaseUpdate,re!==F&&(re===null?Oe.firstBaseUpdate=Ee:re.next=Ee,Oe.lastBaseUpdate=ue))}if(N!==null){var be=A.baseState;F=0,Oe=Ee=ue=null,re=N;do{var De=re.lane,Ge=re.eventTime;if((_&De)===De){Oe!==null&&(Oe=Oe.next={eventTime:Ge,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var Je=d,nn=re;switch(De=p,Ge=C,nn.tag){case 1:if(Je=nn.payload,typeof Je=="function"){be=Je.call(Ge,be,De);break e}be=Je;break e;case 3:Je.flags=Je.flags&-65537|128;case 0:if(Je=nn.payload,De=typeof Je=="function"?Je.call(Ge,be,De):Je,De==null)break e;be=J({},be,De);break e;case 2:tn=!0}}re.callback!==null&&re.lane!==0&&(d.flags|=64,De=A.effects,De===null?A.effects=[re]:De.push(re))}else Ge={eventTime:Ge,lane:De,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Oe===null?(Ee=Oe=Ge,ue=be):Oe=Oe.next=Ge,F|=De;if(re=re.next,re===null){if(re=A.shared.pending,re===null)break;De=re,re=De.next,De.next=null,A.lastBaseUpdate=De,A.shared.pending=null}}while(!0);if(Oe===null&&(ue=be),A.baseState=ue,A.firstBaseUpdate=Ee,A.lastBaseUpdate=Oe,p=A.shared.interleaved,p!==null){A=p;do F|=A.lane,A=A.next;while(A!==p)}else N===null&&(A.shared.lanes=0);Xo|=F,d.lanes=F,d.memoizedState=be}}function Rn(d,p,C){if(d=p.effects,p.effects=null,d!==null)for(p=0;pC?C:4,d(!0);var _=Fo.transition;Fo.transition={};try{d(!1),p()}finally{Dn=C,Fo.transition=_}}function Wc(){return pt().memoizedState}function Wu(d,p,C){var _=uo(d);if(C={lane:_,action:C,hasEagerState:!1,eagerState:null,next:null},wc(d))zc(p,C);else if(C=en(d,p,C,_),C!==null){var A=Et();ur(C,d,_,A),$c(C,p,_)}}function wu(d,p,C){var _=uo(d),A={lane:_,action:C,hasEagerState:!1,eagerState:null,next:null};if(wc(d))zc(p,A);else{var N=d.alternate;if(d.lanes===0&&(N===null||N.lanes===0)&&(N=p.lastRenderedReducer,N!==null))try{var F=p.lastRenderedState,re=N(F,C);if(A.hasEagerState=!0,A.eagerState=re,ft(re,F)){var ue=p.interleaved;ue===null?(A.next=A,$e(p)):(A.next=ue.next,ue.next=A),p.interleaved=A;return}}catch(Ee){}finally{}C=en(d,p,A,_),C!==null&&(A=Et(),ur(C,d,_,A),$c(C,p,_))}}function wc(d){var p=d.alternate;return d===Ln||p!==null&&p===Ln}function zc(d,p){oo=Vo=!0;var C=d.pending;C===null?p.next=p:(p.next=C.next,C.next=p),d.pending=p}function $c(d,p,C){if(C&4194240){var _=p.lanes;_&=d.pendingLanes,C|=_,p.lanes=C,Ui(d,C)}}var Is={readContext:Xe,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useInsertionEffect:Wn,useLayoutEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useMutableSource:Wn,useSyncExternalStore:Wn,useId:Wn,unstable_isNewReconciler:!1},zu={readContext:Xe,useCallback:function(p,C){return _t().memoizedState=[p,C===void 0?null:C],p},useContext:Xe,useEffect:Tc,useImperativeHandle:function(p,C,_){return _=_!=null?_.concat([p]):null,Os(4194308,4,Bc.bind(null,C,p),_)},useLayoutEffect:function(p,C){return Os(4194308,4,p,C)},useInsertionEffect:function(p,C){return Os(4,2,p,C)},useMemo:function(p,C){var _=_t();return C=C===void 0?null:C,p=p(),_.memoizedState=[p,C],p},useReducer:function(p,C,_){var A=_t();return C=_!==void 0?_(C):C,A.memoizedState=A.baseState=C,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:C},A.queue=p,p=p.dispatch=Wu.bind(null,Ln,p),[A.memoizedState,p]},useRef:function(p){var C=_t();return p={current:p},C.memoizedState=p},useState:Sc,useDebugValue:Bl,useDeferredValue:function(p){return _t().memoizedState=p},useTransition:function(){var p=Sc(!1),C=p[0];return p=Nu.bind(null,p[1]),_t().memoizedState=p,[C,p]},useMutableSource:function(){},useSyncExternalStore:function(p,C,_){var A=Ln,N=_t();if(Nn){if(_===void 0)throw Error(s(407));_=_()}else{if(_=C(),rt===null)throw Error(s(349));wr&30||Mc(A,C,_)}N.memoizedState=_;var F={value:_,getSnapshot:C};return N.queue=F,Tc(Pc.bind(null,A,F,p),[p]),A.flags|=2048,Ma(9,Ic.bind(null,A,F,_,C),void 0,null),_},useId:function(){var p=_t(),C=rt.identifierPrefix;if(Nn){var _=Nt,A=or;_=(A&~(1<<32-Rt(A)-1)).toString(32)+_,C=":"+C+"R"+_,_=Go++,0<_&&(C+="H"+_.toString(32)),C+=":"}else _=Al++,C=":"+C+"r"+_.toString(32)+":";return p.memoizedState=C},unstable_isNewReconciler:!1},$u={readContext:Xe,useCallback:Lc,useContext:Xe,useEffect:Rl,useImperativeHandle:Kc,useInsertionEffect:Ac,useLayoutEffect:Rc,useMemo:Uc,useReducer:Di,useRef:bc,useState:function(){return Di(ao)},useDebugValue:Bl,useDeferredValue:function(p){var C=pt();return Nc(C,Fn.memoizedState,p)},useTransition:function(){var p=Di(ao)[0],C=pt().memoizedState;return[p,C]},useMutableSource:yc,useSyncExternalStore:Oc,useId:Wc,unstable_isNewReconciler:!1},ku={readContext:Xe,useCallback:Lc,useContext:Xe,useEffect:Rl,useImperativeHandle:Kc,useInsertionEffect:Ac,useLayoutEffect:Rc,useMemo:Uc,useReducer:Si,useRef:bc,useState:function(){return Si(ao)},useDebugValue:Bl,useDeferredValue:function(p){var C=pt();return Fn===null?C.memoizedState=p:Nc(C,Fn.memoizedState,p)},useTransition:function(){var p=Si(ao)[0],C=pt().memoizedState;return[p,C]},useMutableSource:yc,useSyncExternalStore:Oc,useId:Wc,unstable_isNewReconciler:!1};function sr(d,p){if(d&&d.defaultProps){p=J({},p),d=d.defaultProps;for(var C in d)p[C]===void 0&&(p[C]=d[C]);return p}return p}function Kl(d,p,C,_){p=d.memoizedState,C=C(_,p),C=C==null?p:J({},p,C),d.memoizedState=C,d.lanes===0&&(d.updateQueue.baseState=C)}var Ps={isMounted:function(p){return(p=p._reactInternals)?hr(p)===p:!1},enqueueSetState:function(p,C,_){p=p._reactInternals;var A=Et(),N=uo(p),F=on(A,N);F.payload=C,_!=null&&(F.callback=_),C=an(p,F,N),C!==null&&(ur(C,p,N,A),Cn(C,p,N))},enqueueReplaceState:function(p,C,_){p=p._reactInternals;var A=Et(),N=uo(p),F=on(A,N);F.tag=1,F.payload=C,_!=null&&(F.callback=_),C=an(p,F,N),C!==null&&(ur(C,p,N,A),Cn(C,p,N))},enqueueForceUpdate:function(p,C){p=p._reactInternals;var _=Et(),A=uo(p),N=on(_,A);N.tag=2,C!=null&&(N.callback=C),C=an(p,N,A),C!==null&&(ur(C,p,A,_),Cn(C,p,A))}};function kc(d,p,C,_,A,N,F){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(_,N,F):p.prototype&&p.prototype.isPureReactComponent?!er(C,_)||!er(A,N):!0}function Fc(d,p,C){var _=!1,A=Gt,N=p.contextType;return typeof N=="object"&&N!==null?N=Xe(N):(A=ht(p)?Ur:Zn.current,_=p.contextTypes,N=(_=_!=null)?no(d,A):Gt),p=new p(C,N),d.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Ps,d.stateNode=p,p._reactInternals=d,_&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=A,d.__reactInternalMemoizedMaskedChildContext=N),p}function Vc(d,p,C,_){d=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(C,_),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(C,_),p.state!==d&&Ps.enqueueReplaceState(p,p.state,null)}function Ll(d,p,C,_){var A=d.stateNode;A.props=C,A.state=d.memoizedState,A.refs={},jn(d);var N=p.contextType;typeof N=="object"&&N!==null?A.context=Xe(N):(N=ht(p)?Ur:Zn.current,A.context=no(d,N)),A.state=d.memoizedState,N=p.getDerivedStateFromProps,typeof N=="function"&&(Kl(d,p,N,C),A.state=d.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(p=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),p!==A.state&&Ps.enqueueReplaceState(A,A.state,null),nt(d,C,A,_),A.state=d.memoizedState),typeof A.componentDidMount=="function"&&(d.flags|=4194308)}function bi(d,p){try{var C="",_=p;do C+=_e(_),_=_.return;while(_);var A=C}catch(N){A="\nError generating stack: "+N.message+"\n"+N.stack}return{value:d,source:p,stack:A,digest:null}}function Ul(d,p,C){return{value:d,source:null,stack:C!=null?C:null,digest:p!=null?p:null}}function Nl(d,p){try{console.error(p.value)}catch(C){setTimeout(function(){throw C})}}var Fu=typeof WeakMap=="function"?WeakMap:Map;function Gc(d,p,C){C=on(-1,C),C.tag=3,C.payload={element:null};var _=p.value;return C.callback=function(){Rs||(Rs=!0,ql=_),Nl(d,p)},C}function Xc(d,p,C){C=on(-1,C),C.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var A=p.value;C.payload=function(){return _(A)},C.callback=function(){Nl(d,p)}}var N=d.stateNode;return N!==null&&typeof N.componentDidCatch=="function"&&(C.callback=function(){Nl(d,p),typeof _!="function"&&(lo===null?lo=new Set([this]):lo.add(this));var F=p.stack;this.componentDidCatch(p.value,{componentStack:F!==null?F:""})}),C}function Hc(d,p,C){var _=d.pingCache;if(_===null){_=d.pingCache=new Fu;var A=new Set;_.set(p,A)}else A=_.get(p),A===void 0&&(A=new Set,_.set(p,A));A.has(C)||(A.add(C),d=od.bind(null,d,p,C),p.then(d,d))}function Yc(d){do{var p;if((p=d.tag===13)&&(p=d.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return d;d=d.return}while(d!==null);return null}function Qc(d,p,C,_,A){return d.mode&1?(d.flags|=65536,d.lanes=A,d):(d===p?d.flags|=65536:(d.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(p=on(-1,1),p.tag=2,an(C,p,1))),C.lanes|=1),d)}var Vu=B.ReactCurrentOwner,Dt=!1;function jt(d,p,C,_){p.child=d===null?ae(p,null,C,_):te(p,d.child,C,_)}function Zc(d,p,C,_,A){C=C.render;var N=p.ref;return we(p,A),_=Pi(d,p,C,_,N,A),C=_i(),d!==null&&!Dt?(p.updateQueue=d.updateQueue,p.flags&=-2053,d.lanes&=~A,zr(d,p,A)):(Nn&&C&&Es(p),p.flags|=1,jt(d,p,_,A),p.child)}function Jc(d,p,C,_,A){if(d===null){var N=C.type;return typeof N=="function"&&!ac(N)&&N.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(p.tag=15,p.type=N,qc(d,p,N,_,A)):(d=Ws(C.type,null,_,p,p.mode,A),d.ref=p.ref,d.return=p,p.child=d)}if(N=d.child,!(d.lanes&A)){var F=N.memoizedProps;if(C=C.compare,C=C!==null?C:er,C(F,_)&&d.ref===p.ref)return zr(d,p,A)}return p.flags|=1,d=ho(N,_),d.ref=p.ref,d.return=p,p.child=d}function qc(d,p,C,_,A){if(d!==null){var N=d.memoizedProps;if(er(N,_)&&d.ref===p.ref)if(Dt=!1,p.pendingProps=_=N,(d.lanes&A)!==0)d.flags&131072&&(Dt=!0);else return p.lanes=d.lanes,zr(d,p,A)}return Wl(d,p,C,_,A)}function eu(d,p,C){var _=p.pendingProps,A=_.children,N=d!==null?d.memoizedState:null;if(_.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sn(Ai,Wt),Wt|=C;else{if(!(C&1073741824))return d=N!==null?N.baseLanes|C:C,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:d,cachePool:null,transitions:null},p.updateQueue=null,Sn(Ai,Wt),Wt|=d,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=N!==null?N.baseLanes:C,Sn(Ai,Wt),Wt|=_}else N!==null?(_=N.baseLanes|C,p.memoizedState=null):_=C,Sn(Ai,Wt),Wt|=_;return jt(d,p,A,C),p.child}function nu(d,p){var C=p.ref;(d===null&&C!==null||d!==null&&d.ref!==C)&&(p.flags|=512,p.flags|=2097152)}function Wl(d,p,C,_,A){var N=ht(C)?Ur:Zn.current;return N=no(p,N),we(p,A),C=Pi(d,p,C,_,N,A),_=_i(),d!==null&&!Dt?(p.updateQueue=d.updateQueue,p.flags&=-2053,d.lanes&=~A,zr(d,p,A)):(Nn&&_&&Es(p),p.flags|=1,jt(d,p,C,A),p.child)}function tu(d,p,C,_,A){if(ht(C)){var N=!0;yi(p)}else N=!1;if(we(p,A),p.stateNode===null)Ds(d,p),Fc(p,C,_),Ll(p,C,_,A),_=!0;else if(d===null){var F=p.stateNode,re=p.memoizedProps;F.props=re;var ue=F.context,Ee=C.contextType;typeof Ee=="object"&&Ee!==null?Ee=Xe(Ee):(Ee=ht(C)?Ur:Zn.current,Ee=no(p,Ee));var Oe=C.getDerivedStateFromProps,be=typeof Oe=="function"||typeof F.getSnapshotBeforeUpdate=="function";be||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(re!==_||ue!==Ee)&&Vc(p,F,_,Ee),tn=!1;var De=p.memoizedState;F.state=De,nt(p,_,F,A),ue=p.memoizedState,re!==_||De!==ue||at.current||tn?(typeof Oe=="function"&&(Kl(p,C,Oe,_),ue=p.memoizedState),(re=tn||kc(p,C,re,_,De,ue,Ee))?(be||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(p.flags|=4194308)):(typeof F.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=_,p.memoizedState=ue),F.props=_,F.state=ue,F.context=Ee,_=re):(typeof F.componentDidMount=="function"&&(p.flags|=4194308),_=!1)}else{F=p.stateNode,Be(d,p),re=p.memoizedProps,Ee=p.type===p.elementType?re:sr(p.type,re),F.props=Ee,be=p.pendingProps,De=F.context,ue=C.contextType,typeof ue=="object"&&ue!==null?ue=Xe(ue):(ue=ht(C)?Ur:Zn.current,ue=no(p,ue));var Ge=C.getDerivedStateFromProps;(Oe=typeof Ge=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(re!==be||De!==ue)&&Vc(p,F,_,ue),tn=!1,De=p.memoizedState,F.state=De,nt(p,_,F,A);var Je=p.memoizedState;re!==be||De!==Je||at.current||tn?(typeof Ge=="function"&&(Kl(p,C,Ge,_),Je=p.memoizedState),(Ee=tn||kc(p,C,Ee,_,De,Je,ue)||!1)?(Oe||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(_,Je,ue),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(_,Je,ue)),typeof F.componentDidUpdate=="function"&&(p.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof F.componentDidUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=1024),p.memoizedProps=_,p.memoizedState=Je),F.props=_,F.state=Je,F.context=ue,_=Ee):(typeof F.componentDidUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=1024),_=!1)}return wl(d,p,C,_,N,A)}function wl(d,p,C,_,A,N){nu(d,p);var F=(p.flags&128)!==0;if(!_&&!F)return A&&to(p,C,!1),zr(d,p,N);_=p.stateNode,Vu.current=p;var re=F&&typeof C.getDerivedStateFromError!="function"?null:_.render();return p.flags|=1,d!==null&&F?(p.child=te(p,d.child,null,N),p.child=te(p,null,re,N)):jt(d,p,re,N),p.memoizedState=_.state,A&&to(p,C,!0),p.child}function ru(d){var p=d.stateNode;p.pendingContext?Ca(d,p.pendingContext,p.pendingContext!==p.context):p.context&&Ca(d,p.context,!1),tt(d,p.containerInfo)}function ou(d,p,C,_,A){return K(),L(A),p.flags|=256,jt(d,p,C,_),p.child}var zl={dehydrated:null,treeContext:null,retryLane:0};function $l(d){return{baseLanes:d,cachePool:null,transitions:null}}function iu(d,p,C){var _=p.pendingProps,A=bn.current,N=!1,F=(p.flags&128)!==0,re;if((re=F)||(re=d!==null&&d.memoizedState===null?!1:(A&2)!==0),re?(N=!0,p.flags&=-129):(d===null||d.memoizedState!==null)&&(A|=1),Sn(bn,A&1),d===null)return ys(p),d=p.memoizedState,d!==null&&(d=d.dehydrated,d!==null)?(p.mode&1?d.data==="$!"?p.lanes=8:p.lanes=1073741824:p.lanes=1,null):(F=_.children,d=_.fallback,N?(_=p.mode,N=p.child,F={mode:"hidden",children:F},!(_&1)&&N!==null?(N.childLanes=0,N.pendingProps=F):N=ws(F,_,0,null),d=Zo(d,_,C,null),N.return=p,d.return=p,N.sibling=d,p.child=N,p.child.memoizedState=$l(C),p.memoizedState=zl,d):kl(p,F));if(A=d.memoizedState,A!==null&&(re=A.dehydrated,re!==null))return Gu(d,p,F,_,re,A,C);if(N){N=_.fallback,F=p.mode,A=d.child,re=A.sibling;var ue={mode:"hidden",children:_.children};return!(F&1)&&p.child!==A?(_=p.child,_.childLanes=0,_.pendingProps=ue,p.deletions=null):(_=ho(A,ue),_.subtreeFlags=A.subtreeFlags&14680064),re!==null?N=ho(re,N):(N=Zo(N,F,C,null),N.flags|=2),N.return=p,_.return=p,_.sibling=N,p.child=_,_=N,N=p.child,F=d.child.memoizedState,F=F===null?$l(C):{baseLanes:F.baseLanes|C,cachePool:null,transitions:F.transitions},N.memoizedState=F,N.childLanes=d.childLanes&~C,p.memoizedState=zl,_}return N=d.child,d=N.sibling,_=ho(N,{mode:"visible",children:_.children}),!(p.mode&1)&&(_.lanes=C),_.return=p,_.sibling=null,d!==null&&(C=p.deletions,C===null?(p.deletions=[d],p.flags|=16):C.push(d)),p.child=_,p.memoizedState=null,_}function kl(d,p){return p=ws({mode:"visible",children:p},d.mode,0,null),p.return=d,d.child=p}function _s(d,p,C,_){return _!==null&&L(_),te(p,d.child,null,C),d=kl(p,p.pendingProps.children),d.flags|=2,p.memoizedState=null,d}function Gu(d,p,C,_,A,N,F){if(C)return p.flags&256?(p.flags&=-257,_=Ul(Error(s(422))),_s(d,p,F,_)):p.memoizedState!==null?(p.child=d.child,p.flags|=128,null):(N=_.fallback,A=p.mode,_=ws({mode:"visible",children:_.children},A,0,null),N=Zo(N,A,F,null),N.flags|=2,_.return=p,N.return=p,_.sibling=N,p.child=_,p.mode&1&&te(p,d.child,null,F),p.child.memoizedState=$l(F),p.memoizedState=zl,N);if(!(p.mode&1))return _s(d,p,F,null);if(A.data==="$!"){if(_=A.nextSibling&&A.nextSibling.dataset,_)var re=_.dgst;return _=re,N=Error(s(419)),_=Ul(N,_,void 0),_s(d,p,F,_)}if(re=(F&d.childLanes)!==0,Dt||re){if(_=rt,_!==null){switch(F&-F){case 4:A=2;break;case 16:A=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:A=32;break;case 536870912:A=268435456;break;default:A=0}A=A&(_.suspendedLanes|F)?0:A,A!==0&&A!==N.retryLane&&(N.retryLane=A,un(d,A),ur(_,d,A,-1))}return ic(),_=Ul(Error(s(421))),_s(d,p,F,_)}return A.data==="$?"?(p.flags|=128,p.child=d.child,p=id.bind(null,d),A._reactRetry=p,null):(d=N.treeContext,Pt=Er(A.nextSibling),lt=p,Nn=!0,Xt=null,d!==null&&(st[gt++]=or,st[gt++]=Nt,st[gt++]=Mr,or=d.id,Nt=d.overflow,Mr=p),p=kl(p,_.children),p.flags|=4096,p)}function au(d,p,C){d.lanes|=p;var _=d.alternate;_!==null&&(_.lanes|=p),Le(d.return,p,C)}function Fl(d,p,C,_,A){var N=d.memoizedState;N===null?d.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:_,tail:C,tailMode:A}:(N.isBackwards=p,N.rendering=null,N.renderingStartTime=0,N.last=_,N.tail=C,N.tailMode=A)}function su(d,p,C){var _=p.pendingProps,A=_.revealOrder,N=_.tail;if(jt(d,p,_.children,C),_=bn.current,_&2)_=_&1|2,p.flags|=128;else{if(d!==null&&d.flags&128)e:for(d=p.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&au(d,C,p);else if(d.tag===19)au(d,C,p);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===p)break e;for(;d.sibling===null;){if(d.return===null||d.return===p)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}_&=1}if(Sn(bn,_),!(p.mode&1))p.memoizedState=null;else switch(A){case"forwards":for(C=p.child,A=null;C!==null;)d=C.alternate,d!==null&&Wr(d)===null&&(A=C),C=C.sibling;C=A,C===null?(A=p.child,p.child=null):(A=C.sibling,C.sibling=null),Fl(p,!1,A,C,N);break;case"backwards":for(C=null,A=p.child,p.child=null;A!==null;){if(d=A.alternate,d!==null&&Wr(d)===null){p.child=A;break}d=A.sibling,A.sibling=C,C=A,A=d}Fl(p,!0,C,null,N);break;case"together":Fl(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function Ds(d,p){!(p.mode&1)&&d!==null&&(d.alternate=null,p.alternate=null,p.flags|=2)}function zr(d,p,C){if(d!==null&&(p.dependencies=d.dependencies),Xo|=p.lanes,!(C&p.childLanes))return null;if(d!==null&&p.child!==d.child)throw Error(s(153));if(p.child!==null){for(d=p.child,C=ho(d,d.pendingProps),p.child=C,C.return=p;d.sibling!==null;)d=d.sibling,C=C.sibling=ho(d,d.pendingProps),C.return=p;C.sibling=null}return p.child}function Xu(d,p,C){switch(p.tag){case 3:ru(p),K();break;case 5:Nr(p);break;case 1:ht(p.type)&&yi(p);break;case 4:tt(p,p.stateNode.containerInfo);break;case 10:var _=p.type._context,A=p.memoizedProps.value;Sn(pe,_._currentValue),_._currentValue=A;break;case 13:if(_=p.memoizedState,_!==null)return _.dehydrated!==null?(Sn(bn,bn.current&1),p.flags|=128,null):C&p.child.childLanes?iu(d,p,C):(Sn(bn,bn.current&1),d=zr(d,p,C),d!==null?d.sibling:null);Sn(bn,bn.current&1);break;case 19:if(_=(C&p.childLanes)!==0,d.flags&128){if(_)return su(d,p,C);p.flags|=128}if(A=p.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Sn(bn,bn.current),_)break;return null;case 22:case 23:return p.lanes=0,eu(d,p,C)}return zr(d,p,C)}var lu,Vl,cu,uu;lu=function(p,C){for(var _=C.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===C)break;for(;_.sibling===null;){if(_.return===null||_.return===C)return;_=_.return}_.sibling.return=_.return,_=_.sibling}},Vl=function(){},cu=function(p,C,_,A){var N=p.memoizedProps;if(N!==A){p=C.stateNode,$n(Gn.current);var F=null;switch(_){case"input":N=mn(p,N),A=mn(p,A),F=[];break;case"select":N=J({},N,{value:void 0}),A=J({},A,{value:void 0}),F=[];break;case"textarea":N=ke(p,N),A=ke(p,A),F=[];break;default:typeof N.onClick!="function"&&typeof A.onClick=="function"&&(p.onclick=Kr)}it(_,A);var re;_=null;for(Oe in N)if(!A.hasOwnProperty(Oe)&&N.hasOwnProperty(Oe)&&N[Oe]!=null)if(Oe==="style"){var ue=N[Oe];for(re in ue)ue.hasOwnProperty(re)&&(_||(_={}),_[re]="")}else Oe!=="dangerouslySetInnerHTML"&&Oe!=="children"&&Oe!=="suppressContentEditableWarning"&&Oe!=="suppressHydrationWarning"&&Oe!=="autoFocus"&&(x.hasOwnProperty(Oe)?F||(F=[]):(F=F||[]).push(Oe,null));for(Oe in A){var Ee=A[Oe];if(ue=N!=null?N[Oe]:void 0,A.hasOwnProperty(Oe)&&Ee!==ue&&(Ee!=null||ue!=null))if(Oe==="style")if(ue){for(re in ue)!ue.hasOwnProperty(re)||Ee&&Ee.hasOwnProperty(re)||(_||(_={}),_[re]="");for(re in Ee)Ee.hasOwnProperty(re)&&ue[re]!==Ee[re]&&(_||(_={}),_[re]=Ee[re])}else _||(F||(F=[]),F.push(Oe,_)),_=Ee;else Oe==="dangerouslySetInnerHTML"?(Ee=Ee?Ee.__html:void 0,ue=ue?ue.__html:void 0,Ee!=null&&ue!==Ee&&(F=F||[]).push(Oe,Ee)):Oe==="children"?typeof Ee!="string"&&typeof Ee!="number"||(F=F||[]).push(Oe,""+Ee):Oe!=="suppressContentEditableWarning"&&Oe!=="suppressHydrationWarning"&&(x.hasOwnProperty(Oe)?(Ee!=null&&Oe==="onScroll"&&Tn("scroll",p),F||ue===Ee||(F=[])):(F=F||[]).push(Oe,Ee))}_&&(F=F||[]).push("style",_);var Oe=F;(C.updateQueue=Oe)&&(C.flags|=4)}},uu=function(p,C,_,A){_!==A&&(C.flags|=4)};function Ia(d,p){if(!Nn)switch(d.tailMode){case"hidden":p=d.tail;for(var C=null;p!==null;)p.alternate!==null&&(C=p),p=p.sibling;C===null?d.tail=null:C.sibling=null;break;case"collapsed":C=d.tail;for(var _=null;C!==null;)C.alternate!==null&&(_=C),C=C.sibling;_===null?p||d.tail===null?d.tail=null:d.tail.sibling=null:_.sibling=null}}function mt(d){var p=d.alternate!==null&&d.alternate.child===d.child,C=0,_=0;if(p)for(var A=d.child;A!==null;)C|=A.lanes|A.childLanes,_|=A.subtreeFlags&14680064,_|=A.flags&14680064,A.return=d,A=A.sibling;else for(A=d.child;A!==null;)C|=A.lanes|A.childLanes,_|=A.subtreeFlags,_|=A.flags,A.return=d,A=A.sibling;return d.subtreeFlags|=_,d.childLanes=C,p}function Hu(d,p,C){var _=p.pendingProps;switch(Cs(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(p),null;case 1:return ht(p.type)&&Ci(),mt(p),null;case 3:return _=p.stateNode,ir(),An(at),An(Zn),ko(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(d===null||d.child===null)&&(I(p)?p.flags|=4:d===null||d.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,Xt!==null&&(tc(Xt),Xt=null))),Vl(d,p),mt(p),null;case 5:Ht(p);var A=$n(Jn.current);if(C=p.type,d!==null&&p.stateNode!=null)cu(d,p,C,_,A),d.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!_){if(p.stateNode===null)throw Error(s(166));return mt(p),null}if(d=$n(Gn.current),I(p)){_=p.stateNode,C=p.type;var N=p.memoizedProps;switch(_[It]=p,_[Uo]=N,d=(p.mode&1)!==0,C){case"dialog":Tn("cancel",_),Tn("close",_);break;case"iframe":case"object":case"embed":Tn("load",_);break;case"video":case"audio":for(A=0;A<\/script>",d=d.removeChild(d.firstChild)):typeof _.is=="string"?d=F.createElement(C,{is:_.is}):(d=F.createElement(C),C==="select"&&(F=d,_.multiple?F.multiple=!0:_.size&&(F.size=_.size))):d=F.createElementNS(d,C),d[It]=p,d[Uo]=_,lu(d,p,!1,!1),p.stateNode=d;e:{switch(F=Ct(C,_),C){case"dialog":Tn("cancel",d),Tn("close",d),A=_;break;case"iframe":case"object":case"embed":Tn("load",d),A=_;break;case"video":case"audio":for(A=0;ARi&&(p.flags|=128,_=!0,Ia(N,!1),p.lanes=4194304)}else{if(!_)if(d=Wr(F),d!==null){if(p.flags|=128,_=!0,C=d.updateQueue,C!==null&&(p.updateQueue=C,p.flags|=4),Ia(N,!0),N.tail===null&&N.tailMode==="hidden"&&!F.alternate&&!Nn)return mt(p),null}else 2*Kn()-N.renderingStartTime>Ri&&C!==1073741824&&(p.flags|=128,_=!0,Ia(N,!1),p.lanes=4194304);N.isBackwards?(F.sibling=p.child,p.child=F):(C=N.last,C!==null?C.sibling=F:p.child=F,N.last=F)}return N.tail!==null?(p=N.tail,N.rendering=p,N.tail=p.sibling,N.renderingStartTime=Kn(),p.sibling=null,C=bn.current,Sn(bn,_?C&1|2:C&1),p):(mt(p),null);case 22:case 23:return oc(),_=p.memoizedState!==null,d!==null&&d.memoizedState!==null!==_&&(p.flags|=8192),_&&p.mode&1?Wt&1073741824&&(mt(p),p.subtreeFlags&6&&(p.flags|=8192)):mt(p),null;case 24:return null;case 25:return null}throw Error(s(156,p.tag))}function Yu(d,p){switch(Cs(p),p.tag){case 1:return ht(p.type)&&Ci(),d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 3:return ir(),An(at),An(Zn),ko(),d=p.flags,d&65536&&!(d&128)?(p.flags=d&-65537|128,p):null;case 5:return Ht(p),null;case 13:if(An(bn),d=p.memoizedState,d!==null&&d.dehydrated!==null){if(p.alternate===null)throw Error(s(340));K()}return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 19:return An(bn),null;case 4:return ir(),null;case 10:return Ke(p.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var Ss=!1,vt=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Ti(d,p){var C=d.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(_){kn(d,p,_)}else C.current=null}function Gl(d,p,C){try{C()}catch(_){kn(d,p,_)}}var du=!1;function Zu(d,p){if(va=zi,d=cs(),Qr(d)){if("selectionStart"in d)var C={start:d.selectionStart,end:d.selectionEnd};else e:{C=(C=d.ownerDocument)&&C.defaultView||window;var _=C.getSelection&&C.getSelection();if(_&&_.rangeCount!==0){C=_.anchorNode;var A=_.anchorOffset,N=_.focusNode;_=_.focusOffset;try{C.nodeType,N.nodeType}catch(Ne){C=null;break e}var F=0,re=-1,ue=-1,Ee=0,Oe=0,be=d,De=null;n:for(;;){for(var Ge;be!==C||A!==0&&be.nodeType!==3||(re=F+A),be!==N||_!==0&&be.nodeType!==3||(ue=F+_),be.nodeType===3&&(F+=be.nodeValue.length),(Ge=be.firstChild)!==null;)De=be,be=Ge;for(;;){if(be===d)break n;if(De===C&&++Ee===A&&(re=F),De===N&&++Oe===_&&(ue=F),(Ge=be.nextSibling)!==null)break;be=De,De=be.parentNode}be=Ge}C=re===-1||ue===-1?null:{start:re,end:ue}}else C=null}C=C||{start:0,end:0}}else C=null;for(xa={focusedElem:d,selectionRange:C},zi=!1,Qe=p;Qe!==null;)if(p=Qe,d=p.child,(p.subtreeFlags&1028)!==0&&d!==null)d.return=p,Qe=d;else for(;Qe!==null;){p=Qe;try{var Je=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(Je!==null){var nn=Je.memoizedProps,Vn=Je.memoizedState,me=p.stateNode,de=me.getSnapshotBeforeUpdate(p.elementType===p.type?nn:sr(p.type,nn),Vn);me.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var ge=p.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Ne){kn(p,p.return,Ne)}if(d=p.sibling,d!==null){d.return=p.return,Qe=d;break}Qe=p.return}return Je=du,du=!1,Je}function Pa(d,p,C){var _=p.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var A=_=_.next;do{if((A.tag&d)===d){var N=A.destroy;A.destroy=void 0,N!==void 0&&Gl(p,C,N)}A=A.next}while(A!==_)}}function bs(d,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var C=p=p.next;do{if((C.tag&d)===d){var _=C.create;C.destroy=_()}C=C.next}while(C!==p)}}function Xl(d){var p=d.ref;if(p!==null){var C=d.stateNode;switch(d.tag){case 5:d=C;break;default:d=C}typeof p=="function"?p(d):p.current=d}}function fu(d){var p=d.alternate;p!==null&&(d.alternate=null,fu(p)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(p=d.stateNode,p!==null&&(delete p[It],delete p[Uo],delete p[No],delete p[Pl],delete p[_l])),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}function hu(d){return d.tag===5||d.tag===3||d.tag===4}function mu(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||hu(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function Hl(d,p,C){var _=d.tag;if(_===5||_===6)d=d.stateNode,p?C.nodeType===8?C.parentNode.insertBefore(d,p):C.insertBefore(d,p):(C.nodeType===8?(p=C.parentNode,p.insertBefore(d,C)):(p=C,p.appendChild(d)),C=C._reactRootContainer,C!=null||p.onclick!==null||(p.onclick=Kr));else if(_!==4&&(d=d.child,d!==null))for(Hl(d,p,C),d=d.sibling;d!==null;)Hl(d,p,C),d=d.sibling}function Yl(d,p,C){var _=d.tag;if(_===5||_===6)d=d.stateNode,p?C.insertBefore(d,p):C.appendChild(d);else if(_!==4&&(d=d.child,d!==null))for(Yl(d,p,C),d=d.sibling;d!==null;)Yl(d,p,C),d=d.sibling}var ct=null,lr=!1;function so(d,p,C){for(C=C.child;C!==null;)vu(d,p,C),C=C.sibling}function vu(d,p,C){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(oi,C)}catch(re){}switch(C.tag){case 5:vt||Ti(C,p);case 6:var _=ct,A=lr;ct=null,so(d,p,C),ct=_,lr=A,ct!==null&&(lr?(d=ct,C=C.stateNode,d.nodeType===8?d.parentNode.removeChild(C):d.removeChild(C)):ct.removeChild(C.stateNode));break;case 18:ct!==null&&(lr?(d=ct,C=C.stateNode,d.nodeType===8?Lo(d.parentNode,C):d.nodeType===1&&Lo(d,C),Io(d)):Lo(ct,C.stateNode));break;case 4:_=ct,A=lr,ct=C.stateNode.containerInfo,lr=!0,so(d,p,C),ct=_,lr=A;break;case 0:case 11:case 14:case 15:if(!vt&&(_=C.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){A=_=_.next;do{var N=A,F=N.destroy;N=N.tag,F!==void 0&&(N&2||N&4)&&Gl(C,p,F),A=A.next}while(A!==_)}so(d,p,C);break;case 1:if(!vt&&(Ti(C,p),_=C.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=C.memoizedProps,_.state=C.memoizedState,_.componentWillUnmount()}catch(re){kn(C,p,re)}so(d,p,C);break;case 21:so(d,p,C);break;case 22:C.mode&1?(vt=(_=vt)||C.memoizedState!==null,so(d,p,C),vt=_):so(d,p,C);break;default:so(d,p,C)}}function xu(d){var p=d.updateQueue;if(p!==null){d.updateQueue=null;var C=d.stateNode;C===null&&(C=d.stateNode=new Qu),p.forEach(function(_){var A=ad.bind(null,d,_);C.has(_)||(C.add(_),_.then(A,A))})}}function cr(d,p){var C=p.deletions;if(C!==null)for(var _=0;_A&&(A=F),_&=~N}if(_=A,_=Kn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*qu(_/1960))-_,10<_){d.timeoutHandle=pa(Qo.bind(null,d,St,$r),_);break}Qo(d,St,$r);break;case 5:Qo(d,St,$r);break;default:throw Error(s(329))}}}return bt(d,Kn()),d.callbackNode===C?yu.bind(null,d):null}function nc(d,p){var C=Da;return d.current.memoizedState.isDehydrated&&(Yo(d,p).flags|=256),d=Ns(d,p),d!==2&&(p=St,St=C,p!==null&&tc(p)),d}function tc(d){St===null?St=d:St.push.apply(St,d)}function ed(d){for(var p=d;;){if(p.flags&16384){var C=p.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var _=0;_d?16:d,co===null)var _=!1;else{if(d=co,co=null,Ks=0,Mn&6)throw Error(s(331));var A=Mn;for(Mn|=4,Qe=d.current;Qe!==null;){var N=Qe,F=N.child;if(Qe.flags&16){var re=N.deletions;if(re!==null){for(var ue=0;ueKn()-Jl?Yo(d,0):Zl|=C),bt(d,p)}function Su(d,p){p===0&&(d.mode&1?(p=ii,ii<<=1,!(ii&130023424)&&(ii=4194304)):p=1);var C=Et();d=un(d,p),d!==null&&(Co(d,p,C),bt(d,C))}function id(d){var p=d.memoizedState,C=0;p!==null&&(C=p.retryLane),Su(d,C)}function ad(d,p){var C=0;switch(d.tag){case 13:var _=d.stateNode,A=d.memoizedState;A!==null&&(C=A.retryLane);break;case 19:_=d.stateNode;break;default:throw Error(s(314))}_!==null&&_.delete(p),Su(d,C)}var bu;bu=function(p,C,_){if(p!==null)if(p.memoizedProps!==C.pendingProps||at.current)Dt=!0;else{if(!(p.lanes&_)&&!(C.flags&128))return Dt=!1,Xu(p,C,_);Dt=!!(p.flags&131072)}else Dt=!1,Nn&&C.flags&1048576&&js(C,Oa,C.index);switch(C.lanes=0,C.tag){case 2:var A=C.type;Ds(p,C),p=C.pendingProps;var N=no(C,Zn.current);we(C,_),N=Pi(null,C,A,p,N,_);var F=_i();return C.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(C.tag=1,C.memoizedState=null,C.updateQueue=null,ht(A)?(F=!0,yi(C)):F=!1,C.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,jn(C),N.updater=Ps,C.stateNode=N,N._reactInternals=C,Ll(C,A,p,_),C=wl(null,C,A,!0,F,_)):(C.tag=0,Nn&&F&&Es(C),jt(null,C,N,_),C=C.child),C;case 16:A=C.elementType;e:{switch(Ds(p,C),p=C.pendingProps,N=A._init,A=N(A._payload),C.type=A,N=C.tag=ld(A),p=sr(A,p),N){case 0:C=Wl(null,C,A,p,_);break e;case 1:C=tu(null,C,A,p,_);break e;case 11:C=Zc(null,C,A,p,_);break e;case 14:C=Jc(null,C,A,sr(A.type,p),_);break e}throw Error(s(306,A,""))}return C;case 0:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),Wl(p,C,A,N,_);case 1:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),tu(p,C,A,N,_);case 3:e:{if(ru(C),p===null)throw Error(s(387));A=C.pendingProps,F=C.memoizedState,N=F.element,Be(p,C),nt(C,A,null,_);var re=C.memoizedState;if(A=re.element,F.isDehydrated)if(F={element:A,isDehydrated:!1,cache:re.cache,pendingSuspenseBoundaries:re.pendingSuspenseBoundaries,transitions:re.transitions},C.updateQueue.baseState=F,C.memoizedState=F,C.flags&256){N=bi(Error(s(423)),C),C=ou(p,C,A,_,N);break e}else if(A!==N){N=bi(Error(s(424)),C),C=ou(p,C,A,_,N);break e}else for(Pt=Er(C.stateNode.containerInfo.firstChild),lt=C,Nn=!0,Xt=null,_=ae(C,null,A,_),C.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(K(),A===N){C=zr(p,C,_);break e}jt(p,C,A,_)}C=C.child}return C;case 5:return Nr(C),p===null&&ys(C),A=C.type,N=C.pendingProps,F=p!==null?p.memoizedProps:null,re=N.children,ga(A,N)?re=null:F!==null&&ga(A,F)&&(C.flags|=32),nu(p,C),jt(p,C,re,_),C.child;case 6:return p===null&&ys(C),null;case 13:return iu(p,C,_);case 4:return tt(C,C.stateNode.containerInfo),A=C.pendingProps,p===null?C.child=te(C,null,A,_):jt(p,C,A,_),C.child;case 11:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),Zc(p,C,A,N,_);case 7:return jt(p,C,C.pendingProps,_),C.child;case 8:return jt(p,C,C.pendingProps.children,_),C.child;case 12:return jt(p,C,C.pendingProps.children,_),C.child;case 10:e:{if(A=C.type._context,N=C.pendingProps,F=C.memoizedProps,re=N.value,Sn(pe,A._currentValue),A._currentValue=re,F!==null)if(ft(F.value,re)){if(F.children===N.children&&!at.current){C=zr(p,C,_);break e}}else for(F=C.child,F!==null&&(F.return=C);F!==null;){var ue=F.dependencies;if(ue!==null){re=F.child;for(var Ee=ue.firstContext;Ee!==null;){if(Ee.context===A){if(F.tag===1){Ee=on(-1,_&-_),Ee.tag=2;var Oe=F.updateQueue;if(Oe!==null){Oe=Oe.shared;var be=Oe.pending;be===null?Ee.next=Ee:(Ee.next=be.next,be.next=Ee),Oe.pending=Ee}}F.lanes|=_,Ee=F.alternate,Ee!==null&&(Ee.lanes|=_),Le(F.return,_,C),ue.lanes|=_;break}Ee=Ee.next}}else if(F.tag===10)re=F.type===C.type?null:F.child;else if(F.tag===18){if(re=F.return,re===null)throw Error(s(341));re.lanes|=_,ue=re.alternate,ue!==null&&(ue.lanes|=_),Le(re,_,C),re=F.sibling}else re=F.child;if(re!==null)re.return=F;else for(re=F;re!==null;){if(re===C){re=null;break}if(F=re.sibling,F!==null){F.return=re.return,re=F;break}re=re.return}F=re}jt(p,C,N.children,_),C=C.child}return C;case 9:return N=C.type,A=C.pendingProps.children,we(C,_),N=Xe(N),A=A(N),C.flags|=1,jt(p,C,A,_),C.child;case 14:return A=C.type,N=sr(A,C.pendingProps),N=sr(A.type,N),Jc(p,C,A,N,_);case 15:return qc(p,C,C.type,C.pendingProps,_);case 17:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),Ds(p,C),C.tag=1,ht(A)?(p=!0,yi(C)):p=!1,we(C,_),Fc(C,A,N),Ll(C,A,N,_),wl(null,C,A,!0,p,_);case 19:return su(p,C,_);case 22:return eu(p,C,_)}throw Error(s(156,C.tag))};function Tu(d,p){return Ka(d,p)}function sd(d,p,C,_){this.tag=d,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(d,p,C,_){return new sd(d,p,C,_)}function ac(d){return d=d.prototype,!(!d||!d.isReactComponent)}function ld(d){if(typeof d=="function")return ac(d)?1:0;if(d!=null){if(d=d.$$typeof,d===G)return 11;if(d===q)return 14}return 2}function ho(d,p){var C=d.alternate;return C===null?(C=Qt(d.tag,p,d.key,d.mode),C.elementType=d.elementType,C.type=d.type,C.stateNode=d.stateNode,C.alternate=d,d.alternate=C):(C.pendingProps=p,C.type=d.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=d.flags&14680064,C.childLanes=d.childLanes,C.lanes=d.lanes,C.child=d.child,C.memoizedProps=d.memoizedProps,C.memoizedState=d.memoizedState,C.updateQueue=d.updateQueue,p=d.dependencies,C.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},C.sibling=d.sibling,C.index=d.index,C.ref=d.ref,C}function Ws(d,p,C,_,A,N){var F=2;if(_=d,typeof d=="function")ac(d)&&(F=1);else if(typeof d=="string")F=5;else e:switch(d){case W:return Zo(C.children,A,N,p);case z:F=8,A|=8;break;case k:return d=Qt(12,C,p,A|2),d.elementType=k,d.lanes=N,d;case ne:return d=Qt(13,C,p,A),d.elementType=ne,d.lanes=N,d;case oe:return d=Qt(19,C,p,A),d.elementType=oe,d.lanes=N,d;case X:return ws(C,A,N,p);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case $:F=10;break e;case Y:F=9;break e;case G:F=11;break e;case q:F=14;break e;case Z:F=16,_=null;break e}throw Error(s(130,d==null?d:typeof d=="undefined"?"undefined":i(d),""))}return p=Qt(F,C,p,A),p.elementType=d,p.type=_,p.lanes=N,p}function Zo(d,p,C,_){return d=Qt(7,d,_,p),d.lanes=C,d}function ws(d,p,C,_){return d=Qt(22,d,_,p),d.elementType=X,d.lanes=C,d.stateNode={isHidden:!1},d}function sc(d,p,C){return d=Qt(6,d,null,p),d.lanes=C,d}function lc(d,p,C){return p=Qt(4,d.children!==null?d.children:[],d.key,p),p.lanes=C,p.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},p}function cd(d,p,C,_,A){this.tag=p,this.containerInfo=d,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Li(0),this.expirationTimes=Li(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Li(0),this.identifierPrefix=_,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function cc(d,p,C,_,A,N,F,re,ue){return d=new cd(d,p,C,re,ue),p===1?(p=1,N===!0&&(p|=8)):p=0,N=Qt(3,null,null,p),d.current=N,N.stateNode=d,N.memoizedState={element:_,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},jn(N),d}function ud(d,p,C){var _=3p}return!1}function y(d,p,C,_,A,N,F){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=_,this.attributeNamespace=A,this.mustUseProperty=C,this.propertyName=d,this.type=p,this.sanitizeURL=N,this.removeEmptyString=F}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){M[d]=new y(d,0,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var p=d[0];M[p]=new y(p,1,!1,d[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){M[d]=new y(d,2,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){M[d]=new y(d,2,!1,d,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(d){M[d]=new y(d,3,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){M[d]=new y(d,3,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){M[d]=new y(d,4,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){M[d]=new y(d,6,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){M[d]=new y(d,5,!1,d.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function D(d){return d[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(d){var p=d.replace(P,D);M[p]=new y(p,1,!1,d,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(d){var p=d.replace(P,D);M[p]=new y(p,1,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var p=d.replace(P,D);M[p]=new y(p,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){M[d]=new y(d,1,!1,d.toLowerCase(),null,!1,!1)}),M.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){M[d]=new y(d,1,!1,d.toLowerCase(),null,!0,!0)});function S(d,p,C,_){var A=M.hasOwnProperty(p)?M[p]:null;(A!==null?A.type!==0:_||!(2re||A[F]!==N[re]){var ue="\n"+A[F].replace(" at new "," at ");return d.displayName&&ue.includes("")&&(ue=ue.replace("",d.displayName)),ue}while(1<=F&&0<=re);break}}}finally{fe=!1,Error.prepareStackTrace=C}return(d=d?d.displayName||d.name:"")?le(d):""}function _e(d){switch(d.tag){case 5:return le(d.type);case 16:return le("Lazy");case 13:return le("Suspense");case 19:return le("SuspenseList");case 0:case 2:case 15:return d=he(d.type,!1),d;case 11:return d=he(d.type.render,!1),d;case 1:return d=he(d.type,!0),d;default:return""}}function xe(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case W:return"Fragment";case U:return"Portal";case k:return"Profiler";case z:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case Y:return(d.displayName||"Context")+".Consumer";case $:return(d._context.displayName||"Context")+".Provider";case G:var p=d.render;return d=d.displayName,d||(d=p.displayName||p.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case q:return p=d.displayName||null,p!==null?p:xe(d.type)||"Memo";case Z:p=d._payload,d=d._init;try{return xe(d(p))}catch(C){}}return null}function je(d){var p=d.type;switch(d.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=p.render,d=d.displayName||d.name||"",p.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(p);case 8:return p===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Re(d){switch(typeof d=="undefined"?"undefined":i(d)){case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function qe(d){var p=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Fe(d){var p=qe(d)?"checked":"value",C=Object.getOwnPropertyDescriptor(d.constructor.prototype,p),_=""+d[p];if(!d.hasOwnProperty(p)&&typeof C!="undefined"&&typeof C.get=="function"&&typeof C.set=="function"){var A=C.get,N=C.set;return Object.defineProperty(d,p,{configurable:!0,get:function(){return A.call(this)},set:function(re){_=""+re,N.call(this,re)}}),Object.defineProperty(d,p,{enumerable:C.enumerable}),{getValue:function(){return _},setValue:function(re){_=""+re},stopTracking:function(){d._valueTracker=null,delete d[p]}}}}function Pe(d){d._valueTracker||(d._valueTracker=Fe(d))}function He(d){if(!d)return!1;var p=d._valueTracker;if(!p)return!0;var C=p.getValue(),_="";return d&&(_=qe(d)?d.checked?"true":"false":d.value),d=_,d!==C?(p.setValue(d),!0):!1}function gn(d){if(d=d||(typeof document!="undefined"?document:void 0),typeof d=="undefined")return null;try{return d.activeElement||d.body}catch(p){return d.body}}function mn(d,p){var C=p.checked;return J({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C!=null?C:d._wrapperState.initialChecked})}function cn(d,p){var C=p.defaultValue==null?"":p.defaultValue,_=p.checked!=null?p.checked:p.defaultChecked;C=Re(p.value!=null?p.value:C),d._wrapperState={initialChecked:_,initialValue:C,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function En(d,p){p=p.checked,p!=null&&S(d,"checked",p,!1)}function hn(d,p){En(d,p);var C=Re(p.value),_=p.type;if(C!=null)_==="number"?(C===0&&d.value===""||d.value!=C)&&(d.value=""+C):d.value!==""+C&&(d.value=""+C);else if(_==="submit"||_==="reset"){d.removeAttribute("value");return}p.hasOwnProperty("value")?Se(d,p.type,C):p.hasOwnProperty("defaultValue")&&Se(d,p.type,Re(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(d.defaultChecked=!!p.defaultChecked)}function sn(d,p,C){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var _=p.type;if(!(_!=="submit"&&_!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+d._wrapperState.initialValue,C||p===d.value||(d.value=p),d.defaultValue=p}C=d.name,C!==""&&(d.name=""),d.defaultChecked=!!d._wrapperState.initialChecked,C!==""&&(d.name=C)}function Se(d,p,C){(p!=="number"||gn(d.ownerDocument)!==d)&&(C==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+C&&(d.defaultValue=""+C))}var Ue=Array.isArray;function Oe(d,p,C,_){if(d=d.options,p){p={};for(var A=0;A"+p.valueOf().toString()+"",p=_n.firstChild;d.firstChild;)d.removeChild(d.firstChild);for(;p.firstChild;)d.appendChild(p.firstChild)}});function ln(d,p){if(p){var C=d.firstChild;if(C&&C===d.lastChild&&C.nodeType===3){C.nodeValue=p;return}}d.textContent=p}var ze={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ve=["Webkit","ms","Moz","O"];Object.keys(ze).forEach(function(d){Ve.forEach(function(p){p=p+d.charAt(0).toUpperCase()+d.substring(1),ze[p]=ze[d]})});function vn(d,p,C){return p==null||typeof p=="boolean"||p===""?"":C||typeof p!="number"||p===0||ze.hasOwnProperty(d)&&ze[d]?(""+p).trim():p+"px"}function In(d,p){d=d.style;for(var C in p)if(p.hasOwnProperty(C)){var _=C.indexOf("--")===0,A=vn(C,p[C],_);C==="float"&&(C="cssFloat"),_?d.setProperty(C,A):d[C]=A}}var Tt=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function it(d,p){if(p){if(Tt[d]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(s(137,d));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(s(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(s(61))}if(p.style!=null&&typeof p.style!="object")throw Error(s(62))}}function Ct(d,p){if(d.indexOf("-")===-1)return typeof p.is=="string";switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var et=null;function xt(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var wt=null,Zt=null,dr=null;function Jo(d){if(d=Wo(d)){if(typeof wt!="function")throw Error(s(280));var p=d.stateNode;p&&(p=Ei(p),wt(d.stateNode,d.type,p))}}function qo(d){Zt?dr?dr.push(d):dr=[d]:Zt=d}function ei(){if(Zt){var d=Zt,p=dr;if(dr=Zt=null,Jo(d),p)for(d=0;d>>=0,d===0?32:31-(Wa(d)/wa|0)|0}var mr=64,ii=4194304;function Eo(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function ai(d,p){var C=d.pendingLanes;if(C===0)return 0;var _=0,A=d.suspendedLanes,N=d.pingedLanes,F=C&268435455;if(F!==0){var re=F&~A;re!==0?_=Eo(re):(N&=F,N!==0&&(_=Eo(N)))}else F=C&~A,F!==0?_=Eo(F):N!==0&&(_=Eo(N));if(_===0)return 0;if(p!==0&&p!==_&&!(p&A)&&(A=_&-_,N=p&-p,A>=N||A===16&&(N&4194240)!==0))return p;if(_&4&&(_|=C&16),p=d.entangledLanes,p!==0)for(d=d.entanglements,p&=_;0C;C++)p.push(d);return p}function Co(d,p,C){d.pendingLanes|=p,p!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,p=31-Rt(p),d[p]=C}function nl(d,p){var C=d.pendingLanes&~p;d.pendingLanes=p,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=p,d.mutableReadLanes&=p,d.entangledLanes&=p,p=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0=So),ns=" ",vl=!1;function ta(d,p){switch(d){case"keyup":return na.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ra(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Yr=!1;function xl(d,p){switch(d){case"compositionend":return ra(p);case"keypress":return p.which!==32?null:(vl=!0,ns);case"textInput":return d=p.data,d===ns&&vl?null:d;default:return null}}function mi(d,p){if(Yr)return d==="compositionend"||!Hr&&ta(d,p)?(d=Ya(),di=Jt=Mt=null,Yr=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:C,offset:p-d};d=_}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=la(C)}}function ls(d,p){return d&&p?d===p?!0:d&&d.nodeType===3?!1:p&&p.nodeType===3?ls(d,p.parentNode):"contains"in d?d.contains(p):d.compareDocumentPosition?!!(d.compareDocumentPosition(p)&16):!1:!1}function cs(){for(var d=window,p=gn();e(p,d.HTMLIFrameElement);){try{var C=typeof p.contentWindow.location.href=="string"}catch(_){C=!1}if(C)d=p.contentWindow;else break;p=gn(d.document)}return p}function Qr(d){var p=d&&d.nodeName&&d.nodeName.toLowerCase();return p&&(p==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||p==="textarea"||d.contentEditable==="true")}function pl(d){var p=cs(),C=d.focusedElem,_=d.selectionRange;if(p!==C&&C&&C.ownerDocument&&ls(C.ownerDocument.documentElement,C)){if(_!==null&&Qr(C)){if(p=_.start,d=_.end,d===void 0&&(d=p),"selectionStart"in C)C.selectionStart=p,C.selectionEnd=Math.min(d,C.value.length);else if(d=(p=C.ownerDocument||document)&&p.defaultView||window,d.getSelection){d=d.getSelection();var A=C.textContent.length,N=Math.min(_.start,A);_=_.end===void 0?N:Math.min(_.end,A),!d.extend&&N>_&&(A=_,_=N,N=A),A=ss(C,N);var F=ss(C,_);A&&F&&(d.rangeCount!==1||d.anchorNode!==A.node||d.anchorOffset!==A.offset||d.focusNode!==F.node||d.focusOffset!==F.offset)&&(p=p.createRange(),p.setStart(A.node,A.offset),d.removeAllRanges(),N>_?(d.addRange(p),d.extend(F.node,F.offset)):(p.setEnd(F.node,F.offset),d.addRange(p)))}}for(p=[],d=C;d=d.parentNode;)d.nodeType===1&&p.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C=document.documentMode,Lt=null,Ro=null,Ar=null,ca=!1;function us(d,p,C){var _=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;ca||Lt==null||Lt!==gn(_)||(_=Lt,"selectionStart"in _&&Qr(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Ar&&er(Ar,_)||(Ar=_,_=gi(Ro,"onSelect"),0<_.length&&(p=new $i("onSelect","select",null,p,C),d.push({event:p,listeners:_}),p.target=Lt)))}function ua(d,p){var C={};return C[d.toLowerCase()]=p.toLowerCase(),C["Webkit"+d]="webkit"+p,C["Moz"+d]="moz"+p,C}var Rr={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionend:ua("Transition","TransitionEnd")},ds={},El={};c&&(El=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function Zr(d){if(ds[d])return ds[d];if(!Rr[d])return d;var p=Rr[d],C;for(C in p)if(p.hasOwnProperty(C)&&C in El)return ds[d]=p[C];return d}var Cl=Zr("animationend"),Ol=Zr("animationiteration"),yl=Zr("animationstart"),Ml=Zr("transitionend"),xi=new Map,fs="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ut(d,p){xi.set(d,p),u(p,[d])}for(var da=0;daLr||(d.current=Ea[Lr],Ea[Lr]=null,Lr--)}function Sn(d,p){Lr++,Ea[Lr]=d.current,d.current=p}var Gt={},Zn=Vt(Gt),at=Vt(!1),Ur=Gt;function no(d,p){var C=d.type.contextTypes;if(!C)return Gt;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===p)return _.__reactInternalMemoizedMaskedChildContext;var A={},N;for(N in C)A[N]=p[N];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=p,d.__reactInternalMemoizedMaskedChildContext=A),A}function ht(d){return d=d.childContextTypes,d!=null}function Ci(){An(at),An(Zn)}function Ca(d,p,C){if(Zn.current!==Gt)throw Error(s(168));Sn(Zn,p),Sn(at,C)}function wo(d,p,C){var _=d.stateNode;if(p=p.childContextTypes,typeof _.getChildContext!="function")return C;_=_.getChildContext();for(var A in _)if(!(A in p))throw Error(s(108,je(d)||"Unknown",A));return J({},C,_)}function Oi(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Gt,Ur=Zn.current,Sn(Zn,d),Sn(at,at.current),!0}function to(d,p,C){var _=d.stateNode;if(!_)throw Error(s(169));C?(d=wo(d,p,Ur),_.__reactInternalMemoizedMergedChildContext=d,An(at),An(Zn),Sn(Zn,d)):An(at),Sn(at,C)}var rr=null,Oa=!1,yi=!1;function Mi(d){rr===null?rr=[d]:rr.push(d)}function Dl(d){Oa=!0,Mi(d)}function Or(){if(!yi&&rr!==null){yi=!0;var d=0,p=Dn;try{var C=rr;for(Dn=1;d>=F,A-=F,or=1<<32-Rt(p)+A|C<xn?(ot=fn,fn=null):ot=fn.sibling;var Pn=De(me,fn,ge[xn],Ne);if(Pn===null){fn===null&&(fn=ot);break}d&&fn&&Pn.alternate===null&&p(me,fn),de=N(Pn,de,xn),dn===null?rn=Pn:dn.sibling=Pn,dn=Pn,fn=ot}if(xn===ge.length)return C(me,fn),Nn&&Ir(me,xn),rn;if(fn===null){for(;xnxn?(ot=fn,fn=null):ot=fn.sibling;var mo=De(me,fn,Pn.value,Ne);if(mo===null){fn===null&&(fn=ot);break}d&&fn&&mo.alternate===null&&p(me,fn),de=N(mo,de,xn),dn===null?rn=mo:dn.sibling=mo,dn=mo,fn=ot}if(Pn.done)return C(me,fn),Nn&&Ir(me,xn),rn;if(fn===null){for(;!Pn.done;xn++,Pn=ge.next())Pn=be(me,Pn.value,Ne),Pn!==null&&(de=N(Pn,de,xn),dn===null?rn=Pn:dn.sibling=Pn,dn=Pn);return Nn&&Ir(me,xn),rn}for(fn=_(me,fn);!Pn.done;xn++,Pn=ge.next())Pn=Ge(fn,me,xn,Pn.value,Ne),Pn!==null&&(d&&Pn.alternate!==null&&fn.delete(Pn.key===null?xn:Pn.key),de=N(Pn,de,xn),dn===null?rn=Pn:dn.sibling=Pn,dn=Pn);return d&&fn.forEach(function(vd){return p(me,vd)}),Nn&&Ir(me,xn),rn}function Vn(me,de,ge,Ne){if(typeof ge=="object"&&ge!==null&&ge.type===W&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case T:e:{for(var rn=ge.key,dn=de;dn!==null;){if(dn.key===rn){if(rn=ge.type,rn===W){if(dn.tag===7){C(me,dn.sibling),de=A(dn,ge.props.children),de.return=me,me=de;break e}}else if(dn.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===Z&&ie(rn)===dn.type){C(me,dn.sibling),de=A(dn,ge.props),de.ref=w(me,dn,ge),de.return=me,me=de;break e}C(me,dn);break}else p(me,dn);dn=dn.sibling}ge.type===W?(de=Zo(ge.props.children,me.mode,Ne,ge.key),de.return=me,me=de):(Ne=Ws(ge.type,ge.key,ge.props,null,me.mode,Ne),Ne.ref=w(me,de,ge),Ne.return=me,me=Ne)}return F(me);case U:e:{for(dn=ge.key;de!==null;){if(de.key===dn)if(de.tag===4&&de.stateNode.containerInfo===ge.containerInfo&&de.stateNode.implementation===ge.implementation){C(me,de.sibling),de=A(de,ge.children||[]),de.return=me,me=de;break e}else{C(me,de);break}else p(me,de);de=de.sibling}de=lc(ge,me.mode,Ne),de.return=me,me=de}return F(me);case Z:return dn=ge._init,Vn(me,de,dn(ge._payload),Ne)}if(Ue(ge))return Je(me,de,ge,Ne);if(V(ge))return nn(me,de,ge,Ne);Q(me,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,de!==null&&de.tag===6?(C(me,de.sibling),de=A(de,ge),de.return=me,me=de):(C(me,de),de=sc(ge,me.mode,Ne),de.return=me,me=de),F(me)):C(me,de)}return Vn}var te=se(!0),ae=se(!1),pe=Vt(null),Ce=null,ve=null,Me=null;function Ae(){Me=ve=Ce=null}function Ke(d){var p=pe.current;An(pe),d._currentValue=p}function Le(d,p,C){for(;d!==null;){var _=d.alternate;if((d.childLanes&p)!==p?(d.childLanes|=p,_!==null&&(_.childLanes|=p)):_!==null&&(_.childLanes&p)!==p&&(_.childLanes|=p),d===C)break;d=d.return}}function we(d,p){Ce=d,Me=ve=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&p&&(Dt=!0),d.firstContext=null)}function Xe(d){var p=d._currentValue;if(Me!==d)if(d={context:d,memoizedValue:p,next:null},ve===null){if(Ce===null)throw Error(s(308));ve=d,Ce.dependencies={lanes:0,firstContext:d}}else ve=ve.next=d;return p}var Ie=null;function $e(d){Ie===null?Ie=[d]:Ie.push(d)}function en(d,p,C,_){var A=p.interleaved;return A===null?(C.next=C,$e(p)):(C.next=A.next,A.next=C),p.interleaved=C,un(d,_)}function un(d,p){d.lanes|=p;var C=d.alternate;for(C!==null&&(C.lanes|=p),C=d,d=d.return;d!==null;)d.childLanes|=p,C=d.alternate,C!==null&&(C.childLanes|=p),C=d,d=d.return;return C.tag===3?C.stateNode:null}var tn=!1;function jn(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Be(d,p){d=d.updateQueue,p.updateQueue===d&&(p.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects})}function on(d,p){return{eventTime:d,lane:p,tag:0,payload:null,callback:null,next:null}}function an(d,p,C){var _=d.updateQueue;if(_===null)return null;if(_=_.shared,Mn&2){var A=_.pending;return A===null?p.next=p:(p.next=A.next,A.next=p),_.pending=p,un(d,C)}return A=_.interleaved,A===null?(p.next=p,$e(_)):(p.next=A.next,A.next=p),_.interleaved=p,un(d,C)}function Cn(d,p,C){if(p=p.updateQueue,p!==null&&(p=p.shared,(C&4194240)!==0)){var _=p.lanes;_&=d.pendingLanes,C|=_,p.lanes=C,Ui(d,C)}}function wn(d,p){var C=d.updateQueue,_=d.alternate;if(_!==null&&(_=_.updateQueue,C===_)){var A=null,N=null;if(C=C.firstBaseUpdate,C!==null){do{var F={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};N===null?A=N=F:N=N.next=F,C=C.next}while(C!==null);N===null?A=N=p:N=N.next=p}else A=N=p;C={baseState:_.baseState,firstBaseUpdate:A,lastBaseUpdate:N,shared:_.shared,effects:_.effects},d.updateQueue=C;return}d=C.lastBaseUpdate,d===null?C.firstBaseUpdate=p:d.next=p,C.lastBaseUpdate=p}function nt(d,p,C,_){var A=d.updateQueue;tn=!1;var N=A.firstBaseUpdate,F=A.lastBaseUpdate,re=A.shared.pending;if(re!==null){A.shared.pending=null;var ue=re,Ee=ue.next;ue.next=null,F===null?N=Ee:F.next=Ee,F=ue;var ye=d.alternate;ye!==null&&(ye=ye.updateQueue,re=ye.lastBaseUpdate,re!==F&&(re===null?ye.firstBaseUpdate=Ee:re.next=Ee,ye.lastBaseUpdate=ue))}if(N!==null){var be=A.baseState;F=0,ye=Ee=ue=null,re=N;do{var De=re.lane,Ge=re.eventTime;if((_&De)===De){ye!==null&&(ye=ye.next={eventTime:Ge,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var Je=d,nn=re;switch(De=p,Ge=C,nn.tag){case 1:if(Je=nn.payload,typeof Je=="function"){be=Je.call(Ge,be,De);break e}be=Je;break e;case 3:Je.flags=Je.flags&-65537|128;case 0:if(Je=nn.payload,De=typeof Je=="function"?Je.call(Ge,be,De):Je,De==null)break e;be=J({},be,De);break e;case 2:tn=!0}}re.callback!==null&&re.lane!==0&&(d.flags|=64,De=A.effects,De===null?A.effects=[re]:De.push(re))}else Ge={eventTime:Ge,lane:De,tag:re.tag,payload:re.payload,callback:re.callback,next:null},ye===null?(Ee=ye=Ge,ue=be):ye=ye.next=Ge,F|=De;if(re=re.next,re===null){if(re=A.shared.pending,re===null)break;De=re,re=De.next,De.next=null,A.lastBaseUpdate=De,A.shared.pending=null}}while(!0);if(ye===null&&(ue=be),A.baseState=ue,A.firstBaseUpdate=Ee,A.lastBaseUpdate=ye,p=A.shared.interleaved,p!==null){A=p;do F|=A.lane,A=A.next;while(A!==p)}else N===null&&(A.shared.lanes=0);Xo|=F,d.lanes=F,d.memoizedState=be}}function Rn(d,p,C){if(d=p.effects,p.effects=null,d!==null)for(p=0;pC?C:4,d(!0);var _=Fo.transition;Fo.transition={};try{d(!1),p()}finally{Dn=C,Fo.transition=_}}function Wc(){return pt().memoizedState}function Wu(d,p,C){var _=uo(d);if(C={lane:_,action:C,hasEagerState:!1,eagerState:null,next:null},wc(d))zc(p,C);else if(C=en(d,p,C,_),C!==null){var A=Et();ur(C,d,_,A),$c(C,p,_)}}function wu(d,p,C){var _=uo(d),A={lane:_,action:C,hasEagerState:!1,eagerState:null,next:null};if(wc(d))zc(p,A);else{var N=d.alternate;if(d.lanes===0&&(N===null||N.lanes===0)&&(N=p.lastRenderedReducer,N!==null))try{var F=p.lastRenderedState,re=N(F,C);if(A.hasEagerState=!0,A.eagerState=re,ft(re,F)){var ue=p.interleaved;ue===null?(A.next=A,$e(p)):(A.next=ue.next,ue.next=A),p.interleaved=A;return}}catch(Ee){}finally{}C=en(d,p,A,_),C!==null&&(A=Et(),ur(C,d,_,A),$c(C,p,_))}}function wc(d){var p=d.alternate;return d===Ln||p!==null&&p===Ln}function zc(d,p){oo=Vo=!0;var C=d.pending;C===null?p.next=p:(p.next=C.next,C.next=p),d.pending=p}function $c(d,p,C){if(C&4194240){var _=p.lanes;_&=d.pendingLanes,C|=_,p.lanes=C,Ui(d,C)}}var Is={readContext:Xe,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useInsertionEffect:Wn,useLayoutEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useMutableSource:Wn,useSyncExternalStore:Wn,useId:Wn,unstable_isNewReconciler:!1},zu={readContext:Xe,useCallback:function(p,C){return _t().memoizedState=[p,C===void 0?null:C],p},useContext:Xe,useEffect:Tc,useImperativeHandle:function(p,C,_){return _=_!=null?_.concat([p]):null,ys(4194308,4,Bc.bind(null,C,p),_)},useLayoutEffect:function(p,C){return ys(4194308,4,p,C)},useInsertionEffect:function(p,C){return ys(4,2,p,C)},useMemo:function(p,C){var _=_t();return C=C===void 0?null:C,p=p(),_.memoizedState=[p,C],p},useReducer:function(p,C,_){var A=_t();return C=_!==void 0?_(C):C,A.memoizedState=A.baseState=C,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:C},A.queue=p,p=p.dispatch=Wu.bind(null,Ln,p),[A.memoizedState,p]},useRef:function(p){var C=_t();return p={current:p},C.memoizedState=p},useState:Sc,useDebugValue:Bl,useDeferredValue:function(p){return _t().memoizedState=p},useTransition:function(){var p=Sc(!1),C=p[0];return p=Nu.bind(null,p[1]),_t().memoizedState=p,[C,p]},useMutableSource:function(){},useSyncExternalStore:function(p,C,_){var A=Ln,N=_t();if(Nn){if(_===void 0)throw Error(s(407));_=_()}else{if(_=C(),rt===null)throw Error(s(349));wr&30||Mc(A,C,_)}N.memoizedState=_;var F={value:_,getSnapshot:C};return N.queue=F,Tc(Pc.bind(null,A,F,p),[p]),A.flags|=2048,Ma(9,Ic.bind(null,A,F,_,C),void 0,null),_},useId:function(){var p=_t(),C=rt.identifierPrefix;if(Nn){var _=Nt,A=or;_=(A&~(1<<32-Rt(A)-1)).toString(32)+_,C=":"+C+"R"+_,_=Go++,0<_&&(C+="H"+_.toString(32)),C+=":"}else _=Al++,C=":"+C+"r"+_.toString(32)+":";return p.memoizedState=C},unstable_isNewReconciler:!1},$u={readContext:Xe,useCallback:Lc,useContext:Xe,useEffect:Rl,useImperativeHandle:Kc,useInsertionEffect:Ac,useLayoutEffect:Rc,useMemo:Uc,useReducer:Di,useRef:bc,useState:function(){return Di(ao)},useDebugValue:Bl,useDeferredValue:function(p){var C=pt();return Nc(C,Fn.memoizedState,p)},useTransition:function(){var p=Di(ao)[0],C=pt().memoizedState;return[p,C]},useMutableSource:Oc,useSyncExternalStore:yc,useId:Wc,unstable_isNewReconciler:!1},ku={readContext:Xe,useCallback:Lc,useContext:Xe,useEffect:Rl,useImperativeHandle:Kc,useInsertionEffect:Ac,useLayoutEffect:Rc,useMemo:Uc,useReducer:Si,useRef:bc,useState:function(){return Si(ao)},useDebugValue:Bl,useDeferredValue:function(p){var C=pt();return Fn===null?C.memoizedState=p:Nc(C,Fn.memoizedState,p)},useTransition:function(){var p=Si(ao)[0],C=pt().memoizedState;return[p,C]},useMutableSource:Oc,useSyncExternalStore:yc,useId:Wc,unstable_isNewReconciler:!1};function sr(d,p){if(d&&d.defaultProps){p=J({},p),d=d.defaultProps;for(var C in d)p[C]===void 0&&(p[C]=d[C]);return p}return p}function Kl(d,p,C,_){p=d.memoizedState,C=C(_,p),C=C==null?p:J({},p,C),d.memoizedState=C,d.lanes===0&&(d.updateQueue.baseState=C)}var Ps={isMounted:function(p){return(p=p._reactInternals)?hr(p)===p:!1},enqueueSetState:function(p,C,_){p=p._reactInternals;var A=Et(),N=uo(p),F=on(A,N);F.payload=C,_!=null&&(F.callback=_),C=an(p,F,N),C!==null&&(ur(C,p,N,A),Cn(C,p,N))},enqueueReplaceState:function(p,C,_){p=p._reactInternals;var A=Et(),N=uo(p),F=on(A,N);F.tag=1,F.payload=C,_!=null&&(F.callback=_),C=an(p,F,N),C!==null&&(ur(C,p,N,A),Cn(C,p,N))},enqueueForceUpdate:function(p,C){p=p._reactInternals;var _=Et(),A=uo(p),N=on(_,A);N.tag=2,C!=null&&(N.callback=C),C=an(p,N,A),C!==null&&(ur(C,p,A,_),Cn(C,p,A))}};function kc(d,p,C,_,A,N,F){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(_,N,F):p.prototype&&p.prototype.isPureReactComponent?!er(C,_)||!er(A,N):!0}function Fc(d,p,C){var _=!1,A=Gt,N=p.contextType;return typeof N=="object"&&N!==null?N=Xe(N):(A=ht(p)?Ur:Zn.current,_=p.contextTypes,N=(_=_!=null)?no(d,A):Gt),p=new p(C,N),d.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Ps,d.stateNode=p,p._reactInternals=d,_&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=A,d.__reactInternalMemoizedMaskedChildContext=N),p}function Vc(d,p,C,_){d=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(C,_),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(C,_),p.state!==d&&Ps.enqueueReplaceState(p,p.state,null)}function Ll(d,p,C,_){var A=d.stateNode;A.props=C,A.state=d.memoizedState,A.refs={},jn(d);var N=p.contextType;typeof N=="object"&&N!==null?A.context=Xe(N):(N=ht(p)?Ur:Zn.current,A.context=no(d,N)),A.state=d.memoizedState,N=p.getDerivedStateFromProps,typeof N=="function"&&(Kl(d,p,N,C),A.state=d.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(p=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),p!==A.state&&Ps.enqueueReplaceState(A,A.state,null),nt(d,C,A,_),A.state=d.memoizedState),typeof A.componentDidMount=="function"&&(d.flags|=4194308)}function bi(d,p){try{var C="",_=p;do C+=_e(_),_=_.return;while(_);var A=C}catch(N){A="\nError generating stack: "+N.message+"\n"+N.stack}return{value:d,source:p,stack:A,digest:null}}function Ul(d,p,C){return{value:d,source:null,stack:C!=null?C:null,digest:p!=null?p:null}}function Nl(d,p){try{console.error(p.value)}catch(C){setTimeout(function(){throw C})}}var Fu=typeof WeakMap=="function"?WeakMap:Map;function Gc(d,p,C){C=on(-1,C),C.tag=3,C.payload={element:null};var _=p.value;return C.callback=function(){Rs||(Rs=!0,ql=_),Nl(d,p)},C}function Xc(d,p,C){C=on(-1,C),C.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var A=p.value;C.payload=function(){return _(A)},C.callback=function(){Nl(d,p)}}var N=d.stateNode;return N!==null&&typeof N.componentDidCatch=="function"&&(C.callback=function(){Nl(d,p),typeof _!="function"&&(lo===null?lo=new Set([this]):lo.add(this));var F=p.stack;this.componentDidCatch(p.value,{componentStack:F!==null?F:""})}),C}function Hc(d,p,C){var _=d.pingCache;if(_===null){_=d.pingCache=new Fu;var A=new Set;_.set(p,A)}else A=_.get(p),A===void 0&&(A=new Set,_.set(p,A));A.has(C)||(A.add(C),d=od.bind(null,d,p,C),p.then(d,d))}function Yc(d){do{var p;if((p=d.tag===13)&&(p=d.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return d;d=d.return}while(d!==null);return null}function Qc(d,p,C,_,A){return d.mode&1?(d.flags|=65536,d.lanes=A,d):(d===p?d.flags|=65536:(d.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(p=on(-1,1),p.tag=2,an(C,p,1))),C.lanes|=1),d)}var Vu=B.ReactCurrentOwner,Dt=!1;function jt(d,p,C,_){p.child=d===null?ae(p,null,C,_):te(p,d.child,C,_)}function Zc(d,p,C,_,A){C=C.render;var N=p.ref;return we(p,A),_=Pi(d,p,C,_,N,A),C=_i(),d!==null&&!Dt?(p.updateQueue=d.updateQueue,p.flags&=-2053,d.lanes&=~A,zr(d,p,A)):(Nn&&C&&Es(p),p.flags|=1,jt(d,p,_,A),p.child)}function Jc(d,p,C,_,A){if(d===null){var N=C.type;return typeof N=="function"&&!ac(N)&&N.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(p.tag=15,p.type=N,qc(d,p,N,_,A)):(d=Ws(C.type,null,_,p,p.mode,A),d.ref=p.ref,d.return=p,p.child=d)}if(N=d.child,!(d.lanes&A)){var F=N.memoizedProps;if(C=C.compare,C=C!==null?C:er,C(F,_)&&d.ref===p.ref)return zr(d,p,A)}return p.flags|=1,d=ho(N,_),d.ref=p.ref,d.return=p,p.child=d}function qc(d,p,C,_,A){if(d!==null){var N=d.memoizedProps;if(er(N,_)&&d.ref===p.ref)if(Dt=!1,p.pendingProps=_=N,(d.lanes&A)!==0)d.flags&131072&&(Dt=!0);else return p.lanes=d.lanes,zr(d,p,A)}return Wl(d,p,C,_,A)}function eu(d,p,C){var _=p.pendingProps,A=_.children,N=d!==null?d.memoizedState:null;if(_.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sn(Ai,Wt),Wt|=C;else{if(!(C&1073741824))return d=N!==null?N.baseLanes|C:C,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:d,cachePool:null,transitions:null},p.updateQueue=null,Sn(Ai,Wt),Wt|=d,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=N!==null?N.baseLanes:C,Sn(Ai,Wt),Wt|=_}else N!==null?(_=N.baseLanes|C,p.memoizedState=null):_=C,Sn(Ai,Wt),Wt|=_;return jt(d,p,A,C),p.child}function nu(d,p){var C=p.ref;(d===null&&C!==null||d!==null&&d.ref!==C)&&(p.flags|=512,p.flags|=2097152)}function Wl(d,p,C,_,A){var N=ht(C)?Ur:Zn.current;return N=no(p,N),we(p,A),C=Pi(d,p,C,_,N,A),_=_i(),d!==null&&!Dt?(p.updateQueue=d.updateQueue,p.flags&=-2053,d.lanes&=~A,zr(d,p,A)):(Nn&&_&&Es(p),p.flags|=1,jt(d,p,C,A),p.child)}function tu(d,p,C,_,A){if(ht(C)){var N=!0;Oi(p)}else N=!1;if(we(p,A),p.stateNode===null)Ds(d,p),Fc(p,C,_),Ll(p,C,_,A),_=!0;else if(d===null){var F=p.stateNode,re=p.memoizedProps;F.props=re;var ue=F.context,Ee=C.contextType;typeof Ee=="object"&&Ee!==null?Ee=Xe(Ee):(Ee=ht(C)?Ur:Zn.current,Ee=no(p,Ee));var ye=C.getDerivedStateFromProps,be=typeof ye=="function"||typeof F.getSnapshotBeforeUpdate=="function";be||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(re!==_||ue!==Ee)&&Vc(p,F,_,Ee),tn=!1;var De=p.memoizedState;F.state=De,nt(p,_,F,A),ue=p.memoizedState,re!==_||De!==ue||at.current||tn?(typeof ye=="function"&&(Kl(p,C,ye,_),ue=p.memoizedState),(re=tn||kc(p,C,re,_,De,ue,Ee))?(be||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(p.flags|=4194308)):(typeof F.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=_,p.memoizedState=ue),F.props=_,F.state=ue,F.context=Ee,_=re):(typeof F.componentDidMount=="function"&&(p.flags|=4194308),_=!1)}else{F=p.stateNode,Be(d,p),re=p.memoizedProps,Ee=p.type===p.elementType?re:sr(p.type,re),F.props=Ee,be=p.pendingProps,De=F.context,ue=C.contextType,typeof ue=="object"&&ue!==null?ue=Xe(ue):(ue=ht(C)?Ur:Zn.current,ue=no(p,ue));var Ge=C.getDerivedStateFromProps;(ye=typeof Ge=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(re!==be||De!==ue)&&Vc(p,F,_,ue),tn=!1,De=p.memoizedState,F.state=De,nt(p,_,F,A);var Je=p.memoizedState;re!==be||De!==Je||at.current||tn?(typeof Ge=="function"&&(Kl(p,C,Ge,_),Je=p.memoizedState),(Ee=tn||kc(p,C,Ee,_,De,Je,ue)||!1)?(ye||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(_,Je,ue),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(_,Je,ue)),typeof F.componentDidUpdate=="function"&&(p.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof F.componentDidUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=1024),p.memoizedProps=_,p.memoizedState=Je),F.props=_,F.state=Je,F.context=ue,_=Ee):(typeof F.componentDidUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||re===d.memoizedProps&&De===d.memoizedState||(p.flags|=1024),_=!1)}return wl(d,p,C,_,N,A)}function wl(d,p,C,_,A,N){nu(d,p);var F=(p.flags&128)!==0;if(!_&&!F)return A&&to(p,C,!1),zr(d,p,N);_=p.stateNode,Vu.current=p;var re=F&&typeof C.getDerivedStateFromError!="function"?null:_.render();return p.flags|=1,d!==null&&F?(p.child=te(p,d.child,null,N),p.child=te(p,null,re,N)):jt(d,p,re,N),p.memoizedState=_.state,A&&to(p,C,!0),p.child}function ru(d){var p=d.stateNode;p.pendingContext?Ca(d,p.pendingContext,p.pendingContext!==p.context):p.context&&Ca(d,p.context,!1),tt(d,p.containerInfo)}function ou(d,p,C,_,A){return K(),L(A),p.flags|=256,jt(d,p,C,_),p.child}var zl={dehydrated:null,treeContext:null,retryLane:0};function $l(d){return{baseLanes:d,cachePool:null,transitions:null}}function iu(d,p,C){var _=p.pendingProps,A=bn.current,N=!1,F=(p.flags&128)!==0,re;if((re=F)||(re=d!==null&&d.memoizedState===null?!1:(A&2)!==0),re?(N=!0,p.flags&=-129):(d===null||d.memoizedState!==null)&&(A|=1),Sn(bn,A&1),d===null)return Os(p),d=p.memoizedState,d!==null&&(d=d.dehydrated,d!==null)?(p.mode&1?d.data==="$!"?p.lanes=8:p.lanes=1073741824:p.lanes=1,null):(F=_.children,d=_.fallback,N?(_=p.mode,N=p.child,F={mode:"hidden",children:F},!(_&1)&&N!==null?(N.childLanes=0,N.pendingProps=F):N=ws(F,_,0,null),d=Zo(d,_,C,null),N.return=p,d.return=p,N.sibling=d,p.child=N,p.child.memoizedState=$l(C),p.memoizedState=zl,d):kl(p,F));if(A=d.memoizedState,A!==null&&(re=A.dehydrated,re!==null))return Gu(d,p,F,_,re,A,C);if(N){N=_.fallback,F=p.mode,A=d.child,re=A.sibling;var ue={mode:"hidden",children:_.children};return!(F&1)&&p.child!==A?(_=p.child,_.childLanes=0,_.pendingProps=ue,p.deletions=null):(_=ho(A,ue),_.subtreeFlags=A.subtreeFlags&14680064),re!==null?N=ho(re,N):(N=Zo(N,F,C,null),N.flags|=2),N.return=p,_.return=p,_.sibling=N,p.child=_,_=N,N=p.child,F=d.child.memoizedState,F=F===null?$l(C):{baseLanes:F.baseLanes|C,cachePool:null,transitions:F.transitions},N.memoizedState=F,N.childLanes=d.childLanes&~C,p.memoizedState=zl,_}return N=d.child,d=N.sibling,_=ho(N,{mode:"visible",children:_.children}),!(p.mode&1)&&(_.lanes=C),_.return=p,_.sibling=null,d!==null&&(C=p.deletions,C===null?(p.deletions=[d],p.flags|=16):C.push(d)),p.child=_,p.memoizedState=null,_}function kl(d,p){return p=ws({mode:"visible",children:p},d.mode,0,null),p.return=d,d.child=p}function _s(d,p,C,_){return _!==null&&L(_),te(p,d.child,null,C),d=kl(p,p.pendingProps.children),d.flags|=2,p.memoizedState=null,d}function Gu(d,p,C,_,A,N,F){if(C)return p.flags&256?(p.flags&=-257,_=Ul(Error(s(422))),_s(d,p,F,_)):p.memoizedState!==null?(p.child=d.child,p.flags|=128,null):(N=_.fallback,A=p.mode,_=ws({mode:"visible",children:_.children},A,0,null),N=Zo(N,A,F,null),N.flags|=2,_.return=p,N.return=p,_.sibling=N,p.child=_,p.mode&1&&te(p,d.child,null,F),p.child.memoizedState=$l(F),p.memoizedState=zl,N);if(!(p.mode&1))return _s(d,p,F,null);if(A.data==="$!"){if(_=A.nextSibling&&A.nextSibling.dataset,_)var re=_.dgst;return _=re,N=Error(s(419)),_=Ul(N,_,void 0),_s(d,p,F,_)}if(re=(F&d.childLanes)!==0,Dt||re){if(_=rt,_!==null){switch(F&-F){case 4:A=2;break;case 16:A=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:A=32;break;case 536870912:A=268435456;break;default:A=0}A=A&(_.suspendedLanes|F)?0:A,A!==0&&A!==N.retryLane&&(N.retryLane=A,un(d,A),ur(_,d,A,-1))}return ic(),_=Ul(Error(s(421))),_s(d,p,F,_)}return A.data==="$?"?(p.flags|=128,p.child=d.child,p=id.bind(null,d),A._reactRetry=p,null):(d=N.treeContext,Pt=Er(A.nextSibling),lt=p,Nn=!0,Xt=null,d!==null&&(st[gt++]=or,st[gt++]=Nt,st[gt++]=Mr,or=d.id,Nt=d.overflow,Mr=p),p=kl(p,_.children),p.flags|=4096,p)}function au(d,p,C){d.lanes|=p;var _=d.alternate;_!==null&&(_.lanes|=p),Le(d.return,p,C)}function Fl(d,p,C,_,A){var N=d.memoizedState;N===null?d.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:_,tail:C,tailMode:A}:(N.isBackwards=p,N.rendering=null,N.renderingStartTime=0,N.last=_,N.tail=C,N.tailMode=A)}function su(d,p,C){var _=p.pendingProps,A=_.revealOrder,N=_.tail;if(jt(d,p,_.children,C),_=bn.current,_&2)_=_&1|2,p.flags|=128;else{if(d!==null&&d.flags&128)e:for(d=p.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&au(d,C,p);else if(d.tag===19)au(d,C,p);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===p)break e;for(;d.sibling===null;){if(d.return===null||d.return===p)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}_&=1}if(Sn(bn,_),!(p.mode&1))p.memoizedState=null;else switch(A){case"forwards":for(C=p.child,A=null;C!==null;)d=C.alternate,d!==null&&Wr(d)===null&&(A=C),C=C.sibling;C=A,C===null?(A=p.child,p.child=null):(A=C.sibling,C.sibling=null),Fl(p,!1,A,C,N);break;case"backwards":for(C=null,A=p.child,p.child=null;A!==null;){if(d=A.alternate,d!==null&&Wr(d)===null){p.child=A;break}d=A.sibling,A.sibling=C,C=A,A=d}Fl(p,!0,C,null,N);break;case"together":Fl(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function Ds(d,p){!(p.mode&1)&&d!==null&&(d.alternate=null,p.alternate=null,p.flags|=2)}function zr(d,p,C){if(d!==null&&(p.dependencies=d.dependencies),Xo|=p.lanes,!(C&p.childLanes))return null;if(d!==null&&p.child!==d.child)throw Error(s(153));if(p.child!==null){for(d=p.child,C=ho(d,d.pendingProps),p.child=C,C.return=p;d.sibling!==null;)d=d.sibling,C=C.sibling=ho(d,d.pendingProps),C.return=p;C.sibling=null}return p.child}function Xu(d,p,C){switch(p.tag){case 3:ru(p),K();break;case 5:Nr(p);break;case 1:ht(p.type)&&Oi(p);break;case 4:tt(p,p.stateNode.containerInfo);break;case 10:var _=p.type._context,A=p.memoizedProps.value;Sn(pe,_._currentValue),_._currentValue=A;break;case 13:if(_=p.memoizedState,_!==null)return _.dehydrated!==null?(Sn(bn,bn.current&1),p.flags|=128,null):C&p.child.childLanes?iu(d,p,C):(Sn(bn,bn.current&1),d=zr(d,p,C),d!==null?d.sibling:null);Sn(bn,bn.current&1);break;case 19:if(_=(C&p.childLanes)!==0,d.flags&128){if(_)return su(d,p,C);p.flags|=128}if(A=p.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Sn(bn,bn.current),_)break;return null;case 22:case 23:return p.lanes=0,eu(d,p,C)}return zr(d,p,C)}var lu,Vl,cu,uu;lu=function(p,C){for(var _=C.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===C)break;for(;_.sibling===null;){if(_.return===null||_.return===C)return;_=_.return}_.sibling.return=_.return,_=_.sibling}},Vl=function(){},cu=function(p,C,_,A){var N=p.memoizedProps;if(N!==A){p=C.stateNode,$n(Gn.current);var F=null;switch(_){case"input":N=mn(p,N),A=mn(p,A),F=[];break;case"select":N=J({},N,{value:void 0}),A=J({},A,{value:void 0}),F=[];break;case"textarea":N=ke(p,N),A=ke(p,A),F=[];break;default:typeof N.onClick!="function"&&typeof A.onClick=="function"&&(p.onclick=Kr)}it(_,A);var re;_=null;for(ye in N)if(!A.hasOwnProperty(ye)&&N.hasOwnProperty(ye)&&N[ye]!=null)if(ye==="style"){var ue=N[ye];for(re in ue)ue.hasOwnProperty(re)&&(_||(_={}),_[re]="")}else ye!=="dangerouslySetInnerHTML"&&ye!=="children"&&ye!=="suppressContentEditableWarning"&&ye!=="suppressHydrationWarning"&&ye!=="autoFocus"&&(x.hasOwnProperty(ye)?F||(F=[]):(F=F||[]).push(ye,null));for(ye in A){var Ee=A[ye];if(ue=N!=null?N[ye]:void 0,A.hasOwnProperty(ye)&&Ee!==ue&&(Ee!=null||ue!=null))if(ye==="style")if(ue){for(re in ue)!ue.hasOwnProperty(re)||Ee&&Ee.hasOwnProperty(re)||(_||(_={}),_[re]="");for(re in Ee)Ee.hasOwnProperty(re)&&ue[re]!==Ee[re]&&(_||(_={}),_[re]=Ee[re])}else _||(F||(F=[]),F.push(ye,_)),_=Ee;else ye==="dangerouslySetInnerHTML"?(Ee=Ee?Ee.__html:void 0,ue=ue?ue.__html:void 0,Ee!=null&&ue!==Ee&&(F=F||[]).push(ye,Ee)):ye==="children"?typeof Ee!="string"&&typeof Ee!="number"||(F=F||[]).push(ye,""+Ee):ye!=="suppressContentEditableWarning"&&ye!=="suppressHydrationWarning"&&(x.hasOwnProperty(ye)?(Ee!=null&&ye==="onScroll"&&Tn("scroll",p),F||ue===Ee||(F=[])):(F=F||[]).push(ye,Ee))}_&&(F=F||[]).push("style",_);var ye=F;(C.updateQueue=ye)&&(C.flags|=4)}},uu=function(p,C,_,A){_!==A&&(C.flags|=4)};function Ia(d,p){if(!Nn)switch(d.tailMode){case"hidden":p=d.tail;for(var C=null;p!==null;)p.alternate!==null&&(C=p),p=p.sibling;C===null?d.tail=null:C.sibling=null;break;case"collapsed":C=d.tail;for(var _=null;C!==null;)C.alternate!==null&&(_=C),C=C.sibling;_===null?p||d.tail===null?d.tail=null:d.tail.sibling=null:_.sibling=null}}function mt(d){var p=d.alternate!==null&&d.alternate.child===d.child,C=0,_=0;if(p)for(var A=d.child;A!==null;)C|=A.lanes|A.childLanes,_|=A.subtreeFlags&14680064,_|=A.flags&14680064,A.return=d,A=A.sibling;else for(A=d.child;A!==null;)C|=A.lanes|A.childLanes,_|=A.subtreeFlags,_|=A.flags,A.return=d,A=A.sibling;return d.subtreeFlags|=_,d.childLanes=C,p}function Hu(d,p,C){var _=p.pendingProps;switch(Cs(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(p),null;case 1:return ht(p.type)&&Ci(),mt(p),null;case 3:return _=p.stateNode,ir(),An(at),An(Zn),ko(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(d===null||d.child===null)&&(I(p)?p.flags|=4:d===null||d.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,Xt!==null&&(tc(Xt),Xt=null))),Vl(d,p),mt(p),null;case 5:Ht(p);var A=$n(Jn.current);if(C=p.type,d!==null&&p.stateNode!=null)cu(d,p,C,_,A),d.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!_){if(p.stateNode===null)throw Error(s(166));return mt(p),null}if(d=$n(Gn.current),I(p)){_=p.stateNode,C=p.type;var N=p.memoizedProps;switch(_[It]=p,_[Uo]=N,d=(p.mode&1)!==0,C){case"dialog":Tn("cancel",_),Tn("close",_);break;case"iframe":case"object":case"embed":Tn("load",_);break;case"video":case"audio":for(A=0;A<\/script>",d=d.removeChild(d.firstChild)):typeof _.is=="string"?d=F.createElement(C,{is:_.is}):(d=F.createElement(C),C==="select"&&(F=d,_.multiple?F.multiple=!0:_.size&&(F.size=_.size))):d=F.createElementNS(d,C),d[It]=p,d[Uo]=_,lu(d,p,!1,!1),p.stateNode=d;e:{switch(F=Ct(C,_),C){case"dialog":Tn("cancel",d),Tn("close",d),A=_;break;case"iframe":case"object":case"embed":Tn("load",d),A=_;break;case"video":case"audio":for(A=0;ARi&&(p.flags|=128,_=!0,Ia(N,!1),p.lanes=4194304)}else{if(!_)if(d=Wr(F),d!==null){if(p.flags|=128,_=!0,C=d.updateQueue,C!==null&&(p.updateQueue=C,p.flags|=4),Ia(N,!0),N.tail===null&&N.tailMode==="hidden"&&!F.alternate&&!Nn)return mt(p),null}else 2*Kn()-N.renderingStartTime>Ri&&C!==1073741824&&(p.flags|=128,_=!0,Ia(N,!1),p.lanes=4194304);N.isBackwards?(F.sibling=p.child,p.child=F):(C=N.last,C!==null?C.sibling=F:p.child=F,N.last=F)}return N.tail!==null?(p=N.tail,N.rendering=p,N.tail=p.sibling,N.renderingStartTime=Kn(),p.sibling=null,C=bn.current,Sn(bn,_?C&1|2:C&1),p):(mt(p),null);case 22:case 23:return oc(),_=p.memoizedState!==null,d!==null&&d.memoizedState!==null!==_&&(p.flags|=8192),_&&p.mode&1?Wt&1073741824&&(mt(p),p.subtreeFlags&6&&(p.flags|=8192)):mt(p),null;case 24:return null;case 25:return null}throw Error(s(156,p.tag))}function Yu(d,p){switch(Cs(p),p.tag){case 1:return ht(p.type)&&Ci(),d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 3:return ir(),An(at),An(Zn),ko(),d=p.flags,d&65536&&!(d&128)?(p.flags=d&-65537|128,p):null;case 5:return Ht(p),null;case 13:if(An(bn),d=p.memoizedState,d!==null&&d.dehydrated!==null){if(p.alternate===null)throw Error(s(340));K()}return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 19:return An(bn),null;case 4:return ir(),null;case 10:return Ke(p.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var Ss=!1,vt=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Ti(d,p){var C=d.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(_){kn(d,p,_)}else C.current=null}function Gl(d,p,C){try{C()}catch(_){kn(d,p,_)}}var du=!1;function Zu(d,p){if(va=zi,d=cs(),Qr(d)){if("selectionStart"in d)var C={start:d.selectionStart,end:d.selectionEnd};else e:{C=(C=d.ownerDocument)&&C.defaultView||window;var _=C.getSelection&&C.getSelection();if(_&&_.rangeCount!==0){C=_.anchorNode;var A=_.anchorOffset,N=_.focusNode;_=_.focusOffset;try{C.nodeType,N.nodeType}catch(Ne){C=null;break e}var F=0,re=-1,ue=-1,Ee=0,ye=0,be=d,De=null;n:for(;;){for(var Ge;be!==C||A!==0&&be.nodeType!==3||(re=F+A),be!==N||_!==0&&be.nodeType!==3||(ue=F+_),be.nodeType===3&&(F+=be.nodeValue.length),(Ge=be.firstChild)!==null;)De=be,be=Ge;for(;;){if(be===d)break n;if(De===C&&++Ee===A&&(re=F),De===N&&++ye===_&&(ue=F),(Ge=be.nextSibling)!==null)break;be=De,De=be.parentNode}be=Ge}C=re===-1||ue===-1?null:{start:re,end:ue}}else C=null}C=C||{start:0,end:0}}else C=null;for(xa={focusedElem:d,selectionRange:C},zi=!1,Qe=p;Qe!==null;)if(p=Qe,d=p.child,(p.subtreeFlags&1028)!==0&&d!==null)d.return=p,Qe=d;else for(;Qe!==null;){p=Qe;try{var Je=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(Je!==null){var nn=Je.memoizedProps,Vn=Je.memoizedState,me=p.stateNode,de=me.getSnapshotBeforeUpdate(p.elementType===p.type?nn:sr(p.type,nn),Vn);me.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var ge=p.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Ne){kn(p,p.return,Ne)}if(d=p.sibling,d!==null){d.return=p.return,Qe=d;break}Qe=p.return}return Je=du,du=!1,Je}function Pa(d,p,C){var _=p.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var A=_=_.next;do{if((A.tag&d)===d){var N=A.destroy;A.destroy=void 0,N!==void 0&&Gl(p,C,N)}A=A.next}while(A!==_)}}function bs(d,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var C=p=p.next;do{if((C.tag&d)===d){var _=C.create;C.destroy=_()}C=C.next}while(C!==p)}}function Xl(d){var p=d.ref;if(p!==null){var C=d.stateNode;switch(d.tag){case 5:d=C;break;default:d=C}typeof p=="function"?p(d):p.current=d}}function fu(d){var p=d.alternate;p!==null&&(d.alternate=null,fu(p)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(p=d.stateNode,p!==null&&(delete p[It],delete p[Uo],delete p[No],delete p[Pl],delete p[_l])),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}function hu(d){return d.tag===5||d.tag===3||d.tag===4}function mu(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||hu(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function Hl(d,p,C){var _=d.tag;if(_===5||_===6)d=d.stateNode,p?C.nodeType===8?C.parentNode.insertBefore(d,p):C.insertBefore(d,p):(C.nodeType===8?(p=C.parentNode,p.insertBefore(d,C)):(p=C,p.appendChild(d)),C=C._reactRootContainer,C!=null||p.onclick!==null||(p.onclick=Kr));else if(_!==4&&(d=d.child,d!==null))for(Hl(d,p,C),d=d.sibling;d!==null;)Hl(d,p,C),d=d.sibling}function Yl(d,p,C){var _=d.tag;if(_===5||_===6)d=d.stateNode,p?C.insertBefore(d,p):C.appendChild(d);else if(_!==4&&(d=d.child,d!==null))for(Yl(d,p,C),d=d.sibling;d!==null;)Yl(d,p,C),d=d.sibling}var ct=null,lr=!1;function so(d,p,C){for(C=C.child;C!==null;)vu(d,p,C),C=C.sibling}function vu(d,p,C){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(oi,C)}catch(re){}switch(C.tag){case 5:vt||Ti(C,p);case 6:var _=ct,A=lr;ct=null,so(d,p,C),ct=_,lr=A,ct!==null&&(lr?(d=ct,C=C.stateNode,d.nodeType===8?d.parentNode.removeChild(C):d.removeChild(C)):ct.removeChild(C.stateNode));break;case 18:ct!==null&&(lr?(d=ct,C=C.stateNode,d.nodeType===8?Lo(d.parentNode,C):d.nodeType===1&&Lo(d,C),Io(d)):Lo(ct,C.stateNode));break;case 4:_=ct,A=lr,ct=C.stateNode.containerInfo,lr=!0,so(d,p,C),ct=_,lr=A;break;case 0:case 11:case 14:case 15:if(!vt&&(_=C.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){A=_=_.next;do{var N=A,F=N.destroy;N=N.tag,F!==void 0&&(N&2||N&4)&&Gl(C,p,F),A=A.next}while(A!==_)}so(d,p,C);break;case 1:if(!vt&&(Ti(C,p),_=C.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=C.memoizedProps,_.state=C.memoizedState,_.componentWillUnmount()}catch(re){kn(C,p,re)}so(d,p,C);break;case 21:so(d,p,C);break;case 22:C.mode&1?(vt=(_=vt)||C.memoizedState!==null,so(d,p,C),vt=_):so(d,p,C);break;default:so(d,p,C)}}function xu(d){var p=d.updateQueue;if(p!==null){d.updateQueue=null;var C=d.stateNode;C===null&&(C=d.stateNode=new Qu),p.forEach(function(_){var A=ad.bind(null,d,_);C.has(_)||(C.add(_),_.then(A,A))})}}function cr(d,p){var C=p.deletions;if(C!==null)for(var _=0;_A&&(A=F),_&=~N}if(_=A,_=Kn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*qu(_/1960))-_,10<_){d.timeoutHandle=pa(Qo.bind(null,d,St,$r),_);break}Qo(d,St,$r);break;case 5:Qo(d,St,$r);break;default:throw Error(s(329))}}}return bt(d,Kn()),d.callbackNode===C?Ou.bind(null,d):null}function nc(d,p){var C=Da;return d.current.memoizedState.isDehydrated&&(Yo(d,p).flags|=256),d=Ns(d,p),d!==2&&(p=St,St=C,p!==null&&tc(p)),d}function tc(d){St===null?St=d:St.push.apply(St,d)}function ed(d){for(var p=d;;){if(p.flags&16384){var C=p.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var _=0;_d?16:d,co===null)var _=!1;else{if(d=co,co=null,Ks=0,Mn&6)throw Error(s(331));var A=Mn;for(Mn|=4,Qe=d.current;Qe!==null;){var N=Qe,F=N.child;if(Qe.flags&16){var re=N.deletions;if(re!==null){for(var ue=0;ueKn()-Jl?Yo(d,0):Zl|=C),bt(d,p)}function Su(d,p){p===0&&(d.mode&1?(p=ii,ii<<=1,!(ii&130023424)&&(ii=4194304)):p=1);var C=Et();d=un(d,p),d!==null&&(Co(d,p,C),bt(d,C))}function id(d){var p=d.memoizedState,C=0;p!==null&&(C=p.retryLane),Su(d,C)}function ad(d,p){var C=0;switch(d.tag){case 13:var _=d.stateNode,A=d.memoizedState;A!==null&&(C=A.retryLane);break;case 19:_=d.stateNode;break;default:throw Error(s(314))}_!==null&&_.delete(p),Su(d,C)}var bu;bu=function(p,C,_){if(p!==null)if(p.memoizedProps!==C.pendingProps||at.current)Dt=!0;else{if(!(p.lanes&_)&&!(C.flags&128))return Dt=!1,Xu(p,C,_);Dt=!!(p.flags&131072)}else Dt=!1,Nn&&C.flags&1048576&&js(C,ya,C.index);switch(C.lanes=0,C.tag){case 2:var A=C.type;Ds(p,C),p=C.pendingProps;var N=no(C,Zn.current);we(C,_),N=Pi(null,C,A,p,N,_);var F=_i();return C.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(C.tag=1,C.memoizedState=null,C.updateQueue=null,ht(A)?(F=!0,Oi(C)):F=!1,C.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,jn(C),N.updater=Ps,C.stateNode=N,N._reactInternals=C,Ll(C,A,p,_),C=wl(null,C,A,!0,F,_)):(C.tag=0,Nn&&F&&Es(C),jt(null,C,N,_),C=C.child),C;case 16:A=C.elementType;e:{switch(Ds(p,C),p=C.pendingProps,N=A._init,A=N(A._payload),C.type=A,N=C.tag=ld(A),p=sr(A,p),N){case 0:C=Wl(null,C,A,p,_);break e;case 1:C=tu(null,C,A,p,_);break e;case 11:C=Zc(null,C,A,p,_);break e;case 14:C=Jc(null,C,A,sr(A.type,p),_);break e}throw Error(s(306,A,""))}return C;case 0:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),Wl(p,C,A,N,_);case 1:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),tu(p,C,A,N,_);case 3:e:{if(ru(C),p===null)throw Error(s(387));A=C.pendingProps,F=C.memoizedState,N=F.element,Be(p,C),nt(C,A,null,_);var re=C.memoizedState;if(A=re.element,F.isDehydrated)if(F={element:A,isDehydrated:!1,cache:re.cache,pendingSuspenseBoundaries:re.pendingSuspenseBoundaries,transitions:re.transitions},C.updateQueue.baseState=F,C.memoizedState=F,C.flags&256){N=bi(Error(s(423)),C),C=ou(p,C,A,_,N);break e}else if(A!==N){N=bi(Error(s(424)),C),C=ou(p,C,A,_,N);break e}else for(Pt=Er(C.stateNode.containerInfo.firstChild),lt=C,Nn=!0,Xt=null,_=ae(C,null,A,_),C.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(K(),A===N){C=zr(p,C,_);break e}jt(p,C,A,_)}C=C.child}return C;case 5:return Nr(C),p===null&&Os(C),A=C.type,N=C.pendingProps,F=p!==null?p.memoizedProps:null,re=N.children,ga(A,N)?re=null:F!==null&&ga(A,F)&&(C.flags|=32),nu(p,C),jt(p,C,re,_),C.child;case 6:return p===null&&Os(C),null;case 13:return iu(p,C,_);case 4:return tt(C,C.stateNode.containerInfo),A=C.pendingProps,p===null?C.child=te(C,null,A,_):jt(p,C,A,_),C.child;case 11:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),Zc(p,C,A,N,_);case 7:return jt(p,C,C.pendingProps,_),C.child;case 8:return jt(p,C,C.pendingProps.children,_),C.child;case 12:return jt(p,C,C.pendingProps.children,_),C.child;case 10:e:{if(A=C.type._context,N=C.pendingProps,F=C.memoizedProps,re=N.value,Sn(pe,A._currentValue),A._currentValue=re,F!==null)if(ft(F.value,re)){if(F.children===N.children&&!at.current){C=zr(p,C,_);break e}}else for(F=C.child,F!==null&&(F.return=C);F!==null;){var ue=F.dependencies;if(ue!==null){re=F.child;for(var Ee=ue.firstContext;Ee!==null;){if(Ee.context===A){if(F.tag===1){Ee=on(-1,_&-_),Ee.tag=2;var ye=F.updateQueue;if(ye!==null){ye=ye.shared;var be=ye.pending;be===null?Ee.next=Ee:(Ee.next=be.next,be.next=Ee),ye.pending=Ee}}F.lanes|=_,Ee=F.alternate,Ee!==null&&(Ee.lanes|=_),Le(F.return,_,C),ue.lanes|=_;break}Ee=Ee.next}}else if(F.tag===10)re=F.type===C.type?null:F.child;else if(F.tag===18){if(re=F.return,re===null)throw Error(s(341));re.lanes|=_,ue=re.alternate,ue!==null&&(ue.lanes|=_),Le(re,_,C),re=F.sibling}else re=F.child;if(re!==null)re.return=F;else for(re=F;re!==null;){if(re===C){re=null;break}if(F=re.sibling,F!==null){F.return=re.return,re=F;break}re=re.return}F=re}jt(p,C,N.children,_),C=C.child}return C;case 9:return N=C.type,A=C.pendingProps.children,we(C,_),N=Xe(N),A=A(N),C.flags|=1,jt(p,C,A,_),C.child;case 14:return A=C.type,N=sr(A,C.pendingProps),N=sr(A.type,N),Jc(p,C,A,N,_);case 15:return qc(p,C,C.type,C.pendingProps,_);case 17:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:sr(A,N),Ds(p,C),C.tag=1,ht(A)?(p=!0,Oi(C)):p=!1,we(C,_),Fc(C,A,N),Ll(C,A,N,_),wl(null,C,A,!0,p,_);case 19:return su(p,C,_);case 22:return eu(p,C,_)}throw Error(s(156,C.tag))};function Tu(d,p){return Ka(d,p)}function sd(d,p,C,_){this.tag=d,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(d,p,C,_){return new sd(d,p,C,_)}function ac(d){return d=d.prototype,!(!d||!d.isReactComponent)}function ld(d){if(typeof d=="function")return ac(d)?1:0;if(d!=null){if(d=d.$$typeof,d===G)return 11;if(d===q)return 14}return 2}function ho(d,p){var C=d.alternate;return C===null?(C=Qt(d.tag,p,d.key,d.mode),C.elementType=d.elementType,C.type=d.type,C.stateNode=d.stateNode,C.alternate=d,d.alternate=C):(C.pendingProps=p,C.type=d.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=d.flags&14680064,C.childLanes=d.childLanes,C.lanes=d.lanes,C.child=d.child,C.memoizedProps=d.memoizedProps,C.memoizedState=d.memoizedState,C.updateQueue=d.updateQueue,p=d.dependencies,C.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},C.sibling=d.sibling,C.index=d.index,C.ref=d.ref,C}function Ws(d,p,C,_,A,N){var F=2;if(_=d,typeof d=="function")ac(d)&&(F=1);else if(typeof d=="string")F=5;else e:switch(d){case W:return Zo(C.children,A,N,p);case z:F=8,A|=8;break;case k:return d=Qt(12,C,p,A|2),d.elementType=k,d.lanes=N,d;case ne:return d=Qt(13,C,p,A),d.elementType=ne,d.lanes=N,d;case oe:return d=Qt(19,C,p,A),d.elementType=oe,d.lanes=N,d;case X:return ws(C,A,N,p);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case $:F=10;break e;case Y:F=9;break e;case G:F=11;break e;case q:F=14;break e;case Z:F=16,_=null;break e}throw Error(s(130,d==null?d:typeof d=="undefined"?"undefined":i(d),""))}return p=Qt(F,C,p,A),p.elementType=d,p.type=_,p.lanes=N,p}function Zo(d,p,C,_){return d=Qt(7,d,_,p),d.lanes=C,d}function ws(d,p,C,_){return d=Qt(22,d,_,p),d.elementType=X,d.lanes=C,d.stateNode={isHidden:!1},d}function sc(d,p,C){return d=Qt(6,d,null,p),d.lanes=C,d}function lc(d,p,C){return p=Qt(4,d.children!==null?d.children:[],d.key,p),p.lanes=C,p.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},p}function cd(d,p,C,_,A){this.tag=p,this.containerInfo=d,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Li(0),this.expirationTimes=Li(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Li(0),this.identifierPrefix=_,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function cc(d,p,C,_,A,N,F,re,ue){return d=new cd(d,p,C,re,ue),p===1?(p=1,N===!0&&(p|=8)):p=0,N=Qt(3,null,null,p),d.current=N,N.stateNode=d,N.memoizedState={element:_,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},jn(N),d}function ud(d,p,C){var _=3=0;--J){var ce=this.tryEntries[J],le=ce.completion;if(ce.tryLoc==="root")return V("end");if(ce.tryLoc<=this.prev){var fe=r.call(ce,"catchLoc"),he=r.call(ce,"finallyLoc");if(fe&&he){if(this.prev=0;--V){var J=this.tryEntries[V];if(J.tryLoc<=this.prev&&r.call(J,"finallyLoc")&&this.prev=0;--H){var V=this.tryEntries[H];if(V.finallyLoc===X)return this.complete(V.completion,V.afterLoc),G(V),O}},catch:function(Z){for(var X=this.tryEntries.length-1;X>=0;--X){var H=this.tryEntries[X];if(H.tryLoc===Z){var V=H.completion;if(V.type==="throw"){var J=V.arg;G(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,H,V){return this.delegate={iterator:oe(X),resultName:H,nextLoc:V},this.method==="next"&&(this.arg=g),O}},i}(y.exports);try{regeneratorRuntime=e}catch(i){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(y,h){"use strict";/** + */function n(V){"@swc/helpers - typeof";return V&&typeof Symbol!="undefined"&&V.constructor===Symbol?"symbol":typeof V}var e=Symbol.for("react.element"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),x=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),l=Symbol.iterator;function f(V){return V===null||typeof V!="object"?null:(V=l&&V[l]||V["@@iterator"],typeof V=="function"?V:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,j={};function E(V,J,ce){this.props=V,this.context=J,this.refs=j,this.updater=ce||m}E.prototype.isReactComponent={},E.prototype.setState=function(V,J){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,J,"setState")},E.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function y(){}y.prototype=E.prototype;function M(V,J,ce){this.props=V,this.context=J,this.refs=j,this.updater=ce||m}var P=M.prototype=new y;P.constructor=M,v(P,E.prototype),P.isPureReactComponent=!0;var D=Array.isArray,S=Object.prototype.hasOwnProperty,B={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function U(V,J,ce){var le,fe={},he=null,_e=null;if(J!=null)for(le in J.ref!==void 0&&(_e=J.ref),J.key!==void 0&&(he=""+J.key),J)S.call(J,le)&&!T.hasOwnProperty(le)&&(fe[le]=J[le]);var xe=arguments.length-2;if(xe===1)fe.children=ce;else if(1=0;--J){var ce=this.tryEntries[J],le=ce.completion;if(ce.tryLoc==="root")return V("end");if(ce.tryLoc<=this.prev){var fe=r.call(ce,"catchLoc"),he=r.call(ce,"finallyLoc");if(fe&&he){if(this.prev=0;--V){var J=this.tryEntries[V];if(J.tryLoc<=this.prev&&r.call(J,"finallyLoc")&&this.prev=0;--H){var V=this.tryEntries[H];if(V.finallyLoc===X)return this.complete(V.completion,V.afterLoc),G(V),y}},catch:function(Z){for(var X=this.tryEntries.length-1;X>=0;--X){var H=this.tryEntries[X];if(H.tryLoc===Z){var V=H.completion;if(V.type==="throw"){var J=V.arg;G(H)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,H,V){return this.delegate={iterator:oe(X),resultName:H,nextLoc:V},this.method==="next"&&(this.arg=g),y}},i}(O.exports);try{regeneratorRuntime=e}catch(i){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(O,h){"use strict";/** * @license React * scheduler.production.min.js * @@ -30,29 +30,29 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function n(oe,q){var Z=oe.length;oe.push(q);e:for(;0>>1,H=oe[X];if(0>>1;Xt(ce,Z))let(fe,ce)?(oe[X]=fe,oe[le]=Z,X=le):(oe[X]=ce,oe[J]=Z,X=J);else if(let(fe,Z))oe[X]=fe,oe[le]=Z,X=le;else break e}}return q}function t(oe,q){var Z=oe.sortIndex-q.sortIndex;return Z!==0?Z:oe.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;h.unstable_now=function(){return r.now()}}else{var s=Date,g=s.now();h.unstable_now=function(){return s.now()-g}}var x=[],u=[],o=1,c=null,a=3,l=!1,f=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(oe){for(var q=e(u);q!==null;){if(q.callback===null)i(u);else if(q.startTime<=oe)i(u),q.sortIndex=q.expirationTime,n(x,q);else break;q=e(u)}}function M(oe){if(m=!1,O(oe),!f)if(e(x)!==null)f=!0,G(P);else{var q=e(u);q!==null&&ne(M,q.startTime-oe)}}function P(oe,q){f=!1,m&&(m=!1,j(B),B=-1),l=!0;var Z=a;try{for(O(q),c=e(x);c!==null&&(!(c.expirationTime>q)||oe&&!W());){var X=c.callback;if(typeof X=="function"){c.callback=null,a=c.priorityLevel;var H=X(c.expirationTime<=q);q=h.unstable_now(),typeof H=="function"?c.callback=H:c===e(x)&&i(x),O(q)}else i(x);c=e(x)}if(c!==null)var V=!0;else{var J=e(u);J!==null&&ne(M,J.startTime-q),V=!1}return V}finally{c=null,a=Z,l=!1}}var D=!1,S=null,B=-1,T=5,U=-1;function W(){return!(h.unstable_now()-Uoe||125X?(oe.sortIndex=Z,n(u,oe),e(x)===null&&oe===e(u)&&(m?(j(B),B=-1):m=!0,ne(M,Z-X))):(oe.sortIndex=H,n(x,oe),f||l||(f=!0,G(P))),oe},h.unstable_shouldYield=W,h.unstable_wrapCallback=function(oe){var q=a;return function(){var Z=a;a=q;try{return oe.apply(this,arguments)}finally{a=Z}}}},20686:function(y,h,n){"use strict";y.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(y,h){return h=h||{},new Promise(function(n,e){var i=new XMLHttpRequest,t=[],r={},s=function x(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:x,headers:{keys:function(){return t},entries:function(){return t.map(function(o){return[o,i.getResponseHeader(o)]})},get:function(o){return i.getResponseHeader(o)},has:function(o){return i.getResponseHeader(o)!=null}}}};for(var g in i.open(h.method||"get",y,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(x,u){r[u]||t.push(r[u]=u)}),n(s())},i.onerror=e,i.withCredentials=h.credentials=="include",h.headers)i.setRequestHeader(g,h.headers[g]);i.send(h.body||null)})})},7402:function(y,h,n){"use strict";n.d(h,{TS:function(){return a},Tj:function(){return g},Ul:function(){return u},hS:function(){return l},pb:function(){return s},yU:function(){return m}});/** + */function n(oe,q){var Z=oe.length;oe.push(q);e:for(;0>>1,H=oe[X];if(0>>1;Xt(ce,Z))let(fe,ce)?(oe[X]=fe,oe[le]=Z,X=le):(oe[X]=ce,oe[J]=Z,X=J);else if(let(fe,Z))oe[X]=fe,oe[le]=Z,X=le;else break e}}return q}function t(oe,q){var Z=oe.sortIndex-q.sortIndex;return Z!==0?Z:oe.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;h.unstable_now=function(){return r.now()}}else{var s=Date,g=s.now();h.unstable_now=function(){return s.now()-g}}var x=[],u=[],o=1,c=null,a=3,l=!1,f=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(oe){for(var q=e(u);q!==null;){if(q.callback===null)i(u);else if(q.startTime<=oe)i(u),q.sortIndex=q.expirationTime,n(x,q);else break;q=e(u)}}function M(oe){if(m=!1,y(oe),!f)if(e(x)!==null)f=!0,G(P);else{var q=e(u);q!==null&&ne(M,q.startTime-oe)}}function P(oe,q){f=!1,m&&(m=!1,j(B),B=-1),l=!0;var Z=a;try{for(y(q),c=e(x);c!==null&&(!(c.expirationTime>q)||oe&&!W());){var X=c.callback;if(typeof X=="function"){c.callback=null,a=c.priorityLevel;var H=X(c.expirationTime<=q);q=h.unstable_now(),typeof H=="function"?c.callback=H:c===e(x)&&i(x),y(q)}else i(x);c=e(x)}if(c!==null)var V=!0;else{var J=e(u);J!==null&&ne(M,J.startTime-q),V=!1}return V}finally{c=null,a=Z,l=!1}}var D=!1,S=null,B=-1,T=5,U=-1;function W(){return!(h.unstable_now()-Uoe||125X?(oe.sortIndex=Z,n(u,oe),e(x)===null&&oe===e(u)&&(m?(j(B),B=-1):m=!0,ne(M,Z-X))):(oe.sortIndex=H,n(x,oe),f||l||(f=!0,G(P))),oe},h.unstable_shouldYield=W,h.unstable_wrapCallback=function(oe){var q=a;return function(){var Z=a;a=q;try{return oe.apply(this,arguments)}finally{a=Z}}}},20686:function(O,h,n){"use strict";O.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(O,h){return h=h||{},new Promise(function(n,e){var i=new XMLHttpRequest,t=[],r={},s=function x(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:x,headers:{keys:function(){return t},entries:function(){return t.map(function(o){return[o,i.getResponseHeader(o)]})},get:function(o){return i.getResponseHeader(o)},has:function(o){return i.getResponseHeader(o)!=null}}}};for(var g in i.open(h.method||"get",O,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(x,u){r[u]||t.push(r[u]=u)}),n(s())},i.onerror=e,i.withCredentials=h.credentials=="include",h.headers)i.setRequestHeader(g,h.headers[g]);i.send(h.body||null)})})},7402:function(O,h,n){"use strict";n.d(h,{TS:function(){return a},Tj:function(){return g},Ul:function(){return u},hS:function(){return l},pb:function(){return s},yU:function(){return m}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(P,D){(D==null||D>P.length)&&(D=P.length);for(var S=0,B=new Array(D);S=P.length?{done:!0}:{done:!1,value:P[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(P,D){if(P==null)return P;if(Array.isArray(P)){for(var S=[],B=0;Bz)return 1}return 0},u=function(P){for(var D=function($){var Y=P[$];W.push({criteria:B.map(function(G){return G(Y)}),value:Y})},S=arguments.length,B=new Array(S>1?S-1:0),T=1;T>1,z=P(D[k]),zB?k:k+1},j=function(P,D,S){var B=[].concat(P);return B.splice(v(S,P,D),0,D),B},E=function(P,D){for(var S=[],B=[],T=D,U=r(P),W;!(W=U()).done;){var z=W.value;B.push(z),T--,T||(T=D,S.push(B),B=[])}return B.length&&S.push(B),S},O=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,D=new Array(P),S=0;SP.length)&&(D=P.length);for(var S=0,B=new Array(D);S=P.length?{done:!0}:{done:!1,value:P[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(P,D){if(P==null)return P;if(Array.isArray(P)){for(var S=[],B=0;Bz)return 1}return 0},u=function(P){for(var D=function($){var Y=P[$];W.push({criteria:B.map(function(G){return G(Y)}),value:Y})},S=arguments.length,B=new Array(S>1?S-1:0),T=1;T>1,z=P(D[k]),zB?k:k+1},j=function(P,D,S){var B=[].concat(P);return B.splice(v(S,P,D),0,D),B},E=function(P,D){for(var S=[],B=[],T=D,U=r(P),W;!(W=U()).done;){var z=W.value;B.push(z),T--,T||(T=D,S.push(B),B=[])}return B.length&&S.push(B),S},y=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,D=new Array(P),S=0;S1?g-1:0),u=1;u1?g-1:0),u=1;ug.length)&&(x=g.length);for(var u=0,o=new Array(x);u=g.length?{done:!0}:{done:!1,value:g[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,s=function(){for(var g=arguments.length,x=new Array(g),u=0;u1?a-1:0),f=1;fg.length)&&(x=g.length);for(var u=0,o=new Array(x);u=g.length?{done:!0}:{done:!1,value:g[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,s=function(){for(var g=arguments.length,x=new Array(g),u=0;u1?a-1:0),f=1;fl.length)&&(f=l.length);for(var m=0,v=new Array(f);m=l.length?{done:!0}:{done:!1,value:l[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(l,f,m){return lm?m:l},s=function(l){return l<0?0:l>1?1:l},g=function(l,f,m){return(l-f)/(m-f)},x=function(l,f){if(!l||isNaN(l))return l;var m,v,j,E;return f|=0,m=Math.pow(10,f),l*=m,E=+(l>0)|-(l<0),j=Math.abs(l%1)>=.4999999999854481,v=Math.floor(l),j&&(l=v+(E>0)),(j?l:Math.round(l))/m},u=function(l,f){return f===void 0&&(f=0),Number(l).toFixed(Math.max(f,0))},o=function(l,f){return f&&l>=f[0]&&l<=f[1]},c=function(l,f){for(var m=t(Object.keys(f)),v;!(v=m()).done;){var j=v.value,E=f[j];if(o(l,E))return j}},a=function(l){return Math.floor(l)!==l&&l.toString().split(".")[1].length||0}},56236:function(y,h,n){"use strict";n.d(h,{k:function(){return c}});/** + */function e(l,f){(f==null||f>l.length)&&(f=l.length);for(var m=0,v=new Array(f);m=l.length?{done:!0}:{done:!1,value:l[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(l,f,m){return lm?m:l},s=function(l){return l<0?0:l>1?1:l},g=function(l,f,m){return(l-f)/(m-f)},x=function(l,f){if(!l||isNaN(l))return l;var m,v,j,E;return f|=0,m=Math.pow(10,f),l*=m,E=+(l>0)|-(l<0),j=Math.abs(l%1)>=.4999999999854481,v=Math.floor(l),j&&(l=v+(E>0)),(j?l:Math.round(l))/m},u=function(l,f){return f===void 0&&(f=0),Number(l).toFixed(Math.max(f,0))},o=function(l,f){return f&&l>=f[0]&&l<=f[1]},c=function(l,f){for(var m=t(Object.keys(f)),v;!(v=m()).done;){var j=v.value,E=f[j];if(o(l,E))return j}},a=function(l){return Math.floor(l)!==l&&l.toString().split(".")[1].length||0}},56236:function(O,h,n){"use strict";n.d(h,{k:function(){return c}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -60,25 +60,25 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,i=60,t=1e3/i,r=!!((e=window.performance)!=null&&e.now),s={},g={};function x(a,l){}function u(a,l){return;var f,m,v}function o(a){var l=a/t;return a.toFixed(a<10?1:0)+"ms ("+l.toFixed(2)+" frames)"}var c={mark:x,measure:u}},65380:function(y,h,n){"use strict";n.d(h,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** + */var e,i=60,t=1e3/i,r=!!((e=window.performance)!=null&&e.now),s={},g={};function x(a,l){}function u(a,l){return;var f,m,v}function o(a){var l=a/t;return a.toFixed(a<10?1:0)+"ms ("+l.toFixed(2)+" frames)"}var c={mark:x,measure:u}},65380:function(O,h,n){"use strict";n.d(h,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(s){for(var g="",x=0;xo.length)&&(c=o.length);for(var a=0,l=new Array(c);a=o.length?{done:!0}:{done:!1,value:o[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(o,c){if(c)return c(s)(o);var a,l=[],f=function(){return a},m=function(j){l.push(j)},v=function(j){a=o(a,j);for(var E=0;E1?m-1:0),j=1;j1?S-1:0),T=1;T1?S-1:0),T=1;To.length)&&(c=o.length);for(var a=0,l=new Array(c);a=o.length?{done:!0}:{done:!1,value:o[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(o,c){if(c)return c(s)(o);var a,l=[],f=function(){return a},m=function(j){l.push(j)},v=function(j){a=o(a,j);for(var E=0;E1?m-1:0),j=1;j1?S-1:0),T=1;T1?S-1:0),T=1;T0&&T[T.length-1])&&($[0]===6||$[0]===2)){W=0;continue}if($[0]===3&&(!T||$[1]>T[0]&&$[1]0&&T[T.length-1])&&($[0]===6||$[0]===2)){W=0;continue}if($[0]===3&&(!T||$[1]>T[0]&&$[1]m.length)&&(v=m.length);for(var j=0,E=new Array(v);j=m.length?{done:!0}:{done:!1,value:m[E++]}}}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 r(m,v){v===void 0&&(v=function(E){return JSON.stringify(E)});var j=m.toLowerCase().trim();return function(E){if(!j)return!0;var O=v(E);return O?O.toLowerCase().includes(j):!1}}function s(m){return m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()}function g(m){return m.replace(/(^\w{1})|(\s+\w{1})/g,function(v){return v.toUpperCase()})}function x(m){return m.replace(/^\w/,function(v){return v.toUpperCase()})}var u=["Id","Tv"],o=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function c(m){if(!m)return m;for(var v=m.replace(/([^\W_]+[^\s-]*) */g,function(T){return s(T)}),j=t(o),E;!(E=j()).done;){var O=E.value,M=new RegExp("\\s"+O+"\\s","g");v=v.replace(M,function(T){return T.toLowerCase()})}for(var P=t(u),D;!(D=P()).done;){var S=D.value,B=new RegExp("\\b"+S+"\\b","g");v=v.replace(B,function(T){return T.toLowerCase()})}return v}var a=/&(nbsp|amp|quot|lt|gt|apos);/g,l={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function f(m){return m&&m.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(a,function(v,j){return l[j]}).replace(/&#?([0-9]+);/gi,function(v,j){var E=parseInt(j,10);return String.fromCharCode(E)}).replace(/&#x?([0-9a-f]+);/gi,function(v,j){var E=parseInt(j,16);return String.fromCharCode(E)})}},87760:function(y,h,n){"use strict";n.d(h,{CO:function(){return g},Jk:function(){return l},Xd:function(){return c},Z4:function(){return x},tk:function(){return u}});var e=n(7402);/** + */function e(m,v){(v==null||v>m.length)&&(v=m.length);for(var j=0,E=new Array(v);j=m.length?{done:!0}:{done:!1,value:m[E++]}}}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 r(m,v){v===void 0&&(v=function(E){return JSON.stringify(E)});var j=m.toLowerCase().trim();return function(E){if(!j)return!0;var y=v(E);return y?y.toLowerCase().includes(j):!1}}function s(m){return m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()}function g(m){return m.replace(/(^\w{1})|(\s+\w{1})/g,function(v){return v.toUpperCase()})}function x(m){return m.replace(/^\w/,function(v){return v.toUpperCase()})}var u=["Id","Tv"],o=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function c(m){if(!m)return m;for(var v=m.replace(/([^\W_]+[^\s-]*) */g,function(T){return s(T)}),j=t(o),E;!(E=j()).done;){var y=E.value,M=new RegExp("\\s"+y+"\\s","g");v=v.replace(M,function(T){return T.toLowerCase()})}for(var P=t(u),D;!(D=P()).done;){var S=D.value,B=new RegExp("\\b"+S+"\\b","g");v=v.replace(B,function(T){return T.toLowerCase()})}return v}var a=/&(nbsp|amp|quot|lt|gt|apos);/g,l={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function f(m){return m&&m.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(a,function(v,j){return l[j]}).replace(/&#?([0-9]+);/gi,function(v,j){var E=parseInt(j,10);return String.fromCharCode(E)}).replace(/&#x?([0-9a-f]+);/gi,function(v,j){var E=parseInt(j,16);return String.fromCharCode(E)})}},87760:function(O,h,n){"use strict";n.d(h,{CO:function(){return g},Jk:function(){return l},Xd:function(){return c},Z4:function(){return x},tk:function(){return u}});var e=n(7402);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -86,11 +86,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var i=function(m,v){return m+v},t=function(m,v){return m-v},r=function(m,v){return m*v},s=function(m,v){return m/v},g=function(){for(var m=arguments.length,v=new Array(m),j=0;ju.length)&&(o=u.length);for(var c=0,a=new Array(o);c=u.length?{done:!0}:{done:!1,value:u[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],s={},g=function(u){return s[u]||u},x=function(u){return function(o){return function(c){var a=c.type,l=c.payload;if(a==="asset/stylesheet"){Byond.loadCss(l);return}if(a==="asset/mappings"){for(var f=function(){var j=v.value;if(r.some(function(M){return M.test(j)}))return"continue";var E=l[j],O=j.split(".").pop();s[j]=E,O==="css"&&Byond.loadCss(E),O==="js"&&Byond.loadJs(E)},m=t(Object.keys(l)),v;!(v=m()).done;)f();return}o(c)}}}},7081:function(y,h,n){"use strict";n.d(h,{H$:function(){return m},J3:function(){return f},JV:function(){return E},Oc:function(){return T},QY:function(){return W},d4:function(){return k},jB:function(){return P},pX:function(){return D}});var e=n(56236),i=n(74429),t=n(21547),r=n(37912),s=n(49945),g=n(92736),x=n(67278);/** + */function e(u,o){(o==null||o>u.length)&&(o=u.length);for(var c=0,a=new Array(o);c=u.length?{done:!0}:{done:!1,value:u[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],s={},g=function(u){return s[u]||u},x=function(u){return function(o){return function(c){var a=c.type,l=c.payload;if(a==="asset/stylesheet"){Byond.loadCss(l);return}if(a==="asset/mappings"){for(var f=function(){var j=v.value;if(r.some(function(M){return M.test(j)}))return"continue";var E=l[j],y=j.split(".").pop();s[j]=E,y==="css"&&Byond.loadCss(E),y==="js"&&Byond.loadJs(E)},m=t(Object.keys(l)),v;!(v=m()).done;)f();return}o(c)}}}},7081:function(O,h,n){"use strict";n.d(h,{H$:function(){return m},J3:function(){return f},JV:function(){return E},Oc:function(){return T},QY:function(){return W},d4:function(){return k},jB:function(){return P},pX:function(){return D}});var e=n(56236),i=n(74429),t=n(21547),r=n(37912),s=n(49945),g=n(92736),x=n(67278);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,33 +101,33 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function u($,Y){(Y==null||Y>$.length)&&(Y=$.length);for(var G=0,ne=new Array(Y);G=$.length?{done:!0}:{done:!1,value:$[ne++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=(0,g.h)("backend"),f,m=function($){f=$},v=(0,i.VP)("backend/update"),j=(0,i.VP)("backend/setSharedState"),E=(0,i.VP)("backend/suspendStart"),O=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},M={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},P=function($,Y){$===void 0&&($=M);var G=Y.type,ne=Y.payload;if(G==="backend/update"){var oe=o({},$.config,ne.config),q=o({},$.data,ne.static_data,ne.data),Z=o({},$.shared);if(ne.shared)for(var X=a(Object.keys(ne.shared)),H;!(H=X()).done;){var V=H.value,J=ne.shared[V];J===""?Z[V]=void 0:Z[V]=JSON.parse(J)}return o({},$,{config:oe,data:q,shared:Z,suspended:!1})}if(G==="backend/setSharedState"){var ce=ne.key,le=ne.nextState,fe;return o({},$,{shared:o({},$.shared,(fe={},fe[ce]=le,fe))})}if(G==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),G==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),G==="backend/suspendStart")return o({},$,{suspending:!0});if(G==="backend/suspendSuccess"){var he=ne.timestamp;return o({},$,{data:{},shared:{},config:o({},$.config,{title:"",status:1}),suspending:!1,suspended:he})}return $},D=function($){var Y,G;return function(ne){return function(oe){var q=B($.getState()).suspended,Z=oe.type,X=oe.payload;if(Z==="update"){$.dispatch(v(X));return}if(Z==="suspend"){$.dispatch(O());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!G){l.log("suspending ("+Byond.windowId+")");var H=function(){return Byond.sendMessage("suspend")};H(),G=setInterval(H,2e3)}if(Z==="backend/suspendSuccess"&&((0,x.Su)(),clearInterval(G),G=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){return(0,s.$)()})),Z==="backend/update"){var V,J,ce=(J=X.config)==null||(V=J.window)==null?void 0:V.fancy;Y===void 0?Y=ce:Y!==ce&&(l.log("changing fancy mode to",ce),Y=ce,Byond.winset(Byond.windowId,{titlebar:!ce,"can-resize":!ce}))}return Z==="backend/update"&&q&&(l.log("backend/update",X),(0,x.P7)(),(0,t.MN)(),setTimeout(function(){e.k.mark("resume/start");var le=B($.getState()).suspended;le||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),ne(oe)}}},S=function($,Y){Y===void 0&&(Y={});var G=typeof Y=="object"&&Y!==null&&!Array.isArray(Y);if(!G){l.error("Payload for act() must be an object, got this:",Y);return}Byond.sendMessage("act/"+$,Y)},B=function($){return $.backend||{}},T=function(){var $,Y=f==null||($=f.getState())==null?void 0:$.backend;return o({},Y,{act:S})},U=function($,Y){var G,ne=f==null||(G=f.getState())==null?void 0:G.backend,oe,q=(oe=ne==null?void 0:ne.shared)!=null?oe:{},Z=$ in q?q[$]:Y;return[Z,function(X){f.dispatch(j({key:$,nextState:typeof X=="function"?X(Z):X}))}]},W=function($,Y){var G,ne=f==null||(G=f.getState())==null?void 0:G.backend,oe,q=(oe=ne==null?void 0:ne.shared)!=null?oe:{},Z=$ in q?q[$]:Y;return[Z,function(X){Byond.sendMessage({type:"setSharedState",key:$,value:JSON.stringify(typeof X=="function"?X(Z):X)||""})}]},z=function(){return f.dispatch},k=function($){return $(f==null?void 0:f.getState())}},96781:function(y,h,n){"use strict";n.d(h,{Fl:function(){return D},WP:function(){return S},az:function(){return B},zA:function(){return c}});var e=n(65380),i=n(61358),t=n(79500),r=n(92736);/** + */function u($,Y){(Y==null||Y>$.length)&&(Y=$.length);for(var G=0,ne=new Array(Y);G=$.length?{done:!0}:{done:!1,value:$[ne++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=(0,g.h)("backend"),f,m=function($){f=$},v=(0,i.VP)("backend/update"),j=(0,i.VP)("backend/setSharedState"),E=(0,i.VP)("backend/suspendStart"),y=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},M={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},P=function($,Y){$===void 0&&($=M);var G=Y.type,ne=Y.payload;if(G==="backend/update"){var oe=o({},$.config,ne.config),q=o({},$.data,ne.static_data,ne.data),Z=o({},$.shared);if(ne.shared)for(var X=a(Object.keys(ne.shared)),H;!(H=X()).done;){var V=H.value,J=ne.shared[V];J===""?Z[V]=void 0:Z[V]=JSON.parse(J)}return o({},$,{config:oe,data:q,shared:Z,suspended:!1})}if(G==="backend/setSharedState"){var ce=ne.key,le=ne.nextState,fe;return o({},$,{shared:o({},$.shared,(fe={},fe[ce]=le,fe))})}if(G==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),G==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),G==="backend/suspendStart")return o({},$,{suspending:!0});if(G==="backend/suspendSuccess"){var he=ne.timestamp;return o({},$,{data:{},shared:{},config:o({},$.config,{title:"",status:1}),suspending:!1,suspended:he})}return $},D=function($){var Y,G;return function(ne){return function(oe){var q=B($.getState()).suspended,Z=oe.type,X=oe.payload;if(Z==="update"){$.dispatch(v(X));return}if(Z==="suspend"){$.dispatch(y());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!G){l.log("suspending ("+Byond.windowId+")");var H=function(){return Byond.sendMessage("suspend")};H(),G=setInterval(H,2e3)}if(Z==="backend/suspendSuccess"&&((0,x.Su)(),clearInterval(G),G=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){return(0,s.$)()})),Z==="backend/update"){var V,J,ce=(J=X.config)==null||(V=J.window)==null?void 0:V.fancy;Y===void 0?Y=ce:Y!==ce&&(l.log("changing fancy mode to",ce),Y=ce,Byond.winset(Byond.windowId,{titlebar:!ce,"can-resize":!ce}))}return Z==="backend/update"&&q&&(l.log("backend/update",X),(0,x.P7)(),(0,t.MN)(),setTimeout(function(){e.k.mark("resume/start");var le=B($.getState()).suspended;le||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),ne(oe)}}},S=function($,Y){Y===void 0&&(Y={});var G=typeof Y=="object"&&Y!==null&&!Array.isArray(Y);if(!G){l.error("Payload for act() must be an object, got this:",Y);return}Byond.sendMessage("act/"+$,Y)},B=function($){return $.backend||{}},T=function(){var $,Y=f==null||($=f.getState())==null?void 0:$.backend;return o({},Y,{act:S})},U=function($,Y){var G,ne=f==null||(G=f.getState())==null?void 0:G.backend,oe,q=(oe=ne==null?void 0:ne.shared)!=null?oe:{},Z=$ in q?q[$]:Y;return[Z,function(X){f.dispatch(j({key:$,nextState:typeof X=="function"?X(Z):X}))}]},W=function($,Y){var G,ne=f==null||(G=f.getState())==null?void 0:G.backend,oe,q=(oe=ne==null?void 0:ne.shared)!=null?oe:{},Z=$ in q?q[$]:Y;return[Z,function(X){Byond.sendMessage({type:"setSharedState",key:$,value:JSON.stringify(typeof X=="function"?X(Z):X)||""})}]},z=function(){return f.dispatch},k=function($){return $(f==null?void 0:f.getState())}},96781:function(O,h,n){"use strict";n.d(h,{Fl:function(){return D},WP:function(){return S},az:function(){return B},zA:function(){return c}});var e=n(65380),i=n(61358),t=n(79500),r=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function s(T,U){(U==null||U>T.length)&&(U=T.length);for(var W=0,z=new Array(U);W=0)&&(W[k]=T[k]);return W}function u(T,U){if(T){if(typeof T=="string")return s(T,U);var W=Object.prototype.toString.call(T).slice(8,-1);if(W==="Object"&&T.constructor&&(W=T.constructor.name),W==="Map"||W==="Set")return Array.from(W);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return s(T,U)}}function o(T,U){var W=typeof Symbol!="undefined"&&T[Symbol.iterator]||T["@@iterator"];if(W)return(W=W.call(T)).next.bind(W);if(Array.isArray(T)||(W=u(T))||U&&T&&typeof T.length=="number"){W&&(T=W);var z=0;return function(){return z>=T.length?{done:!0}:{done:!1,value:T[z++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(T){if(typeof T=="string")return T.endsWith("px")?parseFloat(T)/12+"rem":T;if(typeof T=="number")return T+"rem"},a=function(T){if(typeof T=="string")return c(T);if(typeof T=="number")return c(T*.5)},l=function(T){return!f(T)},f=function(T){return typeof T=="string"&&t.NE.includes(T)},m=function(T){return function(U,W){(typeof W=="number"||typeof W=="string")&&(U[T]=W)}},v=function(T,U){return function(W,z){(typeof z=="number"||typeof z=="string")&&(W[T]=U(z))}},j=function(T,U){return function(W,z){z&&(W[T]=U)}},E=function(T,U,W){return function(z,k){if(typeof k=="number"||typeof k=="string")for(var $=0;$=0)&&(c[l]=u[l]);return c}var g=5;function x(u){var o=u.fixBlur,c=o===void 0?!0:o,a=u.fixErrors,l=a===void 0?!1:a,f=u.objectFit,m=f===void 0?"fill":f,v=u.src,j=s(u,["fixBlur","fixErrors","objectFit","src"]),E=(0,i.useRef)(0),O=(0,t.Fl)(j);return O.style=r({},O.style,{"-ms-interpolation-mode":c?"nearest-neighbor":"auto",objectFit:m}),(0,e.jsx)("img",r({onError:function(M){if(l&&E.currentT.length)&&(U=T.length);for(var W=0,z=new Array(U);W=0)&&(W[k]=T[k]);return W}function u(T,U){if(T){if(typeof T=="string")return s(T,U);var W=Object.prototype.toString.call(T).slice(8,-1);if(W==="Object"&&T.constructor&&(W=T.constructor.name),W==="Map"||W==="Set")return Array.from(W);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return s(T,U)}}function o(T,U){var W=typeof Symbol!="undefined"&&T[Symbol.iterator]||T["@@iterator"];if(W)return(W=W.call(T)).next.bind(W);if(Array.isArray(T)||(W=u(T))||U&&T&&typeof T.length=="number"){W&&(T=W);var z=0;return function(){return z>=T.length?{done:!0}:{done:!1,value:T[z++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(T){if(typeof T=="string")return T.endsWith("px")?parseFloat(T)/12+"rem":T;if(typeof T=="number")return T+"rem"},a=function(T){if(typeof T=="string")return c(T);if(typeof T=="number")return c(T*.5)},l=function(T){return!f(T)},f=function(T){return typeof T=="string"&&t.NE.includes(T)},m=function(T){return function(U,W){(typeof W=="number"||typeof W=="string")&&(U[T]=W)}},v=function(T,U){return function(W,z){(typeof z=="number"||typeof z=="string")&&(W[T]=U(z))}},j=function(T,U){return function(W,z){z&&(W[T]=U)}},E=function(T,U,W){return function(z,k){if(typeof k=="number"||typeof k=="string")for(var $=0;$=0)&&(c[l]=u[l]);return c}var g=5;function x(u){var o=u.fixBlur,c=o===void 0?!0:o,a=u.fixErrors,l=a===void 0?!1:a,f=u.objectFit,m=f===void 0?"fill":f,v=u.src,j=s(u,["fixBlur","fixErrors","objectFit","src"]),E=(0,i.useRef)(0),y=(0,t.Fl)(j);return y.style=r({},y.style,{"-ms-interpolation-mode":c?"nearest-neighbor":"auto",objectFit:m}),(0,e.jsx)("img",r({onError:function(M){if(l&&E.current=0)&&(a[f]=o[f]);return a}var g=function(o){var c=o.className,a=o.collapsing,l=o.children,f=s(o,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,i.Ly)(["Table",a&&"Table--collapsing",c,(0,t.WP)(f)])},(0,t.Fl)(f),{children:(0,e.jsx)("tbody",{children:l})}))},x=function(o){var c=o.className,a=o.header,l=s(o,["className","header"]);return(0,e.jsx)("tr",r({className:(0,i.Ly)(["Table__row",a&&"Table__row--header",c,(0,t.WP)(o)])},(0,t.Fl)(l)))},u=function(o){var c=o.className,a=o.collapsing,l=o.header,f=s(o,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,i.Ly)(["Table__cell",a&&"Table__cell--collapsing",l&&"Table__cell--header",c,(0,t.WP)(o)])},(0,t.Fl)(f)))};g.Row=x,g.Cell=u},21148:function(y,h,n){"use strict";n.d(h,{zv:function(){return c},y5:function(){return a},Z8:function(){return j},Y0:function(){return D},az:function(){return O.az},$n:function(){return Yn},D1:function(){return fi},t1:function(){return Do},Nt:function(){return ol},BK:function(){return Gi},Rr:function(){return Hi},cG:function(){return qa},Hx:function(){return Hr},ms:function(){return bo},so:function(){return gr},In:function(){return W},_V:function(){return ll._},pd:function(){return fa},N6:function(){return Tn},Wx:function(){return eo},Ki:function(){return pr},aF:function(){return Il},tx:function(){return It},IC:function(){return _l},Q7:function(){return Ea},ND:function(){return ts},z2:function(){return jl},SM:function(){return yi},wn:function(){return yr},Ap:function(){return zo},BJ:function(){return Ar},XI:function(){return ft.XI},tU:function(){return Mr},fs:function(){return js},m_:function(){return dt}});var e=n(20462),i=n(4089),t=n(61358);/** + */function r(){return r=Object.assign||function(o){for(var c=1;c=0)&&(a[f]=o[f]);return a}var g=function(o){var c=o.className,a=o.collapsing,l=o.children,f=s(o,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,i.Ly)(["Table",a&&"Table--collapsing",c,(0,t.WP)(f)])},(0,t.Fl)(f),{children:(0,e.jsx)("tbody",{children:l})}))},x=function(o){var c=o.className,a=o.header,l=s(o,["className","header"]);return(0,e.jsx)("tr",r({className:(0,i.Ly)(["Table__row",a&&"Table__row--header",c,(0,t.WP)(o)])},(0,t.Fl)(l)))},u=function(o){var c=o.className,a=o.collapsing,l=o.header,f=s(o,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,i.Ly)(["Table__cell",a&&"Table__cell--collapsing",l&&"Table__cell--header",c,(0,t.WP)(o)])},(0,t.Fl)(f)))};g.Row=x,g.Cell=u},21148:function(O,h,n){"use strict";n.d(h,{zv:function(){return c},y5:function(){return a},Z8:function(){return j},Y0:function(){return D},az:function(){return y.az},$n:function(){return Yn},D1:function(){return fi},t1:function(){return Do},Nt:function(){return ol},BK:function(){return Gi},Rr:function(){return Hi},cG:function(){return qa},Hx:function(){return Hr},ms:function(){return bo},so:function(){return gr},In:function(){return W},_V:function(){return ll._},pd:function(){return fa},N6:function(){return Tn},Wx:function(){return eo},Ki:function(){return pr},aF:function(){return Il},tx:function(){return It},IC:function(){return _l},Q7:function(){return Ea},ND:function(){return ts},z2:function(){return jl},SM:function(){return Oi},wn:function(){return Or},Ap:function(){return zo},BJ:function(){return Ar},XI:function(){return ft.XI},tU:function(){return Mr},fs:function(){return js},m_:function(){return dt}});var e=n(20462),i=n(4089),t=n(61358);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&&s(I,b)}function s(I,b){return s=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},s(I,b)}var g=function(I){return typeof I=="number"&&Number.isFinite(I)&&!Number.isNaN(I)},x=1e3/60,u=.8333,o=.001,c=function(I){"use strict";r(b,I);function b(L){var R;R=I.call(this,L)||this,R.ref=(0,t.createRef)(),R.currentValue=0;var w=L.initial,Q=L.value;return w!==void 0&&g(w)?R.currentValue=w:g(Q)&&(R.currentValue=Q),R}var K=b.prototype;return K.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},K.componentWillUnmount=function(){this.stopTicking()},K.shouldComponentUpdate=function(R){return R.value!==this.props.value&&this.startTicking(),!1},K.startTicking=function(){var R=this;this.interval===void 0&&(this.interval=setInterval(function(){return R.tick()},x))},K.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},K.tick=function(){var R=this.currentValue,w=this.props.value;g(w)?this.currentValue=R*u+w*(1-u):this.stopTicking(),Math.abs(w-this.currentValue)=0)&&(K[R]=I[R]);return K}function D(I){var b=I.className,K=P(I,["className"]);return(0,e.jsx)(O.az,M({className:(0,E.Ly)(["BlockQuote",b])},K))}var S=n(87239);/** + */function M(){return M=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function D(I){var b=I.className,K=P(I,["className"]);return(0,e.jsx)(y.az,M({className:(0,E.Ly)(["BlockQuote",b])},K))}var S=n(87239);/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT - */function B(){return B=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var U=/-o$/,W=function(I){var b=I.name,K=I.size,L=I.spin,R=I.className,w=I.rotation,Q=T(I,["name","size","spin","className","rotation"]),ie=Q.style||{};K&&(ie.fontSize=K*100+"%"),w&&(ie.transform="rotate("+w+"deg)"),Q.style=ie;var se=(0,O.Fl)(Q),te="";if(b.startsWith("tg-"))te=b;else{var ae=U.test(b),pe=b.replace(U,""),Ce=!pe.startsWith("fa-");te=ae?"far ":"fas ",Ce&&(te+="fa-"),te+=pe,L&&(te+=" fa-spin")}return(0,e.jsx)("i",B({className:(0,E.Ly)(["Icon",te,R,(0,O.WP)(Q)])},se))},z=function(I){var b=I.className,K=I.children,L=T(I,["className","children"]);return(0,e.jsx)("span",B({className:(0,E.Ly)(["IconStack",b,(0,O.WP)(L)])},(0,O.Fl)(L),{children:K}))};W.Stack=z;function k(I){if(I==null)return window;if(I.toString()!=="[object Window]"){var b=I.ownerDocument;return b&&b.defaultView||window}return I}function $(I,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](I):I instanceof b}function Y(I){var b=k(I).Element;return $(I,b)||$(I,Element)}function G(I){var b=k(I).HTMLElement;return $(I,b)||$(I,HTMLElement)}function ne(I){if(typeof ShadowRoot=="undefined")return!1;var b=k(I).ShadowRoot;return $(I,b)||$(I,ShadowRoot)}var oe=Math.max,q=Math.min,Z=Math.round;function X(){var I=navigator.userAgentData;return I!=null&&I.brands&&Array.isArray(I.brands)?I.brands.map(function(b){return b.brand+"/"+b.version}).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(X())}function V(I,b,K){b===void 0&&(b=!1),K===void 0&&(K=!1);var L=I.getBoundingClientRect(),R=1,w=1;b&&G(I)&&(R=I.offsetWidth>0&&Z(L.width)/I.offsetWidth||1,w=I.offsetHeight>0&&Z(L.height)/I.offsetHeight||1);var Q=Y(I)?k(I):window,ie=Q.visualViewport,se=!H()&&K,te=(L.left+(se&&ie?ie.offsetLeft:0))/R,ae=(L.top+(se&&ie?ie.offsetTop:0))/w,pe=L.width/R,Ce=L.height/w;return{width:pe,height:Ce,top:ae,right:te+pe,bottom:ae+Ce,left:te,x:te,y:ae}}function J(I){var b=k(I),K=b.pageXOffset,L=b.pageYOffset;return{scrollLeft:K,scrollTop:L}}function ce(I){return{scrollLeft:I.scrollLeft,scrollTop:I.scrollTop}}function le(I){return I===k(I)||!G(I)?J(I):ce(I)}function fe(I){return I?(I.nodeName||"").toLowerCase():null}function he(I){return((Y(I)?I.ownerDocument:I.document)||window.document).documentElement}function _e(I){return V(he(I)).left+J(I).scrollLeft}function xe(I){return k(I).getComputedStyle(I)}function je(I){var b=xe(I),K=b.overflow,L=b.overflowX,R=b.overflowY;return/auto|scroll|overlay|hidden/.test(K+R+L)}function Re(I){var b=I.getBoundingClientRect(),K=Z(b.width)/I.offsetWidth||1,L=Z(b.height)/I.offsetHeight||1;return K!==1||L!==1}function qe(I,b,K){K===void 0&&(K=!1);var L=G(b),R=G(b)&&Re(b),w=he(b),Q=V(I,R,K),ie={scrollLeft:0,scrollTop:0},se={x:0,y:0};return(L||!L&&!K)&&((fe(b)!=="body"||je(w))&&(ie=le(b)),G(b)?(se=V(b,!0),se.x+=b.clientLeft,se.y+=b.clientTop):w&&(se.x=_e(w))),{x:Q.left+ie.scrollLeft-se.x,y:Q.top+ie.scrollTop-se.y,width:Q.width,height:Q.height}}function Fe(I){var b=V(I),K=I.offsetWidth,L=I.offsetHeight;return Math.abs(b.width-K)<=1&&(K=b.width),Math.abs(b.height-L)<=1&&(L=b.height),{x:I.offsetLeft,y:I.offsetTop,width:K,height:L}}function Pe(I){return fe(I)==="html"?I:I.assignedSlot||I.parentNode||(ne(I)?I.host:null)||he(I)}function He(I){return["html","body","#document"].indexOf(fe(I))>=0?I.ownerDocument.body:G(I)&&je(I)?I:He(Pe(I))}function gn(I,b){var K;b===void 0&&(b=[]);var L=He(I),R=L===((K=I.ownerDocument)==null?void 0:K.body),w=k(L),Q=R?[w].concat(w.visualViewport||[],je(L)?L:[]):L,ie=b.concat(Q);return R?ie:ie.concat(gn(Pe(Q)))}function mn(I){return["table","td","th"].indexOf(fe(I))>=0}function cn(I){return!G(I)||xe(I).position==="fixed"?null:I.offsetParent}function En(I){var b=/firefox/i.test(X()),K=/Trident/i.test(X());if(K&&G(I)){var L=xe(I);if(L.position==="fixed")return null}var R=Pe(I);for(ne(R)&&(R=R.host);G(R)&&["html","body"].indexOf(fe(R))<0;){var w=xe(R);if(w.transform!=="none"||w.perspective!=="none"||w.contain==="paint"||["transform","perspective"].indexOf(w.willChange)!==-1||b&&w.willChange==="filter"||b&&w.filter&&w.filter!=="none")return R;R=R.parentNode}return null}function hn(I){for(var b=k(I),K=cn(I);K&&mn(K)&&xe(K).position==="static";)K=cn(K);return K&&(fe(K)==="html"||fe(K)==="body"&&xe(K).position==="static")?b:K||En(I)||b}var sn="top",Se="bottom",Ue="right",ye="left",ke="auto",Ze=[sn,Se,Ue,ye],We="start",Ye="end",Bn="clippingParents",Un="viewport",_n="popper",pn="reference",ln=Ze.reduce(function(I,b){return I.concat([b+"-"+We,b+"-"+Ye])},[]),ze=[].concat(Ze,[ke]).reduce(function(I,b){return I.concat([b,b+"-"+We,b+"-"+Ye])},[]),Ve="beforeRead",vn="read",In="afterRead",Tt="beforeMain",it="main",Ct="afterMain",et="beforeWrite",xt="write",wt="afterWrite",Zt=[Ve,vn,In,Tt,it,Ct,et,xt,wt];function dr(I){var b=new Map,K=new Set,L=[];I.forEach(function(w){b.set(w.name,w)});function R(w){K.add(w.name);var Q=[].concat(w.requires||[],w.requiresIfExists||[]);Q.forEach(function(ie){if(!K.has(ie)){var se=b.get(ie);se&&R(se)}}),L.push(w)}return I.forEach(function(w){K.has(w.name)||R(w)}),L}function Jo(I){var b=dr(I);return Zt.reduce(function(K,L){return K.concat(b.filter(function(R){return R.phase===L}))},[])}function qo(I){var b;return function(){return b||(b=new Promise(function(K){Promise.resolve().then(function(){b=void 0,K(I())})})),b}}function ei(I){var b=I.reduce(function(K,L){var R=K[L.name];return K[L.name]=R?Object.assign({},R,L,{options:Object.assign({},R.options,L.options),data:Object.assign({},R.data,L.data)}):L,K},{});return Object.keys(b).map(function(K){return b[K]})}var vo={placement:"bottom",modifiers:[],strategy:"absolute"};function xo(){for(var I=arguments.length,b=new Array(I),K=0;K=0?"x":"y"}function Dr(I){var b=I.reference,K=I.element,L=I.placement,R=L?yt(L):null,w=L?Ot(L):null,Q=b.x+b.width/2-K.width/2,ie=b.y+b.height/2-K.height/2,se;switch(R){case sn:se={x:Q,y:b.y-K.height};break;case Se:se={x:Q,y:b.y+b.height};break;case Ue:se={x:b.x+b.width,y:ie};break;case ye:se={x:b.x-K.width,y:ie};break;default:se={x:b.x,y:b.y}}var te=R?fr(R):null;if(te!=null){var ae=te==="y"?"height":"width";switch(w){case We:se[te]=se[te]-(b[ae]/2-K[ae]/2);break;case Ye:se[te]=se[te]+(b[ae]/2-K[ae]/2);break;default:}}return se}function jo(I){var b=I.state,K=I.name;b.modifiersData[K]=Dr({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var ee={name:"popperOffsets",enabled:!0,phase:"read",fn:jo,data:{}},Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xs(I,b){var K=I.x,L=I.y,R=b.devicePixelRatio||1;return{x:Z(K*R)/R||0,y:Z(L*R)/R||0}}function hr(I){var b,K=I.popper,L=I.popperRect,R=I.placement,w=I.variation,Q=I.offsets,ie=I.position,se=I.gpuAcceleration,te=I.adaptive,ae=I.roundOffsets,pe=I.isFixed,Ce=Q.x,ve=Ce===void 0?0:Ce,Me=Q.y,Ae=Me===void 0?0:Me,Ke=typeof ae=="function"?ae({x:ve,y:Ae}):{x:ve,y:Ae};ve=Ke.x,Ae=Ke.y;var Le=Q.hasOwnProperty("x"),we=Q.hasOwnProperty("y"),Xe=ye,Ie=sn,$e=window;if(te){var en=hn(K),un="clientHeight",tn="clientWidth";if(en===k(K)&&(en=he(K),xe(en).position!=="static"&&ie==="absolute"&&(un="scrollHeight",tn="scrollWidth")),en=en,R===sn||(R===ye||R===Ue)&&w===Ye){Ie=Se;var jn=pe&&en===$e&&$e.visualViewport?$e.visualViewport.height:en[un];Ae-=jn-L.height,Ae*=se?1:-1}if(R===ye||(R===sn||R===Se)&&w===Ye){Xe=Ue;var Be=pe&&en===$e&&$e.visualViewport?$e.visualViewport.width:en[tn];ve-=Be-L.width,ve*=se?1:-1}}var on=Object.assign({position:ie},te&&Te),an=ae===!0?Xs({x:ve,y:Ae},k(K)):{x:ve,y:Ae};if(ve=an.x,Ae=an.y,se){var Cn;return Object.assign({},on,(Cn={},Cn[Ie]=we?"0":"",Cn[Xe]=Le?"0":"",Cn.transform=($e.devicePixelRatio||1)<=1?"translate("+ve+"px, "+Ae+"px)":"translate3d("+ve+"px, "+Ae+"px, 0)",Cn))}return Object.assign({},on,(b={},b[Ie]=we?Ae+"px":"",b[Xe]=Le?ve+"px":"",b.transform="",b))}function Ta(I){var b=I.state,K=I.options,L=K.gpuAcceleration,R=L===void 0?!0:L,w=K.adaptive,Q=w===void 0?!0:w,ie=K.roundOffsets,se=ie===void 0?!0:ie,te={placement:yt(b.placement),variation:Ot(b.placement),popper:b.elements.popper,popperRect:b.rects.popper,gpuAcceleration:R,isFixed:b.options.strategy==="fixed"};b.modifiersData.popperOffsets!=null&&(b.styles.popper=Object.assign({},b.styles.popper,hr(Object.assign({},te,{offsets:b.modifiersData.popperOffsets,position:b.options.strategy,adaptive:Q,roundOffsets:se})))),b.modifiersData.arrow!=null&&(b.styles.arrow=Object.assign({},b.styles.arrow,hr(Object.assign({},te,{offsets:b.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-placement":b.placement})}var Aa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ta,data:{}};function Hs(I){var b=I.state;Object.keys(b.elements).forEach(function(K){var L=b.styles[K]||{},R=b.attributes[K]||{},w=b.elements[K];!G(w)||!fe(w)||(Object.assign(w.style,L),Object.keys(R).forEach(function(Q){var ie=R[Q];ie===!1?w.removeAttribute(Q):w.setAttribute(Q,ie===!0?"":ie)}))})}function Ra(I){var b=I.state,K={popper:{position:b.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(b.elements.popper.style,K.popper),b.styles=K,b.elements.arrow&&Object.assign(b.elements.arrow.style,K.arrow),function(){Object.keys(b.elements).forEach(function(L){var R=b.elements[L],w=b.attributes[L]||{},Q=Object.keys(b.styles.hasOwnProperty(L)?b.styles[L]:K[L]),ie=Q.reduce(function(se,te){return se[te]="",se},{});!G(R)||!fe(R)||(Object.assign(R.style,ie),Object.keys(w).forEach(function(se){R.removeAttribute(se)}))})}}var Ba={name:"applyStyles",enabled:!0,phase:"write",fn:Hs,effect:Ra,requires:["computeStyles"]};function Ka(I,b,K){var L=yt(I),R=[ye,sn].indexOf(L)>=0?-1:1,w=typeof K=="function"?K(Object.assign({},b,{placement:I})):K,Q=w[0],ie=w[1];return Q=Q||0,ie=(ie||0)*R,[ye,Ue].indexOf(L)>=0?{x:ie,y:Q}:{x:Q,y:ie}}function La(I){var b=I.state,K=I.options,L=I.name,R=K.offset,w=R===void 0?[0,0]:R,Q=ze.reduce(function(ae,pe){return ae[pe]=Ka(pe,b.rects,w),ae},{}),ie=Q[b.placement],se=ie.x,te=ie.y;b.modifiersData.popperOffsets!=null&&(b.modifiersData.popperOffsets.x+=se,b.modifiersData.popperOffsets.y+=te),b.modifiersData[L]=Q}var Ys={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:La},Qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(I){return I.replace(/left|right|bottom|top/g,function(b){return Qs[b]})}var Zs={start:"end",end:"start"};function ni(I){return I.replace(/start|end/g,function(b){return Zs[b]})}function Ua(I,b){var K=k(I),L=he(I),R=K.visualViewport,w=L.clientWidth,Q=L.clientHeight,ie=0,se=0;if(R){w=R.width,Q=R.height;var te=H();(te||!te&&b==="fixed")&&(ie=R.offsetLeft,se=R.offsetTop)}return{width:w,height:Q,x:ie+_e(I),y:se}}function ti(I){var b,K=he(I),L=J(I),R=(b=I.ownerDocument)==null?void 0:b.body,w=oe(K.scrollWidth,K.clientWidth,R?R.scrollWidth:0,R?R.clientWidth:0),Q=oe(K.scrollHeight,K.clientHeight,R?R.scrollHeight:0,R?R.clientHeight:0),ie=-L.scrollLeft+_e(I),se=-L.scrollTop;return xe(R||K).direction==="rtl"&&(ie+=oe(K.clientWidth,R?R.clientWidth:0)-w),{width:w,height:Q,x:ie,y:se}}function Na(I,b){var K=b.getRootNode&&b.getRootNode();if(I.contains(b))return!0;if(K&&ne(K)){var L=b;do{if(L&&I.isSameNode(L))return!0;L=L.parentNode||L.host}while(L)}return!1}function ri(I){return Object.assign({},I,{left:I.x,top:I.y,right:I.x+I.width,bottom:I.y+I.height})}function oi(I,b){var K=V(I,!1,b==="fixed");return K.top=K.top+I.clientTop,K.left=K.left+I.clientLeft,K.bottom=K.top+I.clientHeight,K.right=K.left+I.clientWidth,K.width=I.clientWidth,K.height=I.clientHeight,K.x=K.left,K.y=K.top,K}function At(I,b,K){return b===Un?ri(Ua(I,K)):Y(b)?oi(b,K):ri(ti(he(I)))}function Js(I){var b=gn(Pe(I)),K=["absolute","fixed"].indexOf(xe(I).position)>=0,L=K&&G(I)?hn(I):I;return Y(L)?b.filter(function(R){return Y(R)&&Na(R,L)&&fe(R)!=="body"}):[]}function Rt(I,b,K,L){var R=b==="clippingParents"?Js(I):[].concat(b),w=[].concat(R,[K]),Q=w[0],ie=w.reduce(function(se,te){var ae=At(I,te,L);return se.top=oe(ae.top,se.top),se.right=q(ae.right,se.right),se.bottom=q(ae.bottom,se.bottom),se.left=oe(ae.left,se.left),se},At(I,Q,L));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}function Wa(){return{top:0,right:0,bottom:0,left:0}}function wa(I){return Object.assign({},Wa(),I)}function za(I,b){return b.reduce(function(K,L){return K[L]=I,K},{})}function mr(I,b){b===void 0&&(b={});var K=b,L=K.placement,R=L===void 0?I.placement:L,w=K.strategy,Q=w===void 0?I.strategy:w,ie=K.boundary,se=ie===void 0?Bn:ie,te=K.rootBoundary,ae=te===void 0?Un:te,pe=K.elementContext,Ce=pe===void 0?_n:pe,ve=K.altBoundary,Me=ve===void 0?!1:ve,Ae=K.padding,Ke=Ae===void 0?0:Ae,Le=wa(typeof Ke!="number"?Ke:za(Ke,Ze)),we=Ce===_n?pn:_n,Xe=I.rects.popper,Ie=I.elements[Me?we:Ce],$e=Rt(Y(Ie)?Ie:Ie.contextElement||he(I.elements.popper),se,ae,Q),en=V(I.elements.reference),un=Dr({reference:en,element:Xe,strategy:"absolute",placement:R}),tn=ri(Object.assign({},Xe,un)),jn=Ce===_n?tn:en,Be={top:$e.top-jn.top+Le.top,bottom:jn.bottom-$e.bottom+Le.bottom,left:$e.left-jn.left+Le.left,right:jn.right-$e.right+Le.right},on=I.modifiersData.offset;if(Ce===_n&&on){var an=on[R];Object.keys(Be).forEach(function(Cn){var wn=[Ue,Se].indexOf(Cn)>=0?1:-1,nt=[sn,Se].indexOf(Cn)>=0?"y":"x";Be[Cn]+=an[nt]*wn})}return Be}function ii(I,b){b===void 0&&(b={});var K=b,L=K.placement,R=K.boundary,w=K.rootBoundary,Q=K.padding,ie=K.flipVariations,se=K.allowedAutoPlacements,te=se===void 0?ze:se,ae=Ot(L),pe=ae?ie?ln:ln.filter(function(Me){return Ot(Me)===ae}):Ze,Ce=pe.filter(function(Me){return te.indexOf(Me)>=0});Ce.length===0&&(Ce=pe);var ve=Ce.reduce(function(Me,Ae){return Me[Ae]=mr(I,{placement:Ae,boundary:R,rootBoundary:w,padding:Q})[yt(Ae)],Me},{});return Object.keys(ve).sort(function(Me,Ae){return ve[Me]-ve[Ae]})}function Eo(I){if(yt(I)===ke)return[];var b=Kn(I);return[ni(I),b,ni(b)]}function ai(I){var b=I.state,K=I.options,L=I.name;if(!b.modifiersData[L]._skip){for(var R=K.mainAxis,w=R===void 0?!0:R,Q=K.altAxis,ie=Q===void 0?!0:Q,se=K.fallbackPlacements,te=K.padding,ae=K.boundary,pe=K.rootBoundary,Ce=K.altBoundary,ve=K.flipVariations,Me=ve===void 0?!0:ve,Ae=K.allowedAutoPlacements,Ke=b.options.placement,Le=yt(Ke),we=Le===Ke,Xe=se||(we||!Me?[Kn(Ke)]:Eo(Ke)),Ie=[Ke].concat(Xe).reduce(function(Nr,Ht){return Nr.concat(yt(Ht)===ke?ii(b,{placement:Ht,boundary:ae,rootBoundary:pe,padding:te,flipVariations:Me,allowedAutoPlacements:Ae}):Ht)},[]),$e=b.rects.reference,en=b.rects.popper,un=new Map,tn=!0,jn=Ie[0],Be=0;Be=0,nt=wn?"width":"height",Rn=mr(b,{placement:on,boundary:ae,rootBoundary:pe,altBoundary:Ce,padding:te}),zn=wn?Cn?Ue:ye:Cn?Se:sn;$e[nt]>en[nt]&&(zn=Kn(zn));var Gn=Kn(zn),yn=[];if(w&&yn.push(Rn[an]<=0),ie&&yn.push(Rn[zn]<=0,Rn[Gn]<=0),yn.every(function(Nr){return Nr})){jn=on,tn=!1;break}un.set(on,yn)}if(tn)for(var Jn=Me?3:1,$n=function(Ht){var bn=Ie.find(function(Wr){var ar=un.get(Wr);if(ar)return ar.slice(0,Ht).every(function(ko){return ko})});if(bn)return jn=bn,"break"},tt=Jn;tt>0;tt--){var ir=$n(tt);if(ir==="break")break}b.placement!==jn&&(b.modifiersData[L]._skip=!0,b.placement=jn,b.reset=!0)}}var qs={name:"flip",enabled:!0,phase:"main",fn:ai,requiresIfExists:["offset"],data:{_skip:!1}};function el(I){return I==="x"?"y":"x"}function Sr(I,b,K){return oe(I,q(b,K))}function $a(I,b,K){var L=Sr(I,b,K);return L>K?K:L}function Li(I){var b=I.state,K=I.options,L=I.name,R=K.mainAxis,w=R===void 0?!0:R,Q=K.altAxis,ie=Q===void 0?!1:Q,se=K.boundary,te=K.rootBoundary,ae=K.altBoundary,pe=K.padding,Ce=K.tether,ve=Ce===void 0?!0:Ce,Me=K.tetherOffset,Ae=Me===void 0?0:Me,Ke=mr(b,{boundary:se,rootBoundary:te,padding:pe,altBoundary:ae}),Le=yt(b.placement),we=Ot(b.placement),Xe=!we,Ie=fr(Le),$e=el(Ie),en=b.modifiersData.popperOffsets,un=b.rects.reference,tn=b.rects.popper,jn=typeof Ae=="function"?Ae(Object.assign({},b.rects,{placement:b.placement})):Ae,Be=typeof jn=="number"?{mainAxis:jn,altAxis:jn}:Object.assign({mainAxis:0,altAxis:0},jn),on=b.modifiersData.offset?b.modifiersData.offset[b.placement]:null,an={x:0,y:0};if(en){if(w){var Cn,wn=Ie==="y"?sn:ye,nt=Ie==="y"?Se:Ue,Rn=Ie==="y"?"height":"width",zn=en[Ie],Gn=zn+Ke[wn],yn=zn-Ke[nt],Jn=ve?-tn[Rn]/2:0,$n=we===We?un[Rn]:tn[Rn],tt=we===We?-tn[Rn]:-un[Rn],ir=b.elements.arrow,Nr=ve&&ir?Fe(ir):{width:0,height:0},Ht=b.modifiersData["arrow#persistent"]?b.modifiersData["arrow#persistent"].padding:Wa(),bn=Ht[wn],Wr=Ht[nt],ar=Sr(0,un[Rn],Nr[Rn]),ko=Xe?un[Rn]/2-Jn-ar-bn-Be.mainAxis:$n-ar-bn-Be.mainAxis,Ii=Xe?-un[Rn]/2+Jn+ar+Wr+Be.mainAxis:tt+ar+Wr+Be.mainAxis,Fo=b.elements.arrow&&hn(b.elements.arrow),wr=Fo?Ie==="y"?Fo.clientTop||0:Fo.clientLeft||0:0,Ln=(Cn=on==null?void 0:on[Ie])!=null?Cn:0,Fn=zn+ko-Ln-wr,Xn=zn+Ii-Ln,Vo=Sr(ve?q(Gn,Fn):Gn,zn,ve?oe(yn,Xn):yn);en[Ie]=Vo,an[Ie]=Vo-zn}if(ie){var oo,Go=Ie==="x"?sn:ye,Al=Ie==="x"?Se:Ue,Wn=en[$e],io=$e==="y"?"height":"width",Pi=Wn+Ke[Go],_i=Wn-Ke[Al],_t=[sn,ye].indexOf(Le)!==-1,pt=(oo=on==null?void 0:on[$e])!=null?oo:0,ao=_t?Pi:Wn-un[io]-tn[io]-pt+Be.altAxis,Di=_t?Wn+un[io]+tn[io]-pt-Be.altAxis:_i,Si=ve&&_t?$a(ao,Wn,Di):Sr(ve?ao:Pi,Wn,ve?Di:_i);en[$e]=Si,an[$e]=Si-Wn}b.modifiersData[L]=an}}var Co={name:"preventOverflow",enabled:!0,phase:"main",fn:Li,requiresIfExists:["offset"]},nl=function(b,K){return b=typeof b=="function"?b(Object.assign({},K.rects,{placement:K.placement})):b,wa(typeof b!="number"?b:za(b,Ze))};function Ui(I){var b,K=I.state,L=I.name,R=I.options,w=K.elements.arrow,Q=K.modifiersData.popperOffsets,ie=yt(K.placement),se=fr(ie),te=[ye,Ue].indexOf(ie)>=0,ae=te?"height":"width";if(!(!w||!Q)){var pe=nl(R.padding,K),Ce=Fe(w),ve=se==="y"?sn:ye,Me=se==="y"?Se:Ue,Ae=K.rects.reference[ae]+K.rects.reference[se]-Q[se]-K.rects.popper[ae],Ke=Q[se]-K.rects.reference[se],Le=hn(w),we=Le?se==="y"?Le.clientHeight||0:Le.clientWidth||0:0,Xe=Ae/2-Ke/2,Ie=pe[ve],$e=we-Ce[ae]-pe[Me],en=we/2-Ce[ae]/2+Xe,un=Sr(Ie,en,$e),tn=se;K.modifiersData[L]=(b={},b[tn]=un,b.centerOffset=un-en,b)}}function Dn(I){var b=I.state,K=I.options,L=K.element,R=L===void 0?"[data-popper-arrow]":L;R!=null&&(typeof R=="string"&&(R=b.elements.popper.querySelector(R),!R)||Na(b.elements.popper,R)&&(b.elements.arrow=R))}var ka={name:"arrow",enabled:!0,phase:"main",fn:Ui,effect:Dn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ni(I,b,K){return K===void 0&&(K={x:0,y:0}),{top:I.top-b.height-K.y,right:I.right-b.width+K.x,bottom:I.bottom-b.height+K.y,left:I.left-b.width-K.x}}function si(I){return[sn,Ue,Se,ye].some(function(b){return I[b]>=0})}function Fa(I){var b=I.state,K=I.name,L=b.rects.reference,R=b.rects.popper,w=b.modifiersData.preventOverflow,Q=mr(b,{elementContext:"reference"}),ie=mr(b,{altBoundary:!0}),se=Ni(Q,L),te=Ni(ie,R,w),ae=si(se),pe=si(te);b.modifiersData[K]={referenceClippingOffsets:se,popperEscapeOffsets:te,isReferenceHidden:ae,hasPopperEscaped:pe},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":ae,"data-popper-escaped":pe})}var Va={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fa},Ga=[_r,ee,Aa,Ba,Ys,qs,Co,ka,Va],li=go({defaultModifiers:Ga}),kr=n(32394);function Bt(){return Bt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var U=/-o$/,W=function(I){var b=I.name,K=I.size,L=I.spin,R=I.className,w=I.rotation,Q=T(I,["name","size","spin","className","rotation"]),ie=Q.style||{};K&&(ie.fontSize=K*100+"%"),w&&(ie.transform="rotate("+w+"deg)"),Q.style=ie;var se=(0,y.Fl)(Q),te="";if(b.startsWith("tg-"))te=b;else{var ae=U.test(b),pe=b.replace(U,""),Ce=!pe.startsWith("fa-");te=ae?"far ":"fas ",Ce&&(te+="fa-"),te+=pe,L&&(te+=" fa-spin")}return(0,e.jsx)("i",B({className:(0,E.Ly)(["Icon",te,R,(0,y.WP)(Q)])},se))},z=function(I){var b=I.className,K=I.children,L=T(I,["className","children"]);return(0,e.jsx)("span",B({className:(0,E.Ly)(["IconStack",b,(0,y.WP)(L)])},(0,y.Fl)(L),{children:K}))};W.Stack=z;function k(I){if(I==null)return window;if(I.toString()!=="[object Window]"){var b=I.ownerDocument;return b&&b.defaultView||window}return I}function $(I,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](I):I instanceof b}function Y(I){var b=k(I).Element;return $(I,b)||$(I,Element)}function G(I){var b=k(I).HTMLElement;return $(I,b)||$(I,HTMLElement)}function ne(I){if(typeof ShadowRoot=="undefined")return!1;var b=k(I).ShadowRoot;return $(I,b)||$(I,ShadowRoot)}var oe=Math.max,q=Math.min,Z=Math.round;function X(){var I=navigator.userAgentData;return I!=null&&I.brands&&Array.isArray(I.brands)?I.brands.map(function(b){return b.brand+"/"+b.version}).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(X())}function V(I,b,K){b===void 0&&(b=!1),K===void 0&&(K=!1);var L=I.getBoundingClientRect(),R=1,w=1;b&&G(I)&&(R=I.offsetWidth>0&&Z(L.width)/I.offsetWidth||1,w=I.offsetHeight>0&&Z(L.height)/I.offsetHeight||1);var Q=Y(I)?k(I):window,ie=Q.visualViewport,se=!H()&&K,te=(L.left+(se&&ie?ie.offsetLeft:0))/R,ae=(L.top+(se&&ie?ie.offsetTop:0))/w,pe=L.width/R,Ce=L.height/w;return{width:pe,height:Ce,top:ae,right:te+pe,bottom:ae+Ce,left:te,x:te,y:ae}}function J(I){var b=k(I),K=b.pageXOffset,L=b.pageYOffset;return{scrollLeft:K,scrollTop:L}}function ce(I){return{scrollLeft:I.scrollLeft,scrollTop:I.scrollTop}}function le(I){return I===k(I)||!G(I)?J(I):ce(I)}function fe(I){return I?(I.nodeName||"").toLowerCase():null}function he(I){return((Y(I)?I.ownerDocument:I.document)||window.document).documentElement}function _e(I){return V(he(I)).left+J(I).scrollLeft}function xe(I){return k(I).getComputedStyle(I)}function je(I){var b=xe(I),K=b.overflow,L=b.overflowX,R=b.overflowY;return/auto|scroll|overlay|hidden/.test(K+R+L)}function Re(I){var b=I.getBoundingClientRect(),K=Z(b.width)/I.offsetWidth||1,L=Z(b.height)/I.offsetHeight||1;return K!==1||L!==1}function qe(I,b,K){K===void 0&&(K=!1);var L=G(b),R=G(b)&&Re(b),w=he(b),Q=V(I,R,K),ie={scrollLeft:0,scrollTop:0},se={x:0,y:0};return(L||!L&&!K)&&((fe(b)!=="body"||je(w))&&(ie=le(b)),G(b)?(se=V(b,!0),se.x+=b.clientLeft,se.y+=b.clientTop):w&&(se.x=_e(w))),{x:Q.left+ie.scrollLeft-se.x,y:Q.top+ie.scrollTop-se.y,width:Q.width,height:Q.height}}function Fe(I){var b=V(I),K=I.offsetWidth,L=I.offsetHeight;return Math.abs(b.width-K)<=1&&(K=b.width),Math.abs(b.height-L)<=1&&(L=b.height),{x:I.offsetLeft,y:I.offsetTop,width:K,height:L}}function Pe(I){return fe(I)==="html"?I:I.assignedSlot||I.parentNode||(ne(I)?I.host:null)||he(I)}function He(I){return["html","body","#document"].indexOf(fe(I))>=0?I.ownerDocument.body:G(I)&&je(I)?I:He(Pe(I))}function gn(I,b){var K;b===void 0&&(b=[]);var L=He(I),R=L===((K=I.ownerDocument)==null?void 0:K.body),w=k(L),Q=R?[w].concat(w.visualViewport||[],je(L)?L:[]):L,ie=b.concat(Q);return R?ie:ie.concat(gn(Pe(Q)))}function mn(I){return["table","td","th"].indexOf(fe(I))>=0}function cn(I){return!G(I)||xe(I).position==="fixed"?null:I.offsetParent}function En(I){var b=/firefox/i.test(X()),K=/Trident/i.test(X());if(K&&G(I)){var L=xe(I);if(L.position==="fixed")return null}var R=Pe(I);for(ne(R)&&(R=R.host);G(R)&&["html","body"].indexOf(fe(R))<0;){var w=xe(R);if(w.transform!=="none"||w.perspective!=="none"||w.contain==="paint"||["transform","perspective"].indexOf(w.willChange)!==-1||b&&w.willChange==="filter"||b&&w.filter&&w.filter!=="none")return R;R=R.parentNode}return null}function hn(I){for(var b=k(I),K=cn(I);K&&mn(K)&&xe(K).position==="static";)K=cn(K);return K&&(fe(K)==="html"||fe(K)==="body"&&xe(K).position==="static")?b:K||En(I)||b}var sn="top",Se="bottom",Ue="right",Oe="left",ke="auto",Ze=[sn,Se,Ue,Oe],We="start",Ye="end",Bn="clippingParents",Un="viewport",_n="popper",pn="reference",ln=Ze.reduce(function(I,b){return I.concat([b+"-"+We,b+"-"+Ye])},[]),ze=[].concat(Ze,[ke]).reduce(function(I,b){return I.concat([b,b+"-"+We,b+"-"+Ye])},[]),Ve="beforeRead",vn="read",In="afterRead",Tt="beforeMain",it="main",Ct="afterMain",et="beforeWrite",xt="write",wt="afterWrite",Zt=[Ve,vn,In,Tt,it,Ct,et,xt,wt];function dr(I){var b=new Map,K=new Set,L=[];I.forEach(function(w){b.set(w.name,w)});function R(w){K.add(w.name);var Q=[].concat(w.requires||[],w.requiresIfExists||[]);Q.forEach(function(ie){if(!K.has(ie)){var se=b.get(ie);se&&R(se)}}),L.push(w)}return I.forEach(function(w){K.has(w.name)||R(w)}),L}function Jo(I){var b=dr(I);return Zt.reduce(function(K,L){return K.concat(b.filter(function(R){return R.phase===L}))},[])}function qo(I){var b;return function(){return b||(b=new Promise(function(K){Promise.resolve().then(function(){b=void 0,K(I())})})),b}}function ei(I){var b=I.reduce(function(K,L){var R=K[L.name];return K[L.name]=R?Object.assign({},R,L,{options:Object.assign({},R.options,L.options),data:Object.assign({},R.data,L.data)}):L,K},{});return Object.keys(b).map(function(K){return b[K]})}var vo={placement:"bottom",modifiers:[],strategy:"absolute"};function xo(){for(var I=arguments.length,b=new Array(I),K=0;K=0?"x":"y"}function Dr(I){var b=I.reference,K=I.element,L=I.placement,R=L?Ot(L):null,w=L?yt(L):null,Q=b.x+b.width/2-K.width/2,ie=b.y+b.height/2-K.height/2,se;switch(R){case sn:se={x:Q,y:b.y-K.height};break;case Se:se={x:Q,y:b.y+b.height};break;case Ue:se={x:b.x+b.width,y:ie};break;case Oe:se={x:b.x-K.width,y:ie};break;default:se={x:b.x,y:b.y}}var te=R?fr(R):null;if(te!=null){var ae=te==="y"?"height":"width";switch(w){case We:se[te]=se[te]-(b[ae]/2-K[ae]/2);break;case Ye:se[te]=se[te]+(b[ae]/2-K[ae]/2);break;default:}}return se}function jo(I){var b=I.state,K=I.name;b.modifiersData[K]=Dr({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var ee={name:"popperOffsets",enabled:!0,phase:"read",fn:jo,data:{}},Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xs(I,b){var K=I.x,L=I.y,R=b.devicePixelRatio||1;return{x:Z(K*R)/R||0,y:Z(L*R)/R||0}}function hr(I){var b,K=I.popper,L=I.popperRect,R=I.placement,w=I.variation,Q=I.offsets,ie=I.position,se=I.gpuAcceleration,te=I.adaptive,ae=I.roundOffsets,pe=I.isFixed,Ce=Q.x,ve=Ce===void 0?0:Ce,Me=Q.y,Ae=Me===void 0?0:Me,Ke=typeof ae=="function"?ae({x:ve,y:Ae}):{x:ve,y:Ae};ve=Ke.x,Ae=Ke.y;var Le=Q.hasOwnProperty("x"),we=Q.hasOwnProperty("y"),Xe=Oe,Ie=sn,$e=window;if(te){var en=hn(K),un="clientHeight",tn="clientWidth";if(en===k(K)&&(en=he(K),xe(en).position!=="static"&&ie==="absolute"&&(un="scrollHeight",tn="scrollWidth")),en=en,R===sn||(R===Oe||R===Ue)&&w===Ye){Ie=Se;var jn=pe&&en===$e&&$e.visualViewport?$e.visualViewport.height:en[un];Ae-=jn-L.height,Ae*=se?1:-1}if(R===Oe||(R===sn||R===Se)&&w===Ye){Xe=Ue;var Be=pe&&en===$e&&$e.visualViewport?$e.visualViewport.width:en[tn];ve-=Be-L.width,ve*=se?1:-1}}var on=Object.assign({position:ie},te&&Te),an=ae===!0?Xs({x:ve,y:Ae},k(K)):{x:ve,y:Ae};if(ve=an.x,Ae=an.y,se){var Cn;return Object.assign({},on,(Cn={},Cn[Ie]=we?"0":"",Cn[Xe]=Le?"0":"",Cn.transform=($e.devicePixelRatio||1)<=1?"translate("+ve+"px, "+Ae+"px)":"translate3d("+ve+"px, "+Ae+"px, 0)",Cn))}return Object.assign({},on,(b={},b[Ie]=we?Ae+"px":"",b[Xe]=Le?ve+"px":"",b.transform="",b))}function Ta(I){var b=I.state,K=I.options,L=K.gpuAcceleration,R=L===void 0?!0:L,w=K.adaptive,Q=w===void 0?!0:w,ie=K.roundOffsets,se=ie===void 0?!0:ie,te={placement:Ot(b.placement),variation:yt(b.placement),popper:b.elements.popper,popperRect:b.rects.popper,gpuAcceleration:R,isFixed:b.options.strategy==="fixed"};b.modifiersData.popperOffsets!=null&&(b.styles.popper=Object.assign({},b.styles.popper,hr(Object.assign({},te,{offsets:b.modifiersData.popperOffsets,position:b.options.strategy,adaptive:Q,roundOffsets:se})))),b.modifiersData.arrow!=null&&(b.styles.arrow=Object.assign({},b.styles.arrow,hr(Object.assign({},te,{offsets:b.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-placement":b.placement})}var Aa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ta,data:{}};function Hs(I){var b=I.state;Object.keys(b.elements).forEach(function(K){var L=b.styles[K]||{},R=b.attributes[K]||{},w=b.elements[K];!G(w)||!fe(w)||(Object.assign(w.style,L),Object.keys(R).forEach(function(Q){var ie=R[Q];ie===!1?w.removeAttribute(Q):w.setAttribute(Q,ie===!0?"":ie)}))})}function Ra(I){var b=I.state,K={popper:{position:b.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(b.elements.popper.style,K.popper),b.styles=K,b.elements.arrow&&Object.assign(b.elements.arrow.style,K.arrow),function(){Object.keys(b.elements).forEach(function(L){var R=b.elements[L],w=b.attributes[L]||{},Q=Object.keys(b.styles.hasOwnProperty(L)?b.styles[L]:K[L]),ie=Q.reduce(function(se,te){return se[te]="",se},{});!G(R)||!fe(R)||(Object.assign(R.style,ie),Object.keys(w).forEach(function(se){R.removeAttribute(se)}))})}}var Ba={name:"applyStyles",enabled:!0,phase:"write",fn:Hs,effect:Ra,requires:["computeStyles"]};function Ka(I,b,K){var L=Ot(I),R=[Oe,sn].indexOf(L)>=0?-1:1,w=typeof K=="function"?K(Object.assign({},b,{placement:I})):K,Q=w[0],ie=w[1];return Q=Q||0,ie=(ie||0)*R,[Oe,Ue].indexOf(L)>=0?{x:ie,y:Q}:{x:Q,y:ie}}function La(I){var b=I.state,K=I.options,L=I.name,R=K.offset,w=R===void 0?[0,0]:R,Q=ze.reduce(function(ae,pe){return ae[pe]=Ka(pe,b.rects,w),ae},{}),ie=Q[b.placement],se=ie.x,te=ie.y;b.modifiersData.popperOffsets!=null&&(b.modifiersData.popperOffsets.x+=se,b.modifiersData.popperOffsets.y+=te),b.modifiersData[L]=Q}var Ys={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:La},Qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(I){return I.replace(/left|right|bottom|top/g,function(b){return Qs[b]})}var Zs={start:"end",end:"start"};function ni(I){return I.replace(/start|end/g,function(b){return Zs[b]})}function Ua(I,b){var K=k(I),L=he(I),R=K.visualViewport,w=L.clientWidth,Q=L.clientHeight,ie=0,se=0;if(R){w=R.width,Q=R.height;var te=H();(te||!te&&b==="fixed")&&(ie=R.offsetLeft,se=R.offsetTop)}return{width:w,height:Q,x:ie+_e(I),y:se}}function ti(I){var b,K=he(I),L=J(I),R=(b=I.ownerDocument)==null?void 0:b.body,w=oe(K.scrollWidth,K.clientWidth,R?R.scrollWidth:0,R?R.clientWidth:0),Q=oe(K.scrollHeight,K.clientHeight,R?R.scrollHeight:0,R?R.clientHeight:0),ie=-L.scrollLeft+_e(I),se=-L.scrollTop;return xe(R||K).direction==="rtl"&&(ie+=oe(K.clientWidth,R?R.clientWidth:0)-w),{width:w,height:Q,x:ie,y:se}}function Na(I,b){var K=b.getRootNode&&b.getRootNode();if(I.contains(b))return!0;if(K&&ne(K)){var L=b;do{if(L&&I.isSameNode(L))return!0;L=L.parentNode||L.host}while(L)}return!1}function ri(I){return Object.assign({},I,{left:I.x,top:I.y,right:I.x+I.width,bottom:I.y+I.height})}function oi(I,b){var K=V(I,!1,b==="fixed");return K.top=K.top+I.clientTop,K.left=K.left+I.clientLeft,K.bottom=K.top+I.clientHeight,K.right=K.left+I.clientWidth,K.width=I.clientWidth,K.height=I.clientHeight,K.x=K.left,K.y=K.top,K}function At(I,b,K){return b===Un?ri(Ua(I,K)):Y(b)?oi(b,K):ri(ti(he(I)))}function Js(I){var b=gn(Pe(I)),K=["absolute","fixed"].indexOf(xe(I).position)>=0,L=K&&G(I)?hn(I):I;return Y(L)?b.filter(function(R){return Y(R)&&Na(R,L)&&fe(R)!=="body"}):[]}function Rt(I,b,K,L){var R=b==="clippingParents"?Js(I):[].concat(b),w=[].concat(R,[K]),Q=w[0],ie=w.reduce(function(se,te){var ae=At(I,te,L);return se.top=oe(ae.top,se.top),se.right=q(ae.right,se.right),se.bottom=q(ae.bottom,se.bottom),se.left=oe(ae.left,se.left),se},At(I,Q,L));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}function Wa(){return{top:0,right:0,bottom:0,left:0}}function wa(I){return Object.assign({},Wa(),I)}function za(I,b){return b.reduce(function(K,L){return K[L]=I,K},{})}function mr(I,b){b===void 0&&(b={});var K=b,L=K.placement,R=L===void 0?I.placement:L,w=K.strategy,Q=w===void 0?I.strategy:w,ie=K.boundary,se=ie===void 0?Bn:ie,te=K.rootBoundary,ae=te===void 0?Un:te,pe=K.elementContext,Ce=pe===void 0?_n:pe,ve=K.altBoundary,Me=ve===void 0?!1:ve,Ae=K.padding,Ke=Ae===void 0?0:Ae,Le=wa(typeof Ke!="number"?Ke:za(Ke,Ze)),we=Ce===_n?pn:_n,Xe=I.rects.popper,Ie=I.elements[Me?we:Ce],$e=Rt(Y(Ie)?Ie:Ie.contextElement||he(I.elements.popper),se,ae,Q),en=V(I.elements.reference),un=Dr({reference:en,element:Xe,strategy:"absolute",placement:R}),tn=ri(Object.assign({},Xe,un)),jn=Ce===_n?tn:en,Be={top:$e.top-jn.top+Le.top,bottom:jn.bottom-$e.bottom+Le.bottom,left:$e.left-jn.left+Le.left,right:jn.right-$e.right+Le.right},on=I.modifiersData.offset;if(Ce===_n&&on){var an=on[R];Object.keys(Be).forEach(function(Cn){var wn=[Ue,Se].indexOf(Cn)>=0?1:-1,nt=[sn,Se].indexOf(Cn)>=0?"y":"x";Be[Cn]+=an[nt]*wn})}return Be}function ii(I,b){b===void 0&&(b={});var K=b,L=K.placement,R=K.boundary,w=K.rootBoundary,Q=K.padding,ie=K.flipVariations,se=K.allowedAutoPlacements,te=se===void 0?ze:se,ae=yt(L),pe=ae?ie?ln:ln.filter(function(Me){return yt(Me)===ae}):Ze,Ce=pe.filter(function(Me){return te.indexOf(Me)>=0});Ce.length===0&&(Ce=pe);var ve=Ce.reduce(function(Me,Ae){return Me[Ae]=mr(I,{placement:Ae,boundary:R,rootBoundary:w,padding:Q})[Ot(Ae)],Me},{});return Object.keys(ve).sort(function(Me,Ae){return ve[Me]-ve[Ae]})}function Eo(I){if(Ot(I)===ke)return[];var b=Kn(I);return[ni(I),b,ni(b)]}function ai(I){var b=I.state,K=I.options,L=I.name;if(!b.modifiersData[L]._skip){for(var R=K.mainAxis,w=R===void 0?!0:R,Q=K.altAxis,ie=Q===void 0?!0:Q,se=K.fallbackPlacements,te=K.padding,ae=K.boundary,pe=K.rootBoundary,Ce=K.altBoundary,ve=K.flipVariations,Me=ve===void 0?!0:ve,Ae=K.allowedAutoPlacements,Ke=b.options.placement,Le=Ot(Ke),we=Le===Ke,Xe=se||(we||!Me?[Kn(Ke)]:Eo(Ke)),Ie=[Ke].concat(Xe).reduce(function(Nr,Ht){return Nr.concat(Ot(Ht)===ke?ii(b,{placement:Ht,boundary:ae,rootBoundary:pe,padding:te,flipVariations:Me,allowedAutoPlacements:Ae}):Ht)},[]),$e=b.rects.reference,en=b.rects.popper,un=new Map,tn=!0,jn=Ie[0],Be=0;Be=0,nt=wn?"width":"height",Rn=mr(b,{placement:on,boundary:ae,rootBoundary:pe,altBoundary:Ce,padding:te}),zn=wn?Cn?Ue:Oe:Cn?Se:sn;$e[nt]>en[nt]&&(zn=Kn(zn));var Gn=Kn(zn),On=[];if(w&&On.push(Rn[an]<=0),ie&&On.push(Rn[zn]<=0,Rn[Gn]<=0),On.every(function(Nr){return Nr})){jn=on,tn=!1;break}un.set(on,On)}if(tn)for(var Jn=Me?3:1,$n=function(Ht){var bn=Ie.find(function(Wr){var ar=un.get(Wr);if(ar)return ar.slice(0,Ht).every(function(ko){return ko})});if(bn)return jn=bn,"break"},tt=Jn;tt>0;tt--){var ir=$n(tt);if(ir==="break")break}b.placement!==jn&&(b.modifiersData[L]._skip=!0,b.placement=jn,b.reset=!0)}}var qs={name:"flip",enabled:!0,phase:"main",fn:ai,requiresIfExists:["offset"],data:{_skip:!1}};function el(I){return I==="x"?"y":"x"}function Sr(I,b,K){return oe(I,q(b,K))}function $a(I,b,K){var L=Sr(I,b,K);return L>K?K:L}function Li(I){var b=I.state,K=I.options,L=I.name,R=K.mainAxis,w=R===void 0?!0:R,Q=K.altAxis,ie=Q===void 0?!1:Q,se=K.boundary,te=K.rootBoundary,ae=K.altBoundary,pe=K.padding,Ce=K.tether,ve=Ce===void 0?!0:Ce,Me=K.tetherOffset,Ae=Me===void 0?0:Me,Ke=mr(b,{boundary:se,rootBoundary:te,padding:pe,altBoundary:ae}),Le=Ot(b.placement),we=yt(b.placement),Xe=!we,Ie=fr(Le),$e=el(Ie),en=b.modifiersData.popperOffsets,un=b.rects.reference,tn=b.rects.popper,jn=typeof Ae=="function"?Ae(Object.assign({},b.rects,{placement:b.placement})):Ae,Be=typeof jn=="number"?{mainAxis:jn,altAxis:jn}:Object.assign({mainAxis:0,altAxis:0},jn),on=b.modifiersData.offset?b.modifiersData.offset[b.placement]:null,an={x:0,y:0};if(en){if(w){var Cn,wn=Ie==="y"?sn:Oe,nt=Ie==="y"?Se:Ue,Rn=Ie==="y"?"height":"width",zn=en[Ie],Gn=zn+Ke[wn],On=zn-Ke[nt],Jn=ve?-tn[Rn]/2:0,$n=we===We?un[Rn]:tn[Rn],tt=we===We?-tn[Rn]:-un[Rn],ir=b.elements.arrow,Nr=ve&&ir?Fe(ir):{width:0,height:0},Ht=b.modifiersData["arrow#persistent"]?b.modifiersData["arrow#persistent"].padding:Wa(),bn=Ht[wn],Wr=Ht[nt],ar=Sr(0,un[Rn],Nr[Rn]),ko=Xe?un[Rn]/2-Jn-ar-bn-Be.mainAxis:$n-ar-bn-Be.mainAxis,Ii=Xe?-un[Rn]/2+Jn+ar+Wr+Be.mainAxis:tt+ar+Wr+Be.mainAxis,Fo=b.elements.arrow&&hn(b.elements.arrow),wr=Fo?Ie==="y"?Fo.clientTop||0:Fo.clientLeft||0:0,Ln=(Cn=on==null?void 0:on[Ie])!=null?Cn:0,Fn=zn+ko-Ln-wr,Xn=zn+Ii-Ln,Vo=Sr(ve?q(Gn,Fn):Gn,zn,ve?oe(On,Xn):On);en[Ie]=Vo,an[Ie]=Vo-zn}if(ie){var oo,Go=Ie==="x"?sn:Oe,Al=Ie==="x"?Se:Ue,Wn=en[$e],io=$e==="y"?"height":"width",Pi=Wn+Ke[Go],_i=Wn-Ke[Al],_t=[sn,Oe].indexOf(Le)!==-1,pt=(oo=on==null?void 0:on[$e])!=null?oo:0,ao=_t?Pi:Wn-un[io]-tn[io]-pt+Be.altAxis,Di=_t?Wn+un[io]+tn[io]-pt-Be.altAxis:_i,Si=ve&&_t?$a(ao,Wn,Di):Sr(ve?ao:Pi,Wn,ve?Di:_i);en[$e]=Si,an[$e]=Si-Wn}b.modifiersData[L]=an}}var Co={name:"preventOverflow",enabled:!0,phase:"main",fn:Li,requiresIfExists:["offset"]},nl=function(b,K){return b=typeof b=="function"?b(Object.assign({},K.rects,{placement:K.placement})):b,wa(typeof b!="number"?b:za(b,Ze))};function Ui(I){var b,K=I.state,L=I.name,R=I.options,w=K.elements.arrow,Q=K.modifiersData.popperOffsets,ie=Ot(K.placement),se=fr(ie),te=[Oe,Ue].indexOf(ie)>=0,ae=te?"height":"width";if(!(!w||!Q)){var pe=nl(R.padding,K),Ce=Fe(w),ve=se==="y"?sn:Oe,Me=se==="y"?Se:Ue,Ae=K.rects.reference[ae]+K.rects.reference[se]-Q[se]-K.rects.popper[ae],Ke=Q[se]-K.rects.reference[se],Le=hn(w),we=Le?se==="y"?Le.clientHeight||0:Le.clientWidth||0:0,Xe=Ae/2-Ke/2,Ie=pe[ve],$e=we-Ce[ae]-pe[Me],en=we/2-Ce[ae]/2+Xe,un=Sr(Ie,en,$e),tn=se;K.modifiersData[L]=(b={},b[tn]=un,b.centerOffset=un-en,b)}}function Dn(I){var b=I.state,K=I.options,L=K.element,R=L===void 0?"[data-popper-arrow]":L;R!=null&&(typeof R=="string"&&(R=b.elements.popper.querySelector(R),!R)||Na(b.elements.popper,R)&&(b.elements.arrow=R))}var ka={name:"arrow",enabled:!0,phase:"main",fn:Ui,effect:Dn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ni(I,b,K){return K===void 0&&(K={x:0,y:0}),{top:I.top-b.height-K.y,right:I.right-b.width+K.x,bottom:I.bottom-b.height+K.y,left:I.left-b.width-K.x}}function si(I){return[sn,Ue,Se,Oe].some(function(b){return I[b]>=0})}function Fa(I){var b=I.state,K=I.name,L=b.rects.reference,R=b.rects.popper,w=b.modifiersData.preventOverflow,Q=mr(b,{elementContext:"reference"}),ie=mr(b,{altBoundary:!0}),se=Ni(Q,L),te=Ni(ie,R,w),ae=si(se),pe=si(te);b.modifiersData[K]={referenceClippingOffsets:se,popperEscapeOffsets:te,isReferenceHidden:ae,hasPopperEscaped:pe},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":ae,"data-popper-escaped":pe})}var Va={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fa},Ga=[_r,ee,Aa,Ba,Ys,qs,Co,ka,Va],li=go({defaultModifiers:Ga}),kr=n(32394);function Bt(){return Bt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function wi(I,b){var K,L,R,w,Q={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]};return w={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function ie(te){return function(ae){return se([te,ae])}}function se(te){if(K)throw new TypeError("Generator is already executing.");for(;Q;)try{if(K=1,L&&(R=te[0]&2?L.return:te[0]?L.throw||((R=L.return)&&R.call(L),0):L.next)&&!(R=R.call(L,te[1])).done)return R;switch(L=0,R&&(te=[te[0]&2,R.value]),te[0]){case 0:case 1:R=te;break;case 4:return Q.label++,{value:te[1],done:!1};case 5:Q.label++,L=te[1],te=[0];continue;case 7:te=Q.ops.pop(),Q.trys.pop();continue;default:if(R=Q.trys,!(R=R.length>0&&R[R.length-1])&&(te[0]===6||te[0]===2)){Q=0;continue}if(te[0]===3&&(!R||te[1]>R[0]&&te[1]=0)&&(K[R]=I[R]);return K}function wi(I,b){var K,L,R,w,Q={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]};return w={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function ie(te){return function(ae){return se([te,ae])}}function se(te){if(K)throw new TypeError("Generator is already executing.");for(;Q;)try{if(K=1,L&&(R=te[0]&2?L.return:te[0]?L.throw||((R=L.return)&&R.call(L),0):L.next)&&!(R=R.call(L,te[1])).done)return R;switch(L=0,R&&(te=[te[0]&2,R.value]),te[0]){case 0:case 1:R=te;break;case 4:return Q.label++,{value:te[1],done:!1};case 5:Q.label++,L=te[1],te=[0];continue;case 7:te=Q.ops.pop(),Q.trys.pop();continue;default:if(R=Q.trys,!(R=R.length>0&&R[R.length-1])&&(te[0]===6||te[0]===2)){Q=0;continue}if(te[0]===3&&(!R||te[1]>R[0]&&te[1]=0)&&(K[R]=I[R]);return K}function ui(I,b){return ui=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},ui(I,b)}var Mt=(0,Po.h)("ByondUi"),Jt=[],di=function(I){var b=Jt.length;Jt.push(null);var K=I||"byondui_"+b;return Mt.log("allocated '"+K+"'"),{render:function(L){Mt.log("rendering '"+K+"'"),Jt[b]=K,Byond.winset(K,L)},unmount:function(){Mt.log("unmounting '"+K+"'"),Jt[b]=null,Byond.winset(K,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var I=0;I=0)&&(K[R]=I[R]);return K}function ui(I,b){return ui=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},ui(I,b)}var Mt=(0,Po.h)("ByondUi"),Jt=[],di=function(I){var b=Jt.length;Jt.push(null);var K=I||"byondui_"+b;return Mt.log("allocated '"+K+"'"),{render:function(L){Mt.log("rendering '"+K+"'"),Jt[b]=K,Byond.winset(K,L)},unmount:function(){Mt.log("unmounting '"+K+"'"),Jt[b]=null,Byond.winset(K,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var I=0;I=0)&&(K[R]=I[R]);return K}function Tr(I,b){return Tr=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Tr(I,b)}var rl=function(I,b,K,L){var R,w;if(I.length===0)return[];var Q=(0,kt.Tj)(kt.yU.apply(void 0,[].concat(I)),function(te){return(R=Math).min.apply(R,[].concat(te))}),ie=(0,kt.Tj)(kt.yU.apply(void 0,[].concat(I)),function(te){return(w=Math).max.apply(w,[].concat(te))});K!==void 0&&(Q[0]=K[0],ie[0]=K[1]),L!==void 0&&(Q[1]=L[0],ie[1]=L[1]);var se=(0,kt.Tj)(I,function(te){return(0,kt.Tj)((0,kt.yU)(te,Q,ie,b),function(ae){var pe=ae[0],Ce=ae[1],ve=ae[2],Me=ae[3];return(pe-Ce)/(ve-Ce)*Me})});return se},ki=function(I){for(var b="",K=0;K0){var we=Le[0],Xe=Le[Le.length-1];Le.push([Ke[0]+Me,Xe[1]]),Le.push([Ke[0]+Me,-Me]),Le.push([-Me,-Me]),Le.push([-Me,we[1]])}var Ie=ki(Le),$e=Qn({},Ae,{className:"",ref:this.ref});return(0,e.jsx)(O.az,Qn({position:"relative"},Ae,{children:(0,e.jsx)(O.az,Qn({},$e,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ke[0]+" "+Ke[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ke[1]+")",fill:ae,stroke:Ce,strokeWidth:Me,points:Ie})})}))}))},b}(t.Component),Do={Line:Fi};/** + */function Qa(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Qn(){return Qn=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Tr(I,b){return Tr=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Tr(I,b)}var rl=function(I,b,K,L){var R,w;if(I.length===0)return[];var Q=(0,kt.Tj)(kt.yU.apply(void 0,[].concat(I)),function(te){return(R=Math).min.apply(R,[].concat(te))}),ie=(0,kt.Tj)(kt.yU.apply(void 0,[].concat(I)),function(te){return(w=Math).max.apply(w,[].concat(te))});K!==void 0&&(Q[0]=K[0],ie[0]=K[1]),L!==void 0&&(Q[1]=L[0],ie[1]=L[1]);var se=(0,kt.Tj)(I,function(te){return(0,kt.Tj)((0,kt.yU)(te,Q,ie,b),function(ae){var pe=ae[0],Ce=ae[1],ve=ae[2],Me=ae[3];return(pe-Ce)/(ve-Ce)*Me})});return se},ki=function(I){for(var b="",K=0;K0){var we=Le[0],Xe=Le[Le.length-1];Le.push([Ke[0]+Me,Xe[1]]),Le.push([Ke[0]+Me,-Me]),Le.push([-Me,-Me]),Le.push([-Me,we[1]])}var Ie=ki(Le),$e=Qn({},Ae,{className:"",ref:this.ref});return(0,e.jsx)(y.az,Qn({position:"relative"},Ae,{children:(0,e.jsx)(y.az,Qn({},$e,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ke[0]+" "+Ke[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ke[1]+")",fill:ae,stroke:Ce,strokeWidth:Me,points:Ie})})}))}))},b}(t.Component),Do={Line:Fi};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Xr(){return Xr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function ol(I){var b=I.children,K=I.color,L=I.title,R=I.buttons,w=I.icon,Q=I.child_mt,ie=Q===void 0?1:Q,se=Za(I,["children","color","title","buttons","icon","child_mt"]),te=(0,t.useState)(I.open),ae=te[0],pe=te[1];return(0,e.jsxs)(O.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Yn,Xr({fluid:!0,color:K,icon:w||(ae?"chevron-down":"chevron-right"),onClick:function(){return pe(!ae)}},se,{children:L}))}),R&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:R})]}),ae&&(0,e.jsx)(O.az,{mt:ie,children:b})]})}/** + */function Xr(){return Xr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function ol(I){var b=I.children,K=I.color,L=I.title,R=I.buttons,w=I.icon,Q=I.child_mt,ie=Q===void 0?1:Q,se=Za(I,["children","color","title","buttons","icon","child_mt"]),te=(0,t.useState)(I.open),ae=te[0],pe=te[1];return(0,e.jsxs)(y.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Yn,Xr({fluid:!0,color:K,icon:w||(ae?"chevron-down":"chevron-right"),onClick:function(){return pe(!ae)}},se,{children:L}))}),R&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:R})]}),ae&&(0,e.jsx)(y.az,{mt:ie,children:b})]})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Vi(){return Vi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Gi(I){var b=I.content,K=I.children,L=I.className,R=il(I,["content","children","className"]);return R.color=b?null:"default",R.backgroundColor=I.color||"default",(0,e.jsx)("div",Vi({className:(0,E.Ly)(["ColorBox",L,(0,O.WP)(R)])},(0,O.Fl)(R),{children:b||"."}))}/** + */function Vi(){return Vi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Gi(I){var b=I.content,K=I.children,L=I.className,R=il(I,["content","children","className"]);return R.color=b?null:"default",R.backgroundColor=I.color||"default",(0,e.jsx)("div",Vi({className:(0,E.Ly)(["ColorBox",L,(0,y.WP)(R)])},(0,y.Fl)(R),{children:b||"."}))}/** * @file * @copyright 2022 raffclar * @license MIT - */var Ja=function(I){var b=I.title,K=I.onClose,L=I.children,R=I.width,w=I.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(O.az,{className:"Dialog__content",width:R||"370px",height:w,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:b}),(0,e.jsx)(O.az,{mr:2,children:(0,e.jsx)(Yn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:K})})]}),L]})})},hi=function(I){var b=I.onClick,K=I.children;return(0,e.jsx)(Yn,{onClick:b,className:"Dialog__button",verticalAlignContent:"middle",children:K})};Ja.Button=hi;var vc=function(I){var b=I.documentName,K=I.onSave,L=I.onDiscard,R=I.onClose;return _jsxs(Ja,{title:"Notepad",onClose:R,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",b,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(hi,{onClick:K,children:"Save"}),_jsx(hi,{onClick:L,children:"Don't Save"}),_jsx(hi,{onClick:R,children:"Cancel"})]})]})};/** + */var Ja=function(I){var b=I.title,K=I.onClose,L=I.children,R=I.width,w=I.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(y.az,{className:"Dialog__content",width:R||"370px",height:w,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:b}),(0,e.jsx)(y.az,{mr:2,children:(0,e.jsx)(Yn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:K})})]}),L]})})},hi=function(I){var b=I.onClick,K=I.children;return(0,e.jsx)(Yn,{onClick:b,className:"Dialog__button",verticalAlignContent:"middle",children:K})};Ja.Button=hi;var vc=function(I){var b=I.documentName,K=I.onSave,L=I.onDiscard,R=I.onClose;return _jsxs(Ja,{title:"Notepad",onClose:R,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",b,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(hi,{onClick:K,children:"Save"}),_jsx(hi,{onClick:L,children:"Don't Save"}),_jsx(hi,{onClick:R,children:"Cancel"})]})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Xi(){return Xi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Hi(I){var b=I.className,K=I.children,L=al(I,["className","children"]);return(0,e.jsx)(O.az,Xi({className:(0,E.Ly)(["Dimmer",b])},L,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:K})}))}/** + */function Xi(){return Xi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Hi(I){var b=I.className,K=I.children,L=al(I,["className","children"]);return(0,e.jsx)(y.az,Xi({className:(0,E.Ly)(["Dimmer",b])},L,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:K})}))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -163,11 +163,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function qi(){return qi=Object.assign||function(I){for(var b=1;b0&&(R.setState({suppressingFlicker:!0}),clearTimeout(R.flickerTimer),R.flickerTimer=setTimeout(function(){R.setState({suppressingFlicker:!1})},w))},R.handleDragStart=function(w){var Q=R.props,ie=Q.value,se=Q.dragMatrix,te=R.state.editing;te||(document.body.style["pointer-events"]="none",R.ref=w.target,R.setState({dragging:!1,origin:na(w,se),value:ie,internalValue:ie}),R.timer=setTimeout(function(){R.setState({dragging:!0})},250),R.dragInterval=setInterval(function(){var ae=R.state,pe=ae.dragging,Ce=ae.value,ve=R.props.onDrag;pe&&ve&&ve(w,Ce)},R.props.updateRate||fl),document.addEventListener("mousemove",R.handleDragMove),document.addEventListener("mouseup",R.handleDragEnd))},R.handleDragMove=function(w){var Q=R.props,ie=Q.minValue,se=Q.maxValue,te=Q.step,ae=Q.stepPixelSize,pe=Q.dragMatrix;R.setState(function(Ce){var ve=qi({},Ce),Me=na(w,pe)-ve.origin;if(Ce.dragging){var Ae=Number.isFinite(ie)?ie%te:0;ve.internalValue=(0,i.qE)(ve.internalValue+Me*te/ae,ie-te,se+te),ve.value=(0,i.qE)(ve.internalValue-ve.internalValue%te+Ae,ie,se),ve.origin=na(w,pe)}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},R.handleDragEnd=function(w){var Q=R.props,ie=Q.onChange,se=Q.onDrag,te=R.state,ae=te.dragging,pe=te.value,Ce=te.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(R.timer),clearInterval(R.dragInterval),R.setState({dragging:!1,editing:!ae,origin:null}),document.removeEventListener("mousemove",R.handleDragMove),document.removeEventListener("mouseup",R.handleDragEnd),ae)R.suppressFlicker(),ie&&ie(w,pe),se&&se(w,pe);else if(R.inputRef){var ve=R.inputRef.current;ve.value=Ce;try{ve.focus(),ve.select()}catch(Me){}}},R}var K=b.prototype;return K.render=function(){var R=this,w=this.state,Q=w.dragging,ie=w.editing,se=w.value,te=w.suppressingFlicker,ae=this.props,pe=ae.animated,Ce=ae.value,ve=ae.unit,Me=ae.minValue,Ae=ae.maxValue,Ke=ae.unclamped,Le=ae.format,we=ae.onChange,Xe=ae.onDrag,Ie=ae.children,$e=ae.height,en=ae.lineHeight,un=ae.fontSize,tn=Ce;(Q||te)&&(tn=se);var jn=(0,e.jsxs)(e.Fragment,{children:[pe&&!Q&&!te?(0,e.jsx)(c,{value:tn,format:Le}):Le?Le(tn):tn,ve?" "+ve:""]}),Be=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ie?void 0:"none",height:$e,lineHeight:en,fontsize:un},onBlur:function(on){if(ie){var an;if(Ke?an=parseFloat(on.target.value):an=(0,i.qE)(parseFloat(on.target.value),Me,Ae),Number.isNaN(an)){R.setState({editing:!1});return}R.setState({editing:!1,value:an}),R.suppressFlicker(),we&&we(on,an),Xe&&Xe(on,an)}},onKeyDown:function(on){if(on.keyCode===13){var an;if(Ke?an=parseFloat(on.target.value):an=(0,i.qE)(parseFloat(on.target.value),Me,Ae),Number.isNaN(an)){R.setState({editing:!1});return}R.setState({editing:!1,value:an}),R.suppressFlicker(),we&&we(on,an),Xe&&Xe(on,an);return}if(on.keyCode===27){R.setState({editing:!1});return}}});return Ie({dragging:Q,editing:ie,value:Ce,displayValue:tn,displayElement:jn,inputElement:Be,handleDragStart:this.handleDragStart})},b}(t.Component);Hr.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var So=n(20878),hl=n.n(So),ml=function(b){return Array.isArray(b)?b[0]:b},ns=function(b){if(typeof b=="function"){for(var K=arguments.length,L=new Array(K>1?K-1:0),R=1;RIe.length-3?Ie.length-1:yn-2;var tt=(Jn=nt.current)==null?void 0:Jn.children[$n];tt==null||tt.scrollIntoView({block:"nearest"})}function Gn(yn){if(!(Ie.length<1||te)){var Jn=0,$n=Ie.length-1,tt;Rn<0?tt=yn==="next"?$n:Jn:yn==="next"?tt=Rn===$n?Jn:Rn+1:tt=Rn===Jn?$n:Rn-1,an&&K&&zn(tt),we==null||we(xr(Ie[tt]))}}return(0,t.useEffect)(function(){var yn;an&&(K&&Rn!==rs&&zn(Rn),(yn=nt.current)==null||yn.focus())},[an]),(0,e.jsx)(ts,{isOpen:an,onClickOutside:function(){return Cn(!1)},placement:$e?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Ae},ref:nt,children:[Ie.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),Ie.map(function(yn,Jn){var $n=xr(yn);return(0,e.jsx)("div",{className:(0,E.Ly)(["Dropdown__menuentry",tn===$n&&"selected"]),onClick:function(){Cn(!1),we==null||we($n)},children:typeof yn=="string"?yn:yn.displayText},Jn)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,O.zA)(Be)},children:[(0,e.jsxs)("div",{className:(0,E.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+se,te&&"Button--disabled",R]),onClick:function(yn){te&&!an||(Cn(!an),Le==null||Le(yn))},children:[pe&&(0,e.jsx)(W,{mr:1,name:pe,rotation:Ce,spin:ve}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:Q?"hidden":"visible"},children:ae||tn&&xr(tn)||un}),!Ke&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(W,{name:wn?"chevron-up":"chevron-down"})})]}),L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yn,{disabled:te,height:1.8,icon:"chevron-left",onClick:function(){Gn("previous")}}),(0,e.jsx)(Yn,{disabled:te,height:1.8,icon:"chevron-right",onClick:function(){Gn("next")}})]})]})})}function gc(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function To(){return To=Object.assign||function(I){for(var b=1;b0&&(R.setState({suppressingFlicker:!0}),clearTimeout(R.flickerTimer),R.flickerTimer=setTimeout(function(){R.setState({suppressingFlicker:!1})},w))},R.handleDragStart=function(w){var Q=R.props,ie=Q.value,se=Q.dragMatrix,te=R.state.editing;te||(document.body.style["pointer-events"]="none",R.ref=w.target,R.setState({dragging:!1,origin:na(w,se),value:ie,internalValue:ie}),R.timer=setTimeout(function(){R.setState({dragging:!0})},250),R.dragInterval=setInterval(function(){var ae=R.state,pe=ae.dragging,Ce=ae.value,ve=R.props.onDrag;pe&&ve&&ve(w,Ce)},R.props.updateRate||fl),document.addEventListener("mousemove",R.handleDragMove),document.addEventListener("mouseup",R.handleDragEnd))},R.handleDragMove=function(w){var Q=R.props,ie=Q.minValue,se=Q.maxValue,te=Q.step,ae=Q.stepPixelSize,pe=Q.dragMatrix;R.setState(function(Ce){var ve=qi({},Ce),Me=na(w,pe)-ve.origin;if(Ce.dragging){var Ae=Number.isFinite(ie)?ie%te:0;ve.internalValue=(0,i.qE)(ve.internalValue+Me*te/ae,ie-te,se+te),ve.value=(0,i.qE)(ve.internalValue-ve.internalValue%te+Ae,ie,se),ve.origin=na(w,pe)}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},R.handleDragEnd=function(w){var Q=R.props,ie=Q.onChange,se=Q.onDrag,te=R.state,ae=te.dragging,pe=te.value,Ce=te.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(R.timer),clearInterval(R.dragInterval),R.setState({dragging:!1,editing:!ae,origin:null}),document.removeEventListener("mousemove",R.handleDragMove),document.removeEventListener("mouseup",R.handleDragEnd),ae)R.suppressFlicker(),ie&&ie(w,pe),se&&se(w,pe);else if(R.inputRef){var ve=R.inputRef.current;ve.value=Ce;try{ve.focus(),ve.select()}catch(Me){}}},R}var K=b.prototype;return K.render=function(){var R=this,w=this.state,Q=w.dragging,ie=w.editing,se=w.value,te=w.suppressingFlicker,ae=this.props,pe=ae.animated,Ce=ae.value,ve=ae.unit,Me=ae.minValue,Ae=ae.maxValue,Ke=ae.unclamped,Le=ae.format,we=ae.onChange,Xe=ae.onDrag,Ie=ae.children,$e=ae.height,en=ae.lineHeight,un=ae.fontSize,tn=Ce;(Q||te)&&(tn=se);var jn=(0,e.jsxs)(e.Fragment,{children:[pe&&!Q&&!te?(0,e.jsx)(c,{value:tn,format:Le}):Le?Le(tn):tn,ve?" "+ve:""]}),Be=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ie?void 0:"none",height:$e,lineHeight:en,fontsize:un},onBlur:function(on){if(ie){var an;if(Ke?an=parseFloat(on.target.value):an=(0,i.qE)(parseFloat(on.target.value),Me,Ae),Number.isNaN(an)){R.setState({editing:!1});return}R.setState({editing:!1,value:an}),R.suppressFlicker(),we&&we(on,an),Xe&&Xe(on,an)}},onKeyDown:function(on){if(on.keyCode===13){var an;if(Ke?an=parseFloat(on.target.value):an=(0,i.qE)(parseFloat(on.target.value),Me,Ae),Number.isNaN(an)){R.setState({editing:!1});return}R.setState({editing:!1,value:an}),R.suppressFlicker(),we&&we(on,an),Xe&&Xe(on,an);return}if(on.keyCode===27){R.setState({editing:!1});return}}});return Ie({dragging:Q,editing:ie,value:Ce,displayValue:tn,displayElement:jn,inputElement:Be,handleDragStart:this.handleDragStart})},b}(t.Component);Hr.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var So=n(20878),hl=n.n(So),ml=function(b){return Array.isArray(b)?b[0]:b},ns=function(b){if(typeof b=="function"){for(var K=arguments.length,L=new Array(K>1?K-1:0),R=1;RIe.length-3?Ie.length-1:On-2;var tt=(Jn=nt.current)==null?void 0:Jn.children[$n];tt==null||tt.scrollIntoView({block:"nearest"})}function Gn(On){if(!(Ie.length<1||te)){var Jn=0,$n=Ie.length-1,tt;Rn<0?tt=On==="next"?$n:Jn:On==="next"?tt=Rn===$n?Jn:Rn+1:tt=Rn===Jn?$n:Rn-1,an&&K&&zn(tt),we==null||we(xr(Ie[tt]))}}return(0,t.useEffect)(function(){var On;an&&(K&&Rn!==rs&&zn(Rn),(On=nt.current)==null||On.focus())},[an]),(0,e.jsx)(ts,{isOpen:an,onClickOutside:function(){return Cn(!1)},placement:$e?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Ae},ref:nt,children:[Ie.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),Ie.map(function(On,Jn){var $n=xr(On);return(0,e.jsx)("div",{className:(0,E.Ly)(["Dropdown__menuentry",tn===$n&&"selected"]),onClick:function(){Cn(!1),we==null||we($n)},children:typeof On=="string"?On:On.displayText},Jn)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,y.zA)(Be)},children:[(0,e.jsxs)("div",{className:(0,E.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+se,te&&"Button--disabled",R]),onClick:function(On){te&&!an||(Cn(!an),Le==null||Le(On))},children:[pe&&(0,e.jsx)(W,{mr:1,name:pe,rotation:Ce,spin:ve}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:Q?"hidden":"visible"},children:ae||tn&&xr(tn)||un}),!Ke&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(W,{name:wn?"chevron-up":"chevron-down"})})]}),L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yn,{disabled:te,height:1.8,icon:"chevron-left",onClick:function(){Gn("previous")}}),(0,e.jsx)(Yn,{disabled:te,height:1.8,icon:"chevron-right",onClick:function(){Gn("next")}})]})]})})}function gc(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function To(){return To=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var ia=function(I){return(0,E.Ly)(["Flex",I.inline&&"Flex--inline",(0,O.WP)(I)])},as=function(I){var b=I.className,K=I.direction,L=I.wrap,R=I.align,w=I.justify,Q=I.inline,ie=Ao(I,["className","direction","wrap","align","justify","inline"]);return(0,O.Fl)(qt({style:qt({},ie.style,{flexDirection:K,flexWrap:L===!0?"wrap":L,alignItems:R,justifyContent:w})},ie))},gr=function(I){var b=I.className,K=Ao(I,["className"]);return(0,e.jsx)("div",qt({className:(0,E.Ly)([b,ia(K)])},as(K)))},aa=function(I){return(0,E.Ly)(["Flex__item",(0,O.WP)(I)])},sa=function(I){var b=I.className,K=I.style,L=I.grow,R=I.order,w=I.shrink,Q=I.basis,ie=I.align,se=Ao(I,["className","style","grow","order","shrink","basis","align"]),te,ae=(te=Q!=null?Q:I.width)!=null?te:L!==void 0?0:void 0;return(0,O.Fl)(qt({style:qt({},K,{flexGrow:L!==void 0&&Number(L),flexShrink:w!==void 0&&Number(w),flexBasis:(0,O.zA)(ae),order:R,alignSelf:ie})},se))},gl=function(I){var b=I.className,K=Ao(I,["className"]);return(0,e.jsx)("div",qt({className:(0,E.Ly)([b,aa(I)])},sa(K)))};gr.Item=gl;var ft=n(19996);/** + */function qt(){return qt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var ia=function(I){return(0,E.Ly)(["Flex",I.inline&&"Flex--inline",(0,y.WP)(I)])},as=function(I){var b=I.className,K=I.direction,L=I.wrap,R=I.align,w=I.justify,Q=I.inline,ie=Ao(I,["className","direction","wrap","align","justify","inline"]);return(0,y.Fl)(qt({style:qt({},ie.style,{flexDirection:K,flexWrap:L===!0?"wrap":L,alignItems:R,justifyContent:w})},ie))},gr=function(I){var b=I.className,K=Ao(I,["className"]);return(0,e.jsx)("div",qt({className:(0,E.Ly)([b,ia(K)])},as(K)))},aa=function(I){return(0,E.Ly)(["Flex__item",(0,y.WP)(I)])},sa=function(I){var b=I.className,K=I.style,L=I.grow,R=I.order,w=I.shrink,Q=I.basis,ie=I.align,se=Ao(I,["className","style","grow","order","shrink","basis","align"]),te,ae=(te=Q!=null?Q:I.width)!=null?te:L!==void 0?0:void 0;return(0,y.Fl)(qt({style:qt({},K,{flexGrow:L!==void 0&&Number(L),flexShrink:w!==void 0&&Number(w),flexBasis:(0,y.zA)(ae),order:R,alignSelf:ie})},se))},gl=function(I){var b=I.className,K=Ao(I,["className"]);return(0,e.jsx)("div",qt({className:(0,E.Ly)([b,aa(I)])},sa(K)))};gr.Item=gl;var ft=n(19996);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -175,19 +175,19 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Qr(){return Qr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var jl=function(I){var b=I.className,K=I.value,L=I.minValue,R=L===void 0?0:L,w=I.maxValue,Q=w===void 0?1:w,ie=I.color,se=I.ranges,te=se===void 0?{}:se,ae=I.children,pe=pl(I,["className","value","minValue","maxValue","color","ranges","children"]),Ce=(0,i.hs)(K,R,Q),ve=ae!==void 0,Me=ie||(0,i.TG)(K,te)||"default",Ae=(0,O.Fl)(pe),Ke=["ProgressBar",b,(0,O.WP)(pe)],Le={width:(0,i.J$)(Ce)*100+"%"};return cs.NE.includes(Me)||Me==="default"?Ke.push("ProgressBar--color--"+Me):(Ae.style=Qr({},Ae.style,{borderColor:Me}),Le.backgroundColor=Me),(0,e.jsxs)("div",Qr({className:(0,E.Ly)(Ke)},Ae,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Le}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ve?ae:(0,i.Mg)(Ce*100)+"%"})]}))};/** + */function Qr(){return Qr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var jl=function(I){var b=I.className,K=I.value,L=I.minValue,R=L===void 0?0:L,w=I.maxValue,Q=w===void 0?1:w,ie=I.color,se=I.ranges,te=se===void 0?{}:se,ae=I.children,pe=pl(I,["className","value","minValue","maxValue","color","ranges","children"]),Ce=(0,i.hs)(K,R,Q),ve=ae!==void 0,Me=ie||(0,i.TG)(K,te)||"default",Ae=(0,y.Fl)(pe),Ke=["ProgressBar",b,(0,y.WP)(pe)],Le={width:(0,i.J$)(Ce)*100+"%"};return cs.NE.includes(Me)||Me==="default"?Ke.push("ProgressBar--color--"+Me):(Ae.style=Qr({},Ae.style,{borderColor:Me}),Le.backgroundColor=Me),(0,e.jsxs)("div",Qr({className:(0,E.Ly)(Ke)},Ae,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Le}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ve?ae:(0,i.Mg)(Ce*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function Lt(){return Lt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var Ar=function(I){var b=I.className,K=I.vertical,L=I.fill,R=I.zebra,w=Ro(I,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack",L&&"Stack--fill",K?"Stack--vertical":"Stack--horizontal",R&&"Stack--zebra",b,ia(I)])},as(Lt({direction:K?"column":"row"},w))))},ca=function(I){var b=I.className,K=I.innerRef,L=Ro(I,["className","innerRef"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack__item",b,aa(L)]),ref:K},sa(L)))};Ar.Item=ca;var us=function(I){var b=I.className,K=I.hidden,L=Ro(I,["className","hidden"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack__item","Stack__divider",K&&"Stack__divider--hidden",b,aa(L)])},sa(L)))};Ar.Divider=us;function ua(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Rr(){return Rr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Zr(I,b){return Zr=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Zr(I,b)}var Cl=.5,yl=1.5,Ol=.1,Ml=null;/** + */function Lt(){return Lt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var Ar=function(I){var b=I.className,K=I.vertical,L=I.fill,R=I.zebra,w=Ro(I,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack",L&&"Stack--fill",K?"Stack--vertical":"Stack--horizontal",R&&"Stack--zebra",b,ia(I)])},as(Lt({direction:K?"column":"row"},w))))},ca=function(I){var b=I.className,K=I.innerRef,L=Ro(I,["className","innerRef"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack__item",b,aa(L)]),ref:K},sa(L)))};Ar.Item=ca;var us=function(I){var b=I.className,K=I.hidden,L=Ro(I,["className","hidden"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack__item","Stack__divider",K&&"Stack__divider--hidden",b,aa(L)])},sa(L)))};Ar.Divider=us;function ua(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Rr(){return Rr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Zr(I,b){return Zr=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Zr(I,b)}var Cl=.5,Ol=1.5,yl=.1,Ml=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function xi(){return xi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Ut(I){return typeof I!="number"&&typeof I!="string"?"":String(I)}var da=br(function(I){return I()},250);function fa(I){var b=I.autoFocus,K=I.autoSelect,L=I.className,R=I.disabled,w=I.expensive,Q=I.fluid,ie=I.maxLength,se=I.monospace,te=I.onChange,ae=I.onEnter,pe=I.onEscape,Ce=I.onInput,ve=I.placeholder,Me=I.selfClear,Ae=I.value,Ke=fs(I,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onChange","onEnter","onEscape","onInput","placeholder","selfClear","value"]),Le=(0,t.useRef)(null);function we(Ie){var $e;if(Ce){var en=($e=Ie.currentTarget)==null?void 0:$e.value;w?da(function(){return Ce(Ie,en)}):Ce(Ie,en)}}function Xe(Ie){if(Ie.key===S._.Enter){ae==null||ae(Ie,Ie.currentTarget.value),Me?Ie.currentTarget.value="":(Ie.currentTarget.blur(),te==null||te(Ie,Ie.currentTarget.value));return}(0,S.K)(Ie.key)&&(pe==null||pe(Ie),Ie.currentTarget.value=Ut(Ae),Ie.currentTarget.blur())}return(0,t.useEffect)(function(){var Ie=Le.current;if(Ie){var $e=Ut(Ae);Ie.value!==$e&&(Ie.value=$e),!(!b&&!K)&&setTimeout(function(){Ie.focus(),K&&Ie.select()},1)}},[]),(0,e.jsxs)(O.az,xi({className:(0,E.Ly)(["Input",Q&&"Input--fluid",se&&"Input--monospace",L])},Ke,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",disabled:R,maxLength:ie,onBlur:function(Ie){return te==null?void 0:te(Ie,Ie.target.value)},onChange:we,onKeyDown:Xe,placeholder:ve,ref:Le})]}))}var jc=n(52130);function Ec(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&&Br(I,b)}function Br(I,b){return Br=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Br(I,b)}var Cc=null;/** + */function xi(){return xi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Ut(I){return typeof I!="number"&&typeof I!="string"?"":String(I)}var da=br(function(I){return I()},250);function fa(I){var b=I.autoFocus,K=I.autoSelect,L=I.className,R=I.disabled,w=I.expensive,Q=I.fluid,ie=I.maxLength,se=I.monospace,te=I.onChange,ae=I.onEnter,pe=I.onEscape,Ce=I.onInput,ve=I.placeholder,Me=I.selfClear,Ae=I.value,Ke=fs(I,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onChange","onEnter","onEscape","onInput","placeholder","selfClear","value"]),Le=(0,t.useRef)(null);function we(Ie){var $e;if(Ce){var en=($e=Ie.currentTarget)==null?void 0:$e.value;w?da(function(){return Ce(Ie,en)}):Ce(Ie,en)}}function Xe(Ie){if(Ie.key===S._.Enter){ae==null||ae(Ie,Ie.currentTarget.value),Me?Ie.currentTarget.value="":(Ie.currentTarget.blur(),te==null||te(Ie,Ie.currentTarget.value));return}(0,S.K)(Ie.key)&&(pe==null||pe(Ie),Ie.currentTarget.value=Ut(Ae),Ie.currentTarget.blur())}return(0,t.useEffect)(function(){var Ie=Le.current;if(Ie){var $e=Ut(Ae);Ie.value!==$e&&(Ie.value=$e),!(!b&&!K)&&setTimeout(function(){Ie.focus(),K&&Ie.select()},1)}},[]),(0,e.jsxs)(y.az,xi({className:(0,E.Ly)(["Input",Q&&"Input--fluid",se&&"Input--monospace",L])},Ke,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",disabled:R,maxLength:ie,onBlur:function(Ie){return te==null?void 0:te(Ie,Ie.target.value)},onChange:we,onKeyDown:Xe,placeholder:ve,ref:Le})]}))}var jc=n(52130);function Ec(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&&Br(I,b)}function Br(I,b){return Br=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Br(I,b)}var Cc=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Jr(){return Jr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Tn(I){var b=I.animated,K=I.format,L=I.maxValue,R=I.minValue,w=I.onChange,Q=I.onDrag,ie=I.step,se=I.stepPixelSize,te=I.suppressFlicker,ae=I.unclamped,pe=I.unit,Ce=I.value,ve=I.bipolar,Me=I.children,Ae=I.className,Ke=I.color,Le=I.fillValue,we=I.ranges,Xe=we===void 0?{}:we,Ie=I.size,$e=Ie===void 0?1:Ie,en=I.style,un=hs(I,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unclamped","unit","value","bipolar","children","className","color","fillValue","ranges","size","style"]);return(0,e.jsx)(Hr,{dragMatrix:[0,-1],animated:b,format:K,maxValue:L,minValue:R,onChange:w,onDrag:Q,step:ie,stepPixelSize:se,suppressFlicker:te,unclamped:ae,unit:pe,value:Ce,children:function(tn){var jn=tn.displayElement,Be=tn.displayValue,on=tn.dragging,an=tn.handleDragStart,Cn=tn.inputElement,wn=tn.value,nt=(0,i.hs)(Le!=null?Le:Be,R,L),Rn=(0,i.hs)(Be,R,L),zn=Ke||(0,i.TG)(Le!=null?Le:wn,Xe)||"default",Gn=Math.min((Rn-.5)*270,225);return(0,e.jsxs)("div",Jr({className:(0,E.Ly)(["Knob","Knob--color--"+zn,ve&&"Knob--bipolar",Ae,(0,O.WP)(un)])},(0,O.Fl)(Jr({style:Jr({fontSize:$e+"em"},en)},un)),{onMouseDown:an,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Gn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),on&&(0,e.jsx)("div",{className:"Knob__popupValue",children:jn}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((ve?2.75:2)-nt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Cn]}))}})}/** + */function Jr(){return Jr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Tn(I){var b=I.animated,K=I.format,L=I.maxValue,R=I.minValue,w=I.onChange,Q=I.onDrag,ie=I.step,se=I.stepPixelSize,te=I.suppressFlicker,ae=I.unclamped,pe=I.unit,Ce=I.value,ve=I.bipolar,Me=I.children,Ae=I.className,Ke=I.color,Le=I.fillValue,we=I.ranges,Xe=we===void 0?{}:we,Ie=I.size,$e=Ie===void 0?1:Ie,en=I.style,un=hs(I,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unclamped","unit","value","bipolar","children","className","color","fillValue","ranges","size","style"]);return(0,e.jsx)(Hr,{dragMatrix:[0,-1],animated:b,format:K,maxValue:L,minValue:R,onChange:w,onDrag:Q,step:ie,stepPixelSize:se,suppressFlicker:te,unclamped:ae,unit:pe,value:Ce,children:function(tn){var jn=tn.displayElement,Be=tn.displayValue,on=tn.dragging,an=tn.handleDragStart,Cn=tn.inputElement,wn=tn.value,nt=(0,i.hs)(Le!=null?Le:Be,R,L),Rn=(0,i.hs)(Be,R,L),zn=Ke||(0,i.TG)(Le!=null?Le:wn,Xe)||"default",Gn=Math.min((Rn-.5)*270,225);return(0,e.jsxs)("div",Jr({className:(0,E.Ly)(["Knob","Knob--color--"+zn,ve&&"Knob--bipolar",Ae,(0,y.WP)(un)])},(0,y.Fl)(Jr({style:Jr({fontSize:$e+"em"},en)},un)),{onMouseDown:an,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Gn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),on&&(0,e.jsx)("div",{className:"Knob__popupValue",children:jn}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((ve?2.75:2)-nt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Cn]}))}})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -195,56 +195,56 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var pr=function(I){var b=I.children;return(0,e.jsx)("table",{className:"LabeledList",children:b})},Ko=function(I){var b=I.className,K=I.label,L=I.labelColor,R=L===void 0?"label":L,w=I.labelWrap,Q=I.color,ie=I.textAlign,se=I.buttons,te=I.content,ae=I.children,pe=I.verticalAlign,Ce=pe===void 0?"baseline":pe,ve=I.tooltip,Me;K&&(Me=K,typeof K=="string"&&(Me+=":")),ve!==void 0&&(Me=(0,e.jsx)(dt,{content:ve,children:(0,e.jsx)(O.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Me})}));var Ae=(0,e.jsx)(O.az,{as:"td",color:R,className:(0,E.Ly)(["LabeledList__cell",!w&&"LabeledList__label--nowrap"]),verticalAlign:Ce,children:Me});return(0,e.jsxs)("tr",{className:(0,E.Ly)(["LabeledList__row",b]),children:[Ae,(0,e.jsxs)(O.az,{as:"td",color:Q,textAlign:ie,className:(0,E.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:se?void 0:2,verticalAlign:Ce,children:[te,ae]}),se&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:se})]})},gi=function(I){var b=I.size?(0,O.zA)(Math.max(0,I.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:b,paddingBottom:b},children:(0,e.jsx)(qa,{})})})};pr.Item=Ko,pr.Divider=gi;/** + */var pr=function(I){var b=I.children;return(0,e.jsx)("table",{className:"LabeledList",children:b})},Ko=function(I){var b=I.className,K=I.label,L=I.labelColor,R=L===void 0?"label":L,w=I.labelWrap,Q=I.color,ie=I.textAlign,se=I.buttons,te=I.content,ae=I.children,pe=I.verticalAlign,Ce=pe===void 0?"baseline":pe,ve=I.tooltip,Me;K&&(Me=K,typeof K=="string"&&(Me+=":")),ve!==void 0&&(Me=(0,e.jsx)(dt,{content:ve,children:(0,e.jsx)(y.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Me})}));var Ae=(0,e.jsx)(y.az,{as:"td",color:R,className:(0,E.Ly)(["LabeledList__cell",!w&&"LabeledList__label--nowrap"]),verticalAlign:Ce,children:Me});return(0,e.jsxs)("tr",{className:(0,E.Ly)(["LabeledList__row",b]),children:[Ae,(0,e.jsxs)(y.az,{as:"td",color:Q,textAlign:ie,className:(0,E.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:se?void 0:2,verticalAlign:Ce,children:[te,ae]}),se&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:se})]})},gi=function(I){var b=I.size?(0,y.zA)(Math.max(0,I.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:b,paddingBottom:b},children:(0,e.jsx)(qa,{})})})};pr.Item=Ko,pr.Divider=gi;/** * @file * @copyright 2022 Aleksej Komarov * @license MIT - */function jr(){return jr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function ma(I,b){return ma=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},ma(I,b)}var xs=function(I){"use strict";ha(b,I);function b(L){var R;return R=I.call(this,L)||this,R.handleClick=function(w){if(!R.props.menuRef.current){Po.v.log("Menu.handleClick(): No ref");return}R.props.menuRef.current.contains(w.target)?Po.v.log("Menu.handleClick(): Inside"):(Po.v.log("Menu.handleClick(): Outside"),R.props.onOutsideClick())},R}var K=b.prototype;return K.componentWillMount=function(){window.addEventListener("click",this.handleClick)},K.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},K.render=function(){var R=this.props,w=R.width,Q=R.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:w},children:Q})},b}(t.Component),pi=function(I){"use strict";ha(b,I);function b(L){var R;return R=I.call(this,L)||this,R.menuRef=(0,t.createRef)(),R}var K=b.prototype;return K.render=function(){var R=this.props,w=R.open,Q=R.openWidth,ie=R.children,se=R.disabled,te=R.display,ae=R.onMouseOver,pe=R.onClick,Ce=R.onOutsideClick,ve=vs(R,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Me=ve.className,Ae=vs(ve,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(O.az,jr({className:(0,E.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Me])},Ae,{onClick:se?function(){return null}:pe,onMouseOver:ae,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:te})})),w&&(0,e.jsx)(xs,{width:Q,menuRef:this.menuRef,onOutsideClick:Ce,children:ie})]})},b}(t.Component),Kr=function(I){var b=I.entry,K=I.children,L=I.openWidth,R=I.display,w=I.setOpenMenuBar,Q=I.openMenuBar,ie=I.setOpenOnHover,se=I.openOnHover,te=I.disabled,ae=I.className;return(0,e.jsx)(pi,{openWidth:L,display:R,disabled:te,open:Q===b,className:ae,onClick:function(){var pe=Q===b?null:b;w(pe),ie(!se)},onOutsideClick:function(){w(null),ie(!1)},onMouseOver:function(){se&&w(b)},children:K})},va=function(I){var b=I.value,K=I.displayText,L=I.onClick,R=I.checked;return(0,e.jsxs)(O.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return L(b)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:R&&(0,e.jsx)(W,{size:1.3,name:"check"})}),K]})};Kr.MenuItemToggle=va;var xa=function(I){var b=I.value,K=I.displayText,L=I.onClick;return(0,e.jsx)(O.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return L(b)},children:K})};Kr.MenuItem=xa;var ga=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Kr.Separator=ga;var pa=function(I){var b=I.children;return(0,e.jsx)(O.az,{className:"MenuBar",children:b})};pa.Dropdown=Kr;/** + */function jr(){return jr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function ma(I,b){return ma=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},ma(I,b)}var xs=function(I){"use strict";ha(b,I);function b(L){var R;return R=I.call(this,L)||this,R.handleClick=function(w){if(!R.props.menuRef.current){Po.v.log("Menu.handleClick(): No ref");return}R.props.menuRef.current.contains(w.target)?Po.v.log("Menu.handleClick(): Inside"):(Po.v.log("Menu.handleClick(): Outside"),R.props.onOutsideClick())},R}var K=b.prototype;return K.componentWillMount=function(){window.addEventListener("click",this.handleClick)},K.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},K.render=function(){var R=this.props,w=R.width,Q=R.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:w},children:Q})},b}(t.Component),pi=function(I){"use strict";ha(b,I);function b(L){var R;return R=I.call(this,L)||this,R.menuRef=(0,t.createRef)(),R}var K=b.prototype;return K.render=function(){var R=this.props,w=R.open,Q=R.openWidth,ie=R.children,se=R.disabled,te=R.display,ae=R.onMouseOver,pe=R.onClick,Ce=R.onOutsideClick,ve=vs(R,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Me=ve.className,Ae=vs(ve,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(y.az,jr({className:(0,E.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Me])},Ae,{onClick:se?function(){return null}:pe,onMouseOver:ae,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:te})})),w&&(0,e.jsx)(xs,{width:Q,menuRef:this.menuRef,onOutsideClick:Ce,children:ie})]})},b}(t.Component),Kr=function(I){var b=I.entry,K=I.children,L=I.openWidth,R=I.display,w=I.setOpenMenuBar,Q=I.openMenuBar,ie=I.setOpenOnHover,se=I.openOnHover,te=I.disabled,ae=I.className;return(0,e.jsx)(pi,{openWidth:L,display:R,disabled:te,open:Q===b,className:ae,onClick:function(){var pe=Q===b?null:b;w(pe),ie(!se)},onOutsideClick:function(){w(null),ie(!1)},onMouseOver:function(){se&&w(b)},children:K})},va=function(I){var b=I.value,K=I.displayText,L=I.onClick,R=I.checked;return(0,e.jsxs)(y.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return L(b)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:R&&(0,e.jsx)(W,{size:1.3,name:"check"})}),K]})};Kr.MenuItemToggle=va;var xa=function(I){var b=I.value,K=I.displayText,L=I.onClick;return(0,e.jsx)(y.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return L(b)},children:K})};Kr.MenuItem=xa;var ga=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Kr.Separator=ga;var pa=function(I){var b=I.children;return(0,e.jsx)(y.az,{className:"MenuBar",children:b})};pa.Dropdown=Kr;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ja(){return ja=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Il(I){var b=I.className,K=I.children,L=I.onEnter,R=gs(I,["className","children","onEnter"]),w;return L&&(w=function(Q){Q.key===S._.Enter&&L(Q)}),(0,e.jsx)(Hi,{onKeyDown:w,children:(0,e.jsx)("div",ja({className:(0,E.Ly)(["Modal",b,(0,O.WP)(R)])},(0,O.Fl)(R),{children:K}))})}var ps=n(7081);function Lo(){return Lo=Object.assign||function(I){for(var b=1;b500&&(Ce=500);var ve=te.offsetY-256*pe;return ve<-200&&(ve=-200),ve>200&&(ve=200),te.offsetX=Ce,te.offsetY=ve,L.onZoom&&L.onZoom(te.zoom),te})},R}var K=b.prototype;return K.render=function(){var R=(0,ps.Oc)().config,w=this.state,Q=w.dragging,ie=w.offsetX,se=w.offsetY,te=w.zoom,ae=te===void 0?1:te,pe=this.props.children,Ce=(0,sl.l)(R.map+"_nanomap_z"+R.mapZLevel+".png"),ve=this.props.zoomScale*ae+"px",Me={width:ve,height:ve,"margin-top":se+"px","margin-left":ie+"px",overflow:"hidden",position:"relative","background-image":"url("+Ce+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:Q?"move":"auto"};return(0,e.jsxs)(O.az,{className:"NanoMap__container",children:[(0,e.jsx)(O.az,{style:Me,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(O.az,{children:pe})}),(0,e.jsx)(Ft,{zoom:ae,onZoom:this.handleZoom})]})},b}(t.Component),Uo=function(I){var b=I.x,K=I.y,L=I.zoom,R=L===void 0?1:L,w=I.icon,Q=I.tooltip,ie=I.color,se=I.onClick,te=function(Ce){nr(Ce),se&&se(Ce)},ae=b*2*R-R-3,pe=K*2*R-R-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(O.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:pe+"px",left:ae+"px",onMouseDown:te,children:[(0,e.jsx)(W,{name:w,color:ie,fontSize:"6px"}),(0,e.jsx)(dt,{content:Q})]})})};It.Marker=Uo;var Ft=function(I){var b=(0,ps.Oc)(),K=b.act,L=b.config,R=b.data;return(0,e.jsx)(O.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(pr,{children:[(0,e.jsx)(pr.Item,{label:"Zoom",children:(0,e.jsx)(zo,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(w){return w+"x"},value:I.zoom,onDrag:function(w,Q){return I.onZoom(w,Q)}})}),(0,e.jsx)(pr.Item,{label:"Z-Level",children:R.map_levels.sort(function(w,Q){return Number(w)-Number(Q)}).map(function(w){return(0,e.jsx)(Yn,{selected:~~w===~~L.mapZLevel,onClick:function(){K("setZLevel",{mapZLevel:w})},children:w},w)})})]})})};It.Zoomer=Ft;/** + */function ja(){return ja=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Il(I){var b=I.className,K=I.children,L=I.onEnter,R=gs(I,["className","children","onEnter"]),w;return L&&(w=function(Q){Q.key===S._.Enter&&L(Q)}),(0,e.jsx)(Hi,{onKeyDown:w,children:(0,e.jsx)("div",ja({className:(0,E.Ly)(["Modal",b,(0,y.WP)(R)])},(0,y.Fl)(R),{children:K}))})}var ps=n(7081);function Lo(){return Lo=Object.assign||function(I){for(var b=1;b500&&(Ce=500);var ve=te.offsetY-256*pe;return ve<-200&&(ve=-200),ve>200&&(ve=200),te.offsetX=Ce,te.offsetY=ve,L.onZoom&&L.onZoom(te.zoom),te})},R}var K=b.prototype;return K.render=function(){var R=(0,ps.Oc)().config,w=this.state,Q=w.dragging,ie=w.offsetX,se=w.offsetY,te=w.zoom,ae=te===void 0?1:te,pe=this.props.children,Ce=(0,sl.l)(R.map+"_nanomap_z"+R.mapZLevel+".png"),ve=this.props.zoomScale*ae+"px",Me={width:ve,height:ve,"margin-top":se+"px","margin-left":ie+"px",overflow:"hidden",position:"relative","background-image":"url("+Ce+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:Q?"move":"auto"};return(0,e.jsxs)(y.az,{className:"NanoMap__container",children:[(0,e.jsx)(y.az,{style:Me,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(y.az,{children:pe})}),(0,e.jsx)(Ft,{zoom:ae,onZoom:this.handleZoom})]})},b}(t.Component),Uo=function(I){var b=I.x,K=I.y,L=I.zoom,R=L===void 0?1:L,w=I.icon,Q=I.tooltip,ie=I.color,se=I.onClick,te=function(Ce){nr(Ce),se&&se(Ce)},ae=b*2*R-R-3,pe=K*2*R-R-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(y.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:pe+"px",left:ae+"px",onMouseDown:te,children:[(0,e.jsx)(W,{name:w,color:ie,fontSize:"6px"}),(0,e.jsx)(dt,{content:Q})]})})};It.Marker=Uo;var Ft=function(I){var b=(0,ps.Oc)(),K=b.act,L=b.config,R=b.data;return(0,e.jsx)(y.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(pr,{children:[(0,e.jsx)(pr.Item,{label:"Zoom",children:(0,e.jsx)(zo,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(w){return w+"x"},value:I.zoom,onDrag:function(w,Q){return I.onZoom(w,Q)}})}),(0,e.jsx)(pr.Item,{label:"Z-Level",children:R.map_levels.sort(function(w,Q){return Number(w)-Number(Q)}).map(function(w){return(0,e.jsx)(Yn,{selected:~~w===~~L.mapZLevel,onClick:function(){K("setZLevel",{mapZLevel:w})},children:w},w)})})]})})};It.Zoomer=Ft;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function No(){return No=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function _l(I){var b=I.className,K=I.color,L=I.info,R=I.success,w=I.danger,Q=I.warning,ie=Pl(I,["className","color","info","success","danger","warning"]);return(0,e.jsx)(O.az,No({className:(0,E.Ly)(["NoticeBox",K&&"NoticeBox--color--"+K,L&&"NoticeBox--type--info",R&&"NoticeBox--type--success",Q&&"NoticeBox--type--warning ",w&&"NoticeBox--type--danger",b])},ie))}/** + */function No(){return No=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function _l(I){var b=I.className,K=I.color,L=I.info,R=I.success,w=I.danger,Q=I.warning,ie=Pl(I,["className","color","info","success","danger","warning"]);return(0,e.jsx)(y.az,No({className:(0,E.Ly)(["NoticeBox",K&&"NoticeBox--color--"+K,L&&"NoticeBox--type--info",R&&"NoticeBox--type--success",Q&&"NoticeBox--type--warning ",w&&"NoticeBox--type--danger",b])},ie))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function tr(){return tr=Object.assign||function(I){for(var b=1;b0&&(R.setState({suppressingFlicker:!0}),clearTimeout(R.flickerTimer),R.flickerTimer=setTimeout(function(){return R.setState({suppressingFlicker:!1})},se))},R.handleDragStart=function(Q){var ie=R.props,se=ie.value,te=ie.disabled,ae=R.state.editing;te||ae||(document.body.style["pointer-events"]="none",R.ref=Q.target,R.setState({dragging:!1,origin:Q.screenY,value:se,internalValue:se}),R.timer=setTimeout(function(){R.setState({dragging:!0})},250),R.dragInterval=setInterval(function(){var pe=R.state,Ce=pe.dragging,ve=pe.value,Me=R.props.onDrag;Ce&&Me&&Me(+ve)},R.props.updateRate||Ei),document.addEventListener("mousemove",R.handleDragMove),document.addEventListener("mouseup",R.handleDragEnd))},R.handleDragMove=function(Q){var ie=R.props,se=ie.minValue,te=ie.maxValue,ae=ie.step,pe=ie.stepPixelSize;R.setState(function(Ce){var ve=tr({},Ce),Me=ve.origin-Q.screenY;if(Ce.dragging){var Ae=Number.isFinite(se)?se%ae:0;ve.internalValue=(0,i.qE)(Number(ve.internalValue)+Me*ae/(pe||1),se-ae,te+ae),ve.value=(0,i.qE)(Number(ve.internalValue)-Number(ve.internalValue)%ae+Ae,se,te),ve.origin=Q.screenY}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},R.handleDragEnd=function(Q){var ie=R.props,se=ie.onChange,te=ie.onDrag,ae=R.state,pe=ae.dragging,Ce=ae.value,ve=ae.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(R.timer),clearInterval(R.dragInterval),R.setState({dragging:!1,editing:!pe,origin:null}),document.removeEventListener("mousemove",R.handleDragMove),document.removeEventListener("mouseup",R.handleDragEnd),pe)R.suppressFlicker(),se&&se(+Ce),te&&te(+Ce);else if(R.inputRef){var Me=R.inputRef.current;Me.value=String(ve);try{Me.focus(),Me.select()}catch(Ae){}}},R}var K=b.prototype;return K.render=function(){var R=this,w=this.state,Q=w.dragging,ie=w.editing,se=w.value,te=w.suppressingFlicker,ae=this.props,pe=ae.className,Ce=ae.fluid,ve=ae.animated,Me=ae.value,Ae=ae.unit,Ke=ae.minValue,Le=ae.maxValue,we=ae.height,Xe=ae.width,Ie=ae.lineHeight,$e=ae.fontSize,en=ae.disabled,un=ae.format,tn=ae.onChange,jn=ae.onDrag,Be=Me;(Q||te)&&(Be=se);var on=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ve&&!Q&&!te?(0,e.jsx)(c,{value:+Be,format:un}):un?un(+Be):Be,Ae?" "+Ae:""]});return(0,e.jsxs)(O.az,{className:(0,E.Ly)(["NumberInput",Ce&&"NumberInput--fluid",pe]),minWidth:Xe,minHeight:we,lineHeight:Ie,fontSize:$e,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,i.qE)((+Be-Ke)/(Le-Ke)*100,0,100)+"%"}})}),on,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ie?void 0:"none",height:we,lineHeight:Ie,fontSize:$e},onBlur:function(an){if(ie){var Cn=(0,i.qE)(parseFloat(an.target.value),Ke,Le);if(Number.isNaN(Cn)){R.setState({editing:!1});return}R.setState({editing:!1,value:Cn}),R.suppressFlicker(),tn&&tn(Cn),jn&&jn(Cn)}},onKeyDown:function(an){if(!en){if(an.key===S._.Enter){var Cn=an.target,wn=(0,i.qE)(parseFloat(Cn.value),Ke,Le);if(Number.isNaN(wn)){R.setState({editing:!1});return}R.setState({editing:!1,value:wn}),R.suppressFlicker(),tn&&tn(wn),jn&&jn(wn);return}if((0,S.K)(an.key)){R.setState({editing:!1});return}}}})]})},b}(t.Component),Lr=n(6544);function Vt(){return Vt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Gt(I,b){return Gt=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Gt(I,b)}var Zn=0,at=1e4,Ur=function(I,b,K,L){var R=b||Zn,w=K||K===0?K:at,Q=L?I.replace(/[^\-\d.]/g,""):I.replace(/[^\-\d]/g,"");return L&&(Q=Ci(Q,R),Q=Ca(".",Q)),b<0?(Q=ht(Q),Q=Ca("-",Q)):Q=Q.replaceAll("-",""),R<=1&&w>=0?no(Q,R,w,L):Q},no=function(I,b,K,L){var R=L?parseFloat(I):parseInt(I,10);if(!isNaN(R)&&(I.slice(-1)!=="."||R0?(I=I.replace("-",""),b="-".concat(I)):K===0&&I.indexOf("-",K+1)>0&&(b=I.replaceAll("-","")),b},Ci=function(I,b){var K=I,L=Math.sign(b)*Math.floor(Math.abs(b));return I.indexOf(".")===0?K=String(L).concat(I):I.indexOf("-")===0&&I.indexOf(".")===1&&(K=L+".".concat(I.slice(2))),K},Ca=function(I,b){var K=b.indexOf(I),L=b.length,R=b;if(K!==-1&&K0&&(R.setState({suppressingFlicker:!0}),clearTimeout(R.flickerTimer),R.flickerTimer=setTimeout(function(){return R.setState({suppressingFlicker:!1})},se))},R.handleDragStart=function(Q){var ie=R.props,se=ie.value,te=ie.disabled,ae=R.state.editing;te||ae||(document.body.style["pointer-events"]="none",R.ref=Q.target,R.setState({dragging:!1,origin:Q.screenY,value:se,internalValue:se}),R.timer=setTimeout(function(){R.setState({dragging:!0})},250),R.dragInterval=setInterval(function(){var pe=R.state,Ce=pe.dragging,ve=pe.value,Me=R.props.onDrag;Ce&&Me&&Me(+ve)},R.props.updateRate||Ei),document.addEventListener("mousemove",R.handleDragMove),document.addEventListener("mouseup",R.handleDragEnd))},R.handleDragMove=function(Q){var ie=R.props,se=ie.minValue,te=ie.maxValue,ae=ie.step,pe=ie.stepPixelSize;R.setState(function(Ce){var ve=tr({},Ce),Me=ve.origin-Q.screenY;if(Ce.dragging){var Ae=Number.isFinite(se)?se%ae:0;ve.internalValue=(0,i.qE)(Number(ve.internalValue)+Me*ae/(pe||1),se-ae,te+ae),ve.value=(0,i.qE)(Number(ve.internalValue)-Number(ve.internalValue)%ae+Ae,se,te),ve.origin=Q.screenY}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},R.handleDragEnd=function(Q){var ie=R.props,se=ie.onChange,te=ie.onDrag,ae=R.state,pe=ae.dragging,Ce=ae.value,ve=ae.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(R.timer),clearInterval(R.dragInterval),R.setState({dragging:!1,editing:!pe,origin:null}),document.removeEventListener("mousemove",R.handleDragMove),document.removeEventListener("mouseup",R.handleDragEnd),pe)R.suppressFlicker(),se&&se(+Ce),te&&te(+Ce);else if(R.inputRef){var Me=R.inputRef.current;Me.value=String(ve);try{Me.focus(),Me.select()}catch(Ae){}}},R}var K=b.prototype;return K.render=function(){var R=this,w=this.state,Q=w.dragging,ie=w.editing,se=w.value,te=w.suppressingFlicker,ae=this.props,pe=ae.className,Ce=ae.fluid,ve=ae.animated,Me=ae.value,Ae=ae.unit,Ke=ae.minValue,Le=ae.maxValue,we=ae.height,Xe=ae.width,Ie=ae.lineHeight,$e=ae.fontSize,en=ae.disabled,un=ae.format,tn=ae.onChange,jn=ae.onDrag,Be=Me;(Q||te)&&(Be=se);var on=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ve&&!Q&&!te?(0,e.jsx)(c,{value:+Be,format:un}):un?un(+Be):Be,Ae?" "+Ae:""]});return(0,e.jsxs)(y.az,{className:(0,E.Ly)(["NumberInput",Ce&&"NumberInput--fluid",pe]),minWidth:Xe,minHeight:we,lineHeight:Ie,fontSize:$e,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,i.qE)((+Be-Ke)/(Le-Ke)*100,0,100)+"%"}})}),on,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ie?void 0:"none",height:we,lineHeight:Ie,fontSize:$e},onBlur:function(an){if(ie){var Cn=(0,i.qE)(parseFloat(an.target.value),Ke,Le);if(Number.isNaN(Cn)){R.setState({editing:!1});return}R.setState({editing:!1,value:Cn}),R.suppressFlicker(),tn&&tn(Cn),jn&&jn(Cn)}},onKeyDown:function(an){if(!en){if(an.key===S._.Enter){var Cn=an.target,wn=(0,i.qE)(parseFloat(Cn.value),Ke,Le);if(Number.isNaN(wn)){R.setState({editing:!1});return}R.setState({editing:!1,value:wn}),R.suppressFlicker(),tn&&tn(wn),jn&&jn(wn);return}if((0,S.K)(an.key)){R.setState({editing:!1});return}}}})]})},b}(t.Component),Lr=n(6544);function Vt(){return Vt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function Gt(I,b){return Gt=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},Gt(I,b)}var Zn=0,at=1e4,Ur=function(I,b,K,L){var R=b||Zn,w=K||K===0?K:at,Q=L?I.replace(/[^\-\d.]/g,""):I.replace(/[^\-\d]/g,"");return L&&(Q=Ci(Q,R),Q=Ca(".",Q)),b<0?(Q=ht(Q),Q=Ca("-",Q)):Q=Q.replaceAll("-",""),R<=1&&w>=0?no(Q,R,w,L):Q},no=function(I,b,K,L){var R=L?parseFloat(I):parseInt(I,10);if(!isNaN(R)&&(I.slice(-1)!=="."||R0?(I=I.replace("-",""),b="-".concat(I)):K===0&&I.indexOf("-",K+1)>0&&(b=I.replaceAll("-","")),b},Ci=function(I,b){var K=I,L=Math.sign(b)*Math.floor(Math.abs(b));return I.indexOf(".")===0?K=String(L).concat(I):I.indexOf("-")===0&&I.indexOf(".")===1&&(K=L+".".concat(I.slice(2))),K},Ca=function(I,b){var K=b.indexOf(I),L=b.length,R=b;if(K!==-1&&K=0)&&(K[R]=I[R]);return K}var ya=function(I){var b=I.value,K=I.minValue,L=K===void 0?1:K,R=I.maxValue,w=R===void 0?1:R,Q=I.ranges,ie=I.alertAfter,se=I.alertBefore,te=I.format,ae=I.size,pe=ae===void 0?1:ae,Ce=I.className,ve=I.style,Me=rr(I,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ae=scale(b,L,w),Ke=clamp01(Ae),Le=Q?{}:{primary:[0,1]};Q&&Object.keys(Q).forEach(function(Ie){var $e=Q[Ie];Le[Ie]=[scale($e[0],L,w),scale($e[1],L,w)]});var we=function(){if(ie&&se&&ieb)return!0}else if(ieb)return!0;return!1},Xe=we()&&keyOfMatchingRange(Ke,Le);return _jsxs(Box,{inline:!0,children:[_jsx("div",to({className:classes(["RoundGauge",Ce,computeBoxClassName(Me)])},computeBoxProps(to({style:to({fontSize:pe+"em"},ve)},Me)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(ie||se)&&_jsx("g",{className:classes(["RoundGauge__alert",Xe?"active RoundGauge__alert--"+Xe:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(Le).map(function(Ie,$e){var en=Le[Ie];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Ie,style:{strokeDashoffset:Math.max((2-(en[1]-en[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*en[0])+" 50 50)",cx:"50",cy:"50",r:"45"},$e)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Ke*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:b,format:te,size:pe})]})},Oi=n(37912);/** + */function to(){return to=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var Oa=function(I){var b=I.value,K=I.minValue,L=K===void 0?1:K,R=I.maxValue,w=R===void 0?1:R,Q=I.ranges,ie=I.alertAfter,se=I.alertBefore,te=I.format,ae=I.size,pe=ae===void 0?1:ae,Ce=I.className,ve=I.style,Me=rr(I,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ae=scale(b,L,w),Ke=clamp01(Ae),Le=Q?{}:{primary:[0,1]};Q&&Object.keys(Q).forEach(function(Ie){var $e=Q[Ie];Le[Ie]=[scale($e[0],L,w),scale($e[1],L,w)]});var we=function(){if(ie&&se&&ieb)return!0}else if(ieb)return!0;return!1},Xe=we()&&keyOfMatchingRange(Ke,Le);return _jsxs(Box,{inline:!0,children:[_jsx("div",to({className:classes(["RoundGauge",Ce,computeBoxClassName(Me)])},computeBoxProps(to({style:to({fontSize:pe+"em"},ve)},Me)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(ie||se)&&_jsx("g",{className:classes(["RoundGauge__alert",Xe?"active RoundGauge__alert--"+Xe:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(Le).map(function(Ie,$e){var en=Le[Ie];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Ie,style:{strokeDashoffset:Math.max((2-(en[1]-en[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*en[0])+" 50 50)",cx:"50",cy:"50",r:"45"},$e)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Ke*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:b,format:te,size:pe})]})},yi=n(37912);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Mi(){return Mi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var yr=function(I){var b=I.buttons,K=I.children,L=I.className,R=I.fill,w=I.fitted,Q=I.onScroll,ie=I.scrollable,se=I.scrollableHorizontal,te=I.title,ae=I.container_id,pe=I.flexGrow,Ce=I.noTopPadding,ve=I.stretchContents,Me=Dl(I,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Ae=(0,t.useRef)(null),Ke=(0,E.b5)(te)||(0,E.b5)(b);return(0,t.useEffect)(function(){if(Ae!=null&&Ae.current&&!(!ie&&!se)){var Le=Ae.current;return(0,Oi.tk)(Le),function(){Le&&(0,Oi.WK)(Le)}}},[]),(0,e.jsxs)("div",Mi({id:ae||"",className:(0,E.Ly)(["Section",R&&"Section--fill",w&&"Section--fitted",ie&&"Section--scrollable",se&&"Section--scrollableHorizontal",pe&&"Section--flex",L,(0,O.WP)(Me)])},(0,O.Fl)(Me),{children:[Ke&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:te}),(0,e.jsx)("div",{className:"Section__buttons",children:b})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,E.Ly)(["Section__content",!!ve&&"Section__content--stretchContents",!!Ce&&"Section__content--noTopPadding"]),onScroll:Q,ref:Ae,children:K})})]}))};/** + */function Mi(){return Mi=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var Or=function(I){var b=I.buttons,K=I.children,L=I.className,R=I.fill,w=I.fitted,Q=I.onScroll,ie=I.scrollable,se=I.scrollableHorizontal,te=I.title,ae=I.container_id,pe=I.flexGrow,Ce=I.noTopPadding,ve=I.stretchContents,Me=Dl(I,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Ae=(0,t.useRef)(null),Ke=(0,E.b5)(te)||(0,E.b5)(b);return(0,t.useEffect)(function(){if(Ae!=null&&Ae.current&&!(!ie&&!se)){var Le=Ae.current;return(0,yi.tk)(Le),function(){Le&&(0,yi.WK)(Le)}}},[]),(0,e.jsxs)("div",Mi({id:ae||"",className:(0,E.Ly)(["Section",R&&"Section--fill",w&&"Section--fitted",ie&&"Section--scrollable",se&&"Section--scrollableHorizontal",pe&&"Section--flex",L,(0,y.WP)(Me)])},(0,y.Fl)(Me),{children:[Ke&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:te}),(0,e.jsx)("div",{className:"Section__buttons",children:b})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,E.Ly)(["Section__content",!!ve&&"Section__content--stretchContents",!!Ce&&"Section__content--noTopPadding"]),onScroll:Q,ref:Ae,children:K})})]}))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Or(){return Or=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function zo(I){var b=I.animated,K=I.format,L=I.maxValue,R=I.minValue,w=I.onChange,Q=I.onDrag,ie=I.step,se=I.stepPixelSize,te=I.suppressFlicker,ae=I.unit,pe=I.value,Ce=I.className,ve=I.fillValue,Me=I.color,Ae=I.ranges,Ke=Ae===void 0?{}:Ae,Le=I.children,we=ro(I,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),Xe=Le!==void 0;return(0,e.jsx)(Hr,{dragMatrix:[1,0],animated:b,format:K,maxValue:L,minValue:R,onChange:w,onDrag:Q,step:ie,stepPixelSize:se,suppressFlicker:te,unit:ae,value:pe,children:function(Ie){var $e=Ie.displayElement,en=Ie.displayValue,un=Ie.dragging,tn=Ie.handleDragStart,jn=Ie.inputElement,Be=Ie.value,on=ve!=null,an=(0,i.hs)(ve!=null?ve:en,R,L),Cn=(0,i.hs)(en,R,L),wn=Me||(0,i.TG)(ve!=null?ve:Be,Ke)||"default";return(0,e.jsxs)("div",Or({className:(0,E.Ly)(["Slider","ProgressBar","ProgressBar--color--"+wn,Ce,(0,O.WP)(we)])},(0,O.Fl)(we),{onMouseDown:tn,children:[(0,e.jsx)("div",{className:(0,E.Ly)(["ProgressBar__fill",on&&"ProgressBar__fill--animated"]),style:{width:(0,i.J$)(an)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,i.J$)(Math.min(an,Cn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,i.J$)(Cn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),un&&(0,e.jsx)("div",{className:"Slider__popupValue",children:$e})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Xe?Le:$e}),jn]}))}})}var Oa=function(I){return _jsxs(Box,{style:I.style,children:[_jsxs(Box,{className:"Section__title",style:I.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:I.textStyle,children:I.title}),_jsx("div",{className:"Section__buttons",children:I.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:I.children})})]})};/** + */function yr(){return yr=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}function zo(I){var b=I.animated,K=I.format,L=I.maxValue,R=I.minValue,w=I.onChange,Q=I.onDrag,ie=I.step,se=I.stepPixelSize,te=I.suppressFlicker,ae=I.unit,pe=I.value,Ce=I.className,ve=I.fillValue,Me=I.color,Ae=I.ranges,Ke=Ae===void 0?{}:Ae,Le=I.children,we=ro(I,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),Xe=Le!==void 0;return(0,e.jsx)(Hr,{dragMatrix:[1,0],animated:b,format:K,maxValue:L,minValue:R,onChange:w,onDrag:Q,step:ie,stepPixelSize:se,suppressFlicker:te,unit:ae,value:pe,children:function(Ie){var $e=Ie.displayElement,en=Ie.displayValue,un=Ie.dragging,tn=Ie.handleDragStart,jn=Ie.inputElement,Be=Ie.value,on=ve!=null,an=(0,i.hs)(ve!=null?ve:en,R,L),Cn=(0,i.hs)(en,R,L),wn=Me||(0,i.TG)(ve!=null?ve:Be,Ke)||"default";return(0,e.jsxs)("div",yr({className:(0,E.Ly)(["Slider","ProgressBar","ProgressBar--color--"+wn,Ce,(0,y.WP)(we)])},(0,y.Fl)(we),{onMouseDown:tn,children:[(0,e.jsx)("div",{className:(0,E.Ly)(["ProgressBar__fill",on&&"ProgressBar__fill--animated"]),style:{width:(0,i.J$)(an)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,i.J$)(Math.min(an,Cn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,i.J$)(Cn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),un&&(0,e.jsx)("div",{className:"Slider__popupValue",children:$e})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Xe?Le:$e}),jn]}))}})}var ya=function(I){return _jsxs(Box,{style:I.style,children:[_jsxs(Box,{className:"Section__title",style:I.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:I.textStyle,children:I.title}),_jsx("div",{className:"Section__buttons",children:I.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:I.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function st(){return st=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var Mr=function(I){var b=I.className,K=I.vertical,L=I.fill,R=I.fluid,w=I.children,Q=gt(I,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",st({className:(0,E.Ly)(["Tabs",K?"Tabs--vertical":"Tabs--horizontal",L&&"Tabs--fill",R&&"Tabs--fluid",b,(0,O.WP)(Q)])},(0,O.Fl)(Q),{children:w}))},or=function(I){var b=I.className,K=I.selected,L=I.color,R=I.icon,w=I.iconSpin,Q=I.leftSlot,ie=I.rightSlot,se=I.children,te=I.onClick,ae=gt(I,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),pe=function(Ce){te&&(te(Ce),Ce.target.blur())};return(0,e.jsxs)("div",st({className:(0,E.Ly)(["Tab","Tabs__Tab","Tab--color--"+L,K&&"Tab--selected",b,(0,O.WP)(ae)]),onClick:pe},(0,O.Fl)(ae),{children:[(0,E.b5)(Q)&&(0,e.jsx)("div",{className:"Tab__left",children:Q})||!!R&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(W,{name:R,spin:w})}),(0,e.jsx)("div",{className:"Tab__text",children:se}),(0,E.b5)(ie)&&(0,e.jsx)("div",{className:"Tab__right",children:ie})]}))};Mr.Tab=or;/** + */function st(){return st=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var Mr=function(I){var b=I.className,K=I.vertical,L=I.fill,R=I.fluid,w=I.children,Q=gt(I,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",st({className:(0,E.Ly)(["Tabs",K?"Tabs--vertical":"Tabs--horizontal",L&&"Tabs--fill",R&&"Tabs--fluid",b,(0,y.WP)(Q)])},(0,y.Fl)(Q),{children:w}))},or=function(I){var b=I.className,K=I.selected,L=I.color,R=I.icon,w=I.iconSpin,Q=I.leftSlot,ie=I.rightSlot,se=I.children,te=I.onClick,ae=gt(I,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),pe=function(Ce){te&&(te(Ce),Ce.target.blur())};return(0,e.jsxs)("div",st({className:(0,E.Ly)(["Tab","Tabs__Tab","Tab--color--"+L,K&&"Tab--selected",b,(0,y.WP)(ae)]),onClick:pe},(0,y.Fl)(ae),{children:[(0,E.b5)(Q)&&(0,e.jsx)("div",{className:"Tab__left",children:Q})||!!R&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(W,{name:R,spin:w})}),(0,e.jsx)("div",{className:"Tab__text",children:se}),(0,E.b5)(ie)&&(0,e.jsx)("div",{className:"Tab__right",children:ie})]}))};Mr.Tab=or;/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT - */function Nt(){return Nt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var js=(0,t.forwardRef)(function(I,b){var K=I.autoFocus,L=I.autoSelect,R=I.displayedValue,w=I.dontUseTabForIndent,Q=I.maxLength,ie=I.noborder,se=I.onChange,te=I.onEnter,ae=I.onEscape,pe=I.onInput,Ce=I.placeholder,ve=I.scrollbar,Me=I.selfClear,Ae=I.value,Ke=Ir(I,["autoFocus","autoSelect","displayedValue","dontUseTabForIndent","maxLength","noborder","onChange","onEnter","onEscape","onInput","placeholder","scrollbar","selfClear","value"]),Le=Ke.className,we=Ke.fluid,Xe=Ke.nowrap,Ie=Ir(Ke,["className","fluid","nowrap"]),$e=(0,t.useRef)(null),en=(0,t.useState)(0),un=en[0],tn=en[1],jn=function(Be){if(Be.key===S._.Enter){if(Be.shiftKey){Be.currentTarget.focus();return}te==null||te(Be,Be.currentTarget.value),Me&&(Be.currentTarget.value=""),Be.currentTarget.blur();return}if((0,S.K)(Be.key)){ae==null||ae(Be),Me?Be.currentTarget.value="":(Be.currentTarget.value=Ut(Ae),Be.currentTarget.blur());return}if(!w&&Be.key===S._.Tab){Be.preventDefault();var on=Be.currentTarget,an=on.value,Cn=on.selectionStart,wn=on.selectionEnd;Be.currentTarget.value=an.substring(0,Cn)+" "+an.substring(wn),Be.currentTarget.selectionEnd=Cn+1}};return(0,t.useImperativeHandle)(b,function(){return $e.current}),(0,t.useEffect)(function(){if(!(!K&&!L)){var Be=$e.current;Be&&(K||L)&&setTimeout(function(){Be.focus(),L&&Be.select()},1)}},[]),(0,t.useEffect)(function(){var Be=$e.current;if(Be){var on=Ut(Ae);Be.value!==on&&(Be.value=on)}},[Ae]),(0,e.jsxs)(O.az,Nt({className:(0,E.Ly)(["TextArea",we&&"TextArea--fluid",ie&&"TextArea--noborder",Le])},Ie,{children:[!!R&&(0,e.jsx)("div",{style:{height:"100%",overflow:"hidden",position:"absolute",width:"100%"},children:(0,e.jsx)("div",{className:(0,E.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+un+"px)"},children:R})}),(0,e.jsx)("textarea",{className:(0,E.Ly)(["TextArea__textarea",ve&&"TextArea__textarea--scrollable",Xe&&"TextArea__nowrap"]),maxLength:Q,onBlur:function(Be){return se==null?void 0:se(Be,Be.target.value)},onChange:function(Be){return pe==null?void 0:pe(Be,Be.target.value)},onKeyDown:jn,onScroll:function(){R&&$e.current&&tn($e.current.scrollTop)},placeholder:Ce,ref:$e,style:{color:R?"rgba(0, 0, 0, 0)":"inherit"}})]}))}),Es=n(41242);function Cs(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&<(I,b)}function lt(I,b){return lt=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},lt(I,b)}var Pt=function(I){return typeof I=="number"&&Number.isFinite(I)&&!Number.isNaN(I)},Nn=null;function Xt(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Sl(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&&$o(I,b)}function bl(I,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](I):I instanceof b}function $o(I,b){return $o=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},$o(I,b)}var ys=null,Tl=function(I){var b=I.children,K=useRef(null),L=useState(1),R=L[0],w=L[1],Q=useState(0),ie=Q[0],se=Q[1],te=useCallback(function(){var ae=K.current;if(!(!b||!Array.isArray(b)||!ae||R>=b.length)){var pe=document.body.offsetHeight-ae.getBoundingClientRect().bottom,Ce=Math.ceil(ae.offsetHeight/R);if(pe>0){var ve=Math.min(b.length,R+Math.max(1,Math.ceil(pe/Ce)));w(ve),se((b.length-ve)*Ce)}}},[K,R,b]);return useEffect(function(){te();var ae=setInterval(te,100);return function(){return clearInterval(ae)}},[te]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:K,children:Array.isArray(b)?b.slice(0,R):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+ie+"px"}})]})};/** + */function Nt(){return Nt=Object.assign||function(I){for(var b=1;b=0)&&(K[R]=I[R]);return K}var js=(0,t.forwardRef)(function(I,b){var K=I.autoFocus,L=I.autoSelect,R=I.displayedValue,w=I.dontUseTabForIndent,Q=I.maxLength,ie=I.noborder,se=I.onChange,te=I.onEnter,ae=I.onEscape,pe=I.onInput,Ce=I.placeholder,ve=I.scrollbar,Me=I.selfClear,Ae=I.value,Ke=Ir(I,["autoFocus","autoSelect","displayedValue","dontUseTabForIndent","maxLength","noborder","onChange","onEnter","onEscape","onInput","placeholder","scrollbar","selfClear","value"]),Le=Ke.className,we=Ke.fluid,Xe=Ke.nowrap,Ie=Ir(Ke,["className","fluid","nowrap"]),$e=(0,t.useRef)(null),en=(0,t.useState)(0),un=en[0],tn=en[1],jn=function(Be){if(Be.key===S._.Enter){if(Be.shiftKey){Be.currentTarget.focus();return}te==null||te(Be,Be.currentTarget.value),Me&&(Be.currentTarget.value=""),Be.currentTarget.blur();return}if((0,S.K)(Be.key)){ae==null||ae(Be),Me?Be.currentTarget.value="":(Be.currentTarget.value=Ut(Ae),Be.currentTarget.blur());return}if(!w&&Be.key===S._.Tab){Be.preventDefault();var on=Be.currentTarget,an=on.value,Cn=on.selectionStart,wn=on.selectionEnd;Be.currentTarget.value=an.substring(0,Cn)+" "+an.substring(wn),Be.currentTarget.selectionEnd=Cn+1}};return(0,t.useImperativeHandle)(b,function(){return $e.current}),(0,t.useEffect)(function(){if(!(!K&&!L)){var Be=$e.current;Be&&(K||L)&&setTimeout(function(){Be.focus(),L&&Be.select()},1)}},[]),(0,t.useEffect)(function(){var Be=$e.current;if(Be){var on=Ut(Ae);Be.value!==on&&(Be.value=on)}},[Ae]),(0,e.jsxs)(y.az,Nt({className:(0,E.Ly)(["TextArea",we&&"TextArea--fluid",ie&&"TextArea--noborder",Le])},Ie,{children:[!!R&&(0,e.jsx)("div",{style:{height:"100%",overflow:"hidden",position:"absolute",width:"100%"},children:(0,e.jsx)("div",{className:(0,E.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+un+"px)"},children:R})}),(0,e.jsx)("textarea",{className:(0,E.Ly)(["TextArea__textarea",ve&&"TextArea__textarea--scrollable",Xe&&"TextArea__nowrap"]),maxLength:Q,onBlur:function(Be){return se==null?void 0:se(Be,Be.target.value)},onChange:function(Be){return pe==null?void 0:pe(Be,Be.target.value)},onKeyDown:jn,onScroll:function(){R&&$e.current&&tn($e.current.scrollTop)},placeholder:Ce,ref:$e,style:{color:R?"rgba(0, 0, 0, 0)":"inherit"}})]}))}),Es=n(41242);function Cs(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&<(I,b)}function lt(I,b){return lt=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},lt(I,b)}var Pt=function(I){return typeof I=="number"&&Number.isFinite(I)&&!Number.isNaN(I)},Nn=null;function Xt(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Sl(I,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(b&&b.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),b&&$o(I,b)}function bl(I,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](I):I instanceof b}function $o(I,b){return $o=Object.setPrototypeOf||function(L,R){return L.__proto__=R,L},$o(I,b)}var Os=null,Tl=function(I){var b=I.children,K=useRef(null),L=useState(1),R=L[0],w=L[1],Q=useState(0),ie=Q[0],se=Q[1],te=useCallback(function(){var ae=K.current;if(!(!b||!Array.isArray(b)||!ae||R>=b.length)){var pe=document.body.offsetHeight-ae.getBoundingClientRect().bottom,Ce=Math.ceil(ae.offsetHeight/R);if(pe>0){var ve=Math.min(b.length,R+Math.max(1,Math.ceil(pe/Ce)));w(ve),se((b.length-ve)*Ce)}}},[K,R,b]);return useEffect(function(){te();var ae=setInterval(te,100);return function(){return clearInterval(ae)}},[te]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:K,children:Array.isArray(b)?b.slice(0,R):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+ie+"px"}})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},79500:function(y,h,n){"use strict";n.d(h,{Ai:function(){return e},Fo:function(){return u},KA:function(){return i},KS:function(){return r},NE:function(){return x},b_:function(){return a},bz:function(){return t},lm:function(){return g},wM:function(){return c}});/** + */},79500:function(O,h,n){"use strict";n.d(h,{Ai:function(){return e},Fo:function(){return u},KA:function(){return i},KS:function(){return r},NE:function(){return x},b_:function(){return a},bz:function(){return t},lm:function(){return g},wM:function(){return c}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,i=2,t=1,r=0,s=null,g={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},x=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],u=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],o=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],c=function(f,m){if(!f)return m||"None";for(var v=f.toLowerCase(),j=f.replace(/(^\w{1})|(\s+\w{1})/g,function(O){return O.toUpperCase()}),E=0;E0&&le[le.length-1])&&(je[0]===6||je[0]===2)){he=0;continue}if(je[0]===3&&(!le||je[1]>le[0]&&je[1]xe&&(le[he]=xe-V[he],fe=!0)}return[fe,le]},G=function(H){var V;x.log("drag start"),a=!0,v=(0,i.Z4)([H.screenX,H.screenY],P()),(V=H.target)==null||V.focus(),document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ne),oe(H)},ne=function(H){x.log("drag end"),oe(H),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ne),a=!1,z()},oe=function(H){a&&(H.preventDefault(),S((0,i.Z4)([H.screenX,H.screenY],v)))},q=function(H,V){return function(J){var ce;j=[H,V],x.log("resize start",j),l=!0,v=(0,i.Z4)([J.screenX,J.screenY],P()),E=D(),(ce=J.target)==null||ce.focus(),document.addEventListener("mousemove",X),document.addEventListener("mouseup",Z),X(J)}},Z=function(H){x.log("resize end",O),X(H),document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",Z),l=!1,z()},X=function(H){if(l){H.preventDefault();var V=(0,i.Z4)([H.screenX,H.screenY],P()),J=(0,i.Z4)(V,v);O=(0,i.CO)(E,(0,i.tk)(j,J),[1,1]),O[0]=Math.max(O[0],150*o),O[1]=Math.max(O[1],50*o),B(O)}}},37912:function(y,h,n){"use strict";n.d(h,{Nh:function(){return t},WK:function(){return E},tk:function(){return j},y4:function(){return s}});var e=n(47454),i=n(6544);/** + */function r(H,V,J,ce,le,fe,he){try{var _e=H[fe](he),xe=_e.value}catch(je){J(je);return}_e.done?V(xe):Promise.resolve(xe).then(ce,le)}function s(H){return function(){var V=this,J=arguments;return new Promise(function(ce,le){var fe=H.apply(V,J);function he(xe){r(fe,ce,le,he,_e,"next",xe)}function _e(xe){r(fe,ce,le,he,_e,"throw",xe)}he(void 0)})}}function g(H,V){var J,ce,le,fe,he={label:0,sent:function(){if(le[0]&1)throw le[1];return le[1]},trys:[],ops:[]};return fe={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function _e(je){return function(Re){return xe([je,Re])}}function xe(je){if(J)throw new TypeError("Generator is already executing.");for(;he;)try{if(J=1,ce&&(le=je[0]&2?ce.return:je[0]?ce.throw||((le=ce.return)&&le.call(ce),0):ce.next)&&!(le=le.call(ce,je[1])).done)return le;switch(ce=0,le&&(je=[je[0]&2,le.value]),je[0]){case 0:case 1:le=je;break;case 4:return he.label++,{value:je[1],done:!1};case 5:he.label++,ce=je[1],je=[0];continue;case 7:je=he.ops.pop(),he.trys.pop();continue;default:if(le=he.trys,!(le=le.length>0&&le[le.length-1])&&(je[0]===6||je[0]===2)){he=0;continue}if(je[0]===3&&(!le||je[1]>le[0]&&je[1]xe&&(le[he]=xe-V[he],fe=!0)}return[fe,le]},G=function(H){var V;x.log("drag start"),a=!0,v=(0,i.Z4)([H.screenX,H.screenY],P()),(V=H.target)==null||V.focus(),document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ne),oe(H)},ne=function(H){x.log("drag end"),oe(H),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ne),a=!1,z()},oe=function(H){a&&(H.preventDefault(),S((0,i.Z4)([H.screenX,H.screenY],v)))},q=function(H,V){return function(J){var ce;j=[H,V],x.log("resize start",j),l=!0,v=(0,i.Z4)([J.screenX,J.screenY],P()),E=D(),(ce=J.target)==null||ce.focus(),document.addEventListener("mousemove",X),document.addEventListener("mouseup",Z),X(J)}},Z=function(H){x.log("resize end",y),X(H),document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",Z),l=!1,z()},X=function(H){if(l){H.preventDefault();var V=(0,i.Z4)([H.screenX,H.screenY],P()),J=(0,i.Z4)(V,v);y=(0,i.CO)(E,(0,i.tk)(j,J),[1,1]),y[0]=Math.max(y[0],150*o),y[1]=Math.max(y[1],50*o),B(y)}}},37912:function(O,h,n){"use strict";n.d(h,{Nh:function(){return t},WK:function(){return E},tk:function(){return j},y4:function(){return s}});var e=n(47454),i=n(6544);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=new e.b,r=!1,s=function(D){D===void 0&&(D={}),r=!!D.ignoreWindowFocus},g,x=!0,u=function(D,S){if(r){x=!0;return}if(g&&(clearTimeout(g),g=null),S){g=setTimeout(function(){return u(D)});return}x!==D&&(x=D,t.emit(D?"window-focus":"window-blur"),t.emit("window-focus-change",D))},o=null,c=function(D){var S=String(D.tagName).toLowerCase();return S==="input"||S==="textarea"},a=function(D){l(),o=D,o.addEventListener("blur",l)},l=function(){o&&(o.removeEventListener("blur",l),o=null)},f=null,m=null,v=[],j=function(D){v.push(D)},E=function(D){var S=v.indexOf(D);S>=0&&v.splice(S,1)},O=function(D){if(!(o||!x))for(var S=document.body;D&&D!==S;){if(v.includes(D)){if(D.contains(f))return;f=D,D.focus();return}D=D.parentElement}};window.addEventListener("mousemove",function(D){var S=D.target;S!==m&&v.length<2&&(m=S,O(S))}),window.addEventListener("click",function(D){var S=D.target;S!==m&&(m=S,O(S))}),window.addEventListener("focusin",function(D){m=null,f=D.target,u(!0),c(D.target)&&a(D.target)}),window.addEventListener("focusout",function(D){m=null,u(!1,!0)}),window.addEventListener("blur",function(D){m=null,u(!1,!0)}),window.addEventListener("beforeunload",function(D){u(!1)});var M={},P=function(){"use strict";function D(B,T,U){this.event=B,this.type=T,this.code=B.keyCode,this.ctrl=B.ctrlKey,this.shift=B.shiftKey,this.alt=B.altKey,this.repeat=!!U}var S=D.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===i.Ss||this.code===i.re||this.code===i.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){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>=i.sV&&this.code<=i.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},D}();document.addEventListener("keydown",function(D){if(!c(D.target)){var S=D.keyCode,B=new P(D,"keydown",M[S]);t.emit("keydown",B),t.emit("key",B),M[S]=!0}}),document.addEventListener("keyup",function(D){if(!c(D.target)){var S=D.keyCode,B=new P(D,"keyup");t.emit("keyup",B),t.emit("key",B),M[S]=!1}})},49945:function(y,h,n){"use strict";n.d(h,{$:function(){return e}});/** + */var t=new e.b,r=!1,s=function(D){D===void 0&&(D={}),r=!!D.ignoreWindowFocus},g,x=!0,u=function(D,S){if(r){x=!0;return}if(g&&(clearTimeout(g),g=null),S){g=setTimeout(function(){return u(D)});return}x!==D&&(x=D,t.emit(D?"window-focus":"window-blur"),t.emit("window-focus-change",D))},o=null,c=function(D){var S=String(D.tagName).toLowerCase();return S==="input"||S==="textarea"},a=function(D){l(),o=D,o.addEventListener("blur",l)},l=function(){o&&(o.removeEventListener("blur",l),o=null)},f=null,m=null,v=[],j=function(D){v.push(D)},E=function(D){var S=v.indexOf(D);S>=0&&v.splice(S,1)},y=function(D){if(!(o||!x))for(var S=document.body;D&&D!==S;){if(v.includes(D)){if(D.contains(f))return;f=D,D.focus();return}D=D.parentElement}};window.addEventListener("mousemove",function(D){var S=D.target;S!==m&&v.length<2&&(m=S,y(S))}),window.addEventListener("click",function(D){var S=D.target;S!==m&&(m=S,y(S))}),window.addEventListener("focusin",function(D){m=null,f=D.target,u(!0),c(D.target)&&a(D.target)}),window.addEventListener("focusout",function(D){m=null,u(!1,!0)}),window.addEventListener("blur",function(D){m=null,u(!1,!0)}),window.addEventListener("beforeunload",function(D){u(!1)});var M={},P=function(){"use strict";function D(B,T,U){this.event=B,this.type=T,this.code=B.keyCode,this.ctrl=B.ctrlKey,this.shift=B.shiftKey,this.alt=B.altKey,this.repeat=!!U}var S=D.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===i.Ss||this.code===i.re||this.code===i.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){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>=i.sV&&this.code<=i.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},D}();document.addEventListener("keydown",function(D){if(!c(D.target)){var S=D.keyCode,B=new P(D,"keydown",M[S]);t.emit("keydown",B),t.emit("key",B),M[S]=!0}}),document.addEventListener("keyup",function(D){if(!c(D.target)){var S=D.keyCode,B=new P(D,"keyup");t.emit("keyup",B),t.emit("key",B),M[S]=!1}})},49945:function(O,h,n){"use strict";n.d(h,{$:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},i=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(y,h,n){"use strict";n.d(h,{QL:function(){return t},d5:function(){return r},fU:function(){return o},qQ:function(){return c},up:function(){return s}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},i=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(O,h,n){"use strict";n.d(h,{QL:function(){return t},d5:function(){return r},fU:function(){return o},qQ:function(){return c},up:function(){return s}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],i=e.indexOf(" "),t=function(a,l,f){if(l===void 0&&(l=-i),f===void 0&&(f=""),!isFinite(a))return a.toString();var m=Math.floor(Math.log10(Math.abs(a))),v=Math.max(l*3,m),j=Math.floor(v/3),E=e[Math.min(j+i,e.length-1)],O=a/Math.pow(1e3,j),M=O.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+E.trim()+f).trim()},r=function(a,l){return l===void 0&&(l=0),t(a,l,"W")},s=function(a,l){if(l===void 0&&(l=0),!Number.isFinite(a))return String(a);var f=Number(a.toFixed(l)),m=f<0,v=Math.abs(f),j=v.toString().split(".");j[0]=j[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var E=j.join(".");return m?"-"+E:E},g=function(a){var l=20*Math.log10(a),f=l>=0?"+":"-",m=Math.abs(l);return m===1/0?m="Inf":m=m.toFixed(2),""+f+m+" dB"},x=null,u=function(a,l,f){if(l===void 0&&(l=0),f===void 0&&(f=""),!isFinite(a))return"NaN";var m=Math.floor(Math.log10(a)),v=Math.max(l*3,m),j=Math.floor(v/3),E=x[j],O=a/Math.pow(1e3,j),M=Math.max(0,2-v%3),P=O.toFixed(M);return(P+" "+E+" "+f).trim()},o=function(a,l){l===void 0&&(l="default");var f=Math.floor(a/10),m=Math.floor(f/3600),v=Math.floor(f%3600/60),j=f%60;if(l==="short"){var E=m>0?""+m+"h":"",O=v>0?""+v+"m":"",M=j>0?""+j+"s":"";return""+E+O+M}var P=String(m).padStart(2,"0"),D=String(v).padStart(2,"0"),S=String(j).padStart(2,"0");return P+":"+D+":"+S},c=function(a){if(!Number.isFinite(a))return a;var l=a.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}},52130:function(y,h,n){"use strict";n.d(h,{Bm:function(){return E}});var e=n(6544),i=n(37912),t=n(92736);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],i=e.indexOf(" "),t=function(a,l,f){if(l===void 0&&(l=-i),f===void 0&&(f=""),!isFinite(a))return a.toString();var m=Math.floor(Math.log10(Math.abs(a))),v=Math.max(l*3,m),j=Math.floor(v/3),E=e[Math.min(j+i,e.length-1)],y=a/Math.pow(1e3,j),M=y.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+E.trim()+f).trim()},r=function(a,l){return l===void 0&&(l=0),t(a,l,"W")},s=function(a,l){if(l===void 0&&(l=0),!Number.isFinite(a))return String(a);var f=Number(a.toFixed(l)),m=f<0,v=Math.abs(f),j=v.toString().split(".");j[0]=j[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var E=j.join(".");return m?"-"+E:E},g=function(a){var l=20*Math.log10(a),f=l>=0?"+":"-",m=Math.abs(l);return m===1/0?m="Inf":m=m.toFixed(2),""+f+m+" dB"},x=null,u=function(a,l,f){if(l===void 0&&(l=0),f===void 0&&(f=""),!isFinite(a))return"NaN";var m=Math.floor(Math.log10(a)),v=Math.max(l*3,m),j=Math.floor(v/3),E=x[j],y=a/Math.pow(1e3,j),M=Math.max(0,2-v%3),P=y.toFixed(M);return(P+" "+E+" "+f).trim()},o=function(a,l){l===void 0&&(l="default");var f=Math.floor(a/10),m=Math.floor(f/3600),v=Math.floor(f%3600/60),j=f%60;if(l==="short"){var E=m>0?""+m+"h":"",y=v>0?""+v+"m":"",M=j>0?""+j+"s":"";return""+E+y+M}var P=String(m).padStart(2,"0"),D=String(v).padStart(2,"0"),S=String(j).padStart(2,"0");return P+":"+D+":"+S},c=function(a){if(!Number.isFinite(a))return a;var l=a.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}},52130:function(O,h,n){"use strict";n.d(h,{Bm:function(){return E}});var e=n(6544),i=n(37912),t=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(M,P){(P==null||P>M.length)&&(P=M.length);for(var D=0,S=new Array(P);D=M.length?{done:!0}:{done:!1,value:M[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=(0,t.h)("hotkeys"),u={},o=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],c={},a=[],l=function(M){if(M===16)return"Shift";if(M===17)return"Ctrl";if(M===18)return"Alt";if(M===33)return"Northeast";if(M===34)return"Southeast";if(M===35)return"Southwest";if(M===36)return"Northwest";if(M===37)return"West";if(M===38)return"North";if(M===39)return"East";if(M===40)return"South";if(M===45)return"Insert";if(M===46)return"Delete";if(M>=48&&M<=57||M>=65&&M<=90)return String.fromCharCode(M);if(M>=96&&M<=105)return"Numpad"+(M-96);if(M>=112&&M<=123)return"F"+(M-111);if(M===188)return",";if(M===189)return"-";if(M===190)return"."},f=function(M){var P=String(M);if(P==="Ctrl+F5"||P==="Ctrl+R"){location.reload();return}if(P!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||o.includes(M.code))){var D=l(M.code);if(D){var S=u[D];if(S)return x.debug("macro",S),Byond.command(S);if(M.isDown()&&!c[D]){c[D]=!0;var B='TguiKeyDown "'+D+'"';return x.debug(B),Byond.command(B)}if(M.isUp()&&c[D]){c[D]=!1;var T='TguiKeyUp "'+D+'"';return x.debug(T),Byond.command(T)}}}},m=function(M){o.push(M)},v=function(M){var P=o.indexOf(M);P>=0&&o.splice(P,1)},j=function(){for(var M=g(Object.keys(c)),P;!(P=M()).done;){var D=P.value;c[D]&&(c[D]=!1,x.log('releasing key "'+D+'"'),Byond.command('TguiKeyUp "'+D+'"'))}},E=function(){Byond.winget("default.*").then(function(M){for(var P={},D=g(Object.keys(M)),S;!(S=D()).done;){var B=S.value,T=B.split("."),U=T[1],W=T[2];U&&W&&(P[U]||(P[U]={}),P[U][W]=M[B])}for(var z=/\\"/g,k=function(q){return q.substring(1,q.length-1).replace(z,'"')},$=g(Object.keys(P)),Y;!(Y=$()).done;){var G=Y.value,ne=P[G],oe=k(ne.name);u[oe]=k(ne.command)}x.debug("loaded macros",u)}),i.Nh.on("window-blur",function(){j()}),i.Nh.on("key",function(M){for(var P=g(a),D;!(D=P()).done;){var S=D.value;S(M)}f(M)})},O=function(M){a.push(M);var P=!1;return function(){P||(P=!0,a.splice(a.indexOf(M),1))}}},20544:function(y,h,n){"use strict";n.r(h),n.d(h,{AICard:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.name,a=o.has_ai,l=o.integrity,f=o.backup_capacitor,m=o.flushing,v=o.has_laws,j=o.laws,E=o.wireless,O=o.radio;if(a){var M;l>=75?M="green":l>=25?M="yellow":M="red";var P;return f>=75&&(P="green"),f>=25?P="yellow":P="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,inline:!0,children:(0,e.jsx)("h3",{children:c})}),(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:M,value:l/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:P,value:f/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:m===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!v&&(0,e.jsx)(t.az,{children:j.map(function(D,S){return(0,e.jsx)(t.az,{inline:!0,children:D},S)})})||(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.wn,{title:"Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.$n,{icon:E?"check":"times",color:E?"green":"red",onClick:function(){return u("wireless")},children:E?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:O?"check":"times",color:O?"green":"red",onClick:function(){return u("radio")},children:O?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||l===0,confirmColor:"red",onClick:function(){return u("wipe")},children:"Shutdown"})})]})})]})})}else return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})})}},43252:function(y,h,n){"use strict";n.r(h),n.d(h,{APC:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(72859),g=n(98071),x=function(f){var m=(0,i.Oc)(),v=m.act,j=m.data,E=j.gridCheck,O=j.failTime,M=(0,e.jsx)(c,{});return E?M=(0,e.jsx)(a,{}):O&&(M=(0,e.jsx)(l,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:M})})},u={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"}},o={1:{icon:"terminal",content:"Override Programming",action:"hack"}},c=function(f){var m=(0,i.Oc)(),v=m.act,j=m.data,E=j.locked,O=j.siliconUser,M=j.externalPower,P=j.chargingStatus,D=j.powerChannels,S=j.powerCellStatus,B=j.emagged,T=j.isOperating,U=j.chargeMode,W=j.totalCharging,z=j.totalLoad,k=j.coverLocked,$=j.nightshiftSetting,Y=j.emergencyLights,G=E&&!O,ne=u[M]||u[0],oe=u[P]||u[0],q=D||[],Z=S/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.InterfaceLockNoticeBox,{deny:B,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main Breaker",color:ne.color,buttons:(0,e.jsx)(t.$n,{icon:T?"power-off":"times",selected:T&&!G,color:T?"":"bad",disabled:G,onClick:function(){return v("breaker")},children:T?"On":"Off"}),children:["[ ",ne.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:Z})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:oe.color,buttons:(0,e.jsx)(t.$n,{icon:U?"sync":"times",selected:U,disabled:G,onClick:function(){return v("charge")},children:U?"Auto":"Off"}),children:["[ ",oe.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[q.map(function(X){var H=X.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:X.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:X.status>=2?"good":"bad",children:X.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!G&&(X.status===1||X.status===3),disabled:G,onClick:function(){return v("channel",H.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!G&&X.status===2,disabled:G,onClick:function(){return v("channel",H.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!G&&X.status===0,disabled:G,onClick:function(){return v("channel",H.off)},children:"Off"})]}),children:[X.powerLoad," W"]},X.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:W?(0,e.jsxs)("b",{children:[z," W (+ ",W," W charging)"]}):(0,e.jsxs)("b",{children:[z," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!j.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return v("overload")},children:"Overload"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.$n,{icon:k?"lock":"unlock",selected:k,disabled:G,onClick:function(){return v("cover")},children:k?"Engaged":"Disengaged"})}),(0,e.jsx)(t.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:$===2,onClick:function(){return v("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:$===1,onClick:function(){return v("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:$===3,onClick:function(){return v("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:Y,onClick:function(){return v("emergency_lighting")},children:Y?"Enabled":"Disabled"})})]})})]})},a=function(f){return(0,e.jsxs)(s.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},l=function(f){var m=(0,i.Oc)(),v=m.data,j=m.act,E=v.locked,O=v.siliconUser,M=v.failTime,P=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return j("reboot")},children:"Restart Now"});return E&&!O&&(P=(0,e.jsx)(t.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.az,{color:"good",children:["Automatic reboot in ",M," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:P})]})}},77056:function(y,h,n){"use strict";n.r(h),n.d(h,{AccountsTerminal:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.id_inserted,v=f.id_card,j=f.access_level,E=f.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Machine",color:"average",children:E}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:m?"eject":"sign-in-alt",fluid:!0,onClick:function(){return l("insert_card")},children:v})})]})}),j>0&&(0,e.jsx)(g,{})]})})},g=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.creating_new_account,v=f.detailed_account_view;return(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m&&!v,icon:"home",onClick:function(){return l("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return l("create_account")},children:"New Account"}),m?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return l("print")},children:"Print"})]}),m&&(0,e.jsx)(x,{})||v&&(0,e.jsx)(u,{})||(0,e.jsx)(o,{})]})},x=function(c){var a=(0,i.Oc)().act,l=(0,i.QY)("holder",""),f=l[0],m=l[1],v=(0,i.QY)("money",""),j=v[0],E=v[1];return(0,e.jsxs)(t.wn,{title:"Create Account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:f,fluid:!0,onInput:function(O,M){return m(M)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:j,fluid:!0,onInput:function(O,M){return E(M)}})})]}),(0,e.jsx)(t.$n,{disabled:!f||!j,mt:1,fluid:!0,icon:"plus",onClick:function(){return a("finalise_create_account",{holder_name:f,starting_funds:j})},children:"Create"})]})},u=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.access_level,v=f.station_account_number,j=f.account_number,E=f.owner_name,O=f.money,M=f.suspended,P=f.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:M,onClick:function(){return l("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",j]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[O,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:M?"bad":"good",children:M?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",mt:1,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payroll",children:(0,e.jsx)(t.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",confirmContent:"This cannot be undone.",disabled:j===v,onClick:function(){return l("revoke_payroll")},children:"Revoke"})})})}),m>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),P.map(function(D,S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[D.date," ",D.time]}),(0,e.jsx)(t.XI.Cell,{children:D.target_name}),(0,e.jsx)(t.XI.Cell,{children:D.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[D.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:D.source_terminal})]},S)})]})})]})},o=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:m.length&&(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.owner_name+v.suspended,color:v.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return l("view_account_detail",{account_index:v.account_index})},children:"#"+v.account_number})},v.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(y,h,n){"use strict";n.r(h),n.d(h,{AdminShuttleController:function(){return g},ShuttleList:function(){return x}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=n(42103),g=function(){return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.shuttles,m=l.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,i.Ul)(f,function(v){return v.name}).map(function(v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return a("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return a("classicmove",{ref:v.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:v.name}),(0,e.jsx)(r.XI.Cell,{children:v.current_location}),(0,e.jsx)(r.XI.Cell,{children:u(v.status)})]},v.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,i.Ul)(m,function(v){var j;return((j=v.name)==null?void 0:j.toLowerCase())||v.name||v.ref}).map(function(v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return a("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return a("overmap_control",{ref:v.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:v.name})]},v.ref)})})})]})},u=function(o){switch(o){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(y,h,n){"use strict";n.r(h),n.d(h,{AdminTicketPanel:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.id,f=a.title,m=a.name,v=a.state,j=a.opened_at,E=a.closed_at,O=a.opened_at_date,M=a.closed_at_date,P=a.actions,D=a.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return c("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:g[v]}),g[v]===g.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:O+" ("+(0,i.Mg)((0,i.LI)(j/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[M+" ("+(0,i.Mg)((0,i.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return c("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(D).map(function(S,B){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:D[S]}},B)})})]})})})})}},14415:function(y,h,n){"use strict";n.r(h),n.d(h,{AgentCard:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.entries,a=o.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return u(l.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsx)(t.XI.Cell,{children:l.value})]},l.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:a,onClick:function(){return u("electronic_warfare")},children:a?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},40645:function(y,h,n){"use strict";n.r(h),n.d(h,{AiAirlock:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.power,l=c.wires,f=c.shock,m=c.shock_timeleft,v=c.id_scanner,j=c.lights,E=c.locked,O=c.safe,M=c.speed,P=c.opened,D=c.welded,S=s[a.main]||s[0],B=s[a.backup]||s[0],T=s[f]||s[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:S.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!a.main,onClick:function(){return o("disrupt-main")},children:"Disrupt"}),children:[a.main?"Online":"Offline"," ",(!l.main_1||!l.main_2)&&"[Wires have been cut!]"||a.main_timeleft>0&&"["+a.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:B.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!a.backup,onClick:function(){return o("disrupt-backup")},children:"Disrupt"}),children:[a.backup?"Online":"Offline"," ",(!l.backup_1||!l.backup_2)&&"[Wires have been cut!]"||a.backup_timeleft>0&&"["+a.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:T.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(l.shock&&f===0),onClick:function(){return o("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return o("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return o("shock-perm")},children:"Permanent"})]}),children:[f===2?"Safe":"Electrified"," ",!l.shock&&"[Wires have been cut!]"||m>0&&"["+m+"s]"||m===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.wn,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,disabled:!l.id_scanner,onClick:function(){return o("idscan-toggle")},children:v?"Enabled":"Disabled"}),children:!l.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:E?"lock":"unlock",selected:E,disabled:!l.bolts,onClick:function(){return o("bolt-toggle")},children:E?"Lowered":"Raised"}),children:!l.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,disabled:!l.lights,onClick:function(){return o("light-toggle")},children:j?"Enabled":"Disabled"}),children:!l.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:O?"power-off":"times",selected:O,disabled:!l.safe,onClick:function(){return o("safe-toggle")},children:O?"Enabled":"Disabled"}),children:!l.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:M?"power-off":"times",selected:M,disabled:!l.timing,onClick:function(){return o("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!l.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:P?"sign-out-alt":"sign-in-alt",selected:P,disabled:E||D,onClick:function(){return o("open-close")},children:P?"Open":"Closed"}),children:!!(E||D)&&(0,e.jsxs)("span",{children:["[Door is ",E?"bolted":"",E&&D?" and ":"",D?"welded":"","!]"]})})]})})]})})}},89570:function(y,h,n){"use strict";n.r(h),n.d(h,{AiRestorer:function(){return s},AiRestorerContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.AI_present,l=c.error,f=c.name,m=c.laws,v=c.isDead,j=c.restoring,E=c.health,O=c.ejectable;return(0,e.jsxs)(e.Fragment,{children:[l&&(0,e.jsx)(t.IC,{textAlign:"center",children:l}),!!O&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!a,onClick:function(){return o("PRG_eject")},children:a?f:"----------"}),!!a&&(0,e.jsxs)(t.wn,{title:O?"System Status":f,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:v?"bad":"good",children:v?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:E,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!j&&(0,e.jsx)(t.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:j,mt:1,onClick:function(){return o("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",children:m.map(function(M){return(0,e.jsx)(t.az,{className:"candystripe",children:M},M)})})]})]})}},69622:function(y,h,n){"use strict";n.r(h),n.d(h,{AiSupermatter:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(72859),g=function(o){var c=(0,i.Oc)().data,a=c.detonating,l=(0,e.jsx)(u,{});return a&&(l=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:l})})},x=function(o){return(0,e.jsx)(s.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},u=function(o){var c=(0,i.Oc)().data,a=c.integrity_percentage,l=c.ambient_temp,f=c.ambient_pressure;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.z2,{value:a,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:l,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[l," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[f," kPa"]})]})})}},15991:function(y,h,n){"use strict";n.r(h),n.d(h,{AirAlarm:function(){return c}});var e=n(20462),i=n(4089),t=n(61358),r=n(7081),s=n(21148),g=n(79500),x=n(42103),u=n(26634),o=n(98071),c=function(P){var D=function(oe){Y(oe)},S=(0,r.Oc)(),B=S.act,T=S.data,U=T.locked,W=T.siliconUser,z=T.remoteUser,k=(0,t.useState)(""),$=k[0],Y=k[1],G=U&&!W&&!z;return(0,e.jsx)(x.p8,{width:440,height:650,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.InterfaceLockNoticeBox,{}),(0,e.jsx)(a,{}),(0,e.jsx)(l,{}),!G&&(0,e.jsx)(m,{screen:$,onScreen:D})]})})},a=function(P){var D=(0,r.Oc)().data,S=D.environment_data,B=D.atmos_alarm,T=D.fire_alarm,U=D.emagged,W=(S||[]).filter(function($){return $.value>=.01}),z={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},k=z[D.danger_level]||z[0];return(0,e.jsx)(s.wn,{title:"Air Status",children:(0,e.jsxs)(s.Ki,{children:[W.length>0&&(0,e.jsxs)(e.Fragment,{children:[W.map(function($){var Y=z[$.danger_level]||z[0];return(0,e.jsxs)(s.Ki.Item,{label:(0,g.wM)($.name),color:Y.color,children:[(0,i.Mg)($.value,2),$.unit]},$.name)}),(0,e.jsx)(s.Ki.Item,{label:"Local status",color:k.color,children:k.localStatusText}),(0,e.jsx)(s.Ki.Item,{label:"Area status",color:B||T?"bad":"good",children:B&&"Atmosphere Alarm"||T&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!U&&(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},l=function(P){var D=(0,r.Oc)(),S=D.act,B=D.data,T=B.target_temperature,U=B.rcon;return(0,e.jsx)(s.wn,{title:"Comfort Settings",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(s.$n,{selected:U===1,onClick:function(){return S("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(s.$n,{selected:U===2,onClick:function(){return S("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(s.$n,{selected:U===3,onClick:function(){return S("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(s.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(s.$n,{onClick:function(){return S("temperature")},children:T})})]})})},f={home:{title:"Air Controls",component:function(){return v}},vents:{title:"Vent Controls",component:function(){return j}},scrubbers:{title:"Scrubber Controls",component:function(){return E}},modes:{title:"Operating Mode",component:function(){return O}},thresholds:{title:"Alarm Thresholds",component:function(){return M}}},m=function(P){var D=f[P.screen]||f.home,S=D.component();return(0,e.jsx)(s.wn,{title:D.title,buttons:P.screen&&(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return P.onScreen()},children:"Back"}),children:(0,e.jsx)(S,{onScreen:P.onScreen})})},v=function(P){var D=(0,r.Oc)(),S=D.act,B=D.data,T=B.mode,U=B.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:U?"exclamation-triangle":"exclamation",color:U&&"caution",onClick:function(){return S(U?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:T===3?"exclamation-triangle":"exclamation",color:T===3&&"danger",onClick:function(){return S("mode",{mode:T===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(s.az,{mt:2}),(0,e.jsx)(s.$n,{icon:"sign-out-alt",onClick:function(){return P.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"filter",onClick:function(){return P.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"cog",onClick:function(){return P.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"chart-bar",onClick:function(){return P.onScreen("thresholds")},children:"Alarm Thresholds"})]})},j=function(P){var D=(0,r.Oc)().data,S=D.vents;return!S||S.length===0?"Nothing to show":S.map(function(B){return(0,e.jsx)(u.Vent,{vent:B},B.id_tag)})},E=function(P){var D=(0,r.Oc)().data,S=D.scrubbers;return!S||S.length===0?"Nothing to show":S.map(function(B){return(0,e.jsx)(u.Scrubber,{scrubber:B},B.id_tag)})},O=function(P){var D=(0,r.Oc)(),S=D.act,B=D.data,T=B.modes;return!T||T.length===0?"Nothing to show":T.map(function(U){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(s.$n,{icon:U.selected?"check-square-o":"square-o",selected:U.selected,color:U.selected&&U.danger&&"danger",onClick:function(){return S("mode",{mode:U.mode})},children:U.name}),(0,e.jsx)(s.az,{mt:1})]},U.mode)})},M=function(P){var D=(0,r.Oc)(),S=D.act,B=D.data,T=B.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:T.map(function(U){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,g.b_)(U.name),children:(0,g.wM)(U.name)})}),U.settings.map(function(W){return(0,e.jsx)("td",{children:(0,e.jsx)(s.$n,{onClick:function(){return S("threshold",{env:W.env,var:W.val})},children:(0,i.Mg)(W.selected,2)})},W.val)})]},U.name)})})]})}},51225:function(y,h,n){"use strict";n.r(h),n.d(h,{AlertModal:function(){return c}});var e=n(20462),i=n(61358),t=n(6544),r=n(7081),s=n(21148),g=n(42103),x=n(44149),u=-1,o=1,c=function(f){var m=(0,r.Oc)(),v=m.act,j=m.data,E=j.autofocus,O=j.buttons,M=O===void 0?[]:O,P=j.large_buttons,D=j.message,S=D===void 0?"":D,B=j.timeout,T=j.title,U=(0,i.useState)(0),W=U[0],z=U[1],k=115+(S.length>30?Math.ceil(S.length/4):0)+(S.length&&P?5:0),$=325+(M.length>2?55:0),Y=function(G){W===0&&G===u?z(M.length-1):W===M.length-1&&G===o?z(0):z(W+G)};return(0,e.jsxs)(g.p8,{height:k,title:T,width:$,children:[!!B&&(0,e.jsx)(x.Loader,{value:B}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(G){var ne=window.event?G.which:G.keyCode;ne===t.iy||ne===t.Ri?v("choose",{choice:M[W]}):ne===t.s6?v("cancel"):ne===t.iU?(G.preventDefault(),Y(u)):(ne===t.aW||ne===t.zh)&&(G.preventDefault(),Y(o))},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(s.az,{color:"label",overflow:"hidden",children:S})}),(0,e.jsxs)(s.BJ.Item,{children:[!!E&&(0,e.jsx)(s.y5,{}),(0,e.jsx)(a,{selected:W})]})]})})})]})},a=function(f){var m=(0,r.Oc)().data,v=m.buttons,j=v===void 0?[]:v,E=m.large_buttons,O=m.swapped_buttons,M=f.selected;return(0,e.jsx)(s.so,{align:"center",direction:O?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:j==null?void 0:j.map(function(P,D){return E&&j.length<3?(0,e.jsx)(s.so.Item,{grow:!0,children:(0,e.jsx)(l,{button:P,id:D.toString(),selected:M===D})},D):(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(l,{button:P,id:D.toString(),selected:M===D})},D)})})},l=function(f){var m=(0,r.Oc)(),v=m.act,j=m.data,E=j.large_buttons,O=f.button,M=f.selected,P=O.length>7?O.length:7;return(0,e.jsx)(s.$n,{fluid:!!E,height:!!E&&2,onClick:function(){return v("choose",{choice:O})},m:.5,pl:2,pr:2,pt:E?.33:0,selected:M,textAlign:"center",width:!E&&P,children:E?O.toUpperCase():O})}},20730:function(y,h,n){"use strict";n.r(h),n.d(h,{AlgaeFarm:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.usePower,l=c.materials,f=c.last_flow_rate,m=c.last_power_draw,v=c.inputDir,j=c.outputDir,E=c.input,O=c.output,M=c.errorText;return(0,e.jsx)(s.p8,{width:500,height:300,children:(0,e.jsxs)(s.p8.Content,{children:[M&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:M})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:a===2,onClick:function(){return o("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[f," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[m," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),l.map(function(P){return(0,e.jsxs)(r.Ki.Item,{label:(0,i.ZH)(P.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:P.qty,maxValue:P.max,children:[P.qty,"/",P.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return o("ejectMaterial",{mat:P.name})},children:"Eject"})]},P.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+v+")",children:E?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[E.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:E.name,children:[E.percent,"% (",E.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+j+")",children:O?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[O.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:O.name,children:[O.percent,"% (",O.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},31607:function(y,h,n){"use strict";n.r(h),n.d(h,{AppearanceChangerEars:function(){return x},AppearanceChangerGender:function(){return g},AppearanceChangerSpecies:function(){return s},AppearanceChangerTails:function(){return u},AppearanceChangerWings:function(){return o}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.species,v=f.specimen,j=(0,i.Ul)(m||[],function(E){return E.specimen});return(0,e.jsx)(r.wn,{title:"Species",fill:!0,scrollable:!0,children:j.map(function(E){return(0,e.jsx)(r.$n,{selected:v===E.specimen,onClick:function(){return l("race",{race:E.specimen})},children:E.specimen},E.specimen)})})},g=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.gender,v=f.gender_id,j=f.genders,E=f.id_genders;return(0,e.jsx)(r.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Biological Sex",children:j.map(function(O){return(0,e.jsx)(r.$n,{selected:O.gender_key===m,onClick:function(){return l("gender",{gender:O.gender_key})},children:O.gender_name},O.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:E.map(function(O){return(0,e.jsx)(r.$n,{selected:O.gender_key===v,onClick:function(){return l("gender_id",{gender_id:O.gender_key})},children:O.gender_name},O.gender_key)})})]})})},x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.ear_style,v=f.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,i.Ul)(v,function(j){return j.name.toLowerCase()}).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{ref:j.instance})},selected:j.name===m,children:j.name},j.instance)})]})},u=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.tail_style,v=f.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,i.Ul)(v,function(j){return j.name.toLowerCase()}).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{ref:j.instance})},selected:j.name===m,children:j.name},j.instance)})]})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.wing_style,v=f.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,i.Ul)(v,function(j){return j.name.toLowerCase()}).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{ref:j.instance})},selected:j.name===m,children:j.name},j.instance)})]})}},47565:function(y,h,n){"use strict";n.r(h),n.d(h,{AppearanceChangerColors:function(){return r},AppearanceChangerMarkings:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.change_eye_color,a=o.change_skin_tone,l=o.change_skin_color,f=o.change_hair_color,m=o.change_facial_hair_color,v=o.eye_color,j=o.skin_color,E=o.hair_color,O=o.facial_hair_color,M=o.ears_color,P=o.ears2_color,D=o.tail_color,S=o.tail2_color,B=o.wing_color,T=o.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:v,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("eye_color")},children:"Change Eye Color"})]}):"",a?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return u("skin_tone")},children:"Change Skin Tone"})}):"",l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:j,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("skin_color")},children:"Change Skin Color"})]}):"",f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:E,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:M,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:P,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:D,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:S,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:B,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:T,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,m?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:O,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.markings;return(0,e.jsxs)(t.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return u("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(t.Ki,{children:c.map(function(a){return(0,e.jsxs)(t.Ki.Item,{label:a.marking_name,children:[(0,e.jsx)(t.BK,{color:a.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return u("marking",{todo:4,name:a.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return u("marking",{todo:0,name:a.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return u("marking",{todo:3,name:a.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return u("marking",{todo:2,name:a.marking_name})},children:"Move up"})]},a.marking_name)})})]})}},70972:function(y,h,n){"use strict";n.r(h),n.d(h,{AppearanceChangerFacialHair:function(){return s},AppearanceChangerHair:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.hair_style,a=o.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:a.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return u("hair",{hair:l.hairstyle})},selected:l.hairstyle===c,children:l.hairstyle},l.hairstyle)})})},s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.facial_hair_style,a=o.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:a.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return u("facial_hair",{facial_hair:l.facialhairstyle})},selected:l.facialhairstyle===c,children:l.facialhairstyle},l.facialhairstyle)})})}},66779:function(y,h,n){"use strict";n.r(h),n.d(h,{AppearanceChanger:function(){return c},AppearanceChangerDefaultError:function(){return a}});var e=n(20462),i=n(61282),t=n(61358),r=n(7081),s=n(21148),g=n(42103),x=n(31607),u=n(47565),o=n(70972),c=function(l){var f=(0,r.Oc)(),m=f.act,v=f.config,j=f.data,E=j.name,O=j.specimen,M=j.gender,P=j.gender_id,D=j.hair_style,S=j.facial_hair_style,B=j.ear_style,T=j.tail_style,U=j.wing_style,W=j.change_race,z=j.change_gender,k=j.change_eye_color,$=j.change_skin_tone,Y=j.change_skin_color,G=j.change_hair_color,ne=j.change_facial_hair_color,oe=j.change_hair,q=j.change_facial_hair,Z=j.mapRef,X=v.title,H=[],V=k||$||Y||G||ne,J=(0,e.jsx)(s.az,{});H[-1]=(0,e.jsx)(a,{}),H[0]=W?(0,e.jsx)(x.AppearanceChangerSpecies,{}):(0,e.jsx)(a,{}),H[1]=z?(0,e.jsx)(x.AppearanceChangerGender,{}):(0,e.jsx)(a,{}),H[2]=V?(0,e.jsx)(u.AppearanceChangerColors,{}):(0,e.jsx)(a,{}),H[3]=oe?(0,e.jsx)(o.AppearanceChangerHair,{}):(0,e.jsx)(a,{}),H[4]=q?(0,e.jsx)(o.AppearanceChangerFacialHair,{}):(0,e.jsx)(a,{}),H[5]=oe?(0,e.jsx)(x.AppearanceChangerEars,{}):(0,e.jsx)(a,{}),H[6]=oe?(0,e.jsx)(x.AppearanceChangerTails,{}):(0,e.jsx)(a,{}),H[7]=oe?(0,e.jsx)(x.AppearanceChangerWings,{}):(0,e.jsx)(a,{}),H[8]=oe?(0,e.jsx)(u.AppearanceChangerMarkings,{}):(0,e.jsx)(a,{});var ce=-1;W?ce=0:z?ce=1:V?ce=2:oe?ce=4:q&&(ce=5);var le=(0,t.useState)(ce),fe=le[0],he=le[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,i.jT)(X),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Reflection",children:(0,e.jsxs)(s.so,{children:[(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:E}),(0,e.jsx)(s.Ki.Item,{label:"Species",color:W?void 0:"grey",children:O}),(0,e.jsx)(s.Ki.Item,{label:"Biological Sex",color:z?void 0:"grey",children:M?(0,i.ZH)(M):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Gender Identity",color:V?void 0:"grey",children:P?(0,i.ZH)(P):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Hair Style",color:oe?void 0:"grey",children:D?(0,i.ZH)(D):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Facial Hair Style",color:q?void 0:"grey",children:S?(0,i.ZH)(S):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Ear Style",color:oe?void 0:"grey",children:B?(0,i.ZH)(B):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Tail Style",color:oe?void 0:"grey",children:T?(0,i.ZH)(T):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Wing Style",color:oe?void 0:"grey",children:U?(0,i.ZH)(U):"Not Set"})]})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.D1,{style:{width:"256px",height:"256px"},params:{id:Z,type:"map"}})})]})}),(0,e.jsxs)(s.tU,{children:[W?(0,e.jsx)(s.tU.Tab,{selected:fe===0,onClick:function(){return he(0)},children:"Race"}):null,z?(0,e.jsx)(s.tU.Tab,{selected:fe===1,onClick:function(){return he(1)},children:"Gender & Sex"}):null,V?(0,e.jsx)(s.tU.Tab,{selected:fe===2,onClick:function(){return he(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.tU.Tab,{selected:fe===3,onClick:function(){return he(3)},children:"Hair"}),(0,e.jsx)(s.tU.Tab,{selected:fe===5,onClick:function(){return he(5)},children:"Ear"}),(0,e.jsx)(s.tU.Tab,{selected:fe===6,onClick:function(){return he(6)},children:"Tail"}),(0,e.jsx)(s.tU.Tab,{selected:fe===7,onClick:function(){return he(7)},children:"Wing"}),(0,e.jsx)(s.tU.Tab,{selected:fe===8,onClick:function(){return he(8)},children:"Markings"})]}):null,q?(0,e.jsx)(s.tU.Tab,{selected:fe===4,onClick:function(){return he(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(s.az,{height:"43%",children:H[fe]})]})})},a=function(l){return(0,e.jsx)(s.az,{textColor:"red",children:"Disabled"})}},44212:function(y,h,n){"use strict";n.r(h)},8910:function(y,h,n){"use strict";n.r(h),n.d(h,{ArcadeBattle:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.temp,a=o.enemyAction,l=o.enemyName,f=o.playerHP,m=o.playerMP,v=o.enemyHP,j=o.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:l,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:c}),(0,e.jsx)(t.az,{children:!j&&a})]}),(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(t.z2,{value:f,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:m,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m,"MP"]})})]})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.z2,{value:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),j&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return u("newgame")},children:"New Game"})||(0,e.jsxs)(t.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return u("attack")},children:"Attack!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return u("heal")},children:"Heal!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return u("charge")},children:"Recharge!"})})]})]})})})}},61968:function(y,h,n){"use strict";n.r(h),n.d(h,{AreaScrubberControl:function(){return x}});var e=n(20462),i=n(61282),t=n(61358),r=n(7081),s=n(21148),g=n(42103),x=function(o){var c=(0,r.Oc)(),a=c.act,l=c.data,f=(0,t.useState)(!1),m=f[0],v=f[1],j=l.scrubbers;return j?(0,e.jsx)(g.p8,{width:600,height:400,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.so,{wrap:"wrap",children:[(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return a("scan")},children:"Scan"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:m,onClick:function(){return v(!m)},children:"Show Areas"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return a("allon")},children:"All On"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return a("alloff")},children:"All Off"})})]}),(0,e.jsx)(s.so,{wrap:"wrap",children:j.map(function(E){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(u,{scrubber:E,showArea:m})},E.id)})})]})})}):(0,e.jsxs)(s.wn,{title:"Error",children:[(0,e.jsx)(s.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(s.$n,{fluid:!0,icon:"search",onClick:function(){return a("scan")},children:"Scan"})]})},u=function(o){var c=(0,r.Oc)().act,a=o.scrubber,l=o.showArea;return(0,e.jsxs)(s.wn,{title:a.name,children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"power-off",selected:a.on,onClick:function(){return c("toggle",{id:a.id})},children:a.on?"Enabled":"Disabled"}),(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,e.jsxs)(s.Ki.Item,{label:"Load",children:[a.load," W"]}),l&&(0,e.jsx)(s.Ki.Item,{label:"Area",children:(0,i.Sn)(a.area)})]})]})}},29615:function(y,h,n){"use strict";n.r(h),n.d(h,{AssemblyInfrared:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:c,onClick:function(){return u("state")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:a,onClick:function(){return u("visible")},children:a?"Able to be seen":"Invisible"})})]})})})})}},95027:function(y,h,n){"use strict";n.r(h),n.d(h,{AssemblyProx:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.timing,f=a.time,m=a.range,v=a.maxRange,j=a.scanning;return(0,e.jsx)(g.p8,{children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:l,onClick:function(){return c("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:f,minValue:0,maxValue:600,format:function(E){return(0,s.fU)((0,i.LI)(E*10,0))},onDrag:function(E){return c("set_time",{time:E})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{step:1,minValue:1,value:m,maxValue:v,onDrag:function(E){return c("range",{range:E})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:j?"lock":"lock-open",selected:j,onClick:function(){return c("scanning")},children:j?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},18721:function(y,h,n){"use strict";n.r(h),n.d(h,{AssemblyTimer:function(){return u}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=n(46836),u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.timing,m=l.time;return(0,e.jsx)(g.p8,{children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:f,onClick:function(){return a("timing")},children:f?"Counting Down":"Disabled"}),children:(0,e.jsx)(x.NumberInputModal,{animated:!0,fluid:!0,step:1,value:m,minValue:0,maxValue:600,format:function(v){return(0,s.fU)((0,i.LI)(v*10,0))},onDrag:function(v){return a("set_time",{time:v})}})})})})})})}},16561:function(y,h,n){"use strict";n.r(h),n.d(h,{AtmosAlertConsole:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.priority_alarms,a=c===void 0?[]:c,l=o.minor_alarms,f=l===void 0?[]:l;return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[a.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),a.map(function(m){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return u("clear",{ref:m.ref})},children:m.name})},m.name)}),f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),f.map(function(m){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return u("clear",{ref:m.ref})},children:m.name})},m.name)})]})})})})}},74737:function(y,h,n){"use strict";n.r(h),n.d(h,{AtmosControl:function(){return x},AtmosControlContent:function(){return u}});var e=n(20462),i=n(7402),t=n(61358),r=n(7081),s=n(21148),g=n(42103),x=function(o){return(0,e.jsx)(g.p8,{width:600,height:440,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(u,{})})})},u=function(o){var c=(0,r.Oc)(),a=c.act,l=c.data,f=c.config,m=(0,i.Ul)(l.alarms||[],function(S){return S.name}),v=(0,t.useState)(0),j=v[0],E=v[1],O=(0,t.useState)(1),M=O[0],P=O[1],D;return j===0?D=(0,e.jsx)(s.wn,{title:"Alarms",children:m.map(function(S){return(0,e.jsx)(s.$n,{color:S.danger===2?"bad":S.danger===1?"average":"",onClick:function(){return a("alarm",{alarm:S.ref})},children:S.name},S.name)})}):j===1&&(D=(0,e.jsx)(s.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(s.tx,{zoomScale:l.zoomScale,onZoom:function(S){return P(S)},children:m.filter(function(S){return~~S.z===~~f.mapZLevel}).map(function(S){return(0,e.jsx)(s.tx.Marker,{x:S.x,y:S.y,zoom:M,icon:"bell",tooltip:S.name,color:S.danger?"red":"green",onClick:function(){return a("alarm",{alarm:S.ref})}},S.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:j===0,onClick:function(){return E(0)},children:[(0,e.jsx)(s.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(s.tU.Tab,{selected:j===1,onClick:function(){return E(1)},children:[(0,e.jsx)(s.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(s.az,{m:2,children:D})]})}},13238:function(y,h,n){"use strict";n.r(h),n.d(h,{AtmosFilter:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.rate,l=o.max_rate,f=o.last_flow_rate,m=o.filter_types,v=m===void 0?[]:m;return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return u("power")},children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.az,{inline:!0,mr:1,children:(0,e.jsx)(t.zv,{value:f,format:function(j){return j+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:a,width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(j){return u("rate",{rate:j})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:a===l,onClick:function(){return u("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:v.map(function(j){return(0,e.jsx)(t.$n,{selected:j.selected,onClick:function(){return u("filter",{filterset:j.f_type})},children:j.name},j.name)})})]})})})})}},68541:function(y,h,n){"use strict";n.r(h),n.d(h,{AtmosMixer:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.set_pressure,l=o.max_pressure,f=o.node1_concentration,m=o.node2_concentration,v=o.node1_dir,j=o.node2_dir;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return u("power")},children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:a,unit:"kPa",width:"75px",minValue:0,maxValue:l,step:10,onChange:function(E){return u("pressure",{pressure:E})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:a===l,onClick:function(){return u("pressure",{pressure:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Divider,{size:1}),(0,e.jsx)(t.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ki.Item,{label:"Node 1 ("+v+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(E){return u("node1",{concentration:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+j+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:m,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(E){return u("node2",{concentration:E})}})})]})})})})}},43855:function(y,h,n){"use strict";n.r(h),n.d(h,{Autolathe:function(){return m}});var e=n(20462),i=n(7402),t=n(15813),r=n(61282),s=n(7081),g=n(21148),x=n(42103),u=n(2858);function o(v,j){(j==null||j>v.length)&&(j=v.length);for(var E=0,O=new Array(j);E=v.length?{done:!0}:{done:!1,value:v[O++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(v,j,E){var O=function(){var B=D.value,T=j.find(function(U){return U.name===B});if(!T)return"continue";if(T.amount=0)&&(E[M]=v[M]);return E}var o={Alphabetical:function(v,j){return v.name>j.name},"By availability":function(v,j){return-(v.affordable-j.affordable)},"By price":function(v,j){return v.price-j.price}},c=function(v){var j=function(Z){z(Z)},E=function(Z){Y(Z)},O=function(Z){oe(Z)},M=(0,r.Oc)(),P=M.act,D=M.data,S=D.processing,B=D.points,T=D.beaker,U=(0,t.useState)(""),W=U[0],z=U[1],k=(0,t.useState)("Alphabetical"),$=k[0],Y=k[1],G=(0,t.useState)(!1),ne=G[0],oe=G[1];return(0,e.jsx)(g.p8,{width:400,height:450,children:(0,e.jsx)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:S&&(0,e.jsx)(s.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.wn,{children:[B," points available.",(0,e.jsx)(s.$n,{ml:1,icon:"blender",onClick:function(){return P("activate")},children:"Activate"}),(0,e.jsx)(s.$n,{ml:1,icon:"eject",disabled:!T,onClick:function(){return P("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(l,{searchText:W,sortOrder:$,descending:ne,onSearchText:j,onSortOrder:E,onDescending:O}),(0,e.jsx)(a,{searchText:W,sortOrder:$,descending:ne})]})})})},a=function(v){var j=(0,r.Oc)(),E=j.act,O=j.data,M=O.points,P=O.items,D=P===void 0?[]:P,S=O.build_eff,B=O.beaker,T=(0,i.XZ)(v.searchText,function(z){return z[0]}),U=!1,W=Object.entries(D).map(function(z){var k=Object.entries(z[1]).filter(T).map(function($){return $[1].affordable=+(M>=$[1].price/S),$[1]}).sort(o[v.sortOrder]);if(k.length!==0)return v.descending&&(k=k.reverse()),U=!0,(0,e.jsx)(m,{title:z[0],items:k,build_eff:S,beaker:B},z[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:U?W:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(j,E){return v.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(o),width:"100%",lineHeight:"19px",onSelected:function(j){return v.onSortOrder(j)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},f=function(v,j){return!(!v.affordable||v.reagent&&!j)},m=function(v){var j=(0,r.Oc)(),E=j.act,O=j.data,M=v.title,P=v.items,D=v.build_eff,S=v.beaker,B=u(v,["title","items","build_eff","beaker"]);return(0,e.jsx)(s.Nt,x({open:!0,title:M},B,{children:P.map(function(T){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:T.name}),(0,e.jsx)(s.$n,{disabled:!f(T,S),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return E("purchase",{cat:M,name:T.name})},children:(T.price/D).toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},T.name)})}))}},13469:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyDesignerBodyRecords:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Main"})},children:"Back"}),children:x?x.map(function(u){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("view_brec",{view_brec:u.recref})},children:u.name},u.name)}):""})}},17796:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyDesignerMain:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})}},24983:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyDesignerOOCNotes:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.activeBodyRecord;return(0,e.jsx)(t.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:x&&x.booc||"ERROR: Body record not found!"})}},31687:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyDesignerSpecificRecord:function(){return s}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=function(g){var x=(0,t.Oc)().act,u=g.activeBodyRecord,o=g.mapRef;return u?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return x("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:u.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:u.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,i.ZH)(u.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:u.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[u.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!u.booc,onClick:function(){return x("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:o,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"size_multiplier",target_value:1})},children:u.scale})}),Object.keys(u.styles).map(function(c){var a=u.styles[c];return(0,e.jsxs)(r.Ki.Item,{label:c,children:[a.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:a.styleHref,target_value:1})},children:a.style}):"",a.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:a.colorHref,target_value:1})},children:a.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:a.color,style:{border:"1px solid #fff"}})]}):"",a.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:a.colorHref2,target_value:1})},children:a.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:a.color2,style:{border:"1px solid #fff"}})]}):""]},c)}),(0,e.jsx)(r.Ki.Item,{label:"Digitigrade",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"digitigrade",target_value:1})},children:u.digitigrade?"Yes":"No"})}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return x("href_conversion",{target_href:"marking_style",target_value:1})},children:"Add Marking"}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(u.markings).map(function(c){var a=u.markings[c];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return x("href_conversion",{target_href:"marking_remove",target_value:c})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:a,onClick:function(){return x("href_conversion",{target_href:"marking_color",target_value:c})},children:c})})]})},c)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})}},99123:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyDesignerStockRecords:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Main"})},children:"Back"}),children:x.map(function(u){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("view_stock_brec",{view_stock_brec:u})},children:u},u)})})}},87706:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyDesigner:function(){return c}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(13469),g=n(17796),x=n(24983),u=n(31687),o=n(99123),c=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.menu,j=m.disk,E=m.diskStored,O=m.activeBodyRecord,M=m.stock_bodyrecords,P=m.bodyrecords,D=m.mapRef,S={Main:(0,e.jsx)(g.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(s.BodyDesignerBodyRecords,{bodyrecords:P}),"Stock Records":(0,e.jsx)(o.BodyDesignerStockRecords,{stock_bodyrecords:M}),"Specific Record":(0,e.jsx)(u.BodyDesignerSpecificRecord,{activeBodyRecord:O,mapRef:D}),"OOC Notes":(0,e.jsx)(x.BodyDesignerOOCNotes,{activeBodyRecord:O})},B=S[v];return(0,e.jsx)(r.p8,{width:400,height:650,children:(0,e.jsxs)(r.p8.Content,{children:[j?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("savetodisk")},disabled:!O,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("loadfromdisk")},disabled:!E,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("ejectdisk")},children:"Eject"})]}):"",B]})})}},25375:function(y,h,n){"use strict";n.r(h)},85168:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScannerEmpty:function(){return t}});var e=n(20462),i=n(21148),t=function(){return(0,e.jsx)(i.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(i.so,{height:"100%",children:(0,e.jsxs)(i.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},43780:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScannerMain:function(){return o}});var e=n(20462),i=n(21148),t=n(49354),r=n(53187),s=n(81417),g=n(32915),x=n(73457),u=n(70765),o=function(c){var a=c.occupant;return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(s.BodyScannerMainOccupant,{occupant:a}),(0,e.jsx)(u.BodyScannerMainReagents,{occupant:a}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:a}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:a}),(0,e.jsx)(g.BodyScannerMainOrgansExternal,{organs:a.extOrgan}),(0,e.jsx)(x.BodyScannerMainOrgansInternal,{organs:a.intOrgan})]})}},49354:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScannerMainAbnormalities:function(){return r}});var e=n(20462),i=n(21148),t=n(47710),r=function(s){var g=s.occupant,x=g.hasBorer||g.blind||g.colourblind||g.nearsighted||g.hasVirus;return x=x||g.humanPrey||g.livingPrey||g.objectPrey,x?(0,e.jsx)(i.wn,{title:"Abnormalities",children:t.abnormalities.map(function(u,o){if(g[u[0]])return(0,e.jsx)(i.az,{color:u[1],bold:u[1]==="bad",children:u[2](g)},o)})}):(0,e.jsx)(i.wn,{title:"Abnormalities",children:(0,e.jsx)(i.az,{color:"label",children:"No abnormalities found."})})}},53187:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScannerMainDamage:function(){return g}});var e=n(20462),i=n(4089),t=n(21148),r=n(47710),s=n(65518),g=function(u){var o=u.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,s.mapTwoByTwo)(r.damages,function(c,a,l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[c[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!a&&a[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(x,{value:o[c[1]],marginBottom:l0&&"0.5rem",value:o.totalLoss/100,ranges:r.damageRange,children:[(0,e.jsxs)(t.az,{style:{float:"left"},inline:!0,children:[!!o.bruteLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"bone"}),(0,i.Mg)(o.bruteLoss),"\xA0",(0,e.jsx)(t.m_,{position:"top",content:"Brute damage"})]}),!!o.fireLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"fire"}),(0,i.Mg)(o.fireLoss),(0,e.jsx)(t.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(t.az,{inline:!0,children:(0,i.Mg)(o.totalLoss)})]})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([o.internalBleeding&&"Internal bleeding",!!o.status.bleeding&&"External bleeding",o.lungRuptured&&"Ruptured lung",o.status.destroyed&&"Destroyed",!!o.status.broken&&o.status.broken,(0,s.germStatus)(o.germ_level),!!o.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,s.reduceOrganStatus)([!!o.status.splinted&&"Splinted",!!o.status.robotic&&"Robotic",!!o.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,s.reduceOrganStatus)(o.implants.map(function(a){return a.known?a.name:"Unknown object"}))]})]})]},c)})]})})}},73457:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScannerMainOrgansInternal:function(){return g}});var e=n(20462),i=n(4089),t=n(21148),r=n(47710),s=n(65518),g=function(x){var u=x.organs;return u.length===0?(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsx)(t.az,{color:"label",children:"N/A"})}):(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(t.XI.Cell,{textAlign:"right",children:"Injuries"})]}),u.map(function(o,c){return(0,e.jsxs)(t.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(t.XI.Cell,{width:"33%",children:o.name}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:o.maxHealth/100,value:o.damage/100,mt:c>0&&"0.5rem",ranges:r.damageRange,children:(0,i.Mg)(o.damage)})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([(0,s.germStatus)(o.germ_level),!!o.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,s.reduceOrganStatus)([o.robotic===1&&"Robotic",o.robotic===2&&"Assisted",!!o.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},c)})]})})}},70765:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScannerMainReagents:function(){return t}});var e=n(20462),i=n(21148),t=function(r){var s=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.wn,{title:"Blood Reagents",children:s.reagents?(0,e.jsxs)(i.XI,{children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{children:"Reagent"}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.reagents.map(function(g){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{children:g.name}),(0,e.jsxs)(i.XI.Cell,{textAlign:"right",children:[g.amount," Units"," ",g.overdose?(0,e.jsx)(i.az,{color:"bad",children:"OVERDOSING"}):null]})]},g.name)})]}):(0,e.jsx)(i.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(i.wn,{title:"Stomach Reagents",children:s.ingested?(0,e.jsxs)(i.XI,{children:[(0,e.jsxs)(i.XI.Row,{header:!0,children:[(0,e.jsx)(i.XI.Cell,{children:"Reagent"}),(0,e.jsx)(i.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.ingested.map(function(g){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsx)(i.XI.Cell,{children:g.name}),(0,e.jsxs)(i.XI.Cell,{textAlign:"right",children:[g.amount," Units"," ",g.overdose?(0,e.jsx)(i.az,{color:"bad",children:"OVERDOSING"}):null]})]},g.name)})]}):(0,e.jsx)(i.az,{color:"good",children:"No Stomach Reagents Detected"})})]})}},47710:function(y,h,n){"use strict";n.r(h),n.d(h,{abnormalities:function(){return i},damageRange:function(){return r},damages:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],i=[["hasBorer","bad",function(s){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(s){return"Viral pathogen detected in blood stream."}],["blind","average",function(s){return"Cataracts detected."}],["colourblind","average",function(s){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(s){return"Retinal misalignment detected."}],["humanPrey","average",function(s){return"Foreign Humanoid(s) detected: "+s.humanPrey}],["livingPrey","average",function(s){return"Foreign Creature(s) detected: "+s.livingPrey}],["objectPrey","average",function(s){return"Foreign Object(s) detected: "+s.objectPrey}]],t=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],r={average:[.25,.5],bad:[.5,1/0]}},65518:function(y,h,n){"use strict";n.r(h),n.d(h,{germStatus:function(){return s},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(20462),i=n(21148);function t(g,x){for(var u=[],o=0;o0?g.reduce(function(x,u){return x===null?u:(0,e.jsxs)(e.Fragment,{children:[x,!!u&&(0,e.jsx)(i.az,{children:u})]})}):null}function s(g){if(g>100){if(g<300)return"mild infection";if(g<400)return"mild infection+";if(g<500)return"mild infection++";if(g<700)return"acute infection";if(g<800)return"acute infection+";if(g<900)return"acute infection++";if(g>=900)return"septic"}return""}},9665:function(y,h,n){"use strict";n.r(h),n.d(h,{BodyScanner:function(){return g}});var e=n(20462),i=n(7081),t=n(42103),r=n(85168),s=n(43780),g=function(x){var u=(0,i.Oc)().data,o=u.occupied,c=u.occupant,a=c===void 0?{}:c,l=o?(0,e.jsx)(s.BodyScannerMain,{occupant:a}):(0,e.jsx)(r.BodyScannerEmpty,{});return(0,e.jsx)(t.p8,{width:690,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})}},78006:function(y,h,n){"use strict";n.r(h)},11265:function(y,h,n){"use strict";n.r(h),n.d(h,{BombTester:function(){return o}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103);function g(){return g=Object.assign||function(a){for(var l=1;l.5,P=Math.random()>.5;return v.state={x:M?j:0,y:P?E:0,reverseX:!1,reverseY:!1},v.process=setInterval(function(){v.setState(function(D){var S=g({},D);return S.reverseX?S.x-O<-5?(S.reverseX=!1,S.x+=O):S.x-=O:S.x+O>j?(S.reverseX=!0,S.x-=O):S.x+=O,S.reverseY?S.y-O<-20?(S.reverseY=!1,S.y+=O):S.y-=O:S.y+O>E?(S.reverseY=!0,S.y-=O):S.y+=O,S})},1),v}var f=l.prototype;return f.componentWillUnmount=function(){clearInterval(this.process)},f.render=function(){var v=this.state,j=v.x,E=v.y,O={position:"relative",left:j+"px",top:E+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:O,name:"bomb",size:10,color:"red"})})})},l}(i.Component)},5536:function(y,h,n){"use strict";n.r(h),n.d(h,{BotanyEditor:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.activity,a=o.degradation,l=o.disk,f=o.sourceName,m=o.locus,v=o.loaded;return c?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:l&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:f}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[a,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:m})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return u("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:v})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return u("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return u("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},68734:function(y,h,n){"use strict";n.r(h),n.d(h,{BotanyIsolator:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.geneMasks,a=o.activity,l=o.degradation,f=o.disk,m=o.loaded,v=o.hasGenetics,j=o.sourceName;return a?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[l,"%"]}),f&&c.length&&c.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return u("get_gene",{get_gene:E.tag})},children:"Extract"})},E.mask)})||null]}),f&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return u("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return u("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.IC,{warning:!0,children:"No Data Buffered."}),f&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return u("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:m&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:m})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return u("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return u("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},46141:function(y,h,n){"use strict";n.r(h),n.d(h,{BrigTimer:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.time_left,f=a.max_time_left,m=a.timing,v=a.flash_found,j=a.flash_charging,E=a.preset_short,O=a.preset_medium,M=a.preset_long;return(0,e.jsx)(g.p8,{width:400,height:138,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",selected:m,onClick:function(){return c(m?"stop":"start")},children:m?"Stop":"Start"}),v&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:j,onClick:function(){return c("flash")},children:j?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:l/10,minValue:0,maxValue:f/10,format:function(P){return(0,s.fU)((0,i.LI)(P*10,0))},onDrag:function(P){return c("time",{time:P})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"short"})},children:"Add "+(0,s.fU)(E)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"medium"})},children:"Add "+(0,s.fU)(O)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"long"})},children:"Add "+(0,s.fU)(M)})})]})]})})})}},18490:function(y,h,n){"use strict";n.r(h),n.d(h,{CameraConsole:function(){return f},CameraConsoleContent:function(){return m},prevNextCamera:function(){return c},selectCameras:function(){return l}});var e=n(20462),i=n(7402),t=n(15813),r=n(65380),s=n(61282),g=n(61358),x=n(7081),u=n(21148),o=n(42103),c=function(v,j){var E,O;if(!j)return[];var M=v.findIndex(function(P){return P.name===j.name});return[(E=v[M-1])==null?void 0:E.name,(O=v[M+1])==null?void 0:O.name]};function a(v){return v!=null}var l=function(v,j,E){j===void 0&&(j=""),E===void 0&&(E="");var O=(0,s.XZ)(j,function(M){return M.name});return(0,t.L)([function(M){return(0,i.pb)(M,function(P){return a(P==null?void 0:P.name)})},function(M){return j?(0,i.pb)(M,O):M},function(M){return E?(0,i.pb)(M,function(P){return P.networks.includes(E)}):M},function(M){return(0,i.Ul)(M,function(P){return P.name})}])(v)},f=function(v){var j=(0,x.Oc)(),E=j.act,O=j.data,M=O.mapRef,P=O.activeCamera,D=O.cameras,S=l(D),B=c(S,P),T=B[0],U=B[1];return(0,e.jsxs)(o.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),P&&P.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(u.$n,{icon:"chevron-left",disabled:!T,onClick:function(){return E("switch_camera",{name:T})}}),(0,e.jsx)(u.$n,{icon:"chevron-right",disabled:!U,onClick:function(){return E("switch_camera",{name:U})}}),"| PAN:",(0,e.jsx)(u.$n,{icon:"chevron-left",onClick:function(){return E("pan",{dir:8})}}),(0,e.jsx)(u.$n,{icon:"chevron-up",onClick:function(){return E("pan",{dir:1})}}),(0,e.jsx)(u.$n,{icon:"chevron-right",onClick:function(){return E("pan",{dir:4})}}),(0,e.jsx)(u.$n,{icon:"chevron-down",onClick:function(){return E("pan",{dir:2})}})]}),(0,e.jsx)(u.D1,{className:"CameraConsole__map",params:{id:M,type:"map"}})]})]})},m=function(v){var j=(0,x.Oc)(),E=j.act,O=j.data,M=(0,g.useState)(""),P=M[0],D=M[1],S=(0,g.useState)(""),B=S[0],T=S[1],U=O.activeCamera,W=O.allNetworks,z=O.cameras;W.sort();var k=l(z,P,B);return(0,e.jsxs)(u.so,{direction:"column",height:"100%",children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(u.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function($,Y){return D(Y)}})}),(0,e.jsx)(u.so.Item,{children:(0,e.jsxs)(u.so,{children:[(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(u.ms,{autoScroll:!1,mb:1,width:B?"155px":"177px",selected:B,displayText:B||"No Filter",options:W,onSelected:function($){return T($)}})}),B?(0,e.jsx)(u.so.Item,{children:(0,e.jsx)(u.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){T("")}})}):""]})}),(0,e.jsx)(u.so.Item,{height:"100%",children:(0,e.jsx)(u.wn,{fill:!0,scrollable:!0,children:k.map(function($){return(0,e.jsx)("div",{title:$.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",U&&$.name===U.name&&"Button--selected"]),onClick:function(){return E("switch_camera",{name:$.name})},children:$.name},$.name)})})})]})}},82195:function(y,h,n){"use strict";n.r(h),n.d(h,{Canister:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.connected,f=a.can_relabel,m=a.pressure,v=a.releasePressure,j=a.defaultReleasePressure,E=a.minReleasePressure,O=a.maxReleasePressure,M=a.valveOpen,P=a.holding;return(0,e.jsx)(g.p8,{width:360,height:242,children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return c("relabel")},children:"Relabel"}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:m,format:function(D){return D<1e4?(0,i.Mg)(D)+" kPa":(0,s.QL)(D*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{width:"60px",size:1.25,color:!!M&&"yellow",value:v,unit:"kPa",minValue:E,maxValue:O,stepPixelSize:1,onDrag:function(D,S){return c("pressure",{pressure:S})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return c("pressure",{pressure:O})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return c("pressure",{pressure:j})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:M?P?"caution":"danger":null,onClick:function(){return c("valve")},children:M?"Open":"Closed"})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:l?"plug":"times",color:l?"good":"bad"}),(0,e.jsx)(r.m_,{content:l?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!P&&(0,e.jsx)(r.$n,{icon:"eject",color:M&&"danger",onClick:function(){return c("eject")},children:"Eject"}),children:[!!P&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:P.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:P.pressure})," kPa"]})]}),!P&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},64808:function(y,h,n){"use strict";n.r(h),n.d(h,{Canvas:function(){return f}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103);function g(){return g=Object.assign||function(m){for(var v=1;v=0)&&(j[O]=m[O]);return j}function o(m,v){return o=Object.setPrototypeOf||function(E,O){return E.__proto__=O,E},o(m,v)}var c=24,a=function(m){"use strict";x(v,m);function v(E){var O;return O=m.call(this,E)||this,O.canvasRef=(0,i.createRef)(),O.onCVClick=E.onCanvasClick,O}var j=v.prototype;return j.componentDidMount=function(){this.drawCanvas(this.props)},j.componentDidUpdate=function(){this.drawCanvas(this.props)},j.drawCanvas=function(O){var M=this.canvasRef.current,P=M.getContext("2d"),D=O.value;if(D){var S=D.length;if(S){var B=D[0].length,T=Math.round(M.width/S),U=Math.round(M.height/B);P.save(),P.scale(T,U);for(var W=0;W=0)&&(j[O]=m[O]);return j}var o={Alphabetical:function(m,v){return m.name>v.name},"By price":function(m,v){return m.price-v.price}},c=function(){var m=function(z){M(z)},v=function(z){S(z)},j=function(z){U(z)},E=(0,t.useState)(""),O=E[0],M=E[1],P=(0,t.useState)("Alphabetical"),D=P[0],S=P[1],B=(0,t.useState)(!1),T=B[0],U=B[1];return(0,e.jsx)(g.p8,{width:400,height:450,children:(0,e.jsx)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a,{sortOrder:D,descending:T,onSearchText:m,onSortOrder:v,onDescending:j}),(0,e.jsx)(l,{searchText:O,sortOrder:D,descending:T})]})})})},a=function(m){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(v,j){return m.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:m.sortOrder,options:Object.keys(o),width:"100%",lineHeight:"19px",onSelected:function(v){return m.onSortOrder(v)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:m.descending?"arrow-down":"arrow-up",height:"19px",tooltip:m.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m.onDescending(!m.descending)}})})]})})},l=function(m){var v=(0,r.Oc)(),j=v.act,E=v.data,O=E.items,M=(0,i.XZ)(m.searchText,function(S){return S[0]}),P=!1,D=Object.entries(O).map(function(S){var B=Object.entries(S[1]).filter(M).map(function(T){return T[1]}).sort(o[m.sortOrder]);if(B.length!==0)return m.descending&&(B=B.reverse()),P=!0,(0,e.jsx)(f,{title:S[0],items:B},S[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:P?D:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(m){var v=(0,r.Oc)().act,j=m.title,E=m.items,O=u(m,["title","items"]);return(0,e.jsx)(s.Nt,x({open:!0,title:j},O,{children:E.map(function(M){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:M.name}),(0,e.jsx)(s.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return v("purchase",{cat:j,name:M.name,price:M.price,restriction:M.restriction})},children:M.price.toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},M.name)})}))}},43966:function(y,h,n){"use strict";n.r(h),n.d(h,{CharacterDirectory:function(){return x}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=function(a){switch(a){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},x=function(a){var l=function(W){D(W)},f=(0,t.Oc)(),m=f.act,v=f.data,j=v.personalVisibility,E=v.personalTag,O=v.personalErpTag,M=(0,i.useState)(null),P=M[0],D=M[1],S=(0,i.useState)(!1),B=S[0],T=S[1];return(0,e.jsx)(s.p8,{width:640,height:480,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:P&&(0,e.jsx)(u,{overlay:P,onOverlay:l})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){return T(!B)},children:B?"On":"Off"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setVisible",{overwrite_prefs:B})},children:j?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setTag",{overwrite_prefs:B})},children:E})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setErpTag",{overwrite_prefs:B})},children:O})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("editAd",{overwrite_prefs:B})},children:"Edit Ad"})})]})}),(0,e.jsx)(o,{onOverlay:l})]})})})},u=function(a){return(0,e.jsxs)(r.wn,{title:a.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return a.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:a.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:g(a.overlay.tag),children:a.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:a.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:a.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:a.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:a.overlay.flavor_text||"Unset."})})]})},o=function(a){var l=function(U){P(U)},f=function(U){B(U)},m=(0,t.Oc)(),v=m.act,j=m.data,E=j.directory,O=(0,i.useState)("name"),M=O[0],P=O[1],D=(0,i.useState)("name"),S=D[0],B=D[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return v("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(c,{id:"name",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"Name"}),(0,e.jsx)(c,{id:"species",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"Species"}),(0,e.jsx)(c,{id:"tag",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"Vore Tag"}),(0,e.jsx)(c,{id:"erptag",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),E.sort(function(T,U){var W=S?1:-1;return T[M].localeCompare(U[M])*W}).map(function(T,U){return(0,e.jsxs)(r.XI.Row,{backgroundColor:g(T.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:T.name}),(0,e.jsx)(r.XI.Cell,{children:T.species}),(0,e.jsx)(r.XI.Cell,{children:T.tag}),(0,e.jsx)(r.XI.Cell,{children:T.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return a.onOverlay(T)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},U)})]})})},c=function(a){var l=a.id,f=a.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:a.sortId!==l&&"transparent",onClick:function(){a.sortId===l?a.onSortOrder(!a.sortOrder):(a.onSortId(l),a.onSortOrder(!0))},children:[f,a.sortId===l&&(0,e.jsx)(r.In,{name:a.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(y,h,n){"use strict";n.r(h),n.d(h,{CheckboxInput:function(){return c}});var e=n(20462),i=n(61282),t=n(61358),r=n(7081),s=n(21148),g=n(19996),x=n(42103),u=n(5335),o=n(44149),c=function(a){var l=(0,r.Oc)().data,f=l.items,m=f===void 0?[]:f,v=l.min_checked,j=l.max_checked,E=l.message,O=l.timeout,M=l.title,P=(0,t.useState)([]),D=P[0],S=P[1],B=(0,t.useState)(""),T=B[0],U=B[1],W=(0,i.XZ)(T,function($){return $}),z=m.filter(W),k=function($){var Y=D.includes($)?D.filter(function(G){return G!==$}):[].concat(D,[$]);S(Y)};return(0,e.jsxs)(x.p8,{title:M,width:425,height:300,children:[!!O&&(0,e.jsx)(o.Loader,{value:O}),(0,e.jsx)(x.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{info:!0,textAlign:"center",children:[(0,i.jT)(E)," ",v>0&&" (Min: "+v+")",j<50&&" (Max: "+j+")"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(s.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(s.XI,{children:z.map(function($,Y){return(0,e.jsx)(g.Hj,{className:"candystripe",children:(0,e.jsx)(g.nA,{children:(0,e.jsx)(s.$n.Checkbox,{checked:D.includes($),disabled:D.length>=j&&!D.includes($),fluid:!0,onClick:function(){return k($)},children:$})})},Y)})})})}),(0,e.jsxs)(s.BJ,{m:1,mb:0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(s.In,{name:"search",mt:.5})})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{fluid:!0,value:T,onInput:function($,Y){return U(Y)}})})]}),(0,e.jsx)(s.BJ.Item,{mt:.7,children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(u.InputButtons,{input:D})})})]})})]})}},29361:function(y,h,n){"use strict";n.r(h),n.d(h,{ChemDispenserBeaker:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(78924),s=n(58820),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.isBeakerLoaded,l=c.beakerCurrentVolume,f=c.beakerMaxVolume,m=c.beakerContents,v=m===void 0?[]:m;return(0,e.jsx)(t.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.az,{children:[!!a&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[l," / ",f," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!a,onClick:function(){return o("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:a,beakerContents:v,buttons:function(j){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return o("remove",{reagent:j.id,amount:-1})},children:"Isolate"}),s.removeAmounts.map(function(E,O){return(0,e.jsx)(t.$n,{onClick:function(){return o("remove",{reagent:j.id,amount:E})},children:E},O)}),(0,e.jsx)(t.$n,{onClick:function(){return o("remove",{reagent:j.id,amount:j.volume})},children:"ALL"})]})}})})}},64776:function(y,h,n){"use strict";n.r(h),n.d(h,{ChemDispenserChemicals:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){for(var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.chemicals,c=o===void 0?[]:o,a=[],l=0;l<(c.length+1)%3;l++)a.push(!0);return(0,e.jsx)(t.wn,{title:u.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,children:(0,e.jsxs)(t.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[c.map(function(f,m){return(0,e.jsx)(t.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(t.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",onClick:function(){return x("dispense",{reagent:f.id})},children:f.name+" ("+f.volume+")"})},m)}),a.map(function(f,m){return(0,e.jsx)(t.so.Item,{grow:"1",basis:"25%",height:"20px"},m)})]})})}},38908:function(y,h,n){"use strict";n.r(h),n.d(h,{ChemDispenserSettings:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(58820),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.amount;return(0,e.jsx)(t.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:r.dispenseAmounts.map(function(a,l){return(0,e.jsx)(t.$n,{textAlign:"center",selected:c===a,m:"0",onClick:function(){return u("amount",{amount:a})},children:a+"u"},l)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:c,minValue:1,maxValue:120,onDrag:function(a,l){return u("amount",{amount:l})}})})]})})}},58820:function(y,h,n){"use strict";n.r(h),n.d(h,{dispenseAmounts:function(){return e},removeAmounts:function(){return i}});var e=[5,10,20,30,40,60],i=[1,5,10]},66119:function(y,h,n){"use strict";n.r(h),n.d(h,{ChemDispenser:function(){return g}});var e=n(20462),i=n(42103),t=n(29361),r=n(64776),s=n(38908),g=function(x){return(0,e.jsx)(i.p8,{width:390,height:655,children:(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(s.ChemDispenserSettings,{}),(0,e.jsx)(r.ChemDispenserChemicals,{}),(0,e.jsx)(t.ChemDispenserBeaker,{})]})})}},9136:function(y,h,n){"use strict";n.r(h)},16028:function(y,h,n){"use strict";n.r(h),n.d(h,{analyzeModalBodyOverride:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=s.args.analysis;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:u.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o.name}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:(o.desc||"").length>0?o.desc:"N/A"}),o.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood type",children:o.blood_type}),(0,e.jsx)(t.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:o.blood_dna})]}),!u.condi&&(0,e.jsx)(t.$n,{icon:u.printing?"spinner":"print",disabled:u.printing,iconSpin:!!u.printing,ml:"0.5rem",onClick:function(){return x("print",{idx:o.idx,beaker:s.args.beaker})},children:"Print"})]})})})}},88737:function(y,h,n){"use strict";n.r(h),n.d(h,{ChemMasterBeaker:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(78924),s=n(86471),g=n(16793),x=function(u){var o=(0,i.Oc)().act,c=u.beaker,a=u.beakerReagents,l=u.bufferNonEmpty,f=l?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!c,onClick:function(){return o("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return o("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:f,children:c?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:a,buttons:function(m,v){return(0,e.jsxs)(t.az,{mb:v0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:l,buttons:function(f,m){return(0,e.jsxs)(t.az,{mb:m0}),(0,e.jsx)(x.ChemMasterBuffer,{mode:O,bufferReagents:E}),(0,e.jsx)(u.ChemMasterProduction,{isCondiment:l,bufferNonEmpty:E.length>0,loaded_pill_bottle:M,loaded_pill_bottle_name:P||"",loaded_pill_bottle_contents_len:D||0,loaded_pill_bottle_storage_slots:S||0,pillsprite:B,bottlesprite:T})]})]})};(0,r.modalRegisterBodyOverride)("analyze",s.analyzeModalBodyOverride)},25453:function(y,h,n){"use strict";n.r(h)},42918:function(y,h,n){"use strict";n.r(h),n.d(h,{ClawMachine:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.wintick,a=o.instructions,l=o.gameStatus,f=o.winscreen,m;return l==="CLAWMACHINE_NEW"?m=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),a,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("newgame")},children:"Start"})]}):l==="CLAWMACHINE_END"?m=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),f,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("return")},children:"Close"})]}):l==="CLAWMACHINE_ON"&&(m=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:c,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),a,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("pointless")},children:"Up"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("pointless")},children:"Left"}),(0,e.jsx)(t.$n,{onClick:function(){return u("pointless")},children:"Right"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("pointless")},children:"Down"})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:m})})}},76914:function(y,h,n){"use strict";n.r(h),n.d(h,{Cleanbot:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.open,l=o.locked,f=o.version,m=o.blood,v=o.vocal,j=o.wet_floors,E=o.spray_blood,O=o.rgbpanel,M=o.red_switch,P=o.green_switch,D=o.blue_switch;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Station Cleaner "+f,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return u("start")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:a?"bad":"good",children:a?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood",children:(0,e.jsx)(t.$n,{fluid:!0,icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return u("blood")},children:m?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return u("vocal")},children:v?"On":"Off"})})]})})||null,!l&&a&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:O&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{fontSize:5.39,icon:M?"toggle-on":"toggle-off",backgroundColor:M?"red":"maroon",onClick:function(){return u("red_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:P?"toggle-on":"toggle-off",backgroundColor:P?"green":"darkgreen",onClick:function(){return u("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:D?"toggle-on":"toggle-off",backgroundColor:D?"blue":"darkblue",onClick:function(){return u("blue_switch")}})]})||(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.$n,{fluid:!0,selected:j,onClick:function(){return u("wet_floors")},icon:"screwdriver",children:j?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.$n,{fluid:!0,color:"brown",selected:E,onClick:function(){return u("spray_blood")},icon:"screwdriver",children:E?"Yes":"No"})})]})})})||null]})})}},90307:function(y,h,n){"use strict";n.r(h),n.d(h,{viewRecordModalBodyOverride:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(79500),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.disk,a=o.podready,l=g.args,f=l.activerecord,m=l.realname,v=l.health,j=l.unidentity,E=l.strucenzymes,O=v.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+m,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:m}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:O.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:O[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:O[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:O[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:O[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(t.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:j}),(0,e.jsx)(t.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!c,icon:"arrow-circle-down",onClick:function(){return u("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return u("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return u("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return u("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!a,icon:"user-plus",onClick:function(){return u("clone",{ref:f})},children:"Clone"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return u("del_rec")},children:"Delete"})]})]})})}},57981:function(y,h,n){"use strict";n.r(h),n.d(h,{CloningConsoleNavigation:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:o===1,icon:"home",onClick:function(){return x("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:o===2,icon:"folder",onClick:function(){return x("menu",{num:2})},children:"Records"})]})}},16981:function(y,h,n){"use strict";n.r(h),n.d(h,{CloningConsoleStatus:function(){return g},CloningConsoleTemp:function(){return s}});var e=n(20462),i=n(7081),t=n(21148);function r(){return r=Object.assign||function(x){for(var u=1;u=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:S.biomass>=150?"circle":"circle-o"}),"\xA0",S.biomass]}),T]},B)}):(0,e.jsx)(s.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},x=function(u){var o=(0,r.Oc)(),c=o.act,a=o.data,l=a.records;return l.length?(0,e.jsx)(s.az,{mt:"0.5rem",children:l.map(function(f,m){return(0,e.jsx)(s.$n,{icon:"user",mb:"0.5rem",onClick:function(){return c("view_rec",{ref:f.record})},children:f.realname},m)})}):(0,e.jsx)(s.so,{height:"100%",children:(0,e.jsxs)(s.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(s.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},57508:function(y,h,n){"use strict";n.r(h),n.d(h,{CloningConsole:function(){return c}});var e=n(20462),i=n(7081),t=n(21148),r=n(86471),s=n(42103),g=n(90307),x=n(57981),u=n(16981),o=n(37651),c=function(a){var l=(0,i.Oc)().data,f=l.menu,m=[];return m[1]=(0,e.jsx)(o.CloningConsoleMain,{}),m[2]=(0,e.jsx)(o.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",g.viewRecordModalBodyOverride),(0,e.jsxs)(s.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(u.CloningConsoleTemp,{}),(0,e.jsx)(u.CloningConsoleStatus,{}),(0,e.jsx)(x.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:m[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]})}},25829:function(y,h,n){"use strict";n.r(h)},61942:function(y,h,n){"use strict";n.r(h),n.d(h,{ColorMateHSV:function(){return g},ColorMateTint:function(){return s}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=function(x){var u=(0,t.Oc)().act;return(0,e.jsx)(r.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return u("choose_color")},children:"Select new color"})},g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.buildhue,l=c.buildsat,f=c.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:a,format:function(m){return(0,i.Mg)(m)},onDrag:function(m,v){return o("set_hue",{buildhue:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:l,format:function(m){return(0,i.Mg)(m,2)},onDrag:function(m,v){return o("set_sat",{buildsat:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:f,format:function(m){return(0,i.Mg)(m,2)},onDrag:function(m,v){return o("set_val",{buildval:v})}})})]})]})}},17852:function(y,h,n){"use strict";n.r(h),n.d(h,{ColorMateMatrix:function(){return s}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=function(g){var x=(0,t.Oc)(),u=x.act,o=x.data,c=o.matrixcolors;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:1,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:4,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:7,value:a})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:2,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:5,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:8,value:a})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:3,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:6,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:9,value:a})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:10,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:11,value:a})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,format:function(a){return(0,i.Mg)(a,2)},onChange:function(a){return u("set_matrix_color",{color:12,value:a})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})}},11145:function(y,h,n){"use strict";n.r(h),n.d(h,{ColorMate:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(61942),g=n(17852),x=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.activemode,f=a.temp,m=a.item,v=[];return v[1]=(0,e.jsx)(s.ColorMateTint,{}),v[2]=(0,e.jsx)(s.ColorMateHSV,{}),v[3]=(0,e.jsx)(g.ColorMateMatrix,{}),(0,e.jsx)(r.p8,{width:980,height:720,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(t.wn,{children:[f?(0,e.jsx)(t.IC,{children:f}):null,m&&Object.keys(m).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+m.sprite,style:{width:"100%",height:"100%"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+m.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:l===1,onClick:function(){return c("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:l===2,onClick:function(){return c("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:l===3,onClick:function(){return c("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",m.name]}),(0,e.jsxs)(t.XI,{mt:1,children:[(0,e.jsxs)(t.XI.Cell,{width:"33%",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"fill",onClick:function(){return c("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return c("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return c("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:v[l]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})}},99390:function(y,h,n){"use strict";n.r(h)},57925:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicationsConsoleAuth:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.authenticated,c=u.is_ai,a=u.esc_status,l=u.esc_callable,f=u.esc_recallable,m;return o?c?m="AI":o===1?m="Command":o===2?m="Site Director":m="ERROR: Report This Bug!":m="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:c&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:o?"sign-out-alt":"id-card",selected:o,onClick:function(){return x("auth")},children:o?"Log Out ("+m+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!a&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:a}),!!l&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!o,onClick:function(){return x("callshuttle")},children:"Call Shuttle"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!o||c,onClick:function(){return x("cancelshuttle")},children:"Recall Shuttle"})})]})})]})}},34116:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicationsConsoleContent:function(){return u}});var e=n(20462),i=n(7081),t=n(21148),r=n(57925),s=n(73612),g=n(72298),x=n(19467),u=function(c){var a=(0,i.Oc)().data,l=a.menu_state,f=[];return f[1]=(0,e.jsx)(s.CommunicationsConsoleMain,{}),f[2]=(0,e.jsx)(x.CommunicationsConsoleStatusDisplay,{}),f[3]=(0,e.jsx)(g.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),f[l]||(0,e.jsx)(o,{menu_state:l})]})},o=function(c){var a=c.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]})}},73612:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicationsConsoleMain:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.messages,c=u.msg_cooldown,a=u.emagged,l=u.cc_cooldown,f=u.str_security_level,m=u.levels,v=u.authmax,j=u.security_level,E=u.security_level_color,O=u.authenticated,M=u.atcsquelch,P=u.boss_short,D="View ("+o.length+")",S="Make Priority Announcement";c>0&&(S+=" ("+c+"s)");var B=a?"Message [UNKNOWN]":"Message "+P;l>0&&(B+=" ("+l+"s)");var T=f,U=m.map(function(W){return(0,e.jsx)(t.$n,{icon:W.icon,disabled:!O,selected:W.id===j,onClick:function(){return x("newalertlevel",{level:W.id})},children:W.name},W.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Announcement",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!v||c>0,onClick:function(){return x("announce")},children:S})}),!!a&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!v||l>0,onClick:function(){return x("MessageSyndicate")},children:B}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!v,onClick:function(){return x("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!v||l>0,onClick:function(){return x("MessageCentCom")},children:B})})]})}),(0,e.jsx)(t.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Alert",color:E,children:T}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:U}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!O,onClick:function(){return x("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!O,onClick:function(){return x("messagelist")},children:D})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!O,selected:M,onClick:function(){return x("toggleatc")},children:M?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})}},72298:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicationsConsoleMessage:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.message_current,c=u.message_deletion_allowed,a=u.authenticated,l=u.messages;if(o)return(0,e.jsx)(t.wn,{title:o.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!a,onClick:function(){return x("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:o.contents})});var f=l.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!a,onClick:function(){return x("messagelist",{msgid:m.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!a||!c,onClick:function(){return x("delmessage",{msgid:m.id})},children:"Delete"})]},m.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:l.length&&f||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})}},19467:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicationsConsoleStatusDisplay:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.stat_display,c=u.authenticated,a=o.presets.map(function(l){return(0,e.jsx)(t.$n,{selected:l.name===o.type,disabled:!c,onClick:function(){return x("setstat",{statdisp:l.name})},children:l.label},l.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!c,onClick:function(){return x("setmsg1")},children:o.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!c,onClick:function(){return x("setmsg2")},children:o.line_2})})]})})}},59421:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicationsConsole:function(){return r}});var e=n(20462),i=n(42103),t=n(34116),r=function(s){return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},52994:function(y,h,n){"use strict";n.r(h)},59546:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorContactTab:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(74293),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:a.length&&(0,e.jsx)(r.XI,{children:a.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,i.jT)(l.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){o("copy",{copy:l.address}),o("switch_tab",{switch_tab:s.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){o("dial",{dial:l.address}),o("copy",{copy:l.address}),o("switch_tab",{switch_tab:s.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){o("copy",{copy:l.address}),o("copy_name",{copy_name:l.name}),o("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"Msg"})]})]})]},l.address)})})||(0,e.jsx)(r.az,{children:"No devices detected on your local NTNet region."})})}},28215:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorFooter:function(){return u},CommunicatorHeader:function(){return x},TemplateError:function(){return g},VideoComm:function(){return o}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(74293),g=function(c){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",c.currentTab,", but there was no template defined!"]})},x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.time,v=f.connectionStatus,j=f.owner,E=f.occupation;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{color:"average",children:m}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:v===1?"good":"bad",name:v===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,i.jT)(j)}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,i.jT)(E)})]})})},u=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.flashlight,v=c.videoSetting,j=c.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:v===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return l("switch_tab",{switch_tab:s.HOMETAB})}})}),(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:m,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return l("Light")}})}),v===2&&(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return j(1)}})})]})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.mapRef,v=c.videoSetting,j=c.setVideoSetting;return v===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:m,type:"map"}}),(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return j(1)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})]}):v===1?(0,e.jsxs)(r.az,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(r.wn,{p:0,m:0,children:(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return j(2)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return j(0)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:m,type:"map"}})]}):null}},46873:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorHomeTab:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map(function(a){return(0,e.jsxs)(t.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(t.$n,{style:{borderRadius:"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return u("switch_tab",{switch_tab:a.number})},children:(0,e.jsx)(t.In,{spin:s(a.module),color:s(a.module)?"bad":null,name:a.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:a.module})]},a.number)})})},s=function(g){var x=(0,i.Oc)().data,u=x.voice_mobs,o=x.communicating,c=x.requestsReceived,a=x.invitesSent,l=x.video_comm;return!!(g==="Phone"&&(u.length||o.length||c.length||a.length||l))}},51445:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorMessageSubTab:function(){return s}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=o.clipboardMode,m=o.onClipboardMode,v=l.targetAddress,j=l.targetAddressName,E=l.imList;return f?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:x("Conversation with ",(0,i.jT)(j),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return m(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:E.map(function(O,M){return(O.to_address===v||O.address===v)&&(0,e.jsxs)(r.az,{className:g(O,v)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[g(O,v)?"You":"Them",": ",O.im]},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("message",{message:v})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:x("Conversation with ",(0,i.jT)(j),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return m(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:E.map(function(O,M,P){return(O.to_address===v||O.address===v)&&(0,e.jsx)(r.az,{textAlign:g(O,v)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:u(O,v,M-1,P),inline:!0,children:(0,i.jT)(O.im)})},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("message",{message:v})},children:"Message"})]})},g=function(o,c){return o.address!==c},x=function(o,c,a){return(o+c).length>a?c.length>a?c.slice(0,a)+"...":c:o+c},u=function(o,c,a,l){if(a<0||a>l.length)return g(o,c)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var f=g(o,c),m=g(l[a],c);return f&&m?"TinderMessage_Subsequent_Sent":!f&&!m?"TinderMessage_Subsequent_Received":f?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorMessageTab:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(74293),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:a.length&&(0,e.jsx)(r.XI,{children:a.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,i.jT)(l.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){o("copy",{copy:l.address}),o("copy_name",{copy_name:l.name}),o("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"View Conversation"})})]})]},l.address)})})||(0,e.jsxs)(r.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return o("switch_tab",{switch_tab:s.CONTTAB})},children:"Contacts"})]})})}},28953:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorNewsTab:function(){return s}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=function(g){var x=(0,t.Oc)(),u=x.act,o=x.data,c=o.feeds,a=o.target_feed,l=o.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||a&&(0,e.jsx)(r.wn,{title:(0,i.jT)(a.name)+" by "+(0,i.jT)(a.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return u("newsfeed",{newsfeed:null})},children:"Back"}),children:a.messages.map(function(f){return(0,e.jsxs)(r.wn,{children:["- ",(0,i.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+f.img}),(0,i.jT)(f.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",f.message_type," by"," ",(0,i.jT)(f.author)," - ",f.time_stamp,"]"]})]},f.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:l.map(function(f){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,i.jT)(f.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return u("newsfeed",{newsfeed:f.index})},children:"Go to"})]}),"- ",(0,i.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",f.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",f.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:f.author})," ","- ",f.time_stamp,"]"]})]},f.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return u("newsfeed",{newsfeed:f.index})},children:f.name},f.index)})})]})})}},47106:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorNoteTab:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.note;return(0,e.jsx)(t.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("edit")},children:"Edit Notes"}),children:(0,e.jsx)(t.wn,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:o})})}},10674:function(y,h,n){"use strict";n.r(h),n.d(h,{CommunicatorPhoneTab:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(74293),g=function(a){for(var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.selfie_mode,j=m.targetAddress,E=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],O=E.map(function(D){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return f("add_hex",{add_hex:D})},children:D},D)}),M=[],P=0;Pa?"average":u>l?"bad":"good"}},74293:function(y,h,n){"use strict";n.r(h),n.d(h,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return o},MESSSUBTAB:function(){return s},MESSTAB:function(){return r},NEWSTAB:function(){return g},NOTETAB:function(){return x},PHONTAB:function(){return i},SETTTAB:function(){return c},WTHRTAB:function(){return u},notFound:function(){return l},tabs:function(){return a}});var e=1,i=2,t=3,r=4,s=40,g=5,x=6,u=7,o=8,c=9,a=[e,i,t,r,s,g,x,u,o,c];function l(f){return a.includes(f)}},42320:function(y,h,n){"use strict";n.r(h),n.d(h,{Communicator:function(){return O}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=n(58044),x=n(59546),u=n(28215),o=n(46873),c=n(51445),a=n(26217),l=n(28953),f=n(47106),m=n(10674),v=n(4435),j=n(81450),E=n(74293),O=function(){var M=function(oe){G(oe)},P=(0,t.Oc)(),D=P.act,S=P.data,B=S.currentTab,T=S.video_comm,U=[],W=(0,i.useState)(0),z=W[0],k=W[1],$=(0,i.useState)(!1),Y=$[0],G=$[1];return U[E.tabs[0]]=(0,e.jsx)(o.CommunicatorHomeTab,{}),U[E.tabs[1]]=(0,e.jsx)(m.CommunicatorPhoneTab,{}),U[E.tabs[2]]=(0,e.jsx)(x.CommunicatorContactTab,{}),U[E.tabs[3]]=(0,e.jsx)(a.CommunicatorMessageTab,{}),U[E.tabs[4]]=(0,e.jsx)(c.CommunicatorMessageSubTab,{clipboardMode:Y,onClipboardMode:M}),U[E.tabs[5]]=(0,e.jsx)(l.CommunicatorNewsTab,{}),U[E.tabs[6]]=(0,e.jsx)(f.CommunicatorNoteTab,{}),U[E.tabs[7]]=(0,e.jsx)(j.CommunicatorWeatherTab,{}),U[E.tabs[8]]=(0,e.jsx)(g.CrewManifestContent,{}),U[E.tabs[9]]=(0,e.jsx)(v.CommunicatorSettingsTab,{}),(0,e.jsx)(s.p8,{width:475,height:700,children:(0,e.jsxs)(s.p8.Content,{children:[T&&(0,e.jsx)(u.VideoComm,{videoSetting:z,setVideoSetting:k}),(!T||z!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:U[B]||(0,E.notFound)(B)&&(0,e.jsx)(u.TemplateError,{currentTab:B})}),(0,e.jsx)(u.CommunicatorFooter,{videoSetting:z,setVideoSetting:k})]})]})})}},96273:function(y,h,n){"use strict";n.r(h)},62311:function(y,h,n){"use strict";n.r(h),n.d(h,{CfStep1:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return g("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return g("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(y,h,n){"use strict";n.r(h),n.d(h,{CfStep2:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.totalprice,c=u.hw_battery,a=u.hw_disk,l=u.hw_netcard,f=u.hw_nanoprint,m=u.hw_card,v=u.devtype,j=u.hw_cpu,E=u.hw_tesla;return(0,e.jsxs)(t.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(t.az,{bold:!0,color:"good",children:[o,"\u20AE"]}),children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(t.m_,{content:"\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===1,onClick:function(){return x("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===2,onClick:function(){return x("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===3,onClick:function(){return x("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(t.m_,{content:"\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:a===1,onClick:function(){return x("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:a===2,onClick:function(){return x("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:a===3,onClick:function(){return x("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(t.m_,{content:"\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===0,onClick:function(){return x("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===1,onClick:function(){return x("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===2,onClick:function(){return x("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(t.m_,{content:"\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===0,onClick:function(){return x("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===1,onClick:function(){return x("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(t.m_,{content:"\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===0,onClick:function(){return x("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===1,onClick:function(){return x("hw_card",{card:"1"})},children:"Standard"})})]}),v!==2&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(t.m_,{content:"\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===1,onClick:function(){return x("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===2,onClick:function(){return x("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(t.m_,{content:"\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===0,onClick:function(){return x("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===1,onClick:function(){return x("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(t.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return x("confirm_order")},children:"Confirm Order"})]})}},3777:function(y,h,n){"use strict";n.r(h),n.d(h,{CfStep3:function(){return t}});var e=n(20462),i=n(21148),t=function(r){var s=r.totalprice;return(0,e.jsxs)(i.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(i.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(i.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(i.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(i.az,{inline:!0,color:"good",children:[s,"\u20AE"]})]})]})}},44430:function(y,h,n){"use strict";n.r(h),n.d(h,{CfStep4:function(){return t}});var e=n(20462),i=n(21148),t=function(r){return(0,e.jsxs)(i.wn,{minHeight:"282px",children:[(0,e.jsx)(i.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(i.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(y,h,n){"use strict";n.r(h),n.d(h,{ComputerFabricator:function(){return o}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(62311),g=n(78820),x=n(3777),u=n(44430),o=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.state,v=f.totalprice,j=[];return j[0]=(0,e.jsx)(s.CfStep1,{}),j[1]=(0,e.jsx)(g.CfStep2,{}),j[2]=(0,e.jsx)(x.CfStep3,{totalprice:v}),j[3]=(0,e.jsx)(u.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),m!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return l("clean_order")},children:"Clear Order"}),j[m]]})})}},75050:function(y,h,n){"use strict";n.r(h)},31681:function(y,h,n){"use strict";n.r(h),n.d(h,{CookingAppliance:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.temperature,a=o.optimalTemp,l=o.temperatureEnough,f=o.efficiency,m=o.containersRemovable,v=o.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:l?"good":"blue",value:c,maxValue:a,children:[(0,e.jsx)(t.zv,{value:c}),"\xB0C / ",a,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:f}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:v.map(function(j,E){return j.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(E+1),children:(0,e.jsx)(t.$n,{onClick:function(){return u("slot",{slot:E+1})},children:"Empty"})},E):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(E+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!m,onClick:function(){return u("slot",{slot:E+1})},children:j.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:j.progressText[0],value:j.progress,maxValue:1,children:j.progressText[1]})})]})},E)})})})]})})}},58044:function(y,h,n){"use strict";n.r(h),n.d(h,{CrewManifest:function(){return x},CrewManifestContent:function(){return u}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(79500),g=n(42103),x=function(){return(0,e.jsx)(g.p8,{width:400,height:600,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(u,{})})})},u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:f.map(function(m){return!!m.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[m.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:m.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),m.elems.map(function(v){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,i.jT)(v.name)}),(0,e.jsx)(r.XI.Cell,{children:v.rank}),(0,e.jsx)(r.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},m.cat)})})}},70117:function(y,h,n){"use strict";n.r(h),n.d(h,{CrewMonitor:function(){return c},CrewMonitorContent:function(){return a}});var e=n(20462),i=n(7402),t=n(15813),r=n(61358),s=n(7081),g=n(21148),x=n(42103),u=function(m){return m.dead?"Deceased":m.stat===1?"Unconscious":"Living"},o=function(m){return m.dead?"red":m.stat===1?"orange":"green"},c=function(){var m=function(B){O(B)},v=function(B){D(B)},j=(0,r.useState)(0),E=j[0],O=j[1],M=(0,r.useState)(1),P=M[0],D=M[1];return(0,e.jsx)(x.p8,{width:800,height:600,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(a,{tabIndex:E,zoom:P,onTabIndex:m,onZoom:v})})})},a=function(m){var v=(0,s.Oc)().data,j=v.crewmembers,E=j===void 0?[]:j,O=(0,t.L)([function(P){return(0,i.Ul)(P,function(D){return D.name})},function(P){return(0,i.Ul)(P,function(D){return D==null?void 0:D.x})},function(P){return(0,i.Ul)(P,function(D){return D==null?void 0:D.y})},function(P){return(0,i.Ul)(P,function(D){return D==null?void 0:D.realZ})}])(E),M=[];return M[0]=(0,e.jsx)(l,{crew:O}),M[1]=(0,e.jsx)(f,{zoom:m.zoom,onZoom:m.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(g.tU,{children:[(0,e.jsxs)(g.tU.Tab,{selected:m.tabIndex===0,onClick:function(){return m.onTabIndex(0)},children:[(0,e.jsx)(g.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(g.tU.Tab,{selected:m.tabIndex===1,onClick:function(){return m.onTabIndex(1)},children:[(0,e.jsx)(g.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(g.az,{m:2,children:M[m.tabIndex]||(0,e.jsx)(g.az,{textColor:"red",children:"ERROR"})})]})},l=function(m){var v=(0,s.Oc)(),j=v.act,E=v.data,O=m.crew,M=E.isAI;return(0,e.jsxs)(g.XI,{children:[(0,e.jsxs)(g.XI.Row,{header:!0,children:[(0,e.jsx)(g.XI.Cell,{children:"Name"}),(0,e.jsx)(g.XI.Cell,{children:"Status"}),(0,e.jsx)(g.XI.Cell,{children:"Location"})]}),O.map(function(P){return(0,e.jsxs)(g.XI.Row,{children:[(0,e.jsxs)(g.XI.Cell,{children:[P.name," (",P.assignment,")"]}),(0,e.jsxs)(g.XI.Cell,{children:[(0,e.jsx)(g.az,{inline:!0,color:o(P),children:u(P)}),P.sensor_type>=2?(0,e.jsxs)(g.az,{inline:!0,children:["(",(0,e.jsx)(g.az,{inline:!0,color:"red",children:P.brute}),"|",(0,e.jsx)(g.az,{inline:!0,color:"orange",children:P.fire}),"|",(0,e.jsx)(g.az,{inline:!0,color:"green",children:P.tox}),"|",(0,e.jsx)(g.az,{inline:!0,color:"blue",children:P.oxy}),")"]}):null]}),(0,e.jsx)(g.XI.Cell,{children:P.sensor_type===3?M?(0,e.jsx)(g.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return j("track",{track:P.ref})},children:P.area+" ("+P.x+", "+P.y+")"}):P.area+" ("+P.x+", "+P.y+", "+P.z+")":"Not Available"})]},P.ref)})]})},f=function(m){var v=(0,s.Oc)(),j=v.config,E=v.data,O=E.zoomScale,M=E.crewmembers;return(0,e.jsx)(g.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(g.tx,{zoomScale:O,onZoom:function(P){return m.onZoom(P)},children:M.filter(function(P){return P.sensor_type===3&&~~P.realZ===~~j.mapZLevel}).map(function(P){return(0,e.jsx)(g.tx.Marker,{x:P.x,y:P.y,zoom:m.zoom,icon:"circle",tooltip:P.name+" ("+P.assignment+")",color:o(P)},P.ref)})})})}},67268:function(y,h,n){"use strict";n.r(h),n.d(h,{CryoStorage:function(){return g},CryoStorageCrew:function(){return x},CryoStorageDefaultError:function(){return o},CryoStorageItems:function(){return u}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=function(c){var a=(0,t.Oc)().data,l=a.real_name,f=a.allow_items,m=(0,i.useState)(0),v=m[0],j=m[1],E=[];return E[0]=(0,e.jsx)(x,{}),E[1]=f?(0,e.jsx)(u,{}):(0,e.jsx)(o,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return j(0)},children:"Crew"}),!!f&&(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return j(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",l,"."]}),E[v]]})})},x=function(c){var a=(0,t.Oc)().data,l=a.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:l.length&&l.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},u=function(c){var a=(0,t.Oc)().data,l=a.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:l.length&&l.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},o=function(c){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(y,h,n){"use strict";n.r(h),n.d(h,{CryoContent:function(){return g}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(17639),g=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.isOperating,f=a.hasOccupant,m=a.occupant,v=a.cellTemperature,j=a.cellTemperatureStatus,E=a.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return c("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:m.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:m.health/m.maxHealth,color:m.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:m.health,format:function(O){return(0,i.Mg)(O)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.statNames[m.stat][0],children:s.statNames[m.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:m.bodyTemperature,format:function(O){return(0,i.Mg)(O)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),s.damageTypes.map(function(O,M){return(0,e.jsx)(r.Ki.Item,{label:O.label,children:(0,e.jsx)(r.z2,{value:m[O.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:m[O.type],format:function(P){return(0,i.Mg)(P)}})})},M)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return c("ejectBeaker")},disabled:!E,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return c(l?"switchOff":"switchOn")},selected:l,children:l?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:j,children:[(0,e.jsx)(r.zv,{value:v})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(x,{})})]})})]})},x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.isBeakerLoaded,f=a.beakerLabel,m=a.beakerVolume;return l?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!m&&"bad",children:m?(0,e.jsx)(r.zv,{value:m,format:function(v){return(0,i.Mg)(v)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(y,h,n){"use strict";n.r(h),n.d(h,{damageTypes:function(){return e},statNames:function(){return i}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],i=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(y,h,n){"use strict";n.r(h),n.d(h,{Cryo:function(){return r}});var e=n(20462),i=n(42103),t=n(41628),r=function(s){return(0,e.jsx)(i.p8,{width:520,height:470,children:(0,e.jsx)(i.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(y,h,n){"use strict";n.r(h)},39699:function(y,h,n){"use strict";n.r(h),n.d(h,{DNAForensics:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.scan_progress,a=o.scanning,l=o.bloodsamp,f=o.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:a,disabled:!l,icon:"power-off",onClick:function(){return u("scanItem")},children:a?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return u("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:c,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:l&&(0,e.jsxs)(t.az,{children:[l,(0,e.jsx)(t.az,{color:"label",children:f})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(y,h,n){"use strict";n.r(h),n.d(h,{DNAModifierBlocks:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){for(var g=function(j){for(var E=function(D){var S=D+1;M.push((0,e.jsx)(t.$n,{selected:o===O&&c===S,mb:"0",onClick:function(){return x(l,{block:O,subblock:S})},children:f[j+D]}))},O=j/a+1,M=[],P=0;PE,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:M})},children:M},P)}),(0,e.jsx)(t.$n,{disabled:E<=0,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:E})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:O||"No label"}),E?(0,e.jsxs)(t.az,{color:"good",children:[E," unit",E===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:4}),(0,e.jsx)("br",{}),"No beaker loaded."]})})}},25475:function(y,h,n){"use strict";n.r(h),n.d(h,{DNAModifierMainBuffers:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(x){var u=(0,i.Oc)().data,o=u.buffers,c=o.map(function(a,l){return(0,e.jsx)(s,{id:l+1,name:"Buffer "+(l+1),buffer:a},l)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:c}),(0,e.jsx)(g,{})]})},s=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=x.id,l=x.name,f=x.buffer,m=c.isInjectorReady,v=l+(f.data?" - "+f.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:v,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f.data,icon:"trash",onClick:function(){return o("bufferOption",{option:"clear",id:a})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!f.data,icon:"pen",onClick:function(){return o("bufferOption",{option:"changeLabel",id:a})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!f.data||!c.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return o("bufferOption",{option:"saveDisk",id:a})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return o("bufferOption",{option:"saveUI",id:a})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return o("bufferOption",{option:"saveUIAndUE",id:a})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return o("bufferOption",{option:"saveSE",id:a})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return o("bufferOption",{option:"loadDisk",id:a})},children:"From Disk"})]}),!!f.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:f.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[f.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!f.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return o("bufferOption",{option:"createInjector",id:a})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return o("bufferOption",{option:"createInjector",id:a,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return o("bufferOption",{option:"transfer",id:a})},children:"Subject"})]})]})]}),!f.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.hasDisk,l=c.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!a||!l.data,icon:"trash",onClick:function(){return o("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!a,icon:"eject",onClick:function(){return o("ejectDisk")},children:"Eject"})]}),children:a?l.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:l.label?l.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:l.owner?l.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[l.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!l.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"No disk inserted."]})})}},76282:function(y,h,n){"use strict";n.r(h),n.d(h,{DNAModifierOccupant:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(22724),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.locked,a=o.hasOccupant,l=o.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!a,selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return u("toggleLock")},children:c?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!a||c,icon:"user-slash",onClick:function(){return u("ejectOccupant")},children:"Eject"})]}),children:a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:l.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.health/l.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[l.stat][0],children:r.stats[l.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),g.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:o.occupant.uniqueEnzymes?o.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})}},22724:function(y,h,n){"use strict";n.r(h),n.d(h,{operations:function(){return i},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],i=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(y,h,n){"use strict";n.r(h),n.d(h,{DNAModifier:function(){return u}});var e=n(20462),i=n(7081),t=n(42103),r=n(86471),s=n(11619),g=n(89100),x=n(76282),u=function(o){var c=(0,i.Oc)().data,a=c.irradiating,l=c.occupant,f=!l.isViableSubject||!l.uniqueIdentity||!l.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),a&&(0,e.jsx)(s.DNAModifierIrradiating,{duration:a}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(x.DNAModifierOccupant,{isDNAInvalid:f}),(0,e.jsx)(g.DNAModifierMain,{isDNAInvalid:f})]})]})}},14512:function(y,h,n){"use strict";n.r(h)},80603:function(y,h,n){"use strict";n.r(h),n.d(h,{DestinationTagger:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.currTag,a=o.taggerLevels,l=a===void 0?[]:a,f=o.taggerLocs,m=l.filter(function(v,j){return j===l.findIndex(function(E){return v.location===E.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:m.map(function(v){return(0,e.jsx)(t.wn,{title:v.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:f.map(function(j){return v.z===j.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:c===j.tag?"check-square-o":"square-o",selected:c===j.tag,onClick:function(){return u("set_tag",{tag:j.tag})},children:j.tag})},j.tag)})})},v.location)})})})})}},17956:function(y,h,n){"use strict";n.r(h),n.d(h,{DiseaseSplicer:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})})})},g=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.dish_inserted,f=a.effects,m=f===void 0?[]:f,v=a.info,j=a.growth,E=a.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return c("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:j})})}),v?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:v})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:m.length>0?m.map(function(O){return(0,e.jsxs)(t.az,{color:"label",children:["(",O.stage,") ",O.name," ",O.badness>1?"Dangerous!":null]},O.stage)}):(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!E||!E.length?"None":E.sort().join(", ")}),(0,e.jsxs)(t.wn,{title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),!!m.length&&m.map(function(O){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return c("grab",{grab:O.reference})},children:O.stage},O.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return c("affected_species")},children:"Species"})]})]})]})},x=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.buffer,f=a.species_buffer,m=a.info;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:l?(0,e.jsxs)(t.az,{children:[l.name," (",l.stage,")"]}):f?(0,e.jsx)(t.az,{children:f}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!l&&!f,onClick:function(){return c("disk")},children:"Save To Disk"}),l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>1,onClick:function(){return c("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>2,onClick:function(){return c("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>3,onClick:function(){return c("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>4,onClick:function(){return c("splice",{splice:4})},children:"Splice #4"})]}):f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!f||!!m,onClick:function(){return c("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(y,h,n){"use strict";n.r(h),n.d(h,{DishIncubator:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(41242),s=n(42103),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.on,l=c.system_in_use,f=c.food_supply,m=c.radiation,v=c.growth,j=c.toxins,E=c.chemicals_inserted,O=c.can_breed_virus,M=c.chemical_volume,P=c.max_chemical_volume,D=c.dish_inserted,S=c.blood_already_infected,B=c.virus,T=c.analysed,U=c.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:a,onClick:function(){return o("power")},children:a?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return o("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!l,onClick:function(){return o("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:f})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:m>=50?"bad":v>=25?"average":"good",value:m,children:[(0,r.qQ)(m*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:j})})]})]}),(0,e.jsx)(t.wn,{title:O?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!E,onClick:function(){return o("ejectchem")},children:"Eject "+(O?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!O,onClick:function(){return o("virus")},children:"Breed Virus"})]}),children:E&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:P,value:M,children:[M,"/",P]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:O?"good":"average",children:[D?O?"Suitable":"No hemolytic samples detected":"N/A",S?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!D,onClick:function(){return o("ejectdish")},children:"Eject Dish"}),children:D?B?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:v})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:T?U:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(y,h,n){"use strict";n.r(h),n.d(h,{DisposalBin:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.mode,a=o.pressure,l=o.isAI,f=o.panel_open,m=o.flushing,v,j;return c===2?(v="good",j="Ready"):c<=0?(v="bad",j="N/A"):c===1?(v="average",j="Pressurizing"):(v="average",j="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:v,children:j}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:a,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:l||f,selected:m?null:!0,onClick:function(){return u("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l||f,selected:m?!0:null,onClick:function(){return u("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:c===-1,selected:c?null:!0,onClick:function(){return u("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c===-1,selected:c?!0:null,onClick:function(){return u("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:l,onClick:function(){return u("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(y,h,n){"use strict";n.r(h),n.d(h,{DroneConsole:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.drones,a=o.areas,l=o.selected_area,f=o.fabricator,m=o.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!f,selected:m,icon:"power-off",onClick:function(){return u("toggle_fab")},children:m?"Enabled":"Disabled"}),children:f?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return u("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{autoScroll:!1,options:a?a.sort():[],selected:l,width:"100%",onSelected:function(v){return u("set_dcall_area",{area:v})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return u("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:c&&c.length?(0,e.jsx)(t.Ki,{children:c.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return u("resync",{ref:v.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return u("shutdown",{ref:v.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:v.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[v.charge," / ",v.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:v.active?"Yes":"No"})]})},v.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(y,h,n){"use strict";n.r(h),n.d(h,{AirlockConsoleAdvanced:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=function(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"},u=(0,i.Oc)(),o=u.act,c=u.data,a=c.external_pressure,l=c.chamber_pressure,f=c.internal_pressure,m=c.processing,v={external_pressure:a,internal_pressure:f,chamber_pressure:l},j=[{minValue:0,maxValue:202,value:a,label:"External Pressure",textValue:a+" kPa",color:x},{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:x},{minValue:0,maxValue:202,value:f,label:"Internal Pressure",textValue:f+" kPa",color:x}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:j}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:v}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return o("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return o("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return o("abort")},children:"Abort"})})]})]})}},34012:function(y,h,n){"use strict";n.r(h),n.d(h,{AirlockConsoleDocking:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.interior_status,a=o.exterior_status,l=o.chamber_pressure,f=o.airlock_disabled,m=o.override_enabled,v=o.docking_status,j=o.processing,E={interior_status:c,exterior_status:a},O=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:f||m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:m?"red":"",onClick:function(){return u("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:v,override_enabled:m})}),(0,e.jsx)(r.StatusDisplay,{bars:O}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:E}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!j,icon:"ban",color:"bad",onClick:function(){return u("abort")},children:"Abort"})})]})]})}},29935:function(y,h,n){"use strict";n.r(h),n.d(h,{AirlockConsolePhoron:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.chamber_pressure,a=o.chamber_phoron,l=o.interior_status,f=o.exterior_status,m=o.processing,v={interior_status:l,exterior_status:f},j=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}},{minValue:0,maxValue:100,value:a,label:"Chamber Phoron",textValue:a+" mol",color:function(E){return E>5?"bad":E>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:j}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:v}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return u("abort")},children:"Abort"})})]})]})}},32965:function(y,h,n){"use strict";n.r(h),n.d(h,{AirlockConsoleSimple:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.exterior_status,a=o.chamber_pressure,l=o.processing,f=o.interior_status,m={interior_status:f,exterior_status:c},v=[{minValue:0,maxValue:202,value:a,label:"Chamber Pressure",textValue:a+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:v}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:m}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!l,icon:"ban",color:"bad",onClick:function(){return u("abort")},children:"Abort"})})]})]})}},74390:function(y,h,n){"use strict";n.r(h),n.d(h,{DockingConsoleMulti:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)().data,u=x.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:u,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:x.airlocks.length?(0,e.jsx)(t.Ki,{children:x.airlocks.map(function(o){return(0,e.jsx)(t.Ki.Item,{color:o.override_enabled?"bad":"good",label:o.name,children:o.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},o.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})}},75355:function(y,h,n){"use strict";n.r(h),n.d(h,{DockingConsoleSimple:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.exterior_status,a=o.override_enabled,l=o.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!a,onClick:function(){return u("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:a?"red":"",onClick:function(){return u("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:l,override_enabled:a})}),(0,e.jsx)(r.DockingStatus,{state:c.state})]})})}},77506:function(y,h,n){"use strict";n.r(h),n.d(h,{DoorAccessConsole:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.interior_status,c=u.exterior_status,a=o.state==="open"||c.state==="closed",l=c.state==="open"||o.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:a?"arrow-left":"exclamation-triangle",onClick:function(){x(a?"cycle_ext_door":"force_ext")},children:a?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:l?"arrow-right":"exclamation-triangle",onClick:function(){x(l?"cycle_int_door":"force_int")},children:l?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:c.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:o.state==="closed"?"Locked":"Open"})]})})}},64894:function(y,h,n){"use strict";n.r(h),n.d(h,{DockStatus:function(){return c},DockingStatus:function(){return x},EscapePodControls:function(){return o},EscapePodStatus:function(){return g},StandardControls:function(){return s},StatusDisplay:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(a){var l=a.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:l.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.label,children:(0,e.jsx)(t.z2,{color:f.color(f.value),minValue:f.minValue,maxValue:f.maxValue,value:f.value,children:f.textValue})},f.label)})})})},s=function(a){var l=(0,i.Oc)().act,f=a.status_range,m=a.pressure_range,v=a.airlock_disabled,j=f||{},E=j.interior_status,O=j.exterior_status,M=m||{},P=M.external_pressure,D=M.internal_pressure,S=M.chamber_pressure,B=!0;E&&E.state==="open"?B=!1:P&&S&&(B=!(Math.abs(P-S)>5));var T=!0;return O&&O.state==="open"?T=!1:D&&S&&(T=!(Math.abs(D-S)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-left",onClick:function(){return l("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-right",onClick:function(){return l("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:v,color:B?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:v,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_int")},children:"Force Interior Door"})]})]})},g=function(a){var l=a.exterior_status,f=a.docking_status,m=a.armed,v={docked:(0,e.jsx)(u,{armed:m}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:v[f]}),(0,e.jsx)(x,{state:l.state})]})})},x=function(a){var l=a.state,f=[];return f.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),f.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),f.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:f[l]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},u=function(a){var l=a.armed;return l?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},o=function(a){var l=(0,i.Oc)().act,f=a.docking_status,m=a.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!m,icon:"exclamation-triangle",color:f!=="docked"?"bad":"",onClick:function(){return l("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:m,color:f!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return l("toggle_override")},children:"Override"})]})},c=function(a){var l=a.docking_status,f=a.override_enabled,m={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},v=m[l];return f&&(v=(0,e.jsxs)(t.az,{color:"bad",children:[l.toUpperCase(),"-OVERRIDE ENABLED"]})),v}},83783:function(y,h,n){"use strict";n.r(h),n.d(h,{EscapePodBerthConsole:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)().data,u=x.exterior_status,o=x.docking_status,c=x.armed,a=x.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:u,docking_status:o,armed:c}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:o,override_enabled:a})})]})}},13802:function(y,h,n){"use strict";n.r(h),n.d(h,{EscapePodConsole:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(64894),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.exterior_status,a=o.docking_status,l=o.override_enabled,f=o.armed,m=o.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:c,docking_status:a,armed:f}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:l}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:f,color:f?"bad":"average",onClick:function(){return u("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!m,color:"bad",onClick:function(){return u("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(y,h,n){"use strict";n.r(h),n.d(h,{EmbeddedController:function(){return f}});var e=n(20462),i=n(7081),t=n(42103),r=n(27133),s=n(34012),g=n(29935),x=n(32965),u=n(74390),o=n(75355),c=n(77506),a=n(83783),l=n(13802),f=function(m){var v=(0,i.Oc)().data,j=v.internalTemplateName,E={};E.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),E.AirlockConsoleSimple=(0,e.jsx)(x.AirlockConsoleSimple,{}),E.AirlockConsolePhoron=(0,e.jsx)(g.AirlockConsolePhoron,{}),E.AirlockConsoleDocking=(0,e.jsx)(s.AirlockConsoleDocking,{}),E.DockingConsoleSimple=(0,e.jsx)(o.DockingConsoleSimple,{}),E.DockingConsoleMulti=(0,e.jsx)(u.DockingConsoleMulti,{}),E.DoorAccessConsole=(0,e.jsx)(c.DoorAccessConsole,{}),E.EscapePodConsole=(0,e.jsx)(l.EscapePodConsole,{}),E.EscapePodBerthConsole=(0,e.jsx)(a.EscapePodBerthConsole,{});var O=E[j];if(!O)throw Error("Unable to find Component for template name: "+j);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:O})})}},2076:function(y,h,n){"use strict";n.r(h)},26356:function(y,h,n){"use strict";n.r(h),n.d(h,{DisplayDetails:function(){return u},EntityNarrate:function(){return g},EntitySelection:function(){return x},ModeSelector:function(){return o},NarrationInput:function(){return c}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(u,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(o,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(c,{})})]})})})]})})})})},x=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.selection_mode,j=m.multi_id_selection,E=m.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:v,onClick:function(){return f("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:E.map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:j.includes(O),onClick:function(){return f("select_entity",{id_selected:O})},children:(0,e.jsx)(r.az,{inline:!0,children:O})},O)})})})})})},u=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.selection_mode,j=m.number_mob_selected,E=m.selected_id,O=m.selected_name,M=m.selected_type;return v?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",j]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",E," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",O," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",M," ",(0,e.jsx)("br",{})]})},o=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.privacy_select,j=m.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_privacy")},selected:v,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(v?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:v?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_narration")},selected:j,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(j?"Click here to emote visibly.":"Click here to talk audiably."),children:j?"Currently: Emoting":"Currently: Talking"})})]})},c=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=(0,i.useState)(""),j=v[0],E=v[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return f("narrate",{message:j})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(O,M){return E(M)},value:j||""})})})})}},63183:function(y,h,n){"use strict";n.r(h),n.d(h,{ExonetNode:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.allowPDAs,l=o.allowCommunicators,f=o.allowNewscasters,m=o.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return u("toggle_power")},children:"Power "+(c?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:a,onClick:function(){return u("toggle_PDA_port")},children:a?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return u("toggle_communicator_port")},children:l?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return u("toggle_newscaster_port")},children:f?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[m.map(function(v,j){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:j%2,children:v},j)}),!m||m.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},2858:function(y,h,n){"use strict";n.r(h),n.d(h,{MaterialAmount:function(){return a},Materials:function(){return c}});var e=n(20462),i=n(4089),t=n(65380),r=n(61282),s=n(7081),g=n(21148),x=n(41242),u=n(51890),o=function(l){var f=(0,s.Oc)().act,m=l.material,v=m.name,j=m.removable,E=m.sheets,O=(0,s.QY)("remove_mats_"+v,1),M=O[0],P=O[1];return M>1&&E0});return M.length===0?(0,e.jsxs)(g.az,{textAlign:"center",children:[(0,e.jsx)(g.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(g.so,{wrap:"wrap",children:M.map(function(P){return(0,e.jsxs)(g.so.Item,{width:"80px",children:[(0,e.jsx)(a,{name:P.name,amount:P.amount,formatsi:!0}),!j&&(0,e.jsx)(g.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(o,{material:P})})]},P.name)||""})})},a=function(l){var f=l.name,m=l.amount,v=l.formatsi,j=l.formatmoney,E=l.color,O=l.style,M="0";return m<1&&m>0?M=(0,i.Mg)(m,2):v?M=(0,x.QL)(m,0):j?M=(0,x.up)(m):M=m.toString(),(0,e.jsxs)(g.so,{direction:"column",align:"center",children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.m_,{position:"bottom",content:(0,r.Sn)(f),children:(0,e.jsx)(g.az,{className:(0,t.Ly)(["sheetmaterials32x32",u.MATERIAL_KEYS[f]]),position:"relative",style:O})})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.az,{textColor:E,style:{textAlign:"center"},children:M})})]})}},61763:function(y,h,n){"use strict";n.r(h),n.d(h,{PartLists:function(){return o},PartSets:function(){return u}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(51890),g=n(42878),x=n(2858),u=function(a){var l=(0,t.Oc)().data,f=l.partSets,m=f===void 0?[]:f,v=l.buildableParts,j=v===void 0?[]:v,E=(0,t.QY)("part_tab",m.length?j[0]:""),O=E[0],M=E[1];return(0,e.jsx)(r.tU,{vertical:!0,children:m.map(function(P){return!!j[P]&&(0,e.jsx)(r.tU.Tab,{selected:P===O,onClick:function(){return M(P)},children:P},P)})})},o=function(a){var l=(0,t.Oc)().data,f=l.partSets,m=f===void 0?[]:f,v=l.buildableParts,j=v===void 0?[]:v,E=a.queueMaterials,O=a.materials,M=(0,t.QY)("part_tab",(0,g.getFirstValidPartSet)(m,j)),P=M[0],D=M[1],S=(0,t.QY)("search_text",""),B=S[0],T=S[1];if(!P||!j[P]){var U=(0,g.getFirstValidPartSet)(m,j);if(U)D(U);else return}var W={Parts:[]},z=[];return B?(0,g.searchFilter)(B,j).forEach(function(k){k.format=(0,g.partCondFormat)(O,E,k),z.push(k)}):(W={Parts:[]},j[P].forEach(function(k){if(k.format=(0,g.partCondFormat)(O,E,k),!k.subCategory){W.Parts.push(k);return}k.subCategory in W||(W[k.subCategory]=[]),W[k.subCategory].push(k)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{mr:1,children:(0,e.jsx)(r.In,{name:"search"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:B,onInput:function(k,$){return T($)}})})]})}),!!B&&(0,e.jsx)(c,{name:"Search Results",parts:z,forceShow:!0,placeholder:"No matching results..."})||Object.keys(W).map(function(k){return(0,e.jsx)(c,{name:k,parts:W[k]},k)})]})},c=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.buildingPart,j=a.parts,E=a.name,O=a.forceShow,M=a.placeholder,P=(0,t.QY)("display_mats",!1),D=P[0];return(!!j.length||O)&&(0,e.jsxs)(r.wn,{title:E,buttons:(0,e.jsx)(r.$n,{disabled:!j.length,color:"good",icon:"plus-circle",onClick:function(){return f("add_queue_set",{part_list:j.map(function(S){return S.id})})},children:"Queue All"}),children:[!j.length&&M,j.map(function(S){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{disabled:!!v||S.format.textColor===s.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return f("build_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return f("add_queue_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:s.COLOR_KEYS[S.format.textColor],children:S.name})}),(0,e.jsx)(r.so.Item,{grow:1}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"question-circle",color:"transparent",height:"20px",tooltip:"Build Time: "+S.printTime+"s. "+(S.desc||""),tooltipPosition:"left"})})]}),D&&(0,e.jsx)(r.so,{mb:2,children:Object.keys(S.cost).map(function(B){return(0,e.jsx)(r.so.Item,{width:"50px",color:s.COLOR_KEYS[S.format[B].color],children:(0,e.jsx)(x.MaterialAmount,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:B,amount:S.cost[B]})},B)})})]},S.name)})]})}},46372:function(y,h,n){"use strict";n.r(h),n.d(h,{Queue:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(41242),s=n(51890),g=n(2858),x=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.isProcessingQueue,j=m.queue,E=j===void 0?[]:j,O=a.queueMaterials,M=a.missingMaterials,P=a.textColors,D=!E||!E.length;return(0,e.jsxs)(t.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.so.Item,{height:0,grow:1,children:(0,e.jsx)(t.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:D,color:"bad",icon:"minus-circle",onClick:function(){return f("clear_queue")},children:"Clear Queue"}),!!v&&(0,e.jsx)(t.$n,{disabled:D,icon:"stop",onClick:function(){return f("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:D,icon:"play",onClick:function(){return f("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(o,{textColors:P})})]})})}),!D&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(u,{queueMaterials:O,missingMaterials:M})})})]})},u=function(a){var l=a.queueMaterials,f=a.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(l).map(function(m){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(g.MaterialAmount,{formatmoney:!0,name:m,amount:l[m]}),!!f[m]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(f[m])})]},m)})})},o=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=a.textColors,j=m.queue,E=j===void 0?[]:j;return!E||!E.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):E.map(function(O,M){return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(t.so.Item,{basis:"content",children:(0,e.jsx)(t.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return f("del_queue_part",{index:M+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:s.COLOR_KEYS[v[M]],children:O.name})})]})},O.name)})},c=function(a){var l=(0,i.Oc)().data,f=l.buildingPart,m=l.storedPart;if(m)return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:m}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(f){var v=f.name,j=f.duration,E=f.printTime,O=Math.ceil(j/10);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:E,value:j,children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:O>=0&&O+"s"||"Dispensing..."})]})})})}}},51890:function(y,h,n){"use strict";n.r(h),n.d(h,{COLOR_AVERAGE:function(){return t},COLOR_BAD:function(){return r},COLOR_KEYS:function(){return g},COLOR_NONE:function(){return i},MATERIAL_KEYS:function(){return e}});var e={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},i=0,t=1,r=2,s,g=(s={},s[i]=void 0,s[t]="average",s[r]="bad",s)},42878:function(y,h,n){"use strict";n.r(h),n.d(h,{getFirstValidPartSet:function(){return l},materialArrayToObj:function(){return x},partBuildColor:function(){return u},partCondFormat:function(){return o},queueCondFormat:function(){return c},searchFilter:function(){return a}});var e=n(7402),i=n(61282),t=n(51890);function r(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,j=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[j++]}}}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 x(f){var m={};return f.forEach(function(v){m[v.name]=v.amount}),m}function u(f,m,v){return f>v?{color:t.COLOR_BAD,deficit:f-v}:m>v?{color:t.COLOR_AVERAGE,deficit:f}:f+m>v?{color:t.COLOR_AVERAGE,deficit:f+m-v}:{color:t.COLOR_NONE,deficit:0}}function o(f,m,v){var j={textColor:t.COLOR_NONE};return Object.keys(v.cost).forEach(function(E){j[E]=u(v.cost[E],m[E],f[E]),j[E].color>j.textColor&&(j.textColor=j[E].color)}),j}function c(f,m){var v={},j={},E={},O={};return m&&m.forEach(function(M,P){O[P]=t.COLOR_NONE,Object.keys(M.cost).forEach(function(D){v[D]=v[D]||0,E[D]=E[D]||0,j[D]=u(M.cost[D],v[D],f[D]),j[D].color!==t.COLOR_NONE?O[P]=100?l="Running":!c&&a>0&&(l="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:c?"This will disable gravity!":"This will enable gravity!",onClick:function(){return u("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:c?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",l]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[a,"%"]})]})})})})}},88941:function(y,h,n){"use strict";n.r(h),n.d(h,{GuestPass:function(){return g}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.area,l=c.giver,f=c.giveName,m=c.reason,v=c.duration,j=c.mode,E=c.log,O=c.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:j===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return o("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return o("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:E.length&&E.map(function(M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}},M)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+O,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return o("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return o("id")},children:l||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return o("giv_name")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return o("reason")},children:m})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return o("duration")},children:v})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return o("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,i.Ul)(a,function(M){return M.area_name}).map(function(M){return(0,e.jsx)(r.$n.Checkbox,{checked:M.on,onClick:function(){return o("access",{access:M.area})},children:M.area_name},M.area)})})]})})})}},52149:function(y,h,n){"use strict";n.r(h),n.d(h,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return o("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return o("toggle_active",{gyro:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!l.active&&"yellow",value:l.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(f,m){return o("set_rate",{gyro:l.ref,rate:m})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!l.active&&"yellow",value:l.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(f,m){return o("set_str",{gyro:l.ref,str:m})}})})]},l.name)})]})})}},44791:function(y,h,n){"use strict";n.r(h),n.d(h,{Holodeck:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.supportedPrograms,a=o.restrictedPrograms,l=o.currentProgram,f=o.isSilicon,m=o.safetyDisabled,v=o.emagged,j=o.gravity,E=c;return m&&(E=E.concat(a)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:E.map(function(O){return(0,e.jsx)(t.$n,{color:a.indexOf(O)!==-1?"bad":null,icon:"eye",selected:l===O,fluid:!0,onClick:function(){return u("program",{program:O})},children:O},O)})}),!!f&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:v,color:m?"good":"bad",onClick:function(){return u("AIoverride")},children:[!!v&&"Error, unable to control. ",m?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:m?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:j,onClick:function(){return u("gravity")},children:j?"Enabled":"Disabled"})})]})})]})})}},83860:function(y,h,n){"use strict";n.r(h),n.d(h,{ICAssembly:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(o){var c=(0,t.Oc)().data,a=c.total_parts,l=c.max_components,f=c.total_complexity,m=c.max_complexity,v=c.battery_charge,j=c.battery_max,E=c.net_power,O=c.unremovable_circuits,M=c.removable_circuits;return(0,e.jsx)(g.p8,{width:600,height:380,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:a/l,maxValue:1,children:a+" / "+l+" ("+(0,i.Mg)(a/l*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/m,maxValue:1,children:f+" / "+m+" ("+(0,i.Mg)(f/m*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:v/j,maxValue:1,children:v+" / "+j+" ("+(0,i.Mg)(v/j*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:E===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:E,format:function(P){return"-"+(0,s.d5)(Math.abs(P))+"/s"}})})]})}),O.length&&(0,e.jsx)(u,{title:"Built-in Components",circuits:O})||null,M.length&&(0,e.jsx)(u,{title:"Removable Components",circuits:M})||null]})})},u=function(o){var c=(0,t.Oc)().act,a=o.title,l=o.circuits;return(0,e.jsx)(r.wn,{title:a,children:(0,e.jsx)(r.Ki,{children:l.map(function(f){return(0,e.jsxs)(r.Ki.Item,{label:f.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("open_circuit",{ref:f.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("rename_circuit",{ref:f.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("scan_circuit",{ref:f.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("remove_circuit",{ref:f.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("bottom_circuit",{ref:f.ref})},children:"Move to Bottom"})]},f.ref)})})})}},23343:function(y,h,n){"use strict";n.r(h),n.d(h,{ICCircuit:function(){return x}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.desc,v=f.displayed_name,j=f.complexity,E=f.power_draw_idle,O=f.power_draw_per_use,M=f.extended_desc,P=f.inputs,D=f.outputs,S=f.activators;return(0,e.jsx)(g.p8,{width:600,height:400,title:v,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return l("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return l("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return l("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),E&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(E)})||null,O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(O)})||null]}),M]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[P.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(u,{list:P})})})||null,(0,e.jsx)(r.so.Item,{basis:P.length&&D.length?"33%":P.length||D.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:v,mb:1,children:(0,e.jsx)(r.az,{children:m})})}),D.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(u,{list:D})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:S.map(function(B){return(0,e.jsxs)(r.Ki.Item,{label:B.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("pin_name",{pin:B.ref})},children:B.pulse_out?"":""}),(0,e.jsx)(o,{pin:B})]},B.name)})})]})]})})},u=function(c){var a=(0,t.Oc)().act,l=c.list;return l.map(function(f){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return a("pin_name",{pin:f.ref})},children:[(0,i.jT)(f.type),": ",f.name]}),(0,e.jsx)(r.$n,{onClick:function(){return a("pin_data",{pin:f.ref})},children:f.data}),(0,e.jsx)(o,{pin:f})]},f.ref)})},o=function(c){var a=(0,t.Oc)().act,l=c.pin;return l.linked.map(function(f){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return a("pin_unwire",{pin:l.ref,link:f.ref})},children:f.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return a("examine",{ref:f.holder_ref})},children:f.holder_name})]},f.ref)})}},87134:function(y,h,n){"use strict";n.r(h),n.d(h,{ICDetailer:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.detail_color,l=c.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(l).map(function(f,m){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.Sn)(f),tooltipPosition:m%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return o("change_color",{color:f})},style:l[f]===a?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:l[f]},f)})})})})}},92306:function(y,h,n){"use strict";n.r(h),n.d(h,{ICPrinter:function(){return g}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=n(42103),g=function(o){var c=(0,t.Oc)().data,a=c.metal,l=c.max_metal,f=c.metal_per_sheet,m=c.upgraded,v=c.can_clone;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:a,maxValue:l,children:[a/f," / ",l/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:v?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(u,{})]})})};function x(o,c){return!(!o.can_build||o.cost>c.metal)}var u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.categories,m=(0,t.QY)("categoryTarget",""),v=m[0],j=m[1],E=(0,i.pb)(f,function(O){return O.name===v})[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,i.Ul)(f,function(O){return O.name}).map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:v===O.name,onClick:function(){return j(O.name)},children:O.name},O.name)})})}),(0,e.jsx)(r.BJ.Item,{children:E?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,i.Ul)(E.items,function(O){return O.name}).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:O.name,labelColor:O.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!x(O,l),icon:"print",onClick:function(){return a("build",{build:O.path})},children:"Print"}),children:O.desc},O.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(y,h,n){"use strict";n.r(h),n.d(h,{IDCard:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(10921),g=function(x){var u=(0,i.Oc)().data,o=u.registered_name,c=u.sex,a=u.species,l=u.age,f=u.assignment,m=u.fingerprint_hash,v=u.blood_type,j=u.dna_hash,E=u.photo_front,O=[{name:"Sex",val:c},{name:"Species",val:a},{name:"Age",val:l},{name:"Blood Type",val:v},{name:"Fingerprint",val:m},{name:"DNA Hash",val:j}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:E&&(0,e.jsx)(t._V,{src:E.substring(1,E.length-1),style:{width:"300px",marginLeft:"-94px"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:O.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:M.val},M.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:o})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{color:"",rank:f})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})})]})]})})})}},39841:function(y,h,n){"use strict";n.r(h),n.d(h,{IdentificationComputer:function(){return o},IdentificationComputerAccessModification:function(){return l},IdentificationComputerContent:function(){return c},IdentificationComputerPrinting:function(){return a},IdentificationComputerRegions:function(){return f}});var e=n(20462),i=n(7402),t=n(61282),r=n(61358),s=n(7081),g=n(21148),x=n(42103),u=n(58044),o=function(){return(0,e.jsx)(x.p8,{width:600,height:700,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(c,{})})})},c=function(m){var v=(0,s.Oc)(),j=v.act,E=v.data,O=m.ntos,M=E.mode,P=E.has_modify,D=E.printing,S=E.have_id_slot,B=E.have_printer,T=(0,e.jsx)(l,{ntos:O});return O&&!S?T=(0,e.jsx)(u.CrewManifestContent,{}):D?T=(0,e.jsx)(a,{}):M===1&&(T=(0,e.jsx)(u.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(g.tU,{children:[(!O||!!S)&&(0,e.jsx)(g.tU.Tab,{icon:"home",selected:M===0,onClick:function(){return j("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(g.tU.Tab,{icon:"home",selected:M===1,onClick:function(){return j("mode",{mode_target:1})},children:"Crew Manifest"}),!O||!!B&&(0,e.jsx)(g.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(M||P)&&j("print")},color:!M&&!P?"transparent":"",children:"Print"})]}),T]})},a=function(m){return(0,e.jsx)(g.wn,{title:"Printing",children:"Please wait..."})},l=function(m){var v=(0,s.Oc)(),j=v.act,E=v.data,O=m.ntos,M=E.station_name,P=E.target_name,D=E.target_owner,S=D===void 0?"":D,B=E.scan_name,T=E.authenticated,U=E.has_modify,W=E.account_number,z=W===void 0?"":W,k=E.centcom_access,$=E.all_centcom_access,Y=E.id_rank,G=E.departments;return(0,e.jsxs)(g.wn,{title:"Access Modification",children:[!T&&(0,e.jsx)(g.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(g.$n,{icon:"eject",fluid:!0,onClick:function(){return j("modify")},children:P})}),!O&&(0,e.jsx)(g.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(g.$n,{icon:"eject",fluid:!0,onClick:function(){return j("scan")},children:B})})]}),!!T&&!!U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.wn,{title:"Details",children:(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(g.pd,{value:S,fluid:!0,onInput:function(ne,oe){return j("reg",{reg:oe})}})}),(0,e.jsx)(g.Ki.Item,{label:"Account Number",children:(0,e.jsx)(g.pd,{value:z,fluid:!0,onInput:function(ne,oe){return j("account",{account:oe})}})}),(0,e.jsx)(g.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(g.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+S+", confirm?",onClick:function(){return j("terminate")},children:"Dismiss "+S})})]})}),(0,e.jsx)(g.wn,{title:"Assignment",children:(0,e.jsxs)(g.XI,{children:[G.map(function(ne){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(g.XI.Row,{children:[(0,e.jsx)(g.XI.Cell,{header:!0,verticalAlign:"middle",children:ne.department_name}),(0,e.jsx)(g.XI.Cell,{children:ne.jobs.map(function(oe){return(0,e.jsx)(g.$n,{selected:oe.job===Y,onClick:function(){return j("assign",{assign_target:oe.job})},children:(0,t.jT)(oe.display_name)},oe.job)})})]}),(0,e.jsx)(g.az,{mt:-1,children:"\xA0"})," "]},ne.department_name)}),(0,e.jsxs)(g.XI.Row,{children:[(0,e.jsx)(g.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(g.XI.Cell,{children:(0,e.jsx)(g.$n,{onClick:function(){return j("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!k&&(0,e.jsx)(g.wn,{title:"Central Command",children:$.map(function(ne){return(0,e.jsx)(g.az,{children:(0,e.jsx)(g.$n,{fluid:!0,selected:ne.allowed,onClick:function(){return j("access",{access_target:ne.ref,allowed:ne.allowed})},children:(0,t.jT)(ne.desc)})},ne.ref)})})||(0,e.jsx)(g.wn,{title:M,children:(0,e.jsx)(f,{actName:"access"})})]})]})},f=function(m){var v=(0,s.Oc)(),j=v.act,E=v.data,O=m.actName,M=E.regions;return(0,e.jsx)(g.so,{wrap:"wrap",spacing:1,children:M&&(0,i.Ul)(M,function(P){return P.name}).map(function(P){return(0,e.jsx)(g.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(g.wn,{title:P.name,height:"100%",children:(0,i.Ul)(P.accesses,function(D){return D.desc}).map(function(D){return(0,e.jsx)(g.az,{children:(0,e.jsx)(g.$n,{fluid:!0,selected:D.allowed,onClick:function(){return j(O,{access_target:D.ref,allowed:D.allowed})},children:(0,t.jT)(D.desc)})},D.ref)})})},P.name)})})}},15450:function(y,h,n){"use strict";n.r(h),n.d(h,{InventoryPanel:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.slots,a=o.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:c&&c.length&&c.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:l.item?"hand-paper":"gift",onClick:function(){return u(l.act)},children:l.item||"Nothing"})},l.name)})})}),a&&(0,e.jsx)(t.wn,{title:"Actions",children:a&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return u("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(y,h,n){"use strict";n.r(h),n.d(h,{InventoryPanelHuman:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.slots,a=o.specialSlots,l=o.internalsValid,f=o.sensors,m=o.handcuffed,v=o.handcuffedParams,j=o.legcuffed,E=o.legcuffedParams,O=o.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[c&&c.length&&c.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return u(M.act,M.params)},children:M.item||"Nothing"})},M.name)}),(0,e.jsx)(t.Ki.Divider,{}),a&&a.length&&a.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return u(M.act,M.params)},children:M.item||"Nothing"})},M.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return u("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return u("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return u("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),l&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return u("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return u("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,m&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return u("targetSlot",v)},children:"Handcuffed"})||null,j&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return u("targetSlot",E)},children:"Legcuffed"})||null,O&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return u("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(y,h,n){"use strict";n.r(h),n.d(h,{IsolationCentrifuge:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.busy,a=o.antibodies,l=o.pathogens,f=o.is_antibody_sample,m=o.sample_inserted,v=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return m&&(!a&&!l?v=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):v=(0,e.jsxs)(e.Fragment,{children:[a?(0,e.jsx)(t.wn,{title:"Antibodies",children:a}):"",l.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:l.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.name,children:j.spread_type},j.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:f?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!a&&!l.length,onClick:function(){return u("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!m,onClick:function(){return u("sample")},children:"Eject Vial"})})]}),v]}),a&&!f||l.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[a&&!f?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return u("antibody")},children:a})}):"",l.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:l.map(function(j){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return u("isolate",{isolate:j.reference})},children:j.name},j.name)})}):""]})}):""]})})})}},40939:function(y,h,n){"use strict";n.r(h),n.d(h,{JanitorCart:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.mybag,f=a.mybucket,m=a.mymop,v=a.myspray,j=a.myreplacer,E=a.signs;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:l||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:l?"grey":"transparent",style:{border:l?void 0:"2px solid grey"},onClick:function(){return c("bag")},children:(0,e.jsx)(x,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Bucket Slot",tooltipPosition:"bottom",color:f?"grey":"transparent",style:{border:f?void 0:"2px solid grey"},onClick:function(){return c("bucket")},children:(0,e.jsx)(x,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?void 0:"2px solid grey"},onClick:function(){return c("mop")},children:(0,e.jsx)(x,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Spray Slot",tooltipPosition:"top-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return c("spray")},children:(0,e.jsx)(x,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Light Replacer Slot",tooltipPosition:"top",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return c("replacer")},children:(0,e.jsx)(x,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Signs Slot",tooltipPosition:"top-start",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return c("sign")},children:(0,e.jsx)(x,{iconkey:"signs"})})]})})},g={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},x=function(u){var o=(0,i.Oc)().data,c=u.iconkey,a=o.icons;return c in a?(0,e.jsx)(t._V,{src:a[c].substr(1,a[c].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:g[c]})}},25244:function(y,h,n){"use strict";n.r(h),n.d(h,{Jukebox:function(){return o}});var e=n(20462),i=n(4089),t=n(61282),r=n(61358),s=n(7081),g=n(21148),x=n(41242),u=n(42103),o=function(c){var a=function(){qe&&ce("Admin"),Fe(!qe)},l=(0,s.Oc)(),f=l.act,m=l.data,v=m.playing,j=m.loop_mode,E=m.volume,O=m.current_track_ref,M=m.current_track,P=m.current_genre,D=m.percent,S=m.tracks,B=m.admin,T=S.length&&S.reduce(function(Pe,He){var gn=He.genre||"Uncategorized";return Pe[gn]||(Pe[gn]=[]),Pe[gn].push(He),Pe},{}),U=v&&(P||"Uncategorized"),W=(0,r.useState)("Unknown"),z=W[0],k=W[1],$=(0,r.useState)(""),Y=$[0],G=$[1],ne=(0,r.useState)(0),oe=ne[0],q=ne[1],Z=(0,r.useState)("Unknown"),X=Z[0],H=Z[1],V=(0,r.useState)("Admin"),J=V[0],ce=V[1],le=(0,r.useState)(!1),fe=le[0],he=le[1],_e=(0,r.useState)(!1),xe=_e[0],je=_e[1],Re=(0,r.useState)(!1),qe=Re[0],Fe=Re[1];return(0,e.jsx)(u.p8,{width:450,height:600,children:(0,e.jsxs)(u.p8.Content,{scrollable:!0,children:[(0,e.jsx)(g.wn,{title:"Currently Playing",children:(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Title",children:v&&M&&(0,e.jsxs)(g.az,{children:[M.title," by ",M.artist||"Unkown"]})||(0,e.jsx)(g.az,{children:"Stopped"})}),(0,e.jsxs)(g.Ki.Item,{label:"Controls",children:[(0,e.jsx)(g.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(g.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(g.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(g.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:j===1,children:"Next"}),(0,e.jsx)(g.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:j===2,children:"Shuffle"}),(0,e.jsx)(g.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:j===3,children:"Repeat"}),(0,e.jsx)(g.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:j===4,children:"Once"})]}),(0,e.jsx)(g.Ki.Item,{label:"Progress",children:(0,e.jsx)(g.z2,{value:D,maxValue:1,color:"good"})}),(0,e.jsx)(g.Ki.Item,{label:"Volume",children:(0,e.jsx)(g.Ap,{minValue:0,step:1,value:E*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(Pe){return(0,i.Mg)(Pe,1)+"%"},onChange:function(Pe,He){return f("volume",{val:(0,i.LI)(He/100,2)})}})})]})}),(0,e.jsx)(g.wn,{title:"Available Tracks",children:S.length&&Object.keys(T).sort().map(function(Pe){return(0,t.ZH)(Pe)!=="Admin"&&(0,e.jsx)(g.Nt,{title:Pe,color:U===Pe?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:T[Pe].map(function(He){return(0,e.jsx)(g.$n,{fluid:!0,icon:"play",selected:O===He.ref,onClick:function(){return f("change_track",{change_track:He.ref})},children:He.title},He.ref)})})},Pe)})||(0,e.jsx)(g.az,{color:"bad",children:"Error: No songs loaded."})}),B&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.wn,{title:"Admin Tracks",children:S.length&&Object.keys(T).sort().map(function(Pe){return(0,t.ZH)(Pe)==="Admin"&&(0,e.jsx)(g.Nt,{title:Pe,color:U===Pe?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:T[Pe].map(function(He){return(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{grow:1,children:(0,e.jsx)(g.$n,{fluid:!0,icon:"play",selected:O===He.ref,onClick:function(){return f("change_track",{change_track:He.ref})},children:He.title},He.ref)}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n.Confirm,{icon:"trash",onClick:function(){return f("remove_new_track",{ref:He.ref})}})})]},He.ref)})})},Pe)})||(0,e.jsx)(g.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(g.wn,{title:"Admin Options",children:(0,e.jsxs)(g.Nt,{title:"Add Track",children:[(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Title",children:(0,e.jsx)(g.pd,{width:"100%",value:z,onChange:function(Pe,He){return k(He)}})}),(0,e.jsx)(g.Ki.Item,{label:"URL",children:(0,e.jsx)(g.pd,{width:"100%",value:Y,onChange:function(Pe,He){return G(He)}})}),(0,e.jsx)(g.Ki.Item,{label:"Playtime",children:(0,e.jsx)(g.Q7,{step:1,value:oe,minValue:0,maxValue:3600,onChange:function(Pe){return q(Pe)},format:function(Pe){return(0,x.fU)((0,i.LI)(Pe*10,0))}})}),(0,e.jsx)(g.Ki.Item,{label:"Artist",children:(0,e.jsx)(g.pd,{width:"100%",value:X,onChange:function(Pe,He){return H(He)}})}),(0,e.jsx)(g.Ki.Item,{label:"Genre",children:(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{grow:1,children:qe?(0,e.jsx)(g.pd,{width:"100%",value:J,onChange:function(Pe,He){return ce(He)}}):(0,e.jsx)(g.az,{children:J})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n.Checkbox,{icon:qe?"lock-open":"lock",color:qe?"good":"bad",onClick:function(){return a()}})})]})}),(0,e.jsx)(g.Ki.Item,{label:"Secret",children:(0,e.jsx)(g.$n.Checkbox,{checked:fe,onClick:function(){return he(!fe)}})}),(0,e.jsx)(g.Ki.Item,{label:"Lobby",children:(0,e.jsx)(g.$n.Checkbox,{checked:xe,onClick:function(){return je(!xe)}})})]}),(0,e.jsx)(g.cG,{}),(0,e.jsx)(g.$n,{disabled:!(z&&Y&&oe&&X&&J),onClick:function(){return f("add_new_track",{title:z,url:Y,duration:oe,artist:X,genre:J,secret:fe,lobby:xe})},children:"Add new Track"})]})})]})]})})}},7881:function(y,h,n){"use strict";n.r(h),n.d(h,{LawManager:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103);function s(){return s=Object.assign||function(l){for(var f=1;f=0)&&(m[j]=l[j]);return m}var x=function(l){var f=(0,i.Oc)().data,m=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[m?(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",m]}):"",(0,e.jsx)(u,{})]})})},u=function(l){var f=(0,i.QY)("lawsTabIndex",0),m=f[0],v=f[1],j=[];return j[0]=(0,e.jsx)(o,{}),j[1]=(0,e.jsx)(a,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m===0,onClick:function(){return v(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:m===1,onClick:function(){return v(1)},children:"Law Sets"})]}),j[m]]})},o=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.ion_law_nr,E=v.ion_law,O=v.zeroth_law,M=v.inherent_law,P=v.supplied_law,D=v.supplied_law_position,S=v.zeroth_laws,B=v.has_zeroth_laws,T=v.ion_laws,U=v.has_ion_laws,W=v.inherent_laws,z=v.has_inherent_laws,k=v.supplied_laws,$=v.has_supplied_laws,Y=v.isAI,G=v.isMalf,ne=v.isAdmin,oe=v.channel,q=v.channels,Z=S.map(function(X){return X.zero=!0,X}).concat(W);return(0,e.jsxs)(t.wn,{children:[U?(0,e.jsx)(c,{laws:T,title:j+" Laws:",mt:-2}):"",B||z?(0,e.jsx)(c,{laws:Z,title:"Inherent Laws",mt:-2}):"",$?(0,e.jsx)(c,{laws:k,title:"Supplied Laws",mt:-2}):"",(0,e.jsx)(t.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:q.map(function(X){return(0,e.jsx)(t.$n,{selected:oe===X.channel,onClick:function(){return m("law_channel",{law_channel:X.channel})},children:X.channel},X.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_laws")},children:"State Laws"})}),Y?(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return m("notify_laws")},children:"Notify"})}):""]})}),G?(0,e.jsx)(t.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),ne&&!B?(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:O,fluid:!0,onChange:function(X,H){return m("change_zeroth_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:E,fluid:!0,onChange:function(X,H){return m("change_ion_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Inherent"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:M,fluid:!0,onChange:function(X,H){return m("change_inherent_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:P,fluid:!0,onChange:function(X,H){return m("change_supplied_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("change_supplied_law_position")},children:D})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_supplied_law")},children:"Add"})})]})]})}):""]})},c=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.isMalf,E=v.isAdmin,O=l.laws,M=l.title,P=l.noButtons,D=g(l,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,s({title:M},D,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),P?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"}),j&&!P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Delete"})]}):""]}),O.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[S.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:S.zero?"bad":void 0,children:S.law}),P?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:S.state,onClick:function(){return m("state_law",{ref:S.ref,state_law:!S.state})},children:S.state?"Yes":"No"})}),j&&!P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!E,icon:"pen",onClick:function(){return m("edit_law",{edit_law:S.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!E,color:"bad",icon:"trash",onClick:function(){return m("delete_law",{delete_law:S.ref})},children:"Delete"})})]}):""]},S.index)})]})}))},a=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.isMalf,E=v.law_sets,O=v.ion_law_nr;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),E.length?E.map(function(M){return(0,e.jsxs)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!j,icon:"sync",onClick:function(){return m("transfer_laws",{transfer_laws:M.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_law_set",{state_law_set:M.ref})},children:"State Laws"})]}),children:[M.laws.has_ion_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.ion_laws,title:O+" Laws:"}):"",M.laws.has_zeroth_laws||M.laws.has_inherent_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.zeroth_laws.concat(M.laws.inherent_laws),title:M.header}):"",M.laws.has_supplied_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.supplied_laws,title:"Supplied Laws"}):""]},M.name)}):""]})}},94979:function(y,h,n){"use strict";n.r(h),n.d(h,{ListInputModal:function(){return o}});var e=n(20462),i=n(61358),t=n(6544),r=n(7081),s=n(21148),g=n(42103),x=n(5335),u=n(44149),o=function(l){var f=(0,r.Oc)(),m=f.act,v=f.data,j=v.items,E=j===void 0?[]:j,O=v.message,M=O===void 0?"":O,P=v.init_value,D=v.large_buttons,S=v.timeout,B=v.title,T=(0,i.useState)(E.indexOf(P)),U=T[0],W=T[1],z=(0,i.useState)(E.length>9),k=z[0],$=z[1],Y=(0,i.useState)(""),G=Y[0],ne=Y[1],oe=function(le){var fe=J.length-1;if(le===t.R)if(U===null||U===fe){var he;W(0),(he=document.getElementById("0"))==null||he.scrollIntoView()}else{var _e;W(U+1),(_e=document.getElementById((U+1).toString()))==null||_e.scrollIntoView()}else if(le===t.gf)if(U===null||U===0){var xe;W(fe),(xe=document.getElementById(fe.toString()))==null||xe.scrollIntoView()}else{var je;W(U-1),(je=document.getElementById((U-1).toString()))==null||je.scrollIntoView()}},q=function(le){le!==U&&W(le)},Z=function(){$(!1),$(!0)},X=function(le){var fe=String.fromCharCode(le),he=E.find(function(je){return je==null?void 0:je.toLowerCase().startsWith(fe==null?void 0:fe.toLowerCase())});if(he){var _e,xe=E.indexOf(he);W(xe),(_e=document.getElementById(xe.toString()))==null||_e.scrollIntoView()}},H=function(le){var fe;le!==G&&(ne(le),W(0),(fe=document.getElementById("0"))==null||fe.scrollIntoView())},V=function(){$(!k),ne("")},J=E.filter(function(le){return le==null?void 0:le.toLowerCase().includes(G.toLowerCase())}),ce=325+Math.ceil(M.length/3)+(D?5:0);return k||setTimeout(function(){var le;return(le=document.getElementById(U.toString()))==null?void 0:le.focus()},1),(0,e.jsxs)(g.p8,{title:B,width:325,height:ce,children:[S&&(0,e.jsx)(u.Loader,{value:S}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(le){var fe=window.event?le.which:le.keyCode;(fe===t.R||fe===t.gf)&&(le.preventDefault(),oe(fe)),fe===t.Ri&&(le.preventDefault(),m("submit",{entry:J[U]})),!k&&fe>=t.W8&&fe<=t.bh&&(le.preventDefault(),X(fe)),fe===t.s6&&(le.preventDefault(),m("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:k?"search":"font",selected:!0,tooltip:k?"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(){return V()}}),className:"ListInput__Section",fill:!0,title:M,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{filteredItems:J,onClick:q,onFocusSearch:Z,searchBarVisible:k,selected:U})}),k&&(0,e.jsx)(a,{filteredItems:J,onSearch:H,searchQuery:G,selected:U}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:J[U]})})]})})})]})},c=function(l){var f=(0,r.Oc)().act,m=l.filteredItems,v=l.onClick,j=l.onFocusSearch,E=l.searchBarVisible,O=l.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),m.map(function(M,P){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return v(P)},onDoubleClick:function(D){D.preventDefault(),f("submit",{entry:m[O]})},onKeyDown:function(D){var S=window.event?D.which:D.keyCode;E&&S>=t.W8&&S<=t.bh&&(D.preventDefault(),j())},selected:P===O,style:{animation:"none",transition:"none"},children:M.replace(/^\w/,function(D){return D.toUpperCase()})},P)})]})},a=function(l){var f=(0,r.Oc)().act,m=l.filteredItems,v=l.onSearch,j=l.searchQuery,E=l.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(O){O.preventDefault(),f("submit",{entry:m[E]})},onInput:function(O,M){return v(M)},placeholder:"Search...",value:j})}},30373:function(y,h,n){"use strict";n.r(h),n.d(h,{LookingGlass:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.supportedPrograms,a=o.currentProgram,l=o.immersion,f=o.gravity,m=Math.min(180+c.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:m,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:c.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:v===a,onClick:function(){return u("program",{program:v})},children:v},v)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:f,onClick:function(){return u("gravity")},children:f?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:l,onClick:function(){return u("immersion")},children:l?"Enabled":"Disabled"})})]})})]})})}},88504:function(y,h,n){"use strict";n.r(h),n.d(h,{MechaControlConsole:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.beacons,l=a===void 0?[]:a,f=c.stored_data,m=f===void 0?[]:f;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[m.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return o("clear_log")}}),children:m.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",v.time,") (",v.year,")"]}),(0,e.jsx)(r.az,{children:(0,i.jT)(v.message)})]},v.time)})})}):"",l.length&&l.map(function(v){return(0,e.jsx)(r.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return o("send_message",{mt:v.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return o("get_log",{mt:v.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return o("shock",{mt:v.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[v.maxHealth*.75,1/0],average:[v.maxHealth*.5,v.maxHealth*.75],bad:[-1/0,v.maxHealth*.5]},value:v.health,maxValue:v.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v.cell&&(0,e.jsx)(r.z2,{ranges:{good:[v.cellMaxCharge*.75,1/0],average:[v.cellMaxCharge*.5,v.cellMaxCharge*.75],bad:[-1/0,v.cellMaxCharge*.5]},value:v.cellCharge,maxValue:v.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[v.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:v.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,i.Sn)(v.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:v.active||"None"}),v.cargoMax?(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[v.cargoMax*.75,1/0],average:[v.cargoMax*.5,v.cargoMax*.75],good:[-1/0,v.cargoMax*.5]},value:v.cargoUsed,maxValue:v.cargoMax})}):""]})},v.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(y,h,n){"use strict";n.r(h),n.d(h,{Medbot:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.open,l=o.beaker,f=o.beaker_total,m=o.beaker_max,v=o.locked,j=o.heal_threshold,E=o.heal_threshold_max,O=o.injection_amount_min,M=o.injection_amount,P=o.injection_amount_max,D=o.use_beaker,S=o.declare_treatment,B=o.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return u("power")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:a?"bad":"good",children:a?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return u("eject")},children:"Eject"}),children:l&&(0,e.jsxs)(t.z2,{value:f,maxValue:m,children:[f," / ",m]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:0,maxValue:E,value:j,onDrag:function(T){return u("adj_threshold",{val:T})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:O,maxValue:P,value:M,onDrag:function(T){return u("adj_inject",{val:T})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:D?"toggle-on":"toggle-off",selected:D,onClick:function(){return u("use_beaker")},children:D?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return u("declaretreatment")},children:S?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){return u("togglevoice")},children:B?"On":"Off"})})]})})||null]})})}},47407:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecordsList:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(c,a){return x("search",{t1:a})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:o.map(function(c,a){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return x("d_rec",{d_rec:c.ref})},children:c.id+": "+c.name},a)})})]})}},43131:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecordsMedbots:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().data,x=g.medbots;return!x||x.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):x.map(function(u,o){return(0,e.jsx)(t.Nt,{open:!0,title:u.name,children:(0,e.jsx)(t.az,{px:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Location",children:[u.area||"Unknown"," (",u.x,", ",u.y,")"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:u.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"good",children:"Online"}),(0,e.jsx)(t.az,{mt:"0.5rem",children:u.use_beaker?"Reservoir: "+u.total_volume+"/"+u.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(t.az,{color:"average",children:"Offline"})})]})})},o)})}},70734:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecordsMaintenance:function(){return g},MedicalRecordsNavigation:function(){return u},MedicalRecordsView:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(72886),s=n(8615),g=function(o){var c=(0,i.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return c("del_all")},children:"Delete All Medical Records"})]})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.medical,m=l.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.MedicalRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:(0,e.jsx)(s.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return a("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return a("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})},children:"Back"})]})]})},u=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:f===2,onClick:function(){return a("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===5,onClick:function(){return a("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===6,onClick:function(){return a("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===3,onClick:function(){return a("screen",{screen:3})},children:[(0,e.jsx)(t.In,{name:"wrench"}),"Record Maintenance"]})]})}},72886:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecordsViewGeneral:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(80724),s=function(g){var x=(0,i.Oc)().data,u=x.general;return!u||!u.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{width:"50%",style:{float:"left"},children:(0,e.jsx)(t.Ki,{children:u.fields.map(function(o,c){return(0,e.jsx)(t.Ki.Item,{label:o.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[o.value,!!o.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(o)}})]})},c)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!u.has_photos&&u.photos.map(function(o,c){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:o.substring(1,o.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",c+1]},c)})})]})}},8615:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecordsViewMedical:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(86471),s=n(80724),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.medical;return!a||!a.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return o("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:a.fields.map(function(l,f){return(0,e.jsx)(t.Ki.Item,{label:l.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[l.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,s.doEdit)(l)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[a.comments&&a.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):a.comments&&a.comments.map(function(l,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:l.header}),(0,e.jsx)("br",{}),l.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return o("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},3748:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecordsViruses:function(){return s}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=function(g){var x=(0,t.Oc)(),u=x.act,o=x.data,c=o.virus;return c&&c.sort(function(a,l){return a.name>l.name?1:-1}),c&&c.map(function(a,l){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return u("vir",{vir:a.D})},children:a.name}),(0,e.jsx)("br",{})]},l)})}},46069:function(y,h,n){"use strict";n.r(h),n.d(h,{severities:function(){return e}});var e={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"}},65456:function(y,h,n){"use strict";n.r(h),n.d(h,{MedicalRecords:function(){return m}});var e=n(20462),i=n(7081),t=n(21148),r=n(86471),s=n(42103),g=n(35069),x=n(97049),u=n(3751),o=n(47407),c=n(43131),a=n(70734),l=n(3748),f=n(4492),m=function(v){var j=(0,i.Oc)().data,E=j.authenticated,O=j.screen;if(!E)return(0,e.jsx)(s.p8,{width:800,height:380,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var M=[];return M[2]=(0,e.jsx)(o.MedicalRecordsList,{}),M[3]=(0,e.jsx)(a.MedicalRecordsMaintenance,{}),M[4]=(0,e.jsx)(a.MedicalRecordsView,{}),M[5]=(0,e.jsx)(l.MedicalRecordsViruses,{}),M[6]=(0,e.jsx)(c.MedicalRecordsMedbots,{}),(0,e.jsxs)(s.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(u.TemporaryNotice,{}),(0,e.jsx)(a.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:O&&M[O]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",f.virusModalBodyOverride)},86097:function(y,h,n){"use strict";n.r(h)},4492:function(y,h,n){"use strict";n.r(h),n.d(h,{virusModalBodyOverride:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:x.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return g("modal_close")}}),children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Spread",children:[x.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:x.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:x.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[x.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:x.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:x.symptoms.map(function(u){return(0,e.jsxs)(t.Ki.Item,{label:u.stage+". "+u.name,children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Strength:"})," ",u.strength,"\xA0",(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",u.aggressiveness]},u.stage)})})})]})})})}},4477:function(y,h,n){"use strict";n.r(h),n.d(h,{MentorTicketPanel:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g={open:"Open",resolved:"Resolved",unknown:"Unknown"},x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.id,f=a.name,m=a.state,v=a.opened_at,j=a.closed_at,E=a.opened_at_date,O=a.closed_at_date,M=a.actions,P=a.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return c("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return c("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:g[m]}),g[m]===g.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:E+" ("+(0,i.Mg)((0,i.LI)(v/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[O+" ("+(0,i.Mg)((0,i.LI)(j/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return c("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(P).map(function(D,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P[D]}},S)})})]})})})})}},26948:function(y,h,n){"use strict";n.r(h),n.d(h,{MessageMonitorContent:function(){return g}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(5871),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.linkedServer,l=(0,i.useState)(0),f=l[0],m=l[1],v=[];return v[0]=(0,e.jsx)(s.MessageMonitorMain,{}),v[1]=(0,e.jsx)(s.MessageMonitorLogs,{logs:a.pda_msgs,pda:!0}),v[2]=(0,e.jsx)(s.MessageMonitorLogs,{logs:a.rc_msgs,rc:!0}),v[3]=(0,e.jsx)(s.MessageMonitorAdmin,{}),v[4]=(0,e.jsx)(s.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:f===0,onClick:function(){return m(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:f===1,onClick:function(){return m(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===2,onClick:function(){return m(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===3,onClick:function(){return m(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:f===4,onClick:function(){return m(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return o("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:v[f]})]})}},9760:function(y,h,n){"use strict";n.r(h),n.d(h,{MessageMonitorHack:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(72859),s=function(g){var x=(0,i.Oc)().data,u=x.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:u?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})}},38860:function(y,h,n){"use strict";n.r(h),n.d(h,{MessageMonitorLogin:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(72859),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(a,l){return u("auth",{key:l})}})]}),!!c&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return u("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(y,h,n){"use strict";n.r(h),n.d(h,{MessageMonitorAdmin:function(){return x},MessageMonitorLogs:function(){return g},MessageMonitorMain:function(){return s},MessageMonitorSpamFilter:function(){return u}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return a("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:f.active,onClick:function(){return a("active")},children:"Server "+(f.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return a("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},g=function(o){var c=(0,t.Oc)().act,a=o.logs,l=o.pda,f=o.rc;return(0,e.jsx)(r.wn,{title:l?"PDA Logs":f?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return c(l?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:a.map(function(m,v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v%2,children:(0,e.jsx)(r.wn,{title:m.sender+" -> "+m.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return c("delete",{id:m.ref,type:f?"rc":"pda"})}}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:m.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:m.id_auth==="Unauthenticated"?"bad":"good",children:!!m.id_auth&&(0,i.jT)(m.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:m.stamp})]}):m.message})},m.ref)})})})},x=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.possibleRecipients,m=l.customsender,v=l.customrecepient,j=l.customjob,E=l.custommessage,O=Object.keys(f);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:m,onChange:function(M,P){return a("set_sender",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:j,onChange:function(M,P){return a("set_sender_job",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{autoScroll:!1,selected:v,options:O,width:"100%",mb:-.7,onSelected:function(M){return a("set_recipient",{val:f[M]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:E,onChange:function(M,P){return a("set_message",{val:P})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return a("send_message")},children:"Send Message"})]})},u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:f.spamFilter.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return a("deltoken",{deltoken:m.index})},children:"Delete"}),children:m.token},m.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("addtoken")},children:"Add New Entry"})]})}},34692:function(y,h,n){"use strict";n.r(h),n.d(h,{MessageMonitor:function(){return o}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(3751),g=n(26948),x=n(9760),u=n(38860),o=function(c){var a=(0,i.Oc)().data,l=a.auth,f=a.linkedServer,m=a.hacking,v=a.emag,j;return m||v?j=(0,e.jsx)(x.MessageMonitorHack,{}):l?f?j=(0,e.jsx)(g.MessageMonitorContent,{}):j=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):j=(0,e.jsx)(u.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),j]})})}},25029:function(y,h,n){"use strict";n.r(h)},41785:function(y,h,n){"use strict";n.r(h),n.d(h,{Microwave:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.config,c=x.data,a=c.broken,l=c.operating,f=c.dirty,m=c.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:a&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||l&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||f&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||m.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return u("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return u("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.amt," ",v.extra]},v.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[o.title," is empty."]})})})})}},10844:function(y,h,n){"use strict";n.r(h),n.d(h,{MiningOreProcessingConsole:function(){return x}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42103),g=n(22588),x=function(l){var f=(0,t.Oc)(),m=f.act,v=f.data,j=v.unclaimedPoints,E=v.power,O=v.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(g.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return m("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:O,onClick:function(){return m("speed_toggle")},children:O?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:E,onClick:function(){return m("power")},children:E?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:j<1,icon:"download",onClick:function(){return m("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:j})})})}),(0,e.jsx)(a,{})]})})},u=["Not Processing","Smelting","Compressing","Alloying"],o=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],c=function(l,f){return o.indexOf(l.ore)===-1||o.indexOf(f.ore)===-1?l.ore-f.ore:o.indexOf(f.ore)-o.indexOf(l.ore)},a=function(l){var f=(0,t.Oc)(),m=f.act,v=f.data,j=v.ores,E=v.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return m("showAllOres")},children:E?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:j.length&&j.sort(c).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:(0,i.Sn)(O.name),buttons:(0,e.jsx)(r.ms,{autoScroll:!1,width:"120px",color:O.processing===0&&"red"||O.processing===1&&"green"||O.processing===2&&"blue"||O.processing===3&&"yellow"||void 0,options:u,selected:u[O.processing],onSelected:function(M){return m("toggleSmelting",{ore:O.ore,set:u.indexOf(M)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:O.amount})})},O.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(y,h,n){"use strict";n.r(h),n.d(h,{MiningStackingConsole:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.stacktypes,l=c.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,step:1,value:l,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(f){return o("change_stack",{amt:f})}})}),(0,e.jsx)(r.Ki.Divider,{}),a.length&&a.sort().map(function(f){return(0,e.jsx)(r.Ki.Item,{label:(0,i.Sn)(f.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return o("release_stack",{stack:f.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:f.amt})},f.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(y,h,n){"use strict";n.r(h),n.d(h,{MiningVendor:function(){return a}});var e=n(20462),i=n(61282),t=n(61358),r=n(7081),s=n(21148),g=n(42103),x=n(22588);function u(){return u=Object.assign||function(v){for(var j=1;j=0)&&(E[M]=v[M]);return E}var c={Alphabetical:function(v,j){return v.name>j.name},"By availability":function(v,j){return-(v.affordable-j.affordable)},"By price":function(v,j){return v.price-j.price}},a=function(v){var j=function($){D($)},E=function($){T($)},O=function($){z($)},M=(0,t.useState)(""),P=M[0],D=M[1],S=(0,t.useState)("Alphabetical"),B=S[0],T=S[1],U=(0,t.useState)(!1),W=U[0],z=U[1];return(0,e.jsx)(g.p8,{width:400,height:450,children:(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(x.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(f,{searchText:P,sortOrder:B,descending:W,onSearchText:j,onSortOrder:E,onDescending:O}),(0,e.jsx)(l,{searchText:P,sortOrder:B,descending:W})]})})},l=function(v){var j=(0,r.Oc)(),E=j.act,O=j.data,M=O.has_id,P=O.id,D=O.items,S=(0,i.XZ)(v.searchText,function(U){return U[0]}),B=!1,T=Object.entries(D).map(function(U,W){var z=Object.entries(U[1]).filter(S).map(function(k){return k[1].affordable=+(M&&P.points>=k[1].price),k[1]}).sort(c[v.sortOrder]);if(z.length!==0)return v.descending&&(z=z.reverse()),B=!0,(0,e.jsx)(m,{title:U[0],items:z},U[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:B?T:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(j,E){return v.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(c),width:"100%",lineHeight:"19px",onSelected:function(j){return v.onSortOrder(j)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},m=function(v){var j=(0,r.Oc)(),E=j.act,O=j.data,M=O.has_id,P=O.id,D=v.title,S=v.items,B=o(v,["title","items"]);return(0,e.jsx)(s.Nt,u({open:!0,title:D},B,{children:S.map(function(T){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:T.name}),(0,e.jsx)(s.$n,{disabled:!M||P.points=450?"Overcharged":r>=250?"Good Charge":"Low Charge":r>=250?"NIF Power Requirement met.":r>=150?"Fluctuations in available power.":"Power failure imminent."}},63300:function(y,h,n){"use strict";n.r(h),n.d(h,{NIF:function(){return u}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=n(7428),x=n(84772),u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.config,f=c.data,m=f.theme,v=f.last_notification,j=(0,i.useState)(!1),E=j[0],O=j[1],M=(0,i.useState)(null),P=M[0],D=M[1];return(0,e.jsx)(s.p8,{theme:m,width:500,height:400,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:v}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return a("dismissNotification")}})})]})})}),!!P&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+P.name+"?",onClick:function(){a("uninstall",{module:P.ref}),D(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return D(null)}})]}),children:[(0,e.jsx)(r.az,{children:P.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:P.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:P.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:P.illegal?"bad":"good",children:["It is ",P.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[P.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",P.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+l.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:E,onClick:function(){return O(!E)}}),children:E&&(0,e.jsx)(x.NIFSettings,{})||(0,e.jsx)(g.NIFMain,{setViewing:D})})]})})}},11045:function(y,h,n){"use strict";n.r(h)},14910:function(y,h,n){"use strict";n.r(h),n.d(h,{NTNetRelay:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(72859),g=function(o){var c=(0,i.Oc)().data,a=c.dos_crashed,l=(0,e.jsx)(x,{});return a&&(l=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:a?700:500,height:a?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l})})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.enabled,m=l.dos_overload,v=l.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return a("toggle")},children:"Relay "+(f?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[m," / ",v," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return a("purge")},children:"Purge network blacklist"})})]})})},u=function(o){var c=(0,i.Oc)().act;return(0,e.jsxs)(s.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return c("restart")},children:"Purge buffered traffic"})})]})}},3949:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterMainMenu:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42501),s=function(g){var x=(0,i.Oc)().data,u=x.securityCaster,o=x.wanted_issue,c=g.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Main Menu",children:[o&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return c(r.NEWSCASTER_SCREEN_PRINT)},children:"Print Newspaper"})]}),!!u&&(0,e.jsx)(t.wn,{title:"Feed Security Functions",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterNewChannel:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42501),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.channel_name,l=c.c_locked,f=c.user,m=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(a),onInput:function(v,j){return o("set_channel_name",{val:j})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:f}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:l?"lock":"lock-open",selected:!l,onClick:function(){return o("set_channel_lock")},children:l?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return o("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterNewStory:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42501),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.channel_name,a=o.user,l=o.title,f=o.msg,m=o.photo_data,v=g.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return u("set_channel_receiving")},children:c||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:l||"(no title yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return u("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:f||"(no message yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return u("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"image",onClick:function(){return u("set_attachment")},children:m?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return u("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterNewWanted:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42501),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.channel_name,l=c.msg,f=c.photo_data,m=c.user,v=c.wanted_issue,j=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return j(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!v&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(a),onInput:function(E,O){return o("set_channel_name",{val:O})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(l),onInput:function(E,O){return o("set_wanted_desc",{val:O})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return o("set_attachment")},children:f?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:m})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return o("submit_wanted")},children:"Submit Wanted Issue"}),!!v&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return o("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return j(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterPrint:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42501),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.total_num,a=o.active_num,l=o.message_num,f=o.paper_remaining,m=g.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",c," Feed channels,"," ",a," of which are active, and a total of ",l," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[f*100," cm\xB3"]})}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return u("print_paper")},children:"Print Paper"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterViewList:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42501),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.channels,l=x.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:a.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:f.admin?"good":f.censored?"bad":"",onClick:function(){o("show_channel",{show_channel:f.ref}),l(s.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,i.jT)(f.name)},f.name)})})}},96935:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterViewSelected:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42501),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.viewing_channel,l=c.securityCaster,f=c.company,m=x.setScreen;return a?(0,e.jsxs)(r.wn,{title:(0,i.jT)(a.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!l&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return o("toggle_d_notice",{ref:a.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:l&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return o("censor_channel_author",{ref:a.ref})},children:(0,i.jT)(a.author)})||(0,e.jsx)(r.az,{children:(0,i.jT)(a.author)})})}),!!a.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",f," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!a.messages.length&&a.messages.map(function(v){return(0,e.jsxs)(r.wn,{children:["- ",(0,i.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+v.img}),!!v.caption&&(0,i.jT)(v.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,i.jT)(v.author)," -"," ",v.timestamp,"]"]}),!!l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return o("censor_channel_story_body",{ref:v.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return o("censor_channel_story_author",{ref:v.ref})},children:"Censor Author"})]})]},v.ref)})||!a.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"}),children:"The channel you were looking for no longer exists."})}},28189:function(y,h,n){"use strict";n.r(h),n.d(h,{NewscasterViewWanted:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(42501),g=function(x){var u=(0,t.Oc)().data,o=u.wanted_issue,c=x.setScreen;return o?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,i.jT)(o.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,i.jT)(o.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,i.jT)(o.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:o.img&&(0,e.jsx)(r._V,{src:o.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:"There are no wanted issues currently outstanding."})}},42501:function(y,h,n){"use strict";n.r(h),n.d(h,{NEWSCASTER_SCREEN_MAIN:function(){return e},NEWSCASTER_SCREEN_NEWCHANNEL:function(){return i},NEWSCASTER_SCREEN_NEWSTORY:function(){return r},NEWSCASTER_SCREEN_NEWWANTED:function(){return g},NEWSCASTER_SCREEN_PRINT:function(){return s},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return u},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return x}});var e="Main Menu",i="New Channel",t="View List",r="New Story",s="Print",g="New Wanted",x="View Wanted",u="View Selected Channel"},93856:function(y,h,n){"use strict";n.r(h),n.d(h,{Newscaster:function(){return v}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(3751),g=n(42501),x=n(3949),u=n(71588),o=n(85578),c=n(92432),a=n(7662),l=n(12512),f=n(96935),m=n(28189),v=function(E){return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{decode:!0}),(0,e.jsx)(j,{})]})})},j=function(E){var O=(0,i.QY)("screen",g.NEWSCASTER_SCREEN_MAIN),M=O[0],P=O[1],D=[];return D[g.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(x.NewscasterMainMenu,{setScreen:P}),D[g.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(u.NewscasterNewChannel,{setScreen:P}),D[g.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(l.NewscasterViewList,{setScreen:P}),D[g.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(o.NewscasterNewStory,{setScreen:P}),D[g.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(a.NewscasterPrint,{setScreen:P}),D[g.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(c.NewscasterNewWanted,{setScreen:P}),D[g.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(m.NewscasterViewWanted,{setScreen:P}),D[g.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(f.NewscasterViewSelected,{setScreen:P}),(0,e.jsx)(t.az,{children:D[M]})}},5537:function(y,h,n){"use strict";n.r(h)},4418:function(y,h,n){"use strict";n.r(h),n.d(h,{NoticeBoard:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:c.length?(0,e.jsx)(t.Ki,{children:c.map(function(a,l){return(0,e.jsxs)(t.Ki.Item,{label:a.name,children:[a.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return u("look",{ref:a.ref})},children:"Look"})||a.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return u("read",{ref:a.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return u("write",{ref:a.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return u("remove",{ref:a.ref})},children:"Remove"})]},l)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosAccessDecrypter:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(39841),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.message,l=c.running,f=c.rate,m=c.factor,v=c.regions,j=function(O){for(var M="";M.lengthm?M+="0":M+="1";return M},E=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:a&&(0,e.jsx)(t.IC,{children:a})||l&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",f," PHash/s",(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return o("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:v.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosArcade:function(){return g}});var e=n(20462),i=n(31200),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.PlayerHitpoints,l=c.PlayerMP,f=c.PauseState,m=c.Status,v=c.Hitpoints,j=c.BossID,E=c.GameActive,O=c.TicketCount;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:a,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[a,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:l,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f===1?"#1b3622":"#471915",children:m})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:v,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:v}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)(r._V,{src:(0,i.l)(j)})})]})]})}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:E===0||f===1,onClick:function(){return o("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:E===0||f===1,onClick:function(){return o("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:E===0||f===1,onClick:function(){return o("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:E===1,onClick:function(){return o("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:E===1,onClick:function(){return o("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:O>=1?"good":"normal",children:["Earned Tickets: ",O]})]})})})}},98669:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosAtmosControl:function(){return r}});var e=n(20462),i=n(42103),t=n(74737),r=function(){return(0,e.jsx)(i.Zm,{width:870,height:708,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosCameraConsole:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(18490),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.mapRef,l=c.activeCamera,f=c.cameras,m=(0,s.selectCameras)(f),v=(0,s.prevNextCamera)(m,l),j=v[0],E=v[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(s.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),l&&l.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!j,onClick:function(){return o("switch_camera",{name:j})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!E,onClick:function(){return o("switch_camera",{name:E})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return o("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return o("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return o("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return o("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:a,type:"map"}})]})]})})}},77580:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),i=n(42103),t=n(34116),r=function(){return(0,e.jsx)(i.Zm,{width:400,height:600,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},35300:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosConfiguration:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.PC_device_theme,a=o.power_usage,l=o.battery_exists,f=o.battery,m=f===void 0?{}:f,v=o.disk_size,j=o.disk_used,E=o.hardware,O=E===void 0?[]:E;return(0,e.jsx)(r.Zm,{theme:c,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",a,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!l&&"average"||void 0,children:l?(0,e.jsxs)(t.z2,{value:m.charge,minValue:0,maxValue:m.max,ranges:{good:[m.max/2,1/0],average:[m.max/4,m.max/2],bad:[-1/0,m.max/4]},children:[m.charge," / ",m.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:j,minValue:0,maxValue:v,color:"good",children:[j," GQ / ",v," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:O.map(function(M){return(0,e.jsx)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!M.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:M.enabled,mr:1,onClick:function(){return u("PC_toggle_component",{name:M.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",M.powerusage,"W"]})]}),children:M.desc},M.name)})})]})})}},23984:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosCrewManifest:function(){return r}});var e=n(20462),i=n(42103),t=n(58044),r=function(){return(0,e.jsx)(i.Zm,{width:800,height:600,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosCrewMonitor:function(){return s}});var e=n(20462),i=n(61358),t=n(42103),r=n(70117),s=function(){var g=function(v){c(v)},x=function(v){f(v)},u=(0,i.useState)(0),o=u[0],c=u[1],a=(0,i.useState)(1),l=a[0],f=a[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:o,zoom:l,onTabIndex:g,onZoom:x})})})}},6303:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosDigitalWarrant:function(){return g}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=n(42103),g=function(c){var a=(0,t.Oc)().data,l=a.warrantauth,f=(0,e.jsx)(x,{});return l&&(f=(0,e.jsx)(o,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:f})})},x=function(c){var a=(0,t.Oc)().act;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{title:"Arrest Warrants",children:(0,e.jsx)(u,{type:"arrest"})}),(0,e.jsx)(r.wn,{title:"Search Warrants",children:(0,e.jsx)(u,{type:"search"})})]})},u=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=c.type,v=f.allwarrants,j=v===void 0?[]:v,E=(0,i.pb)(j,function(O){return O.arrestsearch===m});return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),E.length&&E.map(function(O){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:O.warrantname}),(0,e.jsx)(r.XI.Cell,{children:O.charges}),(0,e.jsx)(r.XI.Cell,{children:O.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrant",{id:O.id})}})})]},O.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",m," warrants found."]})})]})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.warrantname,v=f.warrantcharges,j=f.warrantauth,E=f.type,O=E==="arrest",M=E==="arrest"?"Name":"Location",P=E==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:O?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return l("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:M,buttons:O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}}),children:m}),(0,e.jsx)(r.Ki.Item,{label:P,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantcharges")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return l("editwarrantauth")}}),children:j})]})})}},27896:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosEmailAdministration:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(94151),g=function(a){var l=(0,i.Oc)().data,f=l.error,m=l.cur_title,v=l.current_account,j=l.accounts,E=(0,e.jsx)(x,{accounts:j});return f?E=(0,e.jsx)(u,{error:f}):m?E=(0,e.jsx)(o,{}):v&&(E=(0,e.jsx)(c,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:E})})},x=function(a){var l=(0,i.Oc)().act,f=a.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(m){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l("viewaccount",{viewaccount:m.uid})},children:m.login},m.uid)})]})},u=function(a){var l=(0,i.Oc)().act,f=a.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"}),children:f})},o=function(a){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},c=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.current_account,j=m.cur_suspended,E=m.messages,O=E===void 0?[]:E;return(0,e.jsxs)(t.wn,{title:"Viewing "+v+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:j?"bad":"",icon:"ban",tooltip:(j?"Uns":"S")+"uspend Account?",onClick:function(){return f("ban")},children:j?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return f("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:O.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),O.map(function(M){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:M.source}),(0,e.jsx)(t.XI.Cell,{children:M.title}),(0,e.jsx)(t.XI.Cell,{children:M.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},94151:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosEmailClient:function(){return g},NtosEmailClientViewMessage:function(){return c}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g=function(v){var j=(0,t.Oc)().data,E=j.PC_device_theme,O=j.error,M=j.downloading,P=j.current_account,D=(0,e.jsx)(m,{});return O?D=(0,e.jsx)(f,{error:O}):M?D=(0,e.jsx)(x,{}):P&&(D=(0,e.jsx)(u,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:E,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:D})})},x=function(v){var j=(0,t.Oc)().data,E=j.down_filename,O=j.down_progress,M=j.down_size,P=j.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[E," (",M," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:P})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:O,maxValue:M,children:O+"/"+M+" ("+(0,i.Mg)(O/M*100,1)+"%)"})})]})})},u=function(v){var j=(0,t.Oc)(),E=j.act,O=j.data,M=O.current_account,P=O.addressbook,D=O.new_message,S=O.cur_title,B=O.accounts,T=(0,e.jsx)(o,{});return P?T=(0,e.jsx)(a,{accounts:B}):D?T=(0,e.jsx)(l,{}):S&&(T=(0,e.jsx)(c,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+M,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return E("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return E("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return E("logout")}})]}),children:T})},o=function(v){var j=(0,t.Oc)(),E=j.act,O=j.data,M=O.folder,P=O.messagecount,D=O.messages;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:M==="Inbox",onClick:function(){return E("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Spam",onClick:function(){return E("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Deleted",onClick:function(){return E("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),P&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),D.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return E("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return E("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return E("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",M,"."]})]})},c=function(v){var j=(0,t.Oc)(),E=j.act,O=j.data,M=v.administrator,P=O.cur_title,D=O.cur_source,S=O.cur_timestamp,B=O.cur_body,T=O.cur_hasattachment,U=O.cur_attachment_filename,W=O.cur_attachment_size,z=O.cur_uid;return(0,e.jsx)(r.wn,{title:P,buttons:M?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return E("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return E("reply",{reply:z})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return E("delete",{delete:z})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return E("save",{save:z})}}),T&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return E("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return E("cancel",{cancel:z})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:D}),(0,e.jsx)(r.Ki.Item,{label:"At",children:S}),T&&!M&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[U," (",W,"GQ)"]})||"",(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:B}})})})]})})},a=function(v){var j=(0,t.Oc)().act,E=v.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("set_recipient",{set_recipient:null})}}),children:E.map(function(O){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return j("set_recipient",{set_recipient:O.login})},children:O.login},O.login)})})},l=function(v){var j=(0,t.Oc)(),E=j.act,O=j.data,M=O.msg_title,P=M===void 0?"":M,D=O.msg_recipient,S=D===void 0?"":D,B=O.msg_body,T=O.msg_hasattachment,U=O.msg_attachment_filename,W=O.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return E("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:P,onInput:function(z,k){return E("edit_title",{val:k})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(z,k){return E("edit_recipient",{val:k})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return E("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:T&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return E("addattachment")},children:"Add Attachment"}),children:T&&(0,e.jsxs)(r.az,{inline:!0,children:[U," (",W,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:B}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return E("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},f=function(v){var j=(0,t.Oc)().act,E=v.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return j("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:E})})},m=function(v){var j=(0,t.Oc)(),E=j.act,O=j.data,M=O.stored_login,P=M===void 0?"":M,D=O.stored_password,S=D===void 0?"":D;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:P,onInput:function(B,T){return E("edit_login",{val:T})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(B,T){return E("edit_password",{val:T})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return E("login")},children:"Log In"})]})}},12813:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosFileManager:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.PC_device_theme,l=c.usbconnected,f=c.filename,m=c.filedata,v=c.error,j=c.files,E=j===void 0?[]:j,O=c.usbfiles,M=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{resizable:!0,theme:a,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[f&&(0,e.jsx)(t.wn,{title:"Viewing File "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return o("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return o("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return o("PRG_closefile")},children:"Close"})]}),children:m&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(g,{files:E,usbconnected:l,onUpload:function(P){return o("PRG_copytousb",{uid:P})},onDelete:function(P){return o("PRG_deletefile",{uid:P})},onOpen:function(P){return o("PRG_openfile",{uid:P})},onRename:function(P,D){return o("PRG_rename",{uid:P,new_name:D})},onDuplicate:function(P){return o("PRG_clone",{uid:P})}})}),l&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(g,{usbmode:!0,files:M,usbconnected:l,onUpload:function(P){return o("PRG_copyfromusb",{uid:P})},onDelete:function(P){return o("PRG_deletefile",{uid:P})},onOpen:function(P){return o("PRG_openfile",{uid:P})},onRename:function(P,D){return o("PRG_rename",{uid:P,new_name:D})},onDuplicate:function(P){return o("PRG_clone",{uid:P})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return o("PRG_newtextfile")},children:"New Text File"})})]}),v&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return o("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:v})})]})]})})},g=function(x){var u=x.files,o=u===void 0?[]:u,c=x.usbconnected,a=x.usbmode,l=x.onUpload,f=x.onDelete,m=x.onRename,v=x.onOpen,j=x.onDuplicate;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),o.map(function(E){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:E.undeletable?E.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:E.name,tooltip:"Rename",onCommit:function(O,M){return m(E.uid,M)},children:E.name}),(0,e.jsx)(t.$n,{onClick:function(){return v(E.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:E.type}),(0,e.jsx)(t.XI.Cell,{children:E.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!E.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return f(E.uid)}}),!!c&&(a?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return l(E.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return l(E.uid)}}))]})})]},E.name)})]})}},39925:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosIdentificationComputer:function(){return r}});var e=n(20462),i=n(42103),t=n(39841),r=function(){return(0,e.jsx)(i.Zm,{width:600,height:700,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},45319:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosMain:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.device_theme,l=c.programs,f=l===void 0?[]:l,m=c.has_light,v=c.light_on,j=c.comp_light_color,E=c.removable_media,O=E===void 0?[]:E,M=c.login,P=M===void 0?{}:M;return(0,e.jsx)(r.Zm,{title:a==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:a,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!m&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:v,onClick:function(){return o("PC_toggle_light")},children:["Flashlight: ",v?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return o("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:j})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!P.IDName,onClick:function(){return o("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",P.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",P.IDJob]})]})}),!!O.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:O.map(function(D){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return o("PC_Eject_Disk",{name:D})},children:D})})},D)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:f.map(function(D){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:s[D.name]||"window-maximize-o",onClick:function(){return o("PC_runprogram",{name:D.name})},children:D.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!D.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return o("PC_killprogram",{name:D.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:D.autorun,onClick:function(){return o("PC_setautorun",{name:D.name})},children:"AR"})})]},D.name)})})})]})})}},9785:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosNetChat:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.can_admin,a=o.adminmode,l=o.authed,f=o.username,m=o.active_channel,v=o.is_operator,j=o.all_channels,E=j===void 0?[]:j,O=o.clients,M=O===void 0?[]:O,P=o.messages,D=P===void 0?[]:P,S=m!==null,B=l||a;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(T,U){return u("PRG_newchannel",{new_channel_name:U})},children:"New Channel..."}),E.map(function(T){return(0,e.jsx)(t.$n,{fluid:!0,selected:T.id===m,color:"transparent",onClick:function(){return u("PRG_joinchannel",{id:T.id})},children:T.chan},T.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:f,onCommit:function(T,U){return u("PRG_changename",{new_name:U})},children:f+"..."}),!!c&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:a?"bad":"good",onClick:function(){return u("PRG_toggleadmin")},children:"ADMIN MODE: "+(a?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:S&&(B?D.map(function(T){return(0,e.jsx)(t.az,{children:T.msg},T.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(T,U){return u("PRG_speak",{message:U})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:M.map(function(T){return(0,e.jsx)(t.az,{children:T.name},T.name)})}),S&&B&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(T,U){return u("PRG_savelog",{log_name:U})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return u("PRG_leavechannel")},children:"Leave Channel"})]}),!!v&&l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return u("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(T,U){return u("PRG_renamechannel",{new_name:U})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(T,U){return u("PRG_setpassword",{new_password:U})},children:"Set Password..."})]})]})]})})})})})}},82193:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.relays,l=a===void 0?[]:a,f=c.focus,m=c.target,v=c.speed,j=c.overload,E=c.capacity,O=c.error;if(O)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:O}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return o("PRG_reset")},children:"Reset"})]});var M=function(D){for(var S="",B=j/E;S.lengthB?S+="0":S+="1";return S},P=45;return m?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",v," GQ/s"]}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:l.map(function(D){return(0,e.jsx)(t.$n,{selected:f===D.id,onClick:function(){return o("PRG_target_relay",{targid:D.id})},children:D.id},D.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!f,mt:1,onClick:function(){return o("PRG_execute")},children:"EXECUTE"})]})}},43726:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosNetDownloader:function(){return g}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.PC_device_theme,f=a.disk_size,m=a.disk_used,v=a.downloadable_programs,j=v===void 0?[]:v,E=a.error,O=a.hacked_programs,M=O===void 0?[]:O,P=a.hackedavailable;return(0,e.jsx)(s.Zm,{theme:l,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:E}),(0,e.jsx)(r.$n,{onClick:function(){return c("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:m,minValue:0,maxValue:f,children:m+" GQ / "+f+" GQ"})})})}),(0,e.jsx)(r.wn,{children:j.map(function(D){return(0,e.jsx)(x,{program:D},D.filename)})}),!!P&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),M.map(function(D){return(0,e.jsx)(x,{program:D},D.filename)})]})]})})},x=function(u){var o=u.program,c=(0,t.Oc)(),a=c.act,l=c.data,f=l.disk_size,m=l.disk_used,v=l.downloadcompletion,j=l.downloadname,E=l.downloadsize,O=l.downloadspeed,M=l.downloads_queue,P=f-m;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:o.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[o.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:o.filename===j&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:E,value:v,children:[(0,i.Mg)(v/E*100,1),"%\xA0","("+O+"GQ/s)"]})||M.indexOf(o.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return a("PRG_removequeued",{filename:o.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:o.size>P,onClick:function(){return a("PRG_downloadfile",{filename:o.filename})},children:"Download"})})]}),o.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),o.size>P&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:o.fileinfo})]})}},30817:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosNetMonitor:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.ntnetrelays,a=o.ntnetstatus,l=o.config_softwaredownload,f=o.config_peertopeer,m=o.config_communication,v=o.config_systemcontrol,j=o.idsalarm,E=o.idsstatus,O=o.ntnetmaxlogs,M=o.maxlogs,P=o.minlogs,D=o.banned_nids,S=o.ntnetlogs,B=S===void 0?[]:S;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:a?"power-off":"times",selected:a,onClick:function(){return u("toggleWireless")},children:a?"ENABLED":"DISABLED"}),children:c?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:c})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return u("toggle_function",{id:"1"})},children:l?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return u("toggle_function",{id:"2"})},children:f?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,onClick:function(){return u("toggle_function",{id:"3"})},children:m?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return u("toggle_function",{id:"4"})},children:v?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italic:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return u("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return u("unban_nid")},children:"Unban NID"})]}),children:D.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:E?"power-off":"times",selected:E,onClick:function(){return u("toggleIDS")},children:E?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return u("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{step:1,value:O,minValue:P,maxValue:M,width:"39px",onChange:function(T){return u("updatemaxlogs",{new_number:T})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return u("purgelogs")},children:"Clear Logs"}),children:B.map(function(T){return(0,e.jsx)(t.az,{className:"candystripe",children:T.entry},T.entry)})})]})]})})}},49106:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosNetTransfer:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(a){var l=(0,i.Oc)().data,f=l.error,m=l.downloading,v=l.uploading,j=l.upload_filelist,E=(0,e.jsx)(c,{});return f?E=(0,e.jsx)(g,{}):m?E=(0,e.jsx)(x,{}):v?E=(0,e.jsx)(u,{}):j.length&&(E=(0,e.jsx)(o,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:E})})},g=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Reset"}),children:["Additional Information: ",v]})},x=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.download_name,j=m.download_progress,E=m.download_size,O=m.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:j,maxValue:E,children:[j," / ",E," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[O," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Download"})})]})})},u=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.upload_clients,j=m.upload_filename,E=m.upload_haspassword;return(0,e.jsx)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:j}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:E?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Upload"})]})]})})},o=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:v.map(function(j){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return f("PRG_uploadfile",{uid:j.uid})},children:[j.filename," (",j.size,"GQ)"]},j.uid)})})]})},c=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return f("PRG_uploadmenu")},children:"Send File"}),children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(j){return(0,e.jsxs)(t.Ki.Item,{label:j.uid,children:[!!j.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),j.filename,"\xA0 (",j.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return f("PRG_downloadfile",{uid:j.uid})},children:"Download"})]},j.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},50653:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosNewsBrowser:function(){return g}});var e=n(20462),i=n(31200),t=n(7081),r=n(21148),s=n(42103),g=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.article,v=f.download,j=f.message,E=(0,e.jsx)(u,{});return m?E=(0,e.jsx)(x,{}):v&&(E=(0,e.jsx)(o,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[j," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_clearmessage")}})]}),E]})})},x=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.article;if(!m)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var v=m.title,j=m.cover,E=m.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_reset")},children:"Close"})]}),children:[!!j&&(0,e.jsx)(r._V,{src:(0,i.l)(j)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}})]})},u=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.showing_archived,v=f.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return l("PRG_toggle_archived")},checked:m,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:v.length&&v.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return l("PRG_openarticle",{uid:j.uid})}}),children:[j.size," GQ"]},j.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},o=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.download,v=m.download_progress,j=m.download_maxprogress,E=m.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:v,maxValue:j,children:[v," / ",j," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[E," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return l("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosOvermapNavigation:function(){return r}});var e=n(20462),i=n(42103),t=n(65912),r=function(){return(0,e.jsx)(i.Zm,{width:380,height:530,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosPowerMonitor:function(){return r}});var e=n(20462),i=n(42103),t=n(91276),r=function(){return(0,e.jsx)(i.Zm,{width:550,height:700,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosRCON:function(){return r}});var e=n(20462),i=n(42103),t=n(72778),r=function(){return(0,e.jsx)(i.Zm,{width:630,height:440,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosRevelation:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(a,l){return u("PRG_obfuscate",{new_name:l})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:c?"bad":"average",onClick:function(){return u("PRG_arm")},children:c?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!c,children:"ACTIVATE"})]})})})}},79389:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosShutoffMonitor:function(){return r}});var e=n(20462),i=n(42103),t=n(67889),r=function(){return(0,e.jsx)(i.Zm,{width:627,height:700,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosStationAlertConsole:function(){return r}});var e=n(20462),i=n(42103),t=n(68679),r=function(){return(0,e.jsx)(i.Zm,{width:315,height:500,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),i=n(42103),t=n(50028),r=function(){return(0,e.jsx)(i.Zm,{width:600,height:400,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},10774:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosUAV:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.current_uav,a=o.signal_strength,l=o.in_use,f=o.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:c&&c.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:c&&a||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:c&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c.power,onClick:function(){return u("power_uav")},children:c.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:c&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:!c.power,onClick:function(){return u("view_uav")},children:c.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:f.length&&f.map(function(m){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return u("switch_uav",{switch_uav:m.uavref})},children:m.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return u("del_uav",{del_uav:m.uavref})}})})]},m.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},69062:function(y,h,n){"use strict";n.r(h),n.d(h,{NtosWordProcessor:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.PC_device_theme,a=o.error,l=o.browsing,f=o.files,m=o.filename,v=o.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:c,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:a&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",a,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return u("PRG_backtomenu")},children:"Back to menu"})]})||l&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return u("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),f.map(function(j,E){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:j.name}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return u("PRG_openfile",{PRG_openfile:j.name})},children:"Open"})})]},E)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+m,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return u("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!v,onClick:function(){return u("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})]})})})}},46836:function(y,h,n){"use strict";n.r(h),n.d(h,{NumberInputModal:function(){return o}});var e=n(20462),i=n(87239),t=n(61358),r=n(7081),s=n(21148),g=n(42103),x=n(5335),u=n(44149),o=function(a){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.init_value,j=m.large_buttons,E=m.message,O=E===void 0?"":E,M=m.timeout,P=m.title,D=(0,t.useState)(v),S=D[0],B=D[1],T=function(W){W!==S&&B(W)},U=140+(O.length>30?Math.ceil(O.length/3):0)+(O.length&&j?5:0);return(0,e.jsxs)(g.p8,{title:P,width:270,height:U,children:[M&&(0,e.jsx)(u.Loader,{value:M}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(W){W.key===i._.Enter&&f("submit",{entry:S}),(0,i.K)(W.key)&&f("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:O})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(c,{input:S,onClick:T,onChange:T,onBlur:T})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:S})})]})})})]})},c=function(a){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.min_value,j=m.max_value,E=m.init_value,O=m.round_value,M=a.input,P=a.onClick,D=a.onChange,S=a.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===v,icon:"angle-double-left",onClick:function(){return P(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!O,minValue:v,maxValue:j,onChange:function(B,T){return D(T)},onBlur:function(B,T){return S(T)},onEnter:function(B,T){return f("submit",{entry:T})},value:M})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===j,icon:"angle-double-right",onClick:function(){return P(j)},tooltip:j?"Max ("+j+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===E,icon:"redo",onClick:function(){return P(E)},tooltip:E?"Reset ("+E+")":"Reset"})})]})}},12333:function(y,h,n){"use strict";n.r(h),n.d(h,{OmniFilter:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.power,l=c.config,f=c.ports,m=c.set_flow_rate,v=c.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:l?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:a,disabled:l,onClick:function(){return o("power")},children:a?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:l,onClick:function(){return o("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:f?f.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.dir+" Port",children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:j.input,icon:"compress-arrows-alt",onClick:function(){return o("switch_mode",{mode:"in",dir:j.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:j.output,icon:"expand-arrows-alt",onClick:function(){return o("switch_mode",{mode:"out",dir:j.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:j.input||j.output,onClick:function(){return o("switch_filter",{mode:j.f_type,dir:j.dir})},children:j.f_type||"None"})]}):s(j)},j.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:l?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return o("set_flow_rate")},children:m+" L/s"}):m+" L/s"})]})})]})})}},60780:function(y,h,n){"use strict";n.r(h),n.d(h,{OmniMixer:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(u){return u.input?"Input":u.output?"Output":u.f_type?u.f_type:"Disabled"},g=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.power,f=a.config,m=a.ports,v=a.set_flow_rate,j=a.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:f?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:f,onClick:function(){return c("power")},children:l?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:f,onClick:function(){return c("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),f?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map(function(E){return(0,e.jsx)(x,{port:E,config:f},E.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[j," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:f?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return c("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})},x=function(u){var o=(0,i.Oc)().act,c=u.port,a=u.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:c.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:a?(0,e.jsx)(t.$n,{selected:c.input,disabled:c.output,icon:"compress-arrows-alt",onClick:function(){return o("switch_mode",{mode:c.input?"none":"in",dir:c.dir})},children:"IN"}):s(c)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:a?(0,e.jsx)(t.$n,{selected:c.output,icon:"expand-arrows-alt",onClick:function(){return o("switch_mode",{mode:"out",dir:c.dir})},children:"OUT"}):c.concentration*100+"%"}),a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!c.input,onClick:function(){return o("switch_con",{dir:c.dir})},children:c.input?c.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:c.con_lock?"lock":"lock-open",disabled:!c.input,selected:c.con_lock,onClick:function(){return o("switch_conlock",{dir:c.dir})},children:c.f_type||"None"})})]}):null]})}},43213:function(y,h,n){"use strict";n.r(h),n.d(h,{OperatingComputerOptions:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.verbose,c=u.health,a=u.healthAlarm,l=u.oxy,f=u.oxyAlarm,m=u.crit;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(t.$n,{selected:o,icon:o?"toggle-on":"toggle-off",onClick:function(){return x(o?"verboseOff":"verboseOn")},children:o?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return x(c?"healthOff":"healthOn")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:a,stepPixelSize:5,ml:"0",format:function(v){return v+"%"},onChange:function(v,j){return x("health_adj",{new:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return x(l?"oxyOff":"oxyOn")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:f,stepPixelSize:5,ml:"0",onChange:function(v,j){return x("oxy_adj",{new:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:m,icon:m?"toggle-on":"toggle-off",onClick:function(){return x(m?"critOff":"critOn")},children:m?"On":"Off"})})]})}},88424:function(y,h,n){"use strict";n.r(h),n.d(h,{OperatingComputerPatient:function(){return s}});var e=n(20462),i=n(4089),t=n(21148),r=n(6050),s=function(g){var x=g.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Patient",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:x.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[x.stat][0],children:r.stats[x.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),r.damages.map(function(u,o){return(0,e.jsx)(t.Ki.Item,{label:u[0]+" Damage",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x[u[1]]/100,ranges:r.damageRange,children:(0,i.Mg)(x[u[1]])},o)},o)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bodyTemperature/x.maxTemp,color:r.tempColors[x.temperatureSuitability+3],children:[(0,i.Mg)(x.btCelsius),"\xB0C, ",(0,i.Mg)(x.btFaren),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bloodLevel/x.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[x.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:x.surgery&&x.surgery.length?(0,e.jsx)(t.Ki,{children:x.surgery.map(function(u){return(0,e.jsx)(t.Ki.Item,{label:u.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current State",children:u.currentStage}),(0,e.jsx)(t.Ki.Item,{label:"Possible Next Steps",children:u.nextSteps.map(function(o){return(0,e.jsx)("div",{children:o},o)})})]})},u.name)})}):(0,e.jsx)(t.az,{color:"label",children:"No procedure ongoing."})})]})}},13846:function(y,h,n){"use strict";n.r(h),n.d(h,{OperatingComputerUnoccupied:function(){return t}});var e=n(20462),i=n(21148),t=function(r){return(0,e.jsx)(i.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(i.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No patient detected."]})})}},6050:function(y,h,n){"use strict";n.r(h),n.d(h,{damageRange:function(){return t},damages:function(){return i},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],i=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},70509:function(y,h,n){"use strict";n.r(h),n.d(h,{OperatingComputer:function(){return u}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(43213),g=n(88424),x=n(13846),u=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.hasOccupant,m=l.choice,v=l.occupant,j;return m?j=(0,e.jsx)(s.OperatingComputerOptions,{}):j=f?(0,e.jsx)(g.OperatingComputerPatient,{occupant:v}):(0,e.jsx)(x.OperatingComputerUnoccupied,{}),(0,e.jsx)(r.p8,{width:650,height:455,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m,icon:"user",onClick:function(){return a("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return a("choiceOn")},children:"Options"})]}),(0,e.jsx)(t.wn,{flexGrow:!0,children:j})]})})}},36882:function(y,h,n){"use strict";n.r(h)},81105:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapDisperser:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(91198),g=function(u){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.faillink,f=a.calibration,m=a.overmapdir,v=a.cal_accuracy,j=a.strength,E=a.range,O=a.next_shot,M=a.nopower,P=a.chargeload;return l?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(s.OvermapPanControls,{actToDo:"choose",selected:function(D){return D===m}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[M&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||"",(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:P}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:O===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||O>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:O})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||""})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:v}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return c("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:f.map(function(D,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return c("calibration",{calibration:S})},children:D.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return c("strength")},children:j})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return c("range")},children:E})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return c("fire")},children:"Fire ORB"})})]})}},22813:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.global_state,l=c.global_limit,f=c.engines_info,m=c.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:a,onClick:function(){return o("global_toggle")},children:a?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return o("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return o("set_global_limit")},children:[l,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return o("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:m})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:f.map(function(v,j){return(0,e.jsxs)(t.so,{spacing:1,mt:j!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",j+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust_limiter,format:function(E){return E+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:v.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:v.eng_on?v.eng_on===1?"good":"average":"bad",children:v.eng_on?v.eng_on===1?"Online":"Booting":"Offline"}),v.eng_status.map(function(E,O){return Array.isArray(E)?(0,e.jsx)(t.az,{color:E[1],children:E[0]},O):(0,e.jsx)(t.az,{children:E},O)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:v.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return o("limit",{limit:-.1,engine:v.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return o("set_limit",{engine:v.eng_reference})},children:[v.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return o("limit",{limit:.1,engine:v.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:v.eng_on===-1,color:v.eng_on===-1?"purple":void 0,selected:v.eng_on===1,icon:"power-off",onClick:function(){return o("toggle_engine",{engine:v.eng_reference})},children:v.eng_on?v.eng_on===1?"Shutoff":"Booting":"Startup"})})]},j)})})]})}},61321:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapFull:function(){return u}});var e=n(20462),i=n(61358),t=n(21148),r=n(42103),s=n(22813),g=n(7558),x=n(97275),u=function(o){var c=(0,i.useState)(0),a=c[0],l=c[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:a===0,onClick:function(){return l(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:a===1,onClick:function(){return l(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,onClick:function(){return l(2)},children:"Sensors"})]}),a===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),a===1&&(0,e.jsx)(g.OvermapHelmContent,{}),a===2&&(0,e.jsx)(x.OvermapShipSensorsContent,{})]})})}},7558:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapFlightDataWrap:function(){return u},OvermapHelm:function(){return g},OvermapHelmContent:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(91198),g=function(l){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(u,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(o,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(c,{})})]}),(0,e.jsx)(a,{})]})},u=function(l){return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(s.OvermapFlightData,{})]})},o=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.canburn,E=v.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s.OvermapPanControls,{disabled:!j,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:E,onClick:function(){return m("manual")},icon:"compass",children:E?"Enabled":"Disabled"})]})]})},c=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.dest,E=v.d_x,O=v.d_y,M=v.speedlimit,P=v.autopilot,D=v.autopilot_disabled;return D?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{setx:!0})},children:E}),(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{sety:!0})},children:O})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return m("speedlimit")},children:[M," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:P,disabled:!j,icon:"robot",onClick:function(){return m("apilot")},children:P?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Lock Autopilot"})]})},a=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.sector,E=v.s_x,O=v.s_y,M=v.sector_info,P=v.landed,D=v.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[E," : ",O]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:P})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return m("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return m("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),D.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:S.name}),(0,e.jsxs)(t.XI.Cell,{children:[S.x," : ",S.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return m("setds",{x:S.x,y:S.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return m("remove",{remove:S.reference})},children:"Remove"})]})]},S.name)})]})})]})}},65912:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapNavigation:function(){return g},OvermapNavigationContent:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(91198),g=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.sector,f=a.s_x,m=a.s_y,v=a.sector_info,j=a.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:j,onClick:function(){return c("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:l}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[f," : ",m]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:v})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapShieldGenerator:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(o){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.modes,m=l.offline_for;return m?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",m," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(u,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:f.map(function(v){return(0,e.jsxs)(t.wn,{title:v.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v.status,onClick:function(){return a("toggle_mode",{toggle_mode:v.flag})},children:v.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:v.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",v.multiplier]})]},v.name)})})]})},x=function(o){var c=(0,i.Oc)().data,a=c.running,l=c.overloaded,f=c.mitigation_max,m=c.mitigation_physical,v=c.mitigation_em,j=c.mitigation_heat,E=c.field_integrity,O=c.max_energy,M=c.current_energy,P=c.percentage_energy,D=c.total_segments,S=c.functional_segments,B=c.field_radius,T=c.target_radius,U=c.input_cap_kw,W=c.upkeep_power_usage,z=c.power_usage,k=c.spinup_counter,$=[];return $[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),$[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),$[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),$[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",T!==B&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[k*2,"s"]})]}),(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:$[a]||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:M,maxValue:O,children:[M," / ",O," MJ (",P,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:E}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[v,"% EM / ",m,"% PH / ",j,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:W})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:U&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:z,maxValue:U,children:[z," / ",U," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:z})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:S}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:D})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:B}),", target"," ",(0,e.jsx)(t.zv,{value:T}),")"]})]})})},u=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.running,m=l.hacked,v=l.idle_multiplier,j=l.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[f>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),f===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),f&&m&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:j.map(function(E){return(0,e.jsx)(t.$n,{selected:E===v,disabled:f===4,onClick:function(){return a("switch_idle",{switch_idle:E})},children:E},E)})})})]})}},97275:function(y,h,n){"use strict";n.r(h),n.d(h,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.viewing,l=c.on,f=c.range,m=c.health,v=c.max_health,j=c.heat,E=c.critical_heat,O=c.status,M=c.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:a,onClick:function(){return o("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return o("toggle_sensor")},children:l?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:O}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return o("range")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[v*.75,1/0],average:[v*.25,v*.75],bad:[-1/0,v*.25]},value:m,maxValue:v,children:[m," / ",v]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[E*.75,1/0],average:[E*.5,E*.75],good:[-1/0,E*.5]},value:j,maxValue:E,children:j0||!v)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return c("cancel",{cancel:P+1})},children:"Cancel"})||""]},M)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(M){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return c("queue",{queue:M.type})},children:(0,i.Sn)(M.name)})},M.name)})})]})})}},71675:function(y,h,n){"use strict";n.r(h),n.d(h,{PathogenicIsolator:function(){return u}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=n(86471),x=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.can_print,j=a.args;return(0,e.jsx)(r.wn,{m:"-1rem",title:j.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!v,icon:"print",onClick:function(){return f("print",{type:"virus_record",vir:j.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return f("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[j.spreadtype," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:j.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:j.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[j.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:j.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:j.symptoms.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.stage+". "+E.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",E.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",E.aggressiveness]})]},E.stage)})})})]})})})},u=function(a){var l=(0,t.Oc)().data,f=l.isolating,m=(0,i.useState)(0),v=m[0],j=m[1],E=[];return E[0]=(0,e.jsx)(o,{}),E[1]=(0,e.jsx)(c,{}),(0,g.modalRegisterBodyOverride)("virus",x),(0,e.jsxs)(s.p8,{height:500,width:520,children:[(0,e.jsx)(g.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||"",(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return j(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return j(1)},children:"Database"})]}),E[v]||""]})]})},o=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.syringe_inserted,j=m.pathogen_pool,E=m.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",disabled:!E,onClick:function(){return f("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return f("eject")},children:"Eject Syringe"})]}),children:j.length&&j.map(function(O){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",O.unique_id]}),O.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return f("isolate",{isolate:O.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!O.is_in_database,onClick:function(){return f("view_entry",{vir:O.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:O.name}),O.dna]})]},O.unique_id)})||(v?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},c=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.database,j=m.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return f("print",{type:"virus_list"})},children:"Print"}),children:v.length&&v.map(function(E){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return f("view_entry",{vir:E.record})},children:E.name},E.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},6787:function(y,h,n){"use strict";n.r(h),n.d(h,{Pda:function(){return o}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=n(15857),x=n(37865);function u(f){var m;try{m=x("./"+f+".tsx")}catch(j){if(j.code==="MODULE_NOT_FOUND")return(0,g.z)("notFound",f);throw j}var v=m[f];return v||(0,g.z)("missingExport",f)}var o=function(f){var m=function(T){S(T)},v=(0,t.Oc)().data,j=v.app,E=v.owner,O=v.useRetro;if(!E)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var M=u(j.template),P=(0,i.useState)(!1),D=P[0],S=P[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:O?"pda-retro":void 0,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(c,{settingsMode:D,onSettingsMode:m}),D&&(0,e.jsx)(a,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:j.icon,mr:1}),j.name]}),p:1,children:(0,e.jsx)(M,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(l,{onSettingsMode:m})]})})},c=function(f){var m=(0,t.Oc)(),v=m.act,j=m.data,E=j.idInserted,O=j.idLink,M=j.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!E&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return v("Authenticate")},children:O})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:M}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:f.settingsMode,onClick:function(){return f.onSettingsMode(!f.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return v("Retro")},icon:"adjust"})]})]})})},a=function(f){var m=(0,t.Oc)(),v=m.act,j=m.data,E=j.idInserted,O=j.idLink,M=j.cartridge_name,P=j.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",onClick:function(){return v("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!P,onClick:function(){return v("TouchSounds")},children:P?"Disabled":"Enabled"})}),!!M&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Eject")},children:M})}),!!E&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Authenticate")},children:O})})]})})},l=function(f){var m=(0,t.Oc)(),v=m.act,j=m.data,E=j.app,O=j.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:O?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:E.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return v("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:E.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){f.onSettingsMode(!1),v("Home")}})})]})})}},75418:function(y,h,n){"use strict";n.r(h),n.d(h,{PersonalCrafting:function(){return c}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103);function g(l,f){(f==null||f>l.length)&&(f=l.length);for(var m=0,v=new Array(f);m=l.length?{done:!0}:{done:!1,value:l[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(l){for(var f,m=(0,t.Oc)(),v=m.act,j=m.data,E=j.busy,O=j.display_craftable_only,M=j.display_compact,P=j.crafting_recipes||{},D=[],S=[],B=o(Object.keys(P)),T;!(T=B()).done;){var U=T.value,W=P[U];if("has_subcats"in W){for(var z=o(Object.keys(W)),k;!(k=z()).done;){var $=k.value;if($!=="has_subcats"){D.push({name:$,category:U,subcategory:$});for(var Y=W[$],G=o(Y),ne;!(ne=G()).done;){var oe=ne.value;S.push(x({},oe,{category:$}))}}}continue}D.push({name:U,category:U});for(var q=P[U],Z=o(q),X;!(X=Z()).done;){var H=X.value;S.push(x({},H,{category:U}))}}var V=(0,i.useState)((f=D[0])==null?void 0:f.name),J=V[0],ce=V[1],le=S.filter(function(fe){return fe.category===J});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{checked:M,onClick:function(){return v("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:O,onClick:function(){return v("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:D.map(function(fe){return(0,e.jsx)(r.tU.Tab,{selected:fe.name===J,onClick:function(){ce(fe.name),v("set_category",{category:fe.category,subcategory:fe.subcategory})},children:fe.name},fe.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(a,{craftables:le})})]})})]})})},a=function(l){var f=l.craftables,m=f===void 0?[]:f,v=(0,t.Oc)(),j=v.act,E=v.data,O=E.craftability,M=O===void 0?{}:O,P=E.display_compact,D=E.display_craftable_only;return m.map(function(S){return D&&!M[S.ref]?null:P?(0,e.jsx)(r.Ki.Item,{label:S.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[S.ref],tooltip:S.tool_text&&"Tools needed: "+S.tool_text,tooltipPosition:"left",onClick:function(){return j("make",{recipe:S.ref})},children:"Craft"}),children:S.req_text},S.name):(0,e.jsx)(r.wn,{title:S.name,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[S.ref],onClick:function(){return j("make",{recipe:S.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!S.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:S.req_text}),!!S.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:S.catalyst_text}),!!S.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:S.tool_text})]})},S.name)})}},6924:function(y,h,n){"use strict";n.r(h),n.d(h,{Photocopier:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(o){var c=(0,i.Oc)().data,a=c.isAI,l=c.has_toner,f=c.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:a?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[l?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),f?(0,e.jsx)(x,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!a&&(0,e.jsx)(u,{})]})})},g=function(o){var c=(0,i.Oc)().data,a=c.max_toner,l=c.current_toner,f=a*.66,m=a*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,a],average:[m,f],bad:[0,m]},value:l,minValue:0,maxValue:a})})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.num_copies;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animated:!0,width:"2.6",height:"1.65",step:1,stepPixelSize:8,minValue:1,maxValue:10,value:f,onDrag:function(m){return a("set_copies",{num_copies:m})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return a("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return a("remove")},children:"Remove item"})]})},u=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!f,onClick:function(){return a("ai_photo")},children:"Print photo from database"})})})}},11727:function(y,h,n){"use strict";n.r(h),n.d(h,{PipeDispenser:function(){return x}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=n(66947),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.disposals,f=a.p_layer,m=a.pipe_layers,v=a.categories,j=v===void 0?[]:v,E=(0,i.useState)("categoryName"),O=E[0],M=E[1],P=j.find(function(D){return D.cat_name===O})||j[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!l&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(m).map(function(D){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:m[D]===f,onClick:function(){return c("p_layer",{p_layer:m[D]})},children:D},D)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:j.map(function(D){return(0,e.jsx)(r.tU.Tab,{icon:g.ICON_BY_CATEGORY_NAME[D.cat_name],selected:D.cat_name===P.cat_name,onClick:function(){return M(D.cat_name)},children:D.cat_name},D.cat_name)})}),P==null?void 0:P.recipes.map(function(D){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return c("dispense_pipe",{ref:D.ref,bent:D.bent,category:P.cat_name})},children:D.pipe_name},D.pipe_name)})]})]})})}},28291:function(y,h,n){"use strict";n.r(h),n.d(h,{PlantAnalyzer:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){var u=(0,i.Oc)().data,o=u.seed,c=u.reagents,a=250;return o&&(a+=18*o.trait_info.length),c&&c.length&&(a+=55,a+=20*c.length),(0,e.jsx)(r.p8,{width:400,height:a,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.no_seed,l=c.seed,f=c.reagents;return a?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return o("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return o("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[l.name,"#",l.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:l.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:l.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:l.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:l.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:l.potency})]}),f.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:f.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.name,children:[m.volume," unit(s)."]},m.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:l.trait_info.map(function(m){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:m},m)})})]})}},12588:function(y,h,n){"use strict";n.r(h),n.d(h,{PlayerNotes:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.device_theme,a=o.filter,l=o.pages,f=o.ckeys,m=function(v){return v()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:c,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return u("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return u("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(v,j){return u("show_player_info",{name:j})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return u("clear_player_info_filter")},children:a}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:f.map(function(v){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return u("show_player_info",{name:v.name})},children:v.name})})},v.name)})}),(0,e.jsx)(t.cG,{}),m(function(){for(var v=function(O){j.push((0,e.jsx)(t.$n,{onClick:function(){return u("set_page",{index:O})},children:O},O))},j=[],E=1;E=.5&&"good"||W>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!f&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m?"power-off":"times",onClick:function(){return o("toggle_power")},selected:m,disabled:!v,children:m?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:a>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m,onClick:function(){return o("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:z,children:[a,"cm\xB3 ",j]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:a/l,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[a,"cm\xB3 / ",l,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[E," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:O,maxValue:M+30,color:P?"bad":"good",children:[(0,i.Mg)(O),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:D?"bad":void 0,children:S}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return o("lower_power")},children:B}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return o("higher_power")},children:B})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!T&&"bad",children:T?U:"Unconnected"})})]})})]})})}},31991:function(y,h,n){"use strict";n.r(h),n.d(h,{PortablePump:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(95823),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.direction,l=c.target_pressure,f=c.default_pressure,m=c.min_pressure,v=c.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:a?"sign-in-alt":"sign-out-alt",selected:a,onClick:function(){return o("direction")},children:a?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:m,maxValue:v,value:l,unit:"kPa",stepPixelSize:.3,onChange:function(j,E){return o("pressure",{pressure:E})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:l===m,onClick:function(){return o("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:l===f,onClick:function(){return o("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:l===v,onClick:function(){return o("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(y,h,n){"use strict";n.r(h),n.d(h,{PortableScrubber:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(95823),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.rate,l=c.minrate,f=c.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:l,maxValue:f,value:a,unit:"L/s",onChange:function(m,v){return o("volume_adj",{vol:v})}})})})})]})})}},96527:function(y,h,n){"use strict";n.r(h),n.d(h,{PortableTurret:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.locked,a=o.on,l=o.lethal,f=o.lethal_is_configurable,m=o.targetting_is_configurable,v=o.check_weapons,j=o.neutralize_noaccess,E=o.neutralize_norecord,O=o.neutralize_criminals,M=o.neutralize_all,P=o.neutralize_nonsynth,D=o.neutralize_unidentified,S=o.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:a?"power-off":"times",selected:a,disabled:c,onClick:function(){return u("power")},children:a?"On":"Off"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:l?"exclamation-triangle":"times",color:l?"bad":"",disabled:c,onClick:function(){return u("lethal")},children:l?"On":"Off"})})]})}),!!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:O,disabled:c,onClick:function(){return u("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:c,onClick:function(){return u("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,disabled:c,onClick:function(){return u("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:c,onClick:function(){return u("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:D,disabled:c,onClick:function(){return u("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:c,onClick:function(){return u("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:S,disabled:c,onClick:function(){return u("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:c,onClick:function(){return u("authall")},children:"All Entities"})]})]})]})})}},91276:function(y,h,n){"use strict";n.r(h),n.d(h,{PowerMonitorContent:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(27971),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.all_sensors,a=o.focus;if(a)return(0,e.jsx)(r.PowerMonitorFocus,{focus:a});var l=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return c&&(l=(0,e.jsx)(t.XI,{children:c.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:f.alarm?"bell":"sign-in-alt",onClick:function(){return u("setsensor",{id:f.name})},children:f.name})})},f.name)})})),(0,e.jsx)(t.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return u("refresh")},children:"Scan For Sensors"}),children:l})}},27971:function(y,h,n){"use strict";n.r(h),n.d(h,{PowerMonitorFocus:function(){return l}});var e=n(20462),i=n(7402),t=n(15813),r=n(4089),s=n(61358),g=n(7081),x=n(21148),u=n(92595),o=n(69788),c=n(88040);function a(){return a=Object.assign||function(f){for(var m=1;m50?"battery-half":"battery-quarter")||x===1&&"bolt"||x===2&&"battery-full"||"",color:x===0&&(u>50?"yellow":"red")||x===1&&"yellow"||x===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,i.Mg)(u)+"%"})]})},s=function(g){var x=g.status,u=!!(x&2),o=!!(x&1),c=(u?"On":"Off")+(" ["+(o?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:c,children:(0,e.jsx)(t.BK,{color:u?"good":"bad",content:o?void 0:"M"})})}},92595:function(y,h,n){"use strict";n.r(h),n.d(h,{PEAK_DRAW:function(){return e}});var e=5e5},69788:function(y,h,n){"use strict";n.r(h),n.d(h,{powerRank:function(){return e}});function e(i){var t=String(i.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)}},53414:function(y,h,n){"use strict";n.r(h),n.d(h,{PowerMonitor:function(){return r}});var e=n(20462),i=n(42103),t=n(91276),r=function(){return(0,e.jsx)(i.p8,{width:550,height:700,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},77243:function(y,h,n){"use strict";n.r(h)},96824:function(y,h,n){"use strict";n.r(h),n.d(h,{PressureRegulator:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.pressure_set,l=o.max_pressure,f=o.input_pressure,m=o.output_pressure,v=o.regulate_mode,j=o.set_flow_rate,E=o.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.zv,{value:f/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:m/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:E/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return u("toggle_valve")},children:c?"Unlocked":"Closed"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:v===0,onClick:function(){return u("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:v===1,onClick:function(){return u("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:v===2,onClick:function(){return u("regulate_mode",{mode:"output"})},children:"Output"})]})}),(0,e.jsxs)(t.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return u("set_press",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return u("set_press",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return u("set_press",{press:"set"})},children:"SET"})]}),children:[a/100," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return u("set_flow_rate",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return u("set_flow_rate",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return u("set_flow_rate",{press:"set"})},children:"SET"})]}),children:[j/10," L/s"]})]})})]})})}},56257:function(y,h,n){"use strict";n.r(h),n.d(h,{PrisonerManagement:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.locked,a=o.chemImplants,l=o.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c&&(0,e.jsxs)(t.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"unlock",onClick:function(){return u("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Interface Lock",buttons:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return u("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.wn,{title:"Chemical Implants",children:a.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Inject"})]}),a.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return u("inject",{imp:f.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return u("inject",{imp:f.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return u("inject",{imp:f.ref,val:10})},children:"(10)"})]})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:l.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Message"})]}),l.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.host," (",f.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return u("warn",{imp:f.ref})},children:"Message"})})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},13353:function(y,h,n){"use strict";n.r(h),n.d(h,{RCONBreakerList:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.breaker_info;return(0,e.jsx)(t.wn,{title:"Breakers",children:(0,e.jsx)(t.Ki,{children:o?o.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.RCON_tag,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.enabled,color:c.enabled?null:"bad",onClick:function(){return x("toggle_breaker",{breaker:c.RCON_tag})},children:c.enabled?"Enabled":"Disabled"})},c.RCON_tag)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No breakers detected."})})})}},72778:function(y,h,n){"use strict";n.r(h),n.d(h,{RCONContent:function(){return g}});var e=n(20462),i=n(61358),t=n(21148),r=n(13353),s=n(14313),g=function(x){var u=(0,i.useState)(0),o=u[0],c=u[1],a=[];return a[0]=(0,e.jsx)(s.RCONSmesList,{}),a[1]=(0,e.jsx)(r.RCONBreakerList,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:o===0,onClick:function(){return c(0)},children:[(0,e.jsx)(t.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(t.tU.Tab,{selected:o===1,onClick:function(){return c(1)},children:[(0,e.jsx)(t.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(t.az,{m:2,children:a[o]||""})]})}},54323:function(y,h,n){"use strict";n.r(h),n.d(h,{SMESControls:function(){return x}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(41242),g=n(78784),x=function(u){var o=(0,t.Oc)().act,c=u.way,a=u.smes,l=a.inputAttempt,f=a.inputting,m=a.inputLevel,v=a.inputLevelMax,j=a.inputAvailable,E=a.outputAttempt,O=a.outputting,M=a.outputLevel,P=a.outputLevelMax,D=a.outputUsed,S=a.RCON_tag,B=0,T=0,U=0,W,z,k,$,Y,G="";switch(c){case"input":B=m,T=v,U=j,W="IN",z="smes_in_toggle",k="smes_in_set",$=l,Y=l?f?"green":"yellow":void 0,G=l?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":B=M,T=P,U=D,W="OUT",z="smes_out_toggle",k="smes_out_set",$=E,Y=E?O?"green":"yellow":void 0,G=E?O?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off.";break}return(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{basis:"20%",children:(0,i.ZH)(c)}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsxs)(r.BJ,{children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"power-off",color:Y,tooltip:G,onClick:function(){return o(z,{smes:S})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:B===0,onClick:function(){return o(k,{target:"min",smes:S})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:B===0,onClick:function(){return o(k,{adjust:-1e4,smes:S})}})]}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsx)(r.Ap,{value:B/g.POWER_MUL,fillValue:U/g.POWER_MUL,minValue:0,maxValue:T/g.POWER_MUL,step:5,stepPixelSize:4,format:function(ne){return(0,s.d5)(U,1)+"/"+(0,s.d5)(ne*g.POWER_MUL,1)},onDrag:function(ne,oe){return o(k,{target:oe*g.POWER_MUL,smes:S})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:B===T,onClick:function(){return o(k,{adjust:1e4,smes:S})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:B===T,onClick:function(){return o(k,{target:"max",smes:S})}})]})]})})]})}},46380:function(y,h,n){"use strict";n.r(h),n.d(h,{SMESItem:function(){return s}});var e=n(20462),i=n(4089),t=n(21148),r=n(54323),s=function(g){var x=g.smes,u=x.capacityPercent,o=x.capacity,c=x.charge,a=x.RCON_tag;return(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(t.BJ.Item,{flexBasis:"40%",fontSize:1.2,children:a}),(0,e.jsx)(t.BJ.Item,{grow:1,children:(0,e.jsx)(t.z2,{value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,i.Mg)(c/(1e3*60),1)+"kWh / "+(0,i.Mg)(o/(1e3*60))+"kWh ("+u+"%)"})})]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:g.smes,way:"input"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:g.smes,way:"output"})}),(0,e.jsx)(t.BJ.Divider,{})]})}},14313:function(y,h,n){"use strict";n.r(h),n.d(h,{RCONSmesList:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(46380),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.smes_info,a=o.pages,l=o.current_page,f=function(m){return m()};return(0,e.jsxs)(t.wn,{title:"SMESs (Page "+l+")",children:[(0,e.jsx)(t.BJ,{vertical:!0,children:c.map(function(m){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESItem,{smes:m})},m.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),f(function(){for(var m=function(E){v.push((0,e.jsx)(t.$n,{selected:l===E,onClick:function(){return u("set_smes_page",{index:E})},children:E},E))},v=[],j=1;j=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",m.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",m.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",m.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:m.desc})]}),m.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,i.ZH)(m.chargetype)}),m.charges.map(function(j,E){return(0,e.jsx)(r.Ki.Item,{label:(0,i.ZH)(j.caption),children:(0,e.jsx)(r.$n,{selected:m.realchargetype===j.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:m.index,module_mode:"select_charge_type",charge_type:j.index})}})},j.caption)})]})})}):""]},v)})]})}},72273:function(y,h,n){"use strict";n.r(h),n.d(h,{RIGSuitStatus:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.chargestatus,c=u.charge,a=u.maxcharge,l=u.aioverride,f=u.sealing,m=u.sealed,v=u.cooling,j=u.emagged,E=u.securitycheck,O=u.coverlock,M=(0,e.jsx)(t.$n,{icon:f?"redo":m?"power-off":"lock-open",iconSpin:f,disabled:f,selected:m,onClick:function(){return x("toggle_seals")},children:"Suit "+(f?"seals working...":m?"is Active":"is Inactive")}),P=(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_cooling")},children:"Suit Cooling "+(v?"is Active":"is Inactive")}),D=(0,e.jsx)(t.$n,{selected:l,icon:"robot",onClick:function(){return x("toggle_ai_control")},children:"AI Control "+(l?"Enabled":"Disabled")});return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[M,D,P]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:50,value:o,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[c," / ",a]})}),(0,e.jsx)(t.Ki.Item,{label:"Cover Status",children:j||!E?(0,e.jsx)(t.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(t.$n,{icon:O?"lock":"lock-open",onClick:function(){return x("toggle_suit_lock")},children:O?"Locked":"Unlocked"})})]})})}},62938:function(y,h,n){"use strict";n.r(h),n.d(h,{RIGSuit:function(){return u}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(57483),g=n(24760),x=n(72273),u=function(o){var c=(0,i.Oc)().data,a=c.interfacelock,l=c.malf,f=c.aicontrol,m=c.ai,v=null;return a||l?v=(0,e.jsx)(t.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!m&&f&&(v=(0,e.jsx)(t.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(r.p8,{height:480,width:550,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.RIGSuitStatus,{}),(0,e.jsx)(s.RIGSuitHardware,{}),(0,e.jsx)(g.RIGSuitModules,{})]})})})}},12671:function(y,h,n){"use strict";n.r(h)},36863:function(y,h,n){"use strict";n.r(h),n.d(h,{Radio:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(79500),g=n(42103),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.rawfreq,f=a.minFrequency,m=a.maxFrequency,v=a.listening,j=a.broadcasting,E=a.subspace,O=a.subspaceSwitchable,M=a.chan_list,P=a.loudspeaker,D=a.mic_cut,S=a.spk_cut,B=a.useSyndMode,T=s.Fo.find(function(W){return W.freq===Number(l)}),U=156;return M&&M.length>0?U+=M.length*28+6:U+=24,O&&(U+=38),(0,e.jsx)(g.p8,{width:310,height:U,theme:B?"syndicate":"",children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:f/10,maxValue:m/10,value:l/10,format:function(W){return(0,i.Mg)(W,1)},onDrag:function(W){return c("setFrequency",{freq:(0,i.LI)(W*10,0)})}}),T&&(0,e.jsxs)(r.az,{inline:!0,color:T.color,ml:2,children:["[",T.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,disabled:S,onClick:function(){return c("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:j?"microphone":"microphone-slash",selected:j,disabled:D,onClick:function(){return c("broadcast")}}),!!O&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:E,onClick:function(){return c("subspace")},children:"Subspace Tx "+(E?"ON":"OFF")})}),!!O&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:P?"volume-up":"volume-mute",selected:P,onClick:function(){return c("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!M||M.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:M?M.map(function(W){var z=s.Fo.find(function($){return $.freq===Number(W.freq)}),k="default";return z&&(k=z.color),(0,e.jsx)(r.Ki.Item,{label:W.display_name,labelColor:k,textAlign:"right",children:W.secure_channel&&E?(0,e.jsx)(r.$n,{icon:W.sec_channel_listen?"square-o":"check-square-o",selected:!W.sec_channel_listen,onClick:function(){return c("channel",{channel:W.chan})},children:W.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:W.chan===l,onClick:function(){return c("specFreq",{channel:W.chan})},children:"Switch"})},W.chan)}):null})]})]})})}},49040:function(y,h,n){"use strict";n.r(h),n.d(h,{LayerSection:function(){return s}});var e=n(20462),i=n(65380),t=n(7081),r=n(21148),s=function(g){var x=(0,t.Oc)(),u=x.act,o=x.data,c=o.category,a=o.piping_layer,l=o.pipe_layers,f=o.preview_rows.flatMap(function(m){return m.previews});return(0,e.jsxs)(r.wn,{fill:!0,width:7.5,children:[c===0&&(0,e.jsx)(r.BJ,{vertical:!0,mb:1,children:Object.keys(l).map(function(m){return(0,e.jsx)(r.BJ.Item,{my:0,children:(0,e.jsx)(r.$n.Checkbox,{checked:l[m]===a,onClick:function(){return u("piping_layer",{piping_layer:l[m]})},children:m})},m)})}),(0,e.jsx)(r.az,{width:"120px",children:f.map(function(m){return(0,e.jsx)(r.$n,{ml:0,tooltip:m.dir_name,selected:m.selected,style:{width:"40px",height:"40px",padding:"0"},onClick:function(){return u("setdir",{dir:m.dir,flipped:m.flipped})},children:(0,e.jsx)(r.az,{className:(0,i.Ly)(["pipes32x32",m.dir+"-"+m.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},m.dir)})})]})}},22915:function(y,h,n){"use strict";n.r(h),n.d(h,{PipeTypeSection:function(){return g}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(66947),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.categories,l=a===void 0?[]:a,f=(0,i.useState)("categoryName"),m=f[0],v=f[1],j=l.find(function(E){return E.cat_name===m})||l[0];return(0,e.jsxs)(r.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(r.tU,{fluid:!0,children:l.map(function(E,O){return(0,e.jsx)(r.tU.Tab,{icon:s.ICON_BY_CATEGORY_NAME[E.cat_name],selected:E.cat_name===j.cat_name,onClick:function(){return v(E.cat_name)},children:E.cat_name},E.cat_name)})}),j==null?void 0:j.recipes.map(function(E){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:E.selected,tooltip:E.pipe_name,onClick:function(){return o("pipe_type",{pipe_type:E.pipe_index,category:j.cat_name})},children:E.pipe_name},E.pipe_index)})]})}},59015:function(y,h,n){"use strict";n.r(h),n.d(h,{SelectionSection:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(66947),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.category,l=c.selected_color,f=c.mode,m=c.paint_colors;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Category",children:s.ROOT_CATEGORIES.map(function(v,j){return(0,e.jsx)(r.$n,{selected:a===j,icon:s.ICON_BY_CATEGORY_NAME[v],color:"transparent",onClick:function(){return o("category",{category:j})},children:v},v)})}),(0,e.jsx)(r.Ki.Item,{label:"Modes",children:(0,e.jsx)(r.BJ,{fill:!0,children:s.TOOLS.map(function(v){return(0,e.jsx)(r.BJ.Item,{grow:!0,children:(0,e.jsx)(r.$n.Checkbox,{checked:f&v.bitmask,fluid:!0,onClick:function(){return o("mode",{mode:v.bitmask})},children:v.name})},v.bitmask)})})}),(0,e.jsxs)(r.Ki.Item,{label:"Color",children:[(0,e.jsx)(r.az,{inline:!0,width:"64px",color:m[l],children:(0,i.ZH)(l)}),Object.keys(m).map(function(v){return(0,e.jsx)(r.BK,{ml:1,color:m[v],onClick:function(){return o("color",{paint_color:v})}},v)})]})]})})}},66947:function(y,h,n){"use strict";n.r(h),n.d(h,{ICON_BY_CATEGORY_NAME:function(){return i},ROOT_CATEGORIES:function(){return e},TOOLS:function(){return t}});var e=["Atmospherics","Disposals"],i={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},t=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}]},98838:function(y,h,n){"use strict";n.r(h),n.d(h,{RapidPipeDispenser:function(){return x}});var e=n(20462),i=n(21148),t=n(42103),r=n(49040),s=n(22915),g=n(59015),x=function(u){return(0,e.jsx)(t.p8,{width:550,height:570,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.SelectionSection,{})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(r.LayerSection,{})})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(s.PipeTypeSection,{})})]})})]})})})}},1963:function(y,h,n){"use strict";n.r(h)},60195:function(y,h,n){"use strict";n.r(h),n.d(h,{RequestConsoleAssistance:function(){return g},RequestConsoleRelay:function(){return x},RequestConsoleSupplies:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(36219),s=function(u){var o=(0,i.Oc)().data,c=o.department,a=o.supply_dept;return(0,e.jsx)(t.wn,{title:"Supplies",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:a,department:c})})},g=function(u){var o=(0,i.Oc)().data,c=o.department,a=o.assist_dept;return(0,e.jsx)(t.wn,{title:"Request assistance from another department",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:a,department:c})})},x=function(u){var o=(0,i.Oc)().data,c=o.department,a=o.info_dept;return(0,e.jsx)(t.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:a,department:c})})}},4584:function(y,h,n){"use strict";n.r(h),n.d(h,{RequestConsoleAnnounce:function(){return u},RequestConsoleMessageAuth:function(){return x},RequestConsoleViewMessages:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(34416),g=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:f.length&&f.map(function(m,v){return(0,e.jsx)(r.Ki.Item,{label:(0,i.jT)(m[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print",{print:v+1})},children:"Print"}),children:(0,i.jT)(m[1])},v)})||(0,e.jsx)(r.az,{children:"No messages."})})},x=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.message,m=l.recipient,v=l.priority,j=l.msgStamped,E=l.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+m,children:f}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:v===2?"High Priority":v===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:E?"good":"bad",children:(0,i.jT)(E)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:j?"good":"bad",children:(0,i.jT)(j)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return a("department",{department:m})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})},u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.message,m=l.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return a("writeAnnouncement")},children:"Edit"}),children:f||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!f||!m,icon:"share",onClick:function(){return a("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})}},36219:function(y,h,n){"use strict";n.r(h),n.d(h,{RequestConsoleSendFail:function(){return x},RequestConsoleSendMenu:function(){return s},RequestConsoleSendPass:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(34416),s=function(u){var o=(0,i.Oc)().act,c=u.dept_list,a=u.department;return(0,e.jsx)(t.Ki,{children:c.sort().map(function(l){return l!==a&&(0,e.jsx)(t.Ki.Item,{label:l,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"envelope-open-text",onClick:function(){return o("write",{write:l,priority:1})},children:"Message"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return o("write",{write:l,priority:2})},children:"High Priority"})]})})||null})})},g=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return c("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})},x=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return c("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})}},11986:function(y,h,n){"use strict";n.r(h),n.d(h,{RequestConsoleSettings:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.silent;return(0,e.jsx)(t.wn,{title:"Settings",children:(0,e.jsxs)(t.$n,{selected:!o,icon:o?"volume-mute":"volume-up",onClick:function(){return x("toggleSilent")},children:["Speaker ",o?"OFF":"ON"]})})}},34416:function(y,h,n){"use strict";n.r(h),n.d(h,{RCS_ANNOUNCE:function(){return o},RCS_MAINMENU:function(){return e},RCS_MESSAUTH:function(){return u},RCS_RQASSIST:function(){return i},RCS_RQSUPPLY:function(){return t},RCS_SENDINFO:function(){return r},RCS_SENTFAIL:function(){return g},RCS_SENTPASS:function(){return s},RCS_VIEWMSGS:function(){return x}});var e=0,i=1,t=2,r=3,s=4,g=5,x=6,u=7,o=8},7291:function(y,h,n){"use strict";n.r(h),n.d(h,{RequestConsole:function(){return c}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(34416),g=n(4584),x=n(36219),u=n(11986),o=n(60195),c=function(a){var l=(0,i.Oc)(),f=l.act,m=l.data,v=m.screen,j=m.newmessagepriority,E=m.announcementConsole,O=[];return O[s.RCS_MAINMENU]=(0,e.jsx)(u.RequestConsoleSettings,{}),O[s.RCS_RQASSIST]=(0,e.jsx)(o.RequestConsoleAssistance,{}),O[s.RCS_RQSUPPLY]=(0,e.jsx)(o.RequestConsoleSupplies,{}),O[s.RCS_SENDINFO]=(0,e.jsx)(o.RequestConsoleRelay,{}),O[s.RCS_SENTPASS]=(0,e.jsx)(x.RequestConsoleSendPass,{}),O[s.RCS_SENTFAIL]=(0,e.jsx)(x.RequestConsoleSendFail,{}),O[s.RCS_VIEWMSGS]=(0,e.jsx)(g.RequestConsoleViewMessages,{}),O[s.RCS_MESSAUTH]=(0,e.jsx)(g.RequestConsoleMessageAuth,{}),O[s.RCS_ANNOUNCE]=(0,e.jsx)(g.RequestConsoleAnnounce,{}),(0,e.jsx)(r.p8,{width:520,height:410,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_VIEWMSGS,onClick:function(){return f("setScreen",{setScreen:s.RCS_VIEWMSGS})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQASSIST,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQASSIST})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQSUPPLY,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQSUPPLY})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_SENDINFO,onClick:function(){return f("setScreen",{setScreen:s.RCS_SENDINFO})},icon:"share-square-o",children:"Report"}),E&&(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_ANNOUNCE,onClick:function(){return f("setScreen",{setScreen:s.RCS_ANNOUNCE})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_MAINMENU,onClick:function(){return f("setScreen",{setScreen:s.RCS_MAINMENU})},icon:"cog"})]}),j&&(0,e.jsx)(t.wn,{title:j>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:j>1?"bad":"average",bold:j>1})||null,O[v]||""]})})}},22292:function(y,h,n){"use strict";n.r(h)},99930:function(y,h,n){"use strict";n.r(h),n.d(h,{PaginationChevrons:function(){return x},ResearchConsoleBuildMenu:function(){return g}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(69358),g=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=u.target,f=u.designs,m=u.buildName,v=u.buildFiveName;return l?(0,e.jsxs)(r.wn,{title:(0,s.paginationTitle)("Designs",a.builder_page),buttons:(0,e.jsx)(x,{target:"builder_page"}),children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:a.search,onInput:function(j,E){return c("search",{search:E})},mb:1}),f&&f.length?f.map(function(j){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsxs)(r.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:j.name}),(0,e.jsxs)(r.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(r.$n,{mb:-1,icon:"wrench",onClick:function(){return c(m,{build:j.id,imprint:j.id})},children:"Build"}),v&&(0,e.jsx)(r.$n,{mb:-1,onClick:function(){return c(v,{build:j.id,imprint:j.id})},children:"x5"})]}),(0,e.jsxs)(r.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:j.mat_list.join(" ")}),(0,e.jsx)(r.az,{inline:!0,color:"average",ml:1,children:j.chem_list.join(" ")})]})]}),(0,e.jsx)(r.cG,{})]},j.id)}):(0,e.jsx)(r.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(r.az,{color:"bad",children:"Error"})},x=function(u){var o=(0,t.Oc)().act,c=u.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return o(c,{reset:!0})}}),(0,e.jsx)(r.$n,{icon:"chevron-left",onClick:function(){return o(c,{reverse:-1})}}),(0,e.jsx)(r.$n,{icon:"chevron-right",onClick:function(){return o(c,{reverse:1})}})]})}},23119:function(y,h,n){"use strict";n.r(h),n.d(h,{ResearchConsoleConstructor:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(95411),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=g.name,a=g.matsStates,l=g.onMatsState,f=g.protoTab,m=g.onProtoTab,v=g.linked,j=g.designs;if(!v||!v.present)return(0,e.jsxs)(t.wn,{title:c,children:["No ",c," found."]});var E=v.total_materials,O=v.max_materials,M=v.total_volume,P=v.max_volume,D=v.busy,S=v.mats,B=v.reagents,T=v.queue,U="transparent",W=!1,z="layer-group";D?(z="hammer",U="average",W=!0):T&&T.length&&(z="sync",U="green",W=!0);var k=[];return k[0]=(0,e.jsx)(r.ResearchConsoleConstructorMenue,{name:c,linked:v,designs:j}),k[1]=(0,e.jsx)(r.ResearchConsoleConstructorQueue,{name:c,busy:D,queue:T}),k[2]=(0,e.jsx)(r.ResearchConsoleConstructorMats,{name:c,mats:S,matsStates:a,onMatsState:l}),k[3]=(0,e.jsx)(r.ResearchConsoleConstructorChems,{name:c,reagents:B}),(0,e.jsxs)(t.wn,{title:c,buttons:D&&(0,e.jsx)(t.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Materials",children:(0,e.jsxs)(t.z2,{value:E,maxValue:O,children:[E," cm\xB3 / ",O," cm\xB3"]})}),(0,e.jsx)(t.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(t.z2,{value:M,maxValue:P,children:[M,"u / ",P,"u"]})})]}),(0,e.jsxs)(t.tU,{mt:1,children:[(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===0,onClick:function(){return m(0)},children:"Build"}),(0,e.jsx)(t.tU.Tab,{icon:z,iconSpin:W,color:U,selected:f===1,onClick:function(){return m(1)},children:"Queue"}),(0,e.jsx)(t.tU.Tab,{icon:"cookie-bite",selected:f===2,onClick:function(){return m(2)},children:"Mat Storage"}),(0,e.jsx)(t.tU.Tab,{icon:"flask",selected:f===3,onClick:function(){return m(3)},children:"Chem Storage"})]}),k[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})]})}},95411:function(y,h,n){"use strict";n.r(h),n.d(h,{ResearchConsoleConstructorChems:function(){return c},ResearchConsoleConstructorMats:function(){return o},ResearchConsoleConstructorMenue:function(){return x},ResearchConsoleConstructorQueue:function(){return u}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(99930);function g(){return g=Object.assign||function(a){for(var l=1;l=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:m.biomass>=150?"circle":"circle-o"}),"\xA0",m.biomass]}),j]},v)}):""}},88315:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingConsolePodSleevers:function(){return s}});var e=n(20462),i=n(31200),t=n(7081),r=n(21148),s=function(g){var x=(0,t.Oc)(),u=x.act,o=x.data,c=o.sleevers,a=o.spods,l=o.selected_sleever;return c&&c.length?c.map(function(f,m){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(r._V,{src:(0,i.l)("sleeve_"+(f.occupied?"occupied":"empty")+".gif"),style:{width:"100%"}}),(0,e.jsx)(r.az,{color:f.occupied?"label":"bad",children:f.name}),(0,e.jsx)(r.$n,{selected:l===f.sleever,icon:l===f.sleever&&"check",mt:a&&a.length?"3rem":"1.5rem",onClick:function(){return u("selectsleever",{ref:f.sleever})},children:"Select"})]},m)}):""}},50123:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingConsolePodSpods:function(){return g}});var e=n(20462),i=n(4089),t=n(31200),r=n(7081),s=n(21148),g=function(x){var u=(0,r.Oc)(),o=u.act,c=u.data,a=c.spods,l=c.selected_printer;return a&&a.length?a.map(function(f,m){var v;return f.status==="cloning"?v=(0,e.jsx)(s.z2,{minValue:0,maxValue:1,value:f.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(s.az,{textAlign:"center",children:(0,i.Mg)(f.progress)+"%"})}):f.status==="mess"?v=(0,e.jsx)(s.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):v=(0,e.jsx)(s.$n,{selected:l===f.spod,icon:l===f.spod&&"check",mt:"0.5rem",onClick:function(){return o("selectprinter",{ref:f.spod})},children:"Select"}),(0,e.jsxs)(s.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(s._V,{src:(0,t.l)("synthprinter"+(f.busy?"_working":"")+".gif"),style:{width:"100%"}}),(0,e.jsx)(s.az,{color:"label",children:f.name}),(0,e.jsxs)(s.az,{bold:!0,color:f.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.steel>=15e3?"circle":"circle-o"}),"\xA0",f.steel]}),(0,e.jsxs)(s.az,{bold:!0,color:f.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.glass>=15e3?"circle":"circle-o"}),"\xA0",f.glass]}),v]},m)}):""}},27529:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingConsoleRecords:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.records,u=s.actToDo;return x.length?(0,e.jsx)(t.az,{mt:"0.5rem",children:x.map(function(o,c){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return g(u,{ref:o.recref})},children:o.name},c)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},60009:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingConsoleStatus:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().data,x=g.pods,u=g.spods,o=g.sleevers;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pods",children:x&&x.length?(0,e.jsxs)(t.az,{color:"good",children:[x.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"SynthFabs",children:u&&u.length?(0,e.jsxs)(t.az,{color:"good",children:[u.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"Sleevers",children:o&&o.length?(0,e.jsxs)(t.az,{color:"good",children:[o.length," Connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})})]})})}},87999:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingConsoleCoreDump:function(){return r},ResleevingConsoleDiskPrep:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=function(g){return(0,e.jsx)(t.Rr,{children:(0,e.jsxs)(t.so,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.In,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.jsx)(t.so.Item,{grow:1,color:"bad",mt:5,children:(0,e.jsx)("h2",{children:"TransCore dump completed. Resleeving offline."})})]})})},s=function(g){var x=(0,i.Oc)().act;return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"TRANSCORE DUMP"})}),(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h2",{children:"!!WARNING!!"})}),(0,e.jsx)(t.az,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n,{icon:"eject",color:"good",onClick:function(){return x("ejectdisk")},children:"Eject Disk"})}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return x("coredump")},children:"Core Dump"})})]})}},69163:function(y,h,n){"use strict";n.r(h),n.d(h,{MENU_BODY:function(){return i},MENU_MAIN:function(){return e},MENU_MIND:function(){return t}});var e=1,i=2,t=3},86686:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingConsole:function(){return a}});var e=n(20462),i=n(7081),t=n(21148),r=n(86471),s=n(42103),g=n(35216),x=n(60009),u=n(87999),o=n(73509),c=n(769),a=function(l){var f=(0,i.Oc)().data,m=f.coredumped,v=f.emergency,j=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.ResleevingConsoleTemp,{}),(0,e.jsx)(x.ResleevingConsoleStatus,{}),(0,e.jsx)(g.ResleevingConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:(0,e.jsx)(g.ResleevingConsoleBody,{})})]});return m&&(j=(0,e.jsx)(u.ResleevingConsoleCoreDump,{})),v&&(j=(0,e.jsx)(u.ResleevingConsoleDiskPrep,{})),(0,r.modalRegisterBodyOverride)("view_b_rec",o.viewBodyRecordModalBodyOverride),(0,r.modalRegisterBodyOverride)("view_m_rec",c.viewMindRecordModalBodyOverride),(0,e.jsxs)(s.p8,{width:640,height:520,children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsx)(s.p8.Content,{className:"Layout__content--flexColumn",children:j})]})}},43795:function(y,h,n){"use strict";n.r(h)},73509:function(y,h,n){"use strict";n.r(h),n.d(h,{viewBodyRecordModalBodyOverride:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.args,u=x.activerecord,o=x.realname,c=x.species,a=x.sex,l=x.mind_compat,f=x.synthetic,m=x.oocnotes,v=x.can_grow_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Body Record ("+o+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return g("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Bio. Sex",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Mind Compat",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Synthetic",children:f?"Yes":"No"}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:m})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{disabled:!v,icon:"user-plus",onClick:function(){return g("create",{ref:u})},children:f?"Build":"Grow"})})]})})}},769:function(y,h,n){"use strict";n.r(h),n.d(h,{viewMindRecordModalBodyOverride:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)().act,x=s.args,u=x.activerecord,o=x.realname,c=x.obviously_dead,a=x.oocnotes,l=x.can_sleeve_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Mind Record ("+o+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return g("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!l,icon:"user-plus",onClick:function(){return g("sleeve",{ref:u,mode:1})},children:"Sleeve"}),(0,e.jsx)(t.$n,{icon:"user-plus",onClick:function(){return g("sleeve",{ref:u,mode:2})},children:"Card"})]}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:a})})]})})}},18313:function(y,h,n){"use strict";n.r(h),n.d(h,{ResleevingPod:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)().data,u=x.occupied,o=x.name,c=x.health,a=x.maxHealth,l=x.stat,f=x.mindStatus,m=x.mindName,v=x.resleeveSick,j=x.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Occupant",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:l===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):l===1?(0,e.jsx)(t.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(t.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:c/a,children:[c,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:f?"Present":"Missing"}),f?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:m}):""]}),v?(0,e.jsxs)(t.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",j?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(t.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},68297:function(y,h,n){"use strict";n.r(h),n.d(h,{RoboticsControlConsole:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.can_hack,l=c.safety,f=c.show_detonate_all,m=c.cyborgs,v=m===void 0?[]:m,j=c.auth;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!f&&(0,e.jsxs)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:l?"lock":"unlock",selected:l,children:l?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:l,color:"bad",onClick:function(){return o("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(g,{cyborgs:v,can_hack:a,auth:j})]})})},g=function(x){var u=x.cyborgs,o=x.can_hack,c=x.auth,a=(0,i.Oc)().act;return u.length?u.map(function(l){return(0,e.jsx)(t.wn,{title:l.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!l.hackable&&!l.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return a("hackbot",{ref:l.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:l.locked_down?"unlock":"lock",color:l.locked_down?"good":"default",disabled:!c,onClick:function(){return a("stopbot",{ref:l.ref})},children:l.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!c,color:"bad",onClick:function(){return a("killbot",{ref:l.ref})},children:"Detonate"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.az,{color:l.status?"bad":l.locked_down?"average":"good",children:l.status?"Not Responding":l.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:l.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:l.health>50?"good":"bad",value:l.health/100})}),typeof l.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:l.charge>30?"good":"bad",value:l.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:l.cell_capacity<3e4?"average":"good",children:l.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!l.is_hacked&&(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Module",children:l.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:l.synchronization?"default":"average",children:l.synchronization||"None"})})]})},l.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},2879:function(y,h,n){"use strict";n.r(h),n.d(h,{RogueZones:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.timeout_percent,a=o.diffstep,l=o.difficulty,f=o.occupied,m=o.scanning,v=o.updated,j=o.debug,E=o.shuttle_location,O=o.shuttle_at_station,M=o.scan_ready,P=o.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Current Area",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Mineral Content",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:P&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return u("recall_shuttle")},children:"Recall Shuttle"})||null,children:E}),f&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",f," personnel!"]})||(0,e.jsx)(t.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(t.wn,{title:"Scanner",buttons:(0,e.jsx)(t.$n,{disabled:!M,fluid:!0,icon:"search",onClick:function(){return u("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(t.z2,{value:c,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),m&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,v&&!m&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,j&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",c]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",a]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",l]}),(0,e.jsxs)(t.az,{children:["Occupied: ",f]}),(0,e.jsxs)(t.az,{children:["Debug: ",j]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",E]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",O]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",M]})]})||null]})})]})})}},1249:function(y,h,n){"use strict";n.r(h),n.d(h,{RustCoreMonitor:function(){return s},RustCoreMonitorContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return o("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Field Status"}),(0,e.jsx)(t.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(t.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(t.XI.Cell,{children:"Plasma Content"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return o("toggle_active",{core:l.ref})},children:l.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return o("toggle_reactantdump",{core:l.ref})},children:l.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:l.field_instability}),(0,e.jsx)(t.XI.Cell,{children:l.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!l.has_field&&"yellow",value:l.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(f,m){return o("set_fieldstr",{core:l.ref,fieldstr:m})}})}),(0,e.jsx)(t.XI.Cell,{})]},l.name)})]})})}},27095:function(y,h,n){"use strict";n.r(h),n.d(h,{RustFuelContent:function(){return g},RustFuelControl:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return o("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.XI.Cell,{children:"Fuel Rod Composition"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return o("toggle_active",{fuel:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_type})]},l.name)})]})})}},90406:function(y,h,n){"use strict";n.r(h),n.d(h,{Secbot:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.on,a=o.open,l=o.locked,f=o.idcheck,m=o.check_records,v=o.check_arrest,j=o.arrest_type,E=o.declare_arrests,O=o.bot_patrolling,M=o.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return u("power")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:a?"bad":"good",children:a?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return u("idcheck")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return u("ignorerec")},children:m?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return u("ignorearr")},children:v?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return u("switchmode")},children:j?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return u("declarearrests")},children:E?"Yes":"No"})}),!!O&&(0,e.jsx)(t.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.$n,{icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return u("patrol")},children:M?"Yes":"No"})})]})})||null]})})}},38575:function(y,h,n){"use strict";n.r(h),n.d(h,{SecureSafe:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],l=c.locked,f=c.l_setshort,m=c.code,v=c.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:a.map(function(j){return(0,e.jsx)(t.XI.Cell,{children:j.map(function(E){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!v||!!f&&1||E!=="R"&&!l||m==="ERROR"&&E!=="R"&&1,onClick:function(){return o("type",{digit:E})},children:E},E)})},j[0])})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.code,l=c.l_setshort,f=c.l_set,m=c.emagged,v=c.locked,j=!(f||l);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.az,{m:"6px",children:[j&&(0,e.jsx)(t.IC,{textAlign:"center",info:!0,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"LOCKING SYSTEM ERROR - 1701"}),!!l&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(t.wn,{height:"60px",children:(0,e.jsx)(t.az,{textAlign:"center",position:"center",fontSize:"35px",children:a&&a||(0,e.jsx)(t.az,{textColor:v?"red":"green",children:v?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},26487:function(y,h,n){"use strict";n.r(h),n.d(h,{SecurityRecordsList:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(c,a){return x("search",{t1:a})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:o.map(function(c,a){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:c.color,onClick:function(){return x("d_rec",{d_rec:c.ref})},children:c.id+": "+c.name+" (Criminal Status: "+c.criminal+")"},a)})})]})}},12473:function(y,h,n){"use strict";n.r(h),n.d(h,{SecurityRecordsMaintenance:function(){return g},SecurityRecordsNavigation:function(){return u},SecurityRecordsView:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(64254),s=n(72462),g=function(o){var c=(0,i.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return c("del_all")},children:"Delete All Security Records"})]})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.security,m=l.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.SecurityRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(s.SecurityRecordsViewSecurity,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return a("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return a("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return a("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})},children:"Back"})]})]})},u=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:f===2,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===3,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},64254:function(y,h,n){"use strict";n.r(h),n.d(h,{SecurityRecordsViewGeneral:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(80724),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.general;return!c||!c.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:c.fields.map(function(a,l){return(0,e.jsx)(t.Ki.Item,{label:a.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[a.value,!!a.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(a)}})]})},l)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!c.has_photos&&c.photos.map(function(a,l){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:a.substring(1,a.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",l+1]},l)}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return u("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.$n,{onClick:function(){return u("photo_side")},children:"Update Side Photo"})]})]})]})}},72462:function(y,h,n){"use strict";n.r(h),n.d(h,{SecurityRecordsViewSecurity:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(86471),s=n(80724),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.security;return!a||!a.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return o("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:a.fields.map(function(l,f){return(0,e.jsx)(t.Ki.Item,{label:l.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[l.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:"initial",onClick:function(){return(0,s.doEdit)(l)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[a.comments&&a.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):a.comments&&a.comments.map(function(l,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:l.header}),(0,e.jsx)("br",{}),l.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return o("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},94779:function(y,h,n){"use strict";n.r(h),n.d(h,{SecurityRecords:function(){return a}});var e=n(20462),i=n(7081),t=n(21148),r=n(86471),s=n(42103),g=n(35069),x=n(97049),u=n(3751),o=n(26487),c=n(12473),a=function(l){var f=(0,i.Oc)().data,m=f.authenticated,v=f.screen;if(!m)return(0,e.jsx)(s.p8,{width:700,height:680,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var j=[];return j[2]=(0,e.jsx)(o.SecurityRecordsList,{}),j[3]=(0,e.jsx)(c.SecurityRecordsMaintenance,{}),j[4]=(0,e.jsx)(c.SecurityRecordsView,{}),(0,e.jsxs)(s.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(u.TemporaryNotice,{}),(0,e.jsx)(c.SecurityRecordsNavigation,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:v&&j[v]||""})]})]})}},53588:function(y,h,n){"use strict";n.r(h)},62516:function(y,h,n){"use strict";n.r(h),n.d(h,{SeedStorage:function(){return x}});var e=n(20462),i=n(7402),t=n(61282),r=n(7081),s=n(21148),g=n(42103),x=function(u){var o=(0,r.Oc)(),c=o.act,a=o.data,l=a.seeds,f=(0,i.Ul)(l,function(m){return m.name.toLowerCase()});return(0,e.jsx)(g.p8,{width:600,height:760,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{title:"Seeds",children:f.map(function(m){return(0,e.jsxs)(s.so,{spacing:1,mt:-1,children:[(0,e.jsx)(s.so.Item,{basis:"60%",children:(0,e.jsx)(s.Nt,{title:(0,t.Sn)(m.name)+" #"+m.uid,children:(0,e.jsx)(s.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(s.Ki,{children:Object.keys(m.traits).map(function(v){return(0,e.jsx)(s.Ki.Item,{label:(0,t.Sn)(v),children:m.traits[v]},v)})})})})}),(0,e.jsxs)(s.so.Item,{mt:.4,children:[m.amount," Remaining"]}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"download",onClick:function(){return c("vend",{id:m.id})},children:"Vend"})}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"trash",onClick:function(){return c("purge",{id:m.id})},children:"Purge"})})]},m.name+m.uid)})})})})}},3967:function(y,h,n){"use strict";n.r(h),n.d(h,{ShieldCapacitor:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.active,f=a.time_since_fail,m=a.stored_charge,v=a.max_charge,j=a.charge_rate,E=a.max_charge_rate;return(0,e.jsx)(g.p8,{width:500,height:400,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:l,onClick:function(){return c("toggle")},children:l?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:f>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:m,format:function(O){return(0,s.QL)(O,0,"J")}}),(0,e.jsx)(r.zv,{value:100*(0,i.LI)(m/v,1),format:function(O){return" ("+(0,i.Mg)(O,1)+"%)"}})]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:j,step:100,stepPixelSize:.2,minValue:1e4,maxValue:E,format:function(O){return(0,s.d5)(O)},onDrag:function(O){return c("charge_rate",{rate:O})}})})]})})})})}},7180:function(y,h,n){"use strict";n.r(h),n.d(h,{ShieldGenerator:function(){return u}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=n(72859),u=function(a){var l=(0,t.Oc)().data,f=l.locked;return(0,e.jsx)(g.p8,{width:500,height:400,children:(0,e.jsx)(g.p8.Content,{children:f?(0,e.jsx)(o,{}):(0,e.jsx)(c,{})})})},o=function(a){return(0,e.jsxs)(x.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},c=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.lockedData,j=v.capacitors,E=v.active,O=v.failing,M=v.radius,P=v.max_radius,D=v.z_range,S=v.max_z_range,B=v.average_field_strength,T=v.target_field_strength,U=v.max_field_strength,W=v.shields,z=v.upkeep,k=v.strengthen_rate,$=v.max_strengthen_rate,Y=v.gen_power,G=(j||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:O?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsx)(r.Ki.Item,{label:"Overall Field Strength",children:(0,i.Mg)(B,2)+" Renwick ("+(T&&(0,i.Mg)(100*B/T,1)+"%)")||"NA)"}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,s.d5)(z)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,s.d5)(Y)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[W," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:G?j.map(function(ne,oe){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+oe,children:[ne.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge",children:(0,s.QL)(ne.stored_charge,0,"J")+" ("+(0,i.Mg)(100*(ne.stored_charge/ne.max_charge),2)+"%)"}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:ne.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},oe)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:E,onClick:function(){return f("toggle")},children:E?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,step:1,minValue:0,maxValue:P,value:M,unit:"m",onDrag:function(ne){return f("change_radius",{val:ne})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,step:1,minValue:0,maxValue:S,value:D,unit:"vertical range",onDrag:function(ne){return f("z_range",{val:ne})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:$,value:k,format:function(ne){return(0,i.Mg)(ne,1)},unit:"Renwick/s",onDrag:function(ne){return f("strengthen_rate",{val:ne})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,step:1,minValue:1,maxValue:U,value:T,unit:"Renwick",onDrag:function(ne){return f("target_field_strength",{val:ne})}})})]})})]})}},67889:function(y,h,n){"use strict";n.r(h),n.d(h,{ShutoffMonitor:function(){return s},ShutoffMonitorContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.valves;return(0,e.jsx)(t.wn,{title:"Valves",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Open"}),(0,e.jsx)(t.XI.Cell,{children:"Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),a.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:l.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:l.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l.open,disabled:!l.enabled,onClick:function(){return o("toggle_open",{valve:l.ref})},children:l.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l.enabled,onClick:function(){return o("toggle_enable",{valve:l.ref})},children:l.enabled?"Auto":"Manual"})]})]},l.name)})]})})}},83491:function(y,h,n){"use strict";n.r(h),n.d(h,{ShuttleControlConsoleDefault:function(){return g},ShuttleControlConsoleExploration:function(){return u},ShuttleControlConsoleMulti:function(){return x}});var e=n(20462),i=n(7081),t=n(21148),r=n(13553),s=n(50705),g=function(o){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.can_cloak,m=l.can_pick,v=l.legit,j=l.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(t.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(t.Ki,{children:[f&&(0,e.jsx)(t.Ki.Item,{label:v?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(t.$n,{selected:j,icon:j?"eye":"eye-o",onClick:function(){return a("toggle_cloaked")},children:j?"Enabled":"Disabled"})})||"",(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!m,onClick:function(){return a("pick")},children:o.destination_name})})]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},u=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.can_pick,m=l.destination_name,v=l.fuel_usage,j=l.fuel_span,E=l.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{engineName:"Engines"}),(0,e.jsx)(t.wn,{title:"Jump Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!f,onClick:function(){return a("pick")},children:m})}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Est. Delta-V Budget",color:j,children:[E," m/s"]}),(0,e.jsxs)(t.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[v," m/s"]})]})||""]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})}},96366:function(y,h,n){"use strict";n.r(h),n.d(h,{ShuttleControlConsoleWeb:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(40420),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.autopilot,l=c.can_rename,f=c.shuttle_state,m=c.is_moving,v=c.skip_docking,j=c.docking_status,E=c.docking_override,O=c.shuttle_location,M=c.can_cloak,P=c.cloaked,D=c.can_autopilot,S=c.routes,B=c.is_in_transit,T=c.travel_progress,U=c.time_left,W=c.doors,z=c.sensors;return(0,e.jsxs)(e.Fragment,{children:[a&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||"",(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:l&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return o("rename_command")},children:"Rename"})||"",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:f==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,i.Sn)(O)}),!v&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:j==="docked",disabled:j!=="undocked"&&j!=="docked",onClick:function(){return o("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:j==="undocked",disabled:j!=="docked"&&j!=="undocked",onClick:function(){return o("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:(0,s.getDockingStatus)(j,E)})})||"",M&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:P,icon:P?"eye":"eye-o",onClick:function(){return o("toggle_cloaked")},children:P?"Enabled":"Disabled"})})||"",D&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:a,icon:a?"eye":"eye-o",onClick:function(){return o("toggle_autopilot")},children:a?"Enabled":"Disabled"})})||""]})||""]}),!m&&(0,e.jsx)(r.wn,{title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:S.length&&S.map(function(k){return(0,e.jsx)(r.Ki.Item,{label:k.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return o("traverse",{traverse:k.index})},children:k.travel_time})},k.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||""]}),B&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:T,children:[U,"s"]})})})})||"",Object.keys(W).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(W).map(function(k){var $=W[k];return(0,e.jsxs)(r.Ki.Item,{label:k,children:[$.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",$.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},k)})})})||"",Object.keys(z).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(z).map(function(k,$){var Y=z[k];return Y.reading?(0,e.jsx)(r.Ki.Item,{label:k,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[Y.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[Y.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[Y.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[Y.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[Y.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[Y.phoron,"%"]}),Y.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[Y.other,"%"]})||""]})},k):(0,e.jsx)(r.Ki.Item,{label:k,color:"bad",children:"Unable to get sensor air reading."},$)})})})||""]})}},13553:function(y,h,n){"use strict";n.r(h),n.d(h,{ShuttleControlSharedShuttleControls:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.can_launch,c=u.can_cancel,a=u.can_force;return(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("move")},disabled:!o,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("cancel")},disabled:!c,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("force")},color:"bad",disabled:!a,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})}},50705:function(y,h,n){"use strict";n.r(h),n.d(h,{ShuttleControlSharedShuttleStatus:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(40420),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=g.engineName,a=c===void 0?"Bluespace Drive":c,l=o.shuttle_status,f=o.shuttle_state,m=o.has_docking,v=o.docking_status,j=o.docking_override,E=o.docking_codes;return(0,e.jsxs)(t.wn,{title:"Shuttle Status",children:[(0,e.jsx)(t.az,{color:"label",mb:1,children:l}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:a,children:f==="idle"&&(0,e.jsx)(t.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(t.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(t.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})}),m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Docking Status",children:(0,r.getDockingStatus)(v,j)}),(0,e.jsx)(t.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return u("set_codes")},children:E||"Not Set"})})]})||""]})]})}},40420:function(y,h,n){"use strict";n.r(h),n.d(h,{getDockingStatus:function(){return t}});var e=n(20462),i=n(21148);function t(r,s){var g="ERROR",x="bad",u=!1;return r==="docked"?(g="DOCKED",x="good"):r==="docking"?(g="DOCKING",x="average",u=!0):r==="undocking"?(g="UNDOCKING",x="average",u=!0):r==="undocked"&&(g="UNDOCKED",x="#676767"),u&&s&&(g=g+"-MANUAL"),(0,e.jsx)(i.az,{color:x,children:g})}},93147:function(y,h,n){"use strict";n.r(h),n.d(h,{ShuttleControl:function(){return g}});var e=n(20462),i=n(7081),t=n(42103),r=n(83491),s=n(96366),g=function(x){var u=(0,i.Oc)().data,o=u.subtemplate,c=u.destination_name;return(0,e.jsx)(t.p8,{width:470,height:o==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(t.p8.Content,{children:o==="ShuttleControlConsoleDefault"&&(0,e.jsx)(r.ShuttleControlConsoleDefault,{})||o==="ShuttleControlConsoleMulti"&&(0,e.jsx)(r.ShuttleControlConsoleMulti,{destination_name:c})||o==="ShuttleControlConsoleExploration"&&(0,e.jsx)(r.ShuttleControlConsoleExploration,{})||o==="ShuttleControlConsoleWeb"&&(0,e.jsx)(s.ShuttleControlConsoleWeb,{})})})}},41396:function(y,h,n){"use strict";n.r(h)},46321:function(y,h,n){"use strict";n.r(h),n.d(h,{Signaler:function(){return g},SignalerContent:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g=function(){return(0,e.jsx)(s.p8,{width:280,height:132,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.code,f=a.frequency,m=a.minFrequency,v=a.maxFrequency;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:v/10,value:f/10,format:function(j){return(0,i.Mg)(j,1)},width:"80px",onDrag:function(j){return c("freq",{freq:j})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return c("reset",{reset:"freq"})},children:"Reset"})})]}),(0,e.jsxs)(r.XI.Row,{mt:.6,children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(j){return c("code",{code:j})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return c("reset",{reset:"code"})},children:"Reset"})})]}),(0,e.jsx)(r.XI.Row,{mt:.8,children:(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return c("signal")},children:"Send Signal"})})})]})})}},63e3:function(y,h,n){"use strict";n.r(h),n.d(h,{SleeperChemicals:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.occupant,c=u.chemicals,a=u.maxchem,l=u.amounts;return(0,e.jsx)(t.wn,{title:"Chemicals",flexGrow:!0,children:c.map(function(f,m){var v="",j;return f.overdosing?(v="bad",j=(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):f.od_warning&&(v="average",j=(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(t.wn,{title:f.title,mx:"0",lineHeight:"18px",buttons:j,children:(0,e.jsxs)(t.so,{align:"flex-start",children:[(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:f.occ_amount/a,color:v,mr:"0.5rem",children:[f.pretty_amount,"/",a,"u"]}),l.map(function(E,O){return(0,e.jsx)(t.$n,{disabled:!f.injectable||f.occ_amount+E>a||o.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return x("chemical",{chemid:f.id,amount:E})},children:E},O)})]})})},m)})})}},57224:function(y,h,n){"use strict";n.r(h),n.d(h,{SleeperDamage:function(){return g}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(40308),g=function(x){var u=(0,t.Oc)().data,o=u.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:s.damages.map(function(c,a){return(0,e.jsx)(r.Ki.Item,{label:c[0],children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:o[c[1]]/100,ranges:s.damageRange,children:(0,i.Mg)(o[c[1]])},a)},a)})})})}},54695:function(y,h,n){"use strict";n.r(h),n.d(h,{SleeperDialysisPump:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=s.active,c=s.actToDo,a=s.title,l=u.isBeakerLoaded,f=u.beakerMaxSpace,m=u.beakerFreeSpace,v=o&&m>0;return(0,e.jsx)(t.wn,{title:a,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!l||m<=0,selected:v,icon:v?"toggle-on":"toggle-off",onClick:function(){return x(c)},children:v?"Active":"Inactive"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return x("removebeaker")},children:"Eject"})]}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:m/f,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[m,"u"]})})}):(0,e.jsx)(t.az,{color:"label",children:"No beaker loaded."})})}},39176:function(y,h,n){"use strict";n.r(h),n.d(h,{SleeperEmpty:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.isBeakerLoaded;return(0,e.jsx)(t.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected.",o&&(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("removebeaker")},children:"Remove Beaker"})})||null]})})})}},44092:function(y,h,n){"use strict";n.r(h),n.d(h,{SleeperMain:function(){return x}});var e=n(20462),i=n(7081),t=n(63e3),r=n(57224),s=n(54695),g=n(86570),x=function(u){var o=(0,i.Oc)().data,c=o.dialysis,a=o.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.SleeperOccupant,{}),(0,e.jsx)(r.SleeperDamage,{}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Dialysis",active:c,actToDo:"togglefilter"}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Stomach Pump",active:a,actToDo:"togglepump"}),(0,e.jsx)(t.SleeperChemicals,{})]})}},86570:function(y,h,n){"use strict";n.r(h),n.d(h,{SleeperOccupant:function(){return g}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(40308),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.occupant,l=c.auto_eject_dead,f=c.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){return o("auto_eject_dead_"+(l?"off":"on"))},children:l?"On":"Off"}),(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return o("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{onClick:function(){return o("changestasis")},children:f})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:a.health/a.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,i.Mg)(a.health)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.stats[a.stat][0],children:s.stats[a.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:a.bodyTemperature/a.maxTemp,color:s.tempColors[a.temperatureSuitability+3],children:[(0,i.Mg)(a.btCelsius),"\xB0C,",(0,i.Mg)(a.btFaren),"\xB0F"]})}),!!a.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:a.bloodLevel/a.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[a.bloodPercent,"%, ",a.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[a.pulse," BPM"]})]})]})})}},40308:function(y,h,n){"use strict";n.r(h),n.d(h,{damageRange:function(){return t},damages:function(){return i},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],i=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},46039:function(y,h,n){"use strict";n.r(h),n.d(h,{Sleeper:function(){return g}});var e=n(20462),i=n(7081),t=n(42103),r=n(39176),s=n(44092),g=function(x){var u=(0,i.Oc)().data,o=u.hasOccupant,c=o?(0,e.jsx)(s.SleeperMain,{}):(0,e.jsx)(r.SleeperEmpty,{});return(0,e.jsx)(t.p8,{width:550,height:760,children:(0,e.jsx)(t.p8.Content,{className:"Layout__content--flexColumn",children:c})})}},34880:function(y,h,n){"use strict";n.r(h)},49752:function(y,h,n){"use strict";n.r(h),n.d(h,{SmartVend:function(){return g}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.config,a=u.data,l=a.secure,f=a.locked,m=a.contents;return(0,e.jsx)(s.p8,{width:500,height:550,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[l&&f===-1&&(0,e.jsx)(r.IC,{danger:!0,children:(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."})})||l&&f!==-1&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||"",m.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",c.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,i.Tj)(m,function(v,j){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:v.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[v.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return o("Release",{index:v.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:v.amount<5,onClick:function(){return o("Release",{index:v.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:v.amount<25,onClick:function(){return o("Release",{index:v.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:v.amount<50,onClick:function(){return o("Release",{index:v.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return o("Release",{index:v.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return o("Release",{index:v.index,amount:v.amount})},children:"All"})]})]},j)})]})]})})})}},28088:function(y,h,n){"use strict";n.r(h),n.d(h,{Smes:function(){return u}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=1e3,u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.capacityPercent,m=l.capacity,v=l.charge,j=l.inputAttempt,E=l.inputting,O=l.inputLevel,M=l.inputLevelMax,P=l.inputAvailable,D=l.outputAttempt,S=l.outputting,B=l.outputLevel,T=l.outputLevelMax,U=l.outputUsed,W=f>=100&&"good"||E&&"average"||"bad",z=S&&"good"||v>0&&"average"||"bad";return(0,e.jsx)(g.p8,{width:400,height:350,children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsx)(r.z2,{value:f*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,i.Mg)(v/(1e3*60),1)+" kWh / "+(0,i.Mg)(m/(1e3*60))+" kWh ("+f+"%)"})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:j?"sync-alt":"times",selected:j,onClick:function(){return a("tryinput")},children:j?"On":"Off"}),children:(0,e.jsx)(r.az,{color:W,children:f>=100&&"Fully Charged"||E&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:O===0,onClick:function(){return a("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:O===0,onClick:function(){return a("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:O/x,fillValue:P/x,minValue:0,maxValue:M/x,step:5,stepPixelSize:4,format:function(k){return(0,s.d5)(k*x,1)},onDrag:function(k,$){return a("input",{target:$*x})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:O===M,onClick:function(){return a("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:O===M,onClick:function(){return a("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,s.d5)(P)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:D?"power-off":"times",selected:D,onClick:function(){return a("tryoutput")},children:D?"On":"Off"}),children:(0,e.jsx)(r.az,{color:z,children:S?"Sending":v>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:B===0,onClick:function(){return a("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:B===0,onClick:function(){return a("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:B/x,minValue:0,maxValue:T/x,step:5,stepPixelSize:4,format:function(k){return(0,s.d5)(k*x,1)},onDrag:function(k,$){return a("output",{target:$*x})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:B===T,onClick:function(){return a("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:B===T,onClick:function(){return a("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,s.d5)(U)})]})})]})})}},24854:function(y,h,n){"use strict";n.r(h),n.d(h,{SolarControl:function(){return g}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g=function(x){var u=(0,t.Oc)(),o=u.act,c=u.data,a=c.generated,l=c.generated_ratio,f=c.sun_angle,m=c.array_angle,v=c.rotation_rate,j=c.max_rotation_rate,E=c.tracking_state,O=c.connected_panels,M=c.connected_tracker;return(0,e.jsx)(s.p8,{width:380,height:230,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return o("refresh")},children:"Scan for new hardware"}),children:(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:M?"good":"bad",children:M?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:O>0?"good":"bad",children:O})]})}),(0,e.jsx)(r.XI.Cell,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:l,children:a+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[f,"\xB0"]})]})})]})})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",selected:E===0,onClick:function(){return o("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:E===1,onClick:function(){return o("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:E===2,disabled:!M,onClick:function(){return o("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(E===0||E===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:m,format:function(P){var D=Math.sign(P)>0?" (CW)":" (CCW)";return(0,i.Mg)(Math.abs(P))+D},onDrag:function(P){return o("azimuth",{value:P})}}),E===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-j-.01,maxValue:j+.01,value:v,format:function(P){var D=Math.sign(P)>0?" (CW)":" (CCW)";return(0,i.Mg)(Math.abs(P))+D},onDrag:function(P){return o("azimuth_rate",{value:P})}}),E===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[m+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(y,h,n){"use strict";n.r(h),n.d(h,{SpaceHeater:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(79500),s=n(42103),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.temp,l=c.minTemp,f=c.maxTemp,m=c.cell,v=c.power;return(0,e.jsx)(s.p8,{width:300,height:250,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Target Temperature",children:[a," K (",a-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[v,"% ",!m&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(t.N6,{animated:!0,value:a-r.Ai,minValue:l-r.Ai,maxValue:f-r.Ai,unit:"C",onChange:function(j,E){return o("temp",{newtemp:E+r.Ai})}})}),(0,e.jsx)(t.Wx.Item,{label:"Cell",children:m?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return o("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return o("cellinstall")},children:"Insert Cell"})})]})})]})})}},85586:function(y,h,n){"use strict";n.r(h),n.d(h,{Stack:function(){return u}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103);function s(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,j=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=function(f){var m=(0,i.Oc)().data,v=m.amount,j=m.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Amount: "+v,children:(0,e.jsx)(o,{recipes:j})})})})},o=function(f){var m=f.recipes,v=Object.keys(m).sort();return v.map(function(j,E){var O=m[j];return O.ref===void 0?(0,e.jsx)(t.Nt,{ml:1,mb:-.7,color:"label",title:j,children:(0,e.jsx)(t.az,{ml:1,children:(0,e.jsx)(o,{recipes:O})})},E):(0,e.jsx)(l,{title:j,recipe:O},E)})},c=function(f,m){return f.req_amount>m?0:Math.floor(m/f.req_amount)},a=function(f){for(var m=function(){var U=T.value;P>=U&&S.push((0,e.jsx)(t.$n,{onClick:function(){return j("make",{ref:O.ref,multiplier:U})},children:U*O.res_amount+"x"}))},v=(0,i.Oc)(),j=v.act,E=v.data,O=f.recipe,M=f.maxMultiplier,P=Math.min(M,Math.floor(O.max_res_amount/O.res_amount)),D=[5,10,25],S=[],B=x(D),T;!(T=B()).done;)m();return D.indexOf(P)===-1&&S.push((0,e.jsx)(t.$n,{onClick:function(){return j("make",{ref:O.ref,multiplier:P})},children:P*O.res_amount+"x"})),S},l=function(f){var m=(0,i.Oc)(),v=m.act,j=m.data,E=j.amount,O=f.recipe,M=f.title,P=O.res_amount,D=O.max_res_amount,S=O.req_amount,B=O.ref,T=M;T+=" (",T+=S+" ",T+="sheet"+(S>1?"s":""),T+=")",P>1&&(T=P+"x "+T);var U=c(O,E);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.XI,{children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!U,icon:"wrench",onClick:function(){return v("make",{ref:O.ref,multiplier:1})},children:T})}),D>1&&U>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(a,{recipe:O,maxMultiplier:U})})]})})})}},68679:function(y,h,n){"use strict";n.r(h),n.d(h,{StationAlertConsole:function(){return s},StationAlertConsoleContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.categories,l=a===void 0?[]:a;return l.map(function(f){return(0,e.jsx)(t.wn,{title:f.category,children:(0,e.jsxs)("ul",{children:[f.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),f.alarms.map(function(m){var v="";return m.has_cameras?v=(0,e.jsx)(t.wn,{children:m.cameras.map(function(j){return(0,e.jsx)(t.$n,{disabled:j.deact,icon:"video",onClick:function(){return o("switchTo",{camera:j.camera})},children:j.name+(j.deact?" (deactived)":"")},j.name)})}):m.lost_sources&&(v=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",m.lost_sources]})),(0,e.jsxs)("li",{children:[m.name,m.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",v]},m.name)})]})},f.category)})}},27306:function(y,h,n){"use strict";n.r(h),n.d(h,{StationBlueprints:function(){return s},StationBlueprintsContent:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(g,{})})},g=function(x){var u=(0,i.Oc)().data,o=u.mapRef;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:o,type:"map"}})})]})}},33395:function(y,h,n){"use strict";n.r(h),n.d(h,{StockExchange:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(l){var f=(0,i.Oc)().data,m=f.screen,v=f.stationName,j;return m==="stocks"?j=(0,e.jsx)(g,{}):m==="logs"?j=(0,e.jsx)(o,{}):m==="archive"?j=(0,e.jsx)(c,{}):m==="graph"&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:""+v+" Stock Exchange",children:j})})})},g=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.balance,E=v.stationName,O=v.viewMode,M=(0,e.jsx)(x,{});return O==="Full"?M=(0,e.jsx)(x,{}):O==="Compressed"&&(M=(0,e.jsx)(u,{})),(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[E," Cargo Department"]})," |"]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",j]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_cycle_view")},children:O}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return m("stocks_check")},children:"Check"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(t.wn,{title:"Listed Stocks",children:M})]})},x=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.stocks,E=j===void 0?[]:j;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(t.cG,{}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{children:"ID"}),(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Owned"}),(0,e.jsx)(t.XI.Cell,{children:"Avail"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(t.cG,{}),E.map(function(O){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.ID}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Name}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Value}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Owned}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Avail}),(0,e.jsxs)(t.XI.Cell,{color:"label",children:[(0,e.jsx)(t.$n,{icon:"plus",disabled:!1,onClick:function(){return m("stocks_buy",{share:O.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return m("stocks_sell",{share:O.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_archive",{share:O.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_history",{share:O.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},O.ID)})]})]})},u=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.stocks,E=j===void 0?[]:j;return(0,e.jsx)(t.az,{children:E.map(function(O){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("span",{children:O.Name})," ",(0,e.jsx)("span",{children:O.ID}),O.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",O.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",O.Value," |",(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_history",{share:O.REF})},children:"View history"}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:O.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",O.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),O.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_buy",{share:O.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_sell",{share:O.REF})},children:"Sell shares"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:O.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_archive",{share:O.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},O.ID)})})},o=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.logs,E=j===void 0?[]:j;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:E.map(function(O){return(0,e.jsxs)(t.az,{children:[O.type!=="borrow"?(0,e.jsxs)("div",{children:[O.time," | ",(0,e.jsx)("b",{children:O.user_name}),O.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"}),(0,e.jsx)("b",{children:O.stocks})," stocks at ",O.shareprice," a share for",(0,e.jsx)("b",{children:O.money})," total credits",O.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"}),(0,e.jsx)("b",{children:O.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[O.time," | ",(0,e.jsx)("b",{children:O.user_name})," borrowed ",(0,e.jsx)("b",{children:O.stocks}),"stocks with a deposit of ",(0,e.jsx)("b",{children:O.money})," credits in",(0,e.jsx)("b",{children:O.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.cG,{})]},O.time)})})]})},c=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.name,E=v.events,O=E===void 0?[]:E,M=v.articles,P=M===void 0?[]:M;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",j]}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:O.map(function(D){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:D.current_title}),(0,e.jsx)("br",{}),D.current_desc]}),(0,e.jsx)(t.cG,{})]},D.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:P.map(function(D){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:D.headline}),(0,e.jsx)("i",{children:D.subtitle}),(0,e.jsx)("br",{}),D.article,(0,e.jsx)("br",{}),"- ",D.author,", ",D.spacetime," (via",(0,e.jsx)("i",{children:D.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},D.headline)})})]})},a=function(l){var f=(0,i.Oc)(),m=f.act,v=f.data,j=v.name,E=v.maxValue,O=v.values,M=O===void 0?[]:O;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.wn,{position:"relative",height:"100%",children:(0,e.jsx)(t.t1.Line,{fillPositionedParent:!0,data:M,rangeX:[0,M.length-1],rangeY:[0,E],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[j," share value per share"]})]})}},92495:function(y,h,n){"use strict";n.r(h),n.d(h,{SuitCycler:function(){return g}});var e=n(20462),i=n(61358),t=n(7081),r=n(21148),s=n(42103),g=function(a){var l=function(k){S(k)},f=function(k){U(k)},m=(0,t.Oc)().data,v=m.active,j=m.locked,E=m.uv_active,O=m.species,M=m.departments,P=(0,i.useState)(!!M&&M[0]||void 0),D=P[0],S=P[1],B=(0,i.useState)(!!O&&O[0]||void 0),T=B[0],U=B[1],W=(0,e.jsx)(x,{selectedDepartment:D,selectedSpecies:T,onSelectedDepartment:l,onSelectedSpecies:f});return E?W=(0,e.jsx)(u,{}):j?W=(0,e.jsx)(o,{}):v&&(W=(0,e.jsx)(c,{})),(0,e.jsx)(s.p8,{width:320,height:400,children:(0,e.jsx)(s.p8.Content,{children:W})})},x=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.safeties,j=m.occupied,E=m.suit,O=m.helmet,M=m.departments,P=m.species,D=m.uv_level,S=m.max_uv_level,B=m.can_repair,T=m.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",onClick:function(){return f("lock")},children:"Lock"}),children:[!!(j&&v)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return f("eject_guy")},children:"Eject Entity"})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:O?"square":"square-o",disabled:!O,onClick:function(){return f("dispense",{item:"helmet"})},children:O||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:E?"square":"square-o",disabled:!E,onClick:function(){return f("dispense",{item:"suit"})},children:E||"Empty"})}),B&&T?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[T,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("repair_suit")},children:"Repair"})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{autoScroll:!1,width:"150px",options:M,selected:a.selectedDepartment,onSelected:function(U){a.onSelectedDepartment(U),f("department",{department:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{autoScroll:!1,width:"150px",maxHeight:"160px",options:P,selected:a.selectedSpecies,onSelected:function(U){a.onSelectedSpecies(U),f("species",{species:U})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return f("apply_paintjob")},children:"Customize"})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:D,step:1,minValue:1,maxValue:S,stepPixelSize:30,onChange:function(U){return f("radlevel",{radlevel:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:j&&v,textAlign:"center",onClick:function(){return f("uv")}})})]})})]})},u=function(a){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},o=function(a){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.model_text,j=m.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",v," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",disabled:!j,onClick:function(){return f("lock")},children:"[Unlock]"})})]})},c=function(a){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},28742:function(y,h,n){"use strict";n.r(h),n.d(h,{SuitStorageUnit:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(c){var a=(0,i.Oc)().data,l=a.panelopen,f=a.uv_active,m=a.broken,v=(0,e.jsx)(g,{});return l?v=(0,e.jsx)(x,{}):f?v=(0,e.jsx)(u,{}):m&&(v=(0,e.jsx)(o,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:v})})},g=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.locked,v=f.open,j=f.safeties,E=f.occupied,O=f.suit,M=f.helmet,P=f.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!v&&(0,e.jsx)(t.$n,{icon:m?"unlock":"lock",onClick:function(){return l("lock")},children:m?"Unlock":"Lock"}),!m&&(0,e.jsx)(t.$n,{icon:v?"sign-out-alt":"sign-in-alt",onClick:function(){return l("door")},children:v?"Close":"Open"})]}),children:[!!(E&&j)&&(0,e.jsxs)(t.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return l("eject_guy")},children:"Eject Entity"})]}),m&&(0,e.jsxs)(t.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(t.az,{children:"Unit Locked"}),(0,e.jsx)(t.In,{name:"lock"})]})||v&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Helmet",children:(0,e.jsx)(t.$n,{icon:M?"square":"square-o",disabled:!M,onClick:function(){return l("dispense",{item:"helmet"})},children:M||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Suit",children:(0,e.jsx)(t.$n,{icon:O?"square":"square-o",disabled:!O,onClick:function(){return l("dispense",{item:"suit"})},children:O||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:P?"square":"square-o",disabled:!P,onClick:function(){return l("dispense",{item:"mask"})},children:P||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:E&&j,textAlign:"center",onClick:function(){return l("uv")},children:"Decontaminate"})]})},x=function(c){var a=(0,i.Oc)(),l=a.act,f=a.data,m=f.safeties,v=f.uv_super;return(0,e.jsxs)(t.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(t.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",v?"15nm":"185nm",".",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.N6,{size:2,inline:!0,value:v,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:v?"red":"green",format:function(j){return j?"15nm":"185nm"},onChange:function(j,E){return l("toggleUV")}})}),(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",m?(0,e.jsx)(t.az,{textColor:"green",children:"GREEN"}):(0,e.jsx)(t.az,{textColor:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777",borderStyle:"outset"},onClick:function(){return l("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:m?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:m?"green":"black"})]})]})]})]})},u=function(c){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},o=function(c){return(0,e.jsx)(t.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},50028:function(y,h,n){"use strict";n.r(h),n.d(h,{SupermatterMonitor:function(){return x},SupermatterMonitorContent:function(){return u}});var e=n(20462),i=n(4089),t=n(61282),r=n(7081),s=n(21148),g=n(42103),x=function(a){return(0,e.jsx)(g.p8,{width:600,height:400,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(u,{})})})},u=function(a){var l=(0,r.Oc)().data,f=l.active;return f?(0,e.jsx)(c,{}):(0,e.jsx)(o,{})},o=function(a){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.supermatters;return(0,e.jsx)(s.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(s.$n,{icon:"sync",onClick:function(){return f("refresh")},children:"Refresh"}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:v.map(function(j,E){return(0,e.jsx)(s.so.Item,{basis:"49%",grow:E%2,children:(0,e.jsx)(s.wn,{title:j.area_name+" (#"+j.uid+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Integrity",children:[j.integrity," %"]}),(0,e.jsx)(s.Ki.Item,{label:"Options",children:(0,e.jsx)(s.$n,{icon:"eye",onClick:function(){return f("set",{set:j.uid})},children:"View Details"})})]})})},E)})})})},c=function(a){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.SM_area,j=m.SM_integrity,E=m.SM_power,O=m.SM_ambienttemp,M=m.SM_ambientpressure,P=m.SM_EPR,D=m.SM_gas_O2,S=m.SM_gas_CO2,B=m.SM_gas_N2,T=m.SM_gas_PH,U=m.SM_gas_N2O;return(0,e.jsx)(s.wn,{title:(0,t.Sn)(v),buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return f("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(s.z2,{value:j,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(s.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(s.az,{color:E>300&&"bad"||E>150&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)+" MeV/cm\xB3"},value:E})})}),(0,e.jsx)(s.Ki.Item,{label:"Temperature",children:(0,e.jsx)(s.az,{color:O>5e3&&"bad"||O>4e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)+" K"},value:O})})}),(0,e.jsx)(s.Ki.Item,{label:"Pressure",children:(0,e.jsx)(s.az,{color:M>1e4&&"bad"||M>5e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)+" kPa"},value:M})})}),(0,e.jsx)(s.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(s.az,{color:P>4&&"bad"||P>1&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,i.Mg)(W,2)},value:P})})}),(0,e.jsx)(s.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(s.zv,{value:D}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(s.zv,{value:S}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(s.zv,{value:B}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"PH",children:[(0,e.jsx)(s.zv,{value:T}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(s.zv,{value:U}),"%"]})]})})]})})}},57754:function(y,h,n){"use strict";n.r(h),n.d(h,{SupplyConsoleMenu:function(){return x}});var e=n(20462),i=n(61358),t=n(21148),r=n(10242),s=n(50656),g=n(60164),x=function(u){var o=(0,i.useState)(0),c=o[0],a=o[1],l=[];return l[0]=(0,e.jsx)(s.SupplyConsoleMenuOrder,{}),l[1]=(0,e.jsx)(g.SupplyConsoleMenuOrderList,{mode:"Approved"}),l[2]=(0,e.jsx)(g.SupplyConsoleMenuOrderList,{mode:"Requested"}),l[3]=(0,e.jsx)(g.SupplyConsoleMenuOrderList,{mode:"All"}),l[4]=(0,e.jsx)(r.SupplyConsoleMenuHistoryExport,{}),(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{icon:"box",selected:c===0,onClick:function(){return a(0)},children:"Request"}),(0,e.jsx)(t.tU.Tab,{icon:"check-circle-o",selected:c===1,onClick:function(){return a(1)},children:"Accepted"}),(0,e.jsx)(t.tU.Tab,{icon:"circle-o",selected:c===2,onClick:function(){return a(2)},children:"Requests"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:c===3,onClick:function(){return a(3)},children:"Order history"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:c===4,onClick:function(){return a(4)},children:"Export history"})]}),l[c]||""]})}},10242:function(y,h,n){"use strict";n.r(h),n.d(h,{SupplyConsoleMenuHistoryExport:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.receipts,c=u.order_auth;return o.length?(0,e.jsx)(t.wn,{children:o.map(function(a,l){return(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[a.title.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.field,buttons:c?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("export_edit",{ref:a.ref,edit:f.field,default:f.entry})},children:"Edit"}):"",children:f.entry},f.field)}),a.error?(0,e.jsx)(t.Ki.Item,{labelColor:"red",label:"Error",children:a.error}):a.contents.map(function(f,m){return(0,e.jsxs)(t.Ki.Item,{label:f.object,buttons:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("export_edit_field",{ref:a.ref,index:m+1,edit:"meow",default:f.object})},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"trash",color:"red",onClick:function(){return x("export_delete_field",{ref:a.ref,index:m+1})},children:"Delete"})]}):"",children:[f.quantity,"x -> ",f.value," points"]},m)})]}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{mt:1,icon:"plus",onClick:function(){return x("export_add_field",{ref:a.ref})},children:"Add Item To Record"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return x("export_delete",{ref:a.ref})},children:"Delete Record"})]}):""]},l)})}):(0,e.jsx)(t.wn,{children:"No receipts found."})}},50656:function(y,h,n){"use strict";n.r(h),n.d(h,{SupplyConsoleMenuOrder:function(){return x}});var e=n(20462),i=n(7402),t=n(15813),r=n(61358),s=n(7081),g=n(21148),x=function(u){var o=(0,s.Oc)(),c=o.act,a=o.data,l=a.categories,f=a.supply_packs,m=a.contraband,v=a.supply_points,j=(0,r.useState)(null),E=j[0],O=j[1],M=(0,t.L)([function(P){return(0,i.pb)(P,function(D){return D.group===E})},function(P){return(0,i.pb)(P,function(D){return!D.contraband||!!m})},function(P){return(0,i.Ul)(P,function(D){return D.name})},function(P){return(0,i.Ul)(P,function(D){return D.cost>v})}])(f);return(0,e.jsx)(g.wn,{children:(0,e.jsxs)(g.BJ,{children:[(0,e.jsx)(g.BJ.Item,{basis:"25%",children:(0,e.jsx)(g.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:l.map(function(P){return(0,e.jsx)(g.$n,{fluid:!0,selected:P===E,onClick:function(){return O(P)},children:P},P)})})}),(0,e.jsx)(g.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(g.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:M.map(function(P){return(0,e.jsx)(g.az,{children:(0,e.jsxs)(g.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(g.BJ.Item,{basis:"70%",children:(0,e.jsx)(g.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:P.cost>v?"red":void 0,onClick:function(){return c("request_crate",{ref:P.ref})},children:P.name})}),(0,e.jsx)(g.BJ.Item,{children:(0,e.jsx)(g.$n,{color:P.cost>v?"red":void 0,onClick:function(){return c("request_crate_multi",{ref:P.ref})},children:"#"})}),(0,e.jsx)(g.BJ.Item,{children:(0,e.jsx)(g.$n,{color:P.cost>v?"red":void 0,onClick:function(){return c("view_crate",{crate:P.ref})},children:"C"})}),(0,e.jsxs)(g.BJ.Item,{grow:1,children:[P.cost," points"]})]})},P.name)})})})]})})}},60164:function(y,h,n){"use strict";n.r(h),n.d(h,{SupplyConsoleMenuOrderList:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=s.mode,c=u.orders,a=u.order_auth,l=u.supply_points,f=c.filter(function(m){return m.status===o||o==="All"});return f.length?(0,e.jsxs)(t.wn,{children:[o==="Requested"&&a?(0,e.jsx)(t.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return x("clear_all_requests")},children:"Clear all requests"}):"",f.map(function(m,v){return(0,e.jsxs)(t.wn,{title:"Order "+(v+1),buttons:o==="All"&&a?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return x("delete_order",{ref:m.ref})},children:"Delete Record"}):"",children:[(0,e.jsxs)(t.Ki,{children:[m.entries.map(function(j,E){return j.entry?(0,e.jsx)(t.Ki.Item,{label:j.field,buttons:a?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){x("edit_order_value",{ref:m.ref,edit:j.field,default:j.entry})},children:"Edit"}):"",children:j.entry},E):""}),o==="All"?(0,e.jsx)(t.Ki.Item,{label:"Status",children:m.status}):""]}),a&&o==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"check",disabled:m.cost>l,onClick:function(){return x("approve_order",{ref:m.ref})},children:"Approve"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return x("deny_order",{ref:m.ref})},children:"Deny"})]}):""]},v)})]}):(0,e.jsx)(t.wn,{children:"No orders found."})}},95354:function(y,h,n){"use strict";n.r(h),n.d(h,{SupplyConsoleShuttleStatus:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(41242),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.supply_points,a=o.shuttle,l=o.shuttle_auth,f="",m=!1;return l&&(a.launch===1&&a.mode===0?f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return u("send_shuttle",{mode:"send_away"})},children:"Send Away"}):a.launch===2&&(a.mode===3||a.mode===1)?f=(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return u("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):a.launch===1&&a.mode===5&&(f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return u("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),a.force&&(m=!0)),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(t.zv,{value:c})})}),(0,e.jsx)(t.wn,{title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[f,m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return u("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):""]}),children:a.location}),(0,e.jsx)(t.Ki.Item,{label:"Engine",children:a.engine}),a.mode===4?(0,e.jsx)(t.Ki.Item,{label:"ETA",children:a.time>1?(0,r.fU)(a.time):"LATE"}):""]})})]})}},28143:function(y,h,n){"use strict";n.r(h),n.d(h,{SupplyConsole:function(){return u}});var e=n(20462),i=n(21148),t=n(86471),r=n(42103),s=n(57754),g=n(95354),x=n(98885),u=function(o){return(0,t.modalRegisterBodyOverride)("view_crate",x.viewCrateContents),(0,e.jsx)(r.p8,{width:700,height:620,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(i.wn,{title:"Supply Records",children:[(0,e.jsx)(g.SupplyConsoleShuttleStatus,{}),(0,e.jsx)(s.SupplyConsoleMenu,{})]})]})})}},91192:function(y,h,n){"use strict";n.r(h)},98885:function(y,h,n){"use strict";n.r(h),n.d(h,{viewCrateContents:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.supply_points,c=s.args,a=c.name,l=c.cost,f=c.manifest,m=c.ref,v=c.random;return(0,e.jsx)(t.wn,{width:"400px",m:"-1rem",pb:"1rem",title:a,buttons:(0,e.jsx)(t.$n,{icon:"shopping-cart",disabled:l>o,onClick:function(){return x("request_crate",{ref:m})},children:"Buy - "+l+" points"}),children:(0,e.jsx)(t.wn,{title:"Contains"+(v?" any "+v+" of:":""),scrollable:!0,height:"200px",children:f.map(function(j){return(0,e.jsx)(t.az,{children:j},j)})})})}},76786:function(y,h,n){"use strict";n.r(h),n.d(h,{TEGenerator:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(41242),g=n(42103),x=function(o){var c=(0,t.Oc)().data,a=c.totalOutput,l=c.maxTotalOutput,f=c.thermalOutput,m=c.primary,v=c.secondary;return(0,e.jsx)(g.p8,{width:550,height:310,children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:a,maxValue:l,children:(0,s.d5)(a)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,s.d5)(f)})]})}),m&&v?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(u,{name:"Primary Circulator",values:m})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(u,{name:"Secondary Circulator",values:v})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},u=function(o){var c=o.name,a=o.values,l=a.dir,f=a.output,m=a.flowCapacity,v=a.inletPressure,j=a.inletTemperature,E=a.outletPressure,O=a.outletTemperature;return(0,e.jsx)(r.wn,{title:c+" ("+l+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,s.d5)(f)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,i.Mg)(m,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,s.QL)(v*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,i.Mg)(j,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,s.QL)(E*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,i.Mg)(O,2)," K"]})]})})}},27136:function(y,h,n){"use strict";n.r(h),n.d(h,{Tank:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.connected,a=o.showToggle,l=a===void 0?!0:a,f=o.maskConnected,m=o.tankPressure,v=o.releasePressure,j=o.defaultReleasePressure,E=o.minReleasePressure,O=o.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:!!l&&(0,e.jsx)(t.$n,{icon:c?"air-freshener":"lock-open",selected:c,disabled:!f,onClick:function(){return u("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Mask Connected",children:f?"Yes":"No"})})}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{value:m/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:o.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:v===E,onClick:function(){return u("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:v,width:"65px",unit:"kPa",minValue:E,maxValue:O,onChange:function(M){return u("pressure",{pressure:M})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:v===O,onClick:function(){return u("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:v===j,onClick:function(){return u("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(y,h,n){"use strict";n.r(h),n.d(h,{TankDispenser:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.plasma,a=o.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(t.$n,{icon:c?"square":"square-o",disabled:!c,onClick:function(){return u("plasma")},children:"Dispense"}),children:c}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:a?"square":"square-o",disabled:!a,onClick:function(){return u("oxygen")},children:"Dispense"}),children:a})]})})})})}},66303:function(y,h,n){"use strict";n.r(h),n.d(h,{TelecommsLogBrowser:function(){return g}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g=function(c){var a=(0,t.Oc)(),l=a.act,f=a.data,m=f.universal_translate,v=f.network,j=f.temp,E=f.servers,O=f.selectedServer;return(0,e.jsx)(s.p8,{width:575,height:450,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[j&&j.color==="bad"&&(0,e.jsxs)(r.IC,{danger:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:j.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||j&&j.color!=="bad"&&(0,e.jsxs)(r.IC,{warning:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:j.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||"",(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:E.length===0,onClick:function(){return l("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("network")},children:v})})})}),O?(0,e.jsx)(u,{network:v,server:O,universal_translate:m}):(0,e.jsx)(x,{network:v,servers:E})]})})},x=function(c){var a=(0,t.Oc)().act,l=c.network,f=c.servers;return!f||!f.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return a("scan")},children:"Scan"})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.name+" ("+m.id+")",children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("view",{id:m.id})},children:"View"})},m.id)})})})},u=function(c){var a=(0,t.Oc)().act,l=c.network,f=c.server,m=c.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a("mainmenu")},children:"Return"}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:f.totalTraffic>=1024?(0,i.Mg)(f.totalTraffic/1024)+" Terrabytes":f.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!f.logs||!f.logs.length?"No Logs Detected.":f.logs.map(function(v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v.id%2,children:(0,e.jsx)(r.wn,{title:m||v.parameters.uspeech||v.parameters.intelligible||v.input_type==="Execution Error"?v.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return a("delete",{id:v.id})}}),children:v.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:v.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return a("delete",{id:v.id})}})})]}):m||v.parameters.uspeech||v.parameters.intelligible?(0,e.jsx)(o,{log:v}):(0,e.jsx)(o,{error:!0})})},v.id)})})})]})},o=function(c){var a=c.log,l=c.error,f=a&&a.parameters||{none:"none"},m=f.timecode,v=f.name,j=f.race,E=f.job,O=f.message;return l?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:m}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:j}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:m}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[v," (Job: ",E,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:j}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:O})]})}},3684:function(y,h,n){"use strict";n.r(h),n.d(h,{TelecommsMachineBrowser:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.network,l=c.temp,f=c.machinelist,m=c.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[l&&l.color==="bad"&&(0,e.jsxs)(t.IC,{danger:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return o("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||l&&l.color!=="bad"&&(0,e.jsxs)(t.IC,{warning:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return o("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||"",(0,e.jsx)(t.wn,{title:"Network Control",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return o("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:f.length===0,onClick:function(){return o("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return o("network")},children:a})})})}),f&&f.length?(0,e.jsx)(g,{title:m?m.name+" ("+m.id+")":"Detected Network Entities",list:m?m.links:f,showBack:m}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return o("scan")},children:"Probe Network"})})]})})},g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=x.list,l=x.title,f=x.showBack;return(0,e.jsxs)(t.wn,{title:l,buttons:f&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return o("mainmenu")},children:"Back to Main Menu"}),children:[(0,e.jsx)(t.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ki,{children:a.length?a.map(function(m){return(0,e.jsx)(t.Ki.Item,{label:m.name+" ("+m.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return o("view",{id:m.id})},children:"View"})},m.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},30053:function(y,h,n){"use strict";n.r(h),n.d(h,{TelecommsMultitoolMenu:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=n(3751),g=function(o){var c=(0,i.Oc)().data,a=c.options;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),(0,e.jsx)(x,{}),(0,e.jsx)(u,{options:a})]})})},x=function(o){var c=(0,i.Oc)(),a=c.act,l=c.data,f=l.on,m=l.id,v=l.network,j=l.autolinkers,E=l.shadowlink,O=l.linked,M=l.filter,P=l.multitool,D=l.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return a("toggle")},children:f?"On":"Off"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Identification String",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("id")},children:m})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("network")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:j?"TRUE":"FALSE"}),E?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):"",P?(0,e.jsxs)(t.Ki.Item,{label:"Multitool Buffer",children:[D?(0,e.jsxs)(e.Fragment,{children:[D.name," (",D.id,")"]}):"",(0,e.jsx)(t.$n,{color:D?"green":void 0,icon:D?"link":"plus",onClick:D?function(){return a("link")}:function(){return a("buffer")},children:D?"Link ("+D.id+")":"Add Machine"}),D?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return a("flush")},children:"Flush"}):""]}):""]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:O.map(function(S){return(0,e.jsx)(t.Ki.Item,{label:S.ref+" "+S.name+" ("+S.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:S.index})}})},S.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("freq")},children:"Add Frequency"}),children:[M.map(function(S,B){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{delete:S.freq})},children:S.name+" GHz"},B)}),!M||M.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):""]})]})},u=function(o){var c=(0,i.Oc)().act,a=o.options,l=a.use_listening_level,f=a.use_broadcasting,m=a.use_receiving,v=a.listening_level,j=a.broadcasting,E=a.receiving,O=a.use_change_freq,M=a.change_freq,P=a.use_broadcast_range,D=a.use_receive_range,S=a.range,B=a.minRange,T=a.maxRange;return!l&&!f&&!m&&!O&&!P&&!D?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[l?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:v?"lock-closed":"lock-open",onClick:function(){return c("change_listening")},children:v?"Yes":"No"})}):"",f?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:j,onClick:function(){return c("broadcast")},children:j?"Yes":"No"})}):"",m?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:E,onClick:function(){return c("receive")},children:E?"Yes":"No"})}):"",O?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!M,onClick:function(){return c("change_freq")},children:M?"Yes ("+M+")":"No"})}):"",P||D?(0,e.jsx)(t.Ki.Item,{label:(P?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{step:1,value:S,minValue:B,maxValue:T,unit:"gigameters",stepPixelSize:4,format:function(U){return(U+1).toString()},onDrag:function(U){return c("range",{range:U})}})}):""]})})}},50624:function(y,h,n){"use strict";n.r(h),n.d(h,{Teleporter:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.locked_name,a=o.station_connected,l=o.hub_connected,f=o.calibrated,m=o.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",onClick:function(){return u("select_target")},children:c})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:f,color:f?"good":"bad",onClick:function(){return u("test_fire")},children:f?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return u("toggle_on")},children:m?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:a?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:l?"Connected":"Not Connected"})]})})})})}},92546:function(y,h,n){"use strict";n.r(h),n.d(h,{TelesciConsole:function(){return g},TelesciConsoleContent:function(){return u}});var e=n(20462),i=n(7402),t=n(7081),r=n(21148),s=n(42103),g=function(o){var c=(0,t.Oc)().data,a=c.noTelepad;return(0,e.jsx)(s.p8,{width:400,height:450,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:a&&(0,e.jsx)(x,{})||(0,e.jsx)(u,{})})})},x=function(o){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},u=function(o){var c=(0,t.Oc)(),a=c.act,l=c.data,f=l.insertedGps,m=l.rotation,v=l.currentZ,j=l.cooldown,E=l.crystalCount,O=l.maxCrystals,M=l.maxPossibleDistance,P=l.maxAllowedDistance,D=l.distance,S=l.tempMsg,B=l.sectorOptions,T=l.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!f,onClick:function(){return a("ejectGPS")},children:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:j&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait",(0,e.jsx)(r.zv,{value:j})," seconds."]})||(0,e.jsx)(r.az,{children:S})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:m,format:function(U){return U+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(U){return a("setrotation",{val:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:D,format:function(U){return U+"/"+P+" m"},minValue:0,maxValue:P,step:1,stepPixelSize:4,onDrag:function(U){return a("setdistance",{val:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:B&&(0,i.Ul)(B,function(U){return U}).map(function(U){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:v===Number(U),onClick:function(){return a("setz",{setz:U})},children:U},U)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return a("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return a("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return a("recal")},children:"Recalibrate"})]})]}),T&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[T.src_x,", ",T.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[T.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[T.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",E," / ",O]})]})}},95273:function(y,h,n){"use strict";n.r(h),n.d(h,{TextInputModal:function(){return a},removeAllSkiplines:function(){return c},sanitizeMultiline:function(){return o}});var e=n(20462),i=n(87239),t=n(61358),r=n(7081),s=n(21148),g=n(42103),x=n(5335),u=n(44149),o=function(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")},c=function(f){return f.replace(/[\r\n]+/,"")},a=function(f){var m=(0,r.Oc)(),v=m.act,j=m.data,E=j.large_buttons,O=j.max_length,M=j.message,P=M===void 0?"":M,D=j.multiline,S=j.placeholder,B=S===void 0?"":S,T=j.timeout,U=j.title,W=(0,t.useState)(B||""),z=W[0],k=W[1],$=function(ne){if(ne!==z){var oe=D?o(ne):c(ne);k(oe)}},Y=D||z.length>=30,G=135+(P.length>30?Math.ceil(P.length/4):0)+(Y?75:0)+(P.length&&E?5:0);return(0,e.jsxs)(g.p8,{title:U,width:325,height:G,children:[T&&(0,e.jsx)(u.Loader,{value:T}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(ne){ne.key===i._.Enter&&(!Y||!ne.shiftKey)&&v("submit",{entry:z}),(0,i.K)(ne.key)&&v("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{color:"label",children:P})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{input:z,onType:$},U)}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:z,message:z.length+"/"+O})})]})})})]})},l=function(f){var m=(0,r.Oc)(),v=m.act,j=m.data,E=j.max_length,O=j.multiline,M=f.input,P=f.onType,D=O||M.length>=30;return(0,e.jsx)(s.fs,{autoFocus:!0,autoSelect:!0,height:O||M.length>=30?"100%":"1.8rem",maxLength:E,onEscape:function(){return v("cancel")},onEnter:function(S){D&&S.shiftKey||(S.preventDefault(),v("submit",{entry:M}))},onChange:function(S,B){return P(B)},onInput:function(S,B){return P(B)},placeholder:"Type something...",value:M})}},34113:function(y,h,n){"use strict";n.r(h),n.d(h,{TimeClock:function(){return x}});var e=n(20462),i=n(4089),t=n(7081),r=n(21148),s=n(42103),g=n(10921),x=function(u){var o=(0,t.Oc)(),c=o.act,a=o.data,l=a.department_hours,f=a.user_name,m=a.card,v=a.assignment,j=a.job_datum,E=a.allow_change_job,O=a.job_choices;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{title:"Time Off Balance for "+f,children:(0,e.jsx)(r.Ki,{children:!!l&&Object.keys(l).map(function(M){return(0,e.jsxs)(r.Ki.Item,{label:M,color:l[M]>6?"good":l[M]>1?"average":"bad",children:[(0,i.Mg)(l[M],1)," ",l[M]===1?"hour":"hours"]},M)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return c("id")},children:m||"Insert ID"})}),!!j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:j.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(g.RankIcon,{color:"white",rank:j.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:j.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:j.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:j.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:j.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",j.pto_department]})||j.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",j.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(E&&j&&j.timeoff_factor!==0&&v!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:j.timeoff_factor>0&&(!!l&&l[j.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return c("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||!!O&&Object.keys(O).length&&Object.keys(O).map(function(M){var P=O[M];return P.map(function(D){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return c("switch-to-onduty-rank",{"switch-to-onduty-rank":M,"switch-to-onduty-assignment":D})},children:D},D)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(y,h,n){"use strict";n.r(h),n.d(h,{TraitDescription:function(){return x},TraitSelection:function(){return g},TraitTutorial:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(g,{})})})})},g=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=a.names,f=a.selection;return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{shrink:!0,children:(0,e.jsx)(t.wn,{title:"Trait Selection",children:(0,e.jsx)(t.tU,{vertical:!0,children:l.map(function(m){return(0,e.jsx)(t.tU.Tab,{selected:m===f,onClick:function(){return c("select_trait",{name:m})},children:(0,e.jsx)(t.az,{inline:!0,children:m})},m)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:f&&(0,e.jsx)(t.wn,{title:f,children:(0,e.jsx)(x,{name:f})})})]})},x=function(u){var o=(0,i.Oc)(),c=o.act,a=o.data,l=u.name,f=a.descriptions,m=a.categories,v=a.tutorials;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",l,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",m[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",f[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v[l]}})]})}},67159:function(y,h,n){"use strict";n.r(h),n.d(h,{TransferValve:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.tank_one,a=o.tank_two,l=o.attached_device,f=o.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(t.$n,{icon:f?"unlock":"lock",disabled:!c||!a,onClick:function(){return u("toggle")},children:f?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!l,onClick:function(){return u("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:l?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return u("remove_device")},children:l})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.wn,{title:"Attachment One",children:(0,e.jsx)(t.Ki,{children:c?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return u("tankone")},children:c})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(t.wn,{title:"Attachment Two",children:(0,e.jsx)(t.Ki,{children:a?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!a,onClick:function(){return u("tanktwo")},children:a})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},76992:function(y,h,n){"use strict";n.r(h),n.d(h,{TurbineControl:function(){return g}});var e=n(20462),i=n(7081),t=n(21148),r=n(41242),s=n(42103),g=function(x){var u=(0,i.Oc)(),o=u.act,c=u.data,a=c.compressor_broke,l=c.turbine_broke,f=c.broken,m=c.door_status,v=c.online,j=c.power,E=c.rpm,O=c.temp;return(0,e.jsx)(s.p8,{width:520,height:440,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Turbine Controller",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:f&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return o("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:v?"good":"bad",children:v&&!a&&!l?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:a&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||l&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:v,onClick:function(){return o(v?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:m,onClick:function(){return o("doors")},children:m?"Closed":"Open"})})]})}),(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Turbine Speed",children:[f?"--":(0,e.jsx)(t.zv,{value:E})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[f?"--":(0,e.jsx)(t.zv,{value:O})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:f?"--":(0,e.jsx)(t.zv,{format:function(M){return(0,r.d5)(M)},value:Number(j)})})]})})]})})}},13101:function(y,h,n){"use strict";n.r(h),n.d(h,{Turbolift:function(){return s}});var e=n(20462),i=n(7081),t=n(21148),r=n(42103),s=function(g){var x=(0,i.Oc)(),u=x.act,o=x.data,c=o.floors,a=o.doors_open,l=o.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:l?285:260,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Floor Selection",className:l?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:a?"door-open":"door-closed",selected:a&&!l,color:l?"red":null,onClick:function(){return u("toggle_doors")},children:a?l?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return u("emergency_stop")},children:"Emergency Stop"})]}),children:[!l||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:c.map(function(f){return(0,e.jsx)(t.so.Item,{basis:"100%",children:(0,e.jsxs)(t.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:f.label||"Floor #"+f.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$n,{icon:"circle",color:f.current?"red":f.target?"green":f.queued?"yellow":null,onClick:function(){return u("move_to_floor",{ref:f.ref})}})}),(0,e.jsx)(t.so.Item,{basis:"50%",grow:1,children:f.name})]})},f.id)})})]})})})}},28665:function(y,h,n){"use strict";n.r(h),n.d(h,{ExploitableInformation:function(){return r}});var e=n(20462),i=n(7081),t=n(21148),r=function(s){var g=(0,i.Oc)(),x=g.act,u=g.data,o=u.exploit,c=u.locked_records;return(0,e.jsx)(t.wn,{title:"Exploitable Information",buttons:o&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return x("view_exploits",{id:0})},children:"Back"}),children:o&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:o.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:o.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:o.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:o.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:o.rank}),(0,e.jsx)(t.Ki.Item,{label:"Home System",children:o.home_system}),(0,e.jsx)(t.Ki.Item,{label:"Birthplace",children:o.birthplace}),(0,e.jsx)(t.Ki.Item,{label:"Citizenship",children:o.citizenship}),(0,e.jsx)(t.Ki.Item,{label:"Faction",children:o.faction}),(0,e.jsx)(t.Ki.Item,{label:"Religion",children:o.religion}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:o.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Other Affiliations",children:o.antagfaction}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{children:"Acquired Information"}),(0,e.jsx)(t.Ki.Item,{label:"Notes",children:o.nanoui_exploit_record.split("
").map(function(a){return(0,e.jsx)(t.az,{children:a},a)})})]})})||c&&c.map(function(a){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return x("view_exploits",{id:a.id})},children:a.name},a.id)})})}},26142:function(y,h,n){"use strict";n.r(h),n.d(h,{GenericUplink:function(){return o}});var e=n(20462),i=n(61282),t=n(61358),r=n(7081),s=n(21148),g=n(41242),x=n(32011),u=n(25513),o=function(c){var a,l,f=(0,r.Oc)(),m=f.act,v=f.data,j=c.currencyAmount,E=j===void 0?0:j,O=c.currencySymbol,M=O===void 0?"\u20AE":O,P=v.compactMode,D=v.lockable,S=v.categories,B=S===void 0?[]:S,T=(0,t.useState)(""),U=T[0],W=T[1],z=(0,t.useState)((a=B[0])==null?void 0:a.name),k=z[0],$=z[1],Y=(0,i.XZ)(U,function(ne){return ne.name+ne.desc}),G=U.length>0&&B.flatMap(function(ne){return ne.items||[]}).filter(Y).filter(function(ne,oe){return oe0?"good":"bad",children:[(0,g.up)(E)," ",M]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(s.pd,{autoFocus:!0,value:U,onInput:function(ne,oe){return W(oe)},mx:1}),(0,e.jsx)(s.$n,{icon:P?"list":"info",onClick:function(){return m("compact_toggle")},children:P?"Compact":"Detailed"}),!!D&&(0,e.jsx)(s.$n,{icon:"lock",onClick:function(){return m("lock")},children:"Lock"})]}),children:(0,e.jsxs)(s.so,{children:[U.length===0&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.tU,{vertical:!0,children:B.map(function(ne){var oe;return(0,e.jsxs)(s.tU.Tab,{selected:ne.name===k,onClick:function(){return $(ne.name)},children:[ne.name," (",((oe=ne.items)==null?void 0:oe.length)||0,")"]},ne.name)})})}),(0,e.jsxs)(s.so.Item,{grow:1,basis:0,children:[G.length===0&&(0,e.jsx)(s.IC,{children:U.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(u.ItemList,{compactMode:U.length>0||P,currencyAmount:E,currencySymbol:M,items:G})]})]})})}},25513:function(y,h,n){"use strict";n.r(h),n.d(h,{ItemList:function(){return g}});var e=n(20462),i=n(61282),t=n(7081),r=n(21148),s=n(41242),g=function(x){var u=(0,t.Oc)().act,o=x.compactMode,c=x.currencyAmount,a=x.currencySymbol,l=x.items;return o?(0,e.jsx)(r.XI,{children:l.map(function(f){return(0,e.jsxs)(r.XI.Row,{className:"candystripe",children:[(0,e.jsx)(r.XI.Cell,{bold:!0,children:(0,i.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{fluid:!0,disabled:c',ee+='",ee+='
',ee+='
',ee+="Addons:
"+(0,i.GetAddons)(f)+"

",ee+="== Descriptions ==
",ee+="Vore Verb:
"+c+"

",ee+="Release Verb:
"+a+"

",ee+='Description:
"'+x+'"

',ee+='Absorbed Description:
"'+o+'"

',ee+="
",ee+="== Messages ==
",ee+="Show All Interactive Messages: "+(u?'Yes':'No')+"
",ee+='
',ee+='
",ee+='
',ee+='
',ee+='
',H==null||H.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',V==null||V.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',J==null||J.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',ce==null||ce.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',le==null||le.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',fe==null||fe.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',he==null||he.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',_e==null||_e.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',xe==null||xe.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',je==null||je.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Re==null||Re.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',qe==null||qe.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Fe==null||Fe.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Pe==null||Pe.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',He==null||He.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',gn==null||gn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',mn==null||mn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',cn==null||cn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',En==null||En.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',hn==null||hn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',sn==null||sn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Se==null||Se.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Ue==null||Ue.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',ye==null||ye.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',ke==null||ke.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',oe==null||oe.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',q==null||q.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Z==null||Z.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',X==null||X.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Ze==null||Ze.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',We==null||We.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Ye==null||Ye.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Bn==null||Bn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',Un==null||Un.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',_n==null||_n.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',pn==null||pn.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+='
',ln==null||ln.forEach(function(Te){ee+=Te+"
"}),ee+="
",ee+="
",ee+="
",ee+="
",ee+="
= Idle Messages =

",ee+="

Idle Messages (Hold):

",Ve==null||Ve.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Hold Absorbed):

",vn==null||vn.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Digest):

",ze==null||ze.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Absorb):

",In==null||In.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Unabsorb):

",Zt==null||Zt.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Drain):

",it==null||it.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Heal):

",Tt==null||Tt.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Size Steal):

",Ct==null||Ct.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Shrink):

",xt==null||xt.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Grow):

",wt==null||wt.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="
Idle Messages (Encase In Egg):

",et==null||et.forEach(function(Te){ee+=Te+"
"}),ee+="


",ee+="


",ee+="
",ee+='
',ee+='
',ee+='

',ee+='

",ee+='
',ee+='
',ee+='
    ',ee+='
  • Can Taste: '+(P?'Yes':'No')+"
  • ",ee+='
  • Contaminates: '+(D?'Yes':'No')+"
  • ",ee+='
  • Contamination Flavor: '+S+"
  • ",ee+='
  • Contamination Color: '+B+"
  • ",ee+='
  • Nutritional Gain: '+T+"%
  • ",ee+='
  • Required Examine Size: '+U*100+"%
  • ",ee+='
  • Display Absorbed Examines: '+(W?'True':'False')+"
  • ",ee+='
  • Save Digest Mode: '+(z?'True':'False')+"
  • ",ee+='
  • Idle Emotes: '+(k?'Active':'Inactive')+"
  • ",ee+='
  • Idle Emote Delay: '+$+" seconds
  • ",ee+='
  • Shrink/Grow Size: '+Y*100+"%
  • ",ee+='
  • Egg Type: '+G+"
  • ",ee+='
  • Selective Mode Preference: '+ne+"
  • ",ee+="
",ee+="
",ee+='
',ee+='

',ee+='

",ee+='
',ee+='
',ee+='
    ',ee+='
  • Fleshy Belly: '+(dr?'Yes':'No')+"
  • ",ee+='
  • Internal Loop: '+(Jo?'Yes':'No')+"
  • ",ee+='
  • Use Fancy Sounds: '+(qo?'Yes':'No')+"
  • ",ee+='
  • Vore Sound: '+ei+"
  • ",ee+='
  • Release Sound: '+vo+"
  • ",ee+="
",ee+="
",ee+='
',ee+='

',ee+='

",ee+='
",ee+='
',ee+="Vore FX",ee+='
    ',ee+='
  • Disable Prey HUD: '+(xo?'Yes':'No')+"
  • ",ee+="
",ee+="
",ee+='
',ee+='

',ee+='

",ee+='
',ee+='
',ee+="Belly Interactions ("+(go?'Enabled':'Disabled')+")",ee+='
    ',ee+='
  • Escape Chance: '+Ki+"%
  • ",ee+='
  • Escape Chance: '+zt+"%
  • ",ee+='
  • Escape Time: '+po/10+"s
  • ",ee+='
  • Transfer Chance: '+_r+"%
  • ",ee+='
  • Transfer Location: '+yt+"
  • ",ee+='
  • Secondary Transfer Chance: '+Ot+"%
  • ",ee+='
  • Secondary Transfer Location: '+fr+"
  • ",ee+='
  • Absorb Chance: '+Dr+"%
  • ",ee+='
  • Digest Chance: '+jo+"%
  • ",ee+="
",ee+="
",ee+="
",ee}},65881:function(y,h,n){"use strict";n.r(h),n.d(h,{GetAddons:function(){return i}});var e=n(26222),i=function(t){var r=[];return t==null||t.forEach(function(s){r.push(''+s+"")}),r.length===0&&r.push("No Addons Set"),r}},44887:function(y,h,n){"use strict";n.r(h),n.d(h,{downloadPrefs:function(){return r}});var e=n(7081),i=n(18228),t=n(95679),r=function(s){var g=(0,e.Oc)(),x=g.act,u=g.data,o=u.db_version,c=u.db_repo,a=u.mob_name,l=u.bellies,f=(0,t.getCurrentTimestamp)(),m=a+f+s,v;if(s===".html"){var j="";v=new Blob([''+l.length+" Exported Bellies (DB_VER: "+c+"-"+o+')'+j+'

Bellies of '+a+'

Generated on: '+f+'

'],{type:"text/html;charset=utf8"}),l.forEach(function(E,O){v=new Blob([v,(0,i.generateBellyString)(E,O)],{type:"text/html;charset=utf8"})}),v=new Blob([v,"
",'